diff --git a/events/lollms_discussion_events.py b/events/lollms_discussion_events.py index 73a1da9f..0df1e6f6 100644 --- a/events/lollms_discussion_events.py +++ b/events/lollms_discussion_events.py @@ -29,6 +29,7 @@ import yaml from lollms.databases.discussions_database import Discussion from lollms.security import forbid_remote_access from datetime import datetime +import shutil router = APIRouter() lollmsElfServer = LOLLMSWebUI.get_instance() @@ -76,18 +77,26 @@ def add_events(sio:socketio): if lollmsElfServer.config.current_language and current_language!= default_language: language_path = lollmsElfServer.lollms_paths.personal_configuration_path/"personalities"/lollmsElfServer.personality.name/f"languages_{current_language}.yaml" if not language_path.exists(): - lollmsElfServer.ShowBlockingMessage(f"This is the first time this personality speaks {current_language}\nLollms is reconditionning the persona in that language.\nThis will be done just once. Next time, the personality will speak {current_language} out of the box") - language_path.parent.mkdir(exist_ok=True, parents=True) - # Translating - conditionning = lollmsElfServer.tasks_library.translate_conditionning(lollmsElfServer.personality._personality_conditioning, lollmsElfServer.personality.language, current_language) - welcome_message = lollmsElfServer.tasks_library.translate_message(lollmsElfServer.personality.welcome_message, lollmsElfServer.personality.language, current_language) - with open(language_path,"w",encoding="utf-8", errors="ignore") as f: - yaml.safe_dump({"conditionning":conditionning,"welcome_message":welcome_message}, f) - lollmsElfServer.HideBlockingMessage() + #checking if there is already a translation in the personality folder + persona_language_path = lollmsElfServer.lollms_paths.personalities_zoo_path/lollmsElfServer.personality.category/lollmsElfServer.personality.name.replace(" ","_")/"languages"/f"{current_language}.yaml" + if persona_language_path.exists(): + shutil.copy(persona_language_path, language_path) + with open(language_path,"r",encoding="utf-8", errors="ignore") as f: + language_pack = yaml.safe_load(f) + conditionning = language_pack["personality_conditioning"] + else: + lollmsElfServer.ShowBlockingMessage(f"This is the first time this personality speaks {current_language}\nLollms is reconditionning the persona in that language.\nThis will be done just once. Next time, the personality will speak {current_language} out of the box") + language_path.parent.mkdir(exist_ok=True, parents=True) + # Translating + conditionning = lollmsElfServer.tasks_library.translate_conditionning(lollmsElfServer.personality._personality_conditioning, lollmsElfServer.personality.language, current_language) + welcome_message = lollmsElfServer.tasks_library.translate_message(lollmsElfServer.personality.welcome_message, lollmsElfServer.personality.language, current_language) + with open(language_path,"w",encoding="utf-8", errors="ignore") as f: + yaml.safe_dump({"personality_conditioning":conditionning,"welcome_message":welcome_message}, f) + lollmsElfServer.HideBlockingMessage() else: with open(language_path,"r",encoding="utf-8", errors="ignore") as f: language_pack = yaml.safe_load(f) - welcome_message = language_pack["welcome_message"] + welcome_message = language_pack.get("welcome_message", lollmsElfServer.personality.welcome_message) else: welcome_message = lollmsElfServer.personality.welcome_message diff --git a/lollms_core b/lollms_core index 7ad45680..b2c9f73a 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 7ad456806e139700eb8b409a01fa951a99dd2638 +Subproject commit b2c9f73a3d51b4edc21040c2e478a67e003c9619 diff --git a/tools/LiteSQLViewer/LiteSQLViewer.py b/tools/LiteSQLViewer/LiteSQLViewer.py new file mode 100644 index 00000000..0ba04fa4 --- /dev/null +++ b/tools/LiteSQLViewer/LiteSQLViewer.py @@ -0,0 +1,236 @@ +import sys +from PyQt5.QtWidgets import (QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, + QPushButton, QLineEdit, QTableView, QHeaderView, QMessageBox, + QFileDialog, QListWidget, QSplitter, QDialog, QLabel, QFormLayout) +from PyQt5.QtSql import QSqlDatabase, QSqlTableModel +from PyQt5.QtCore import Qt, QSortFilterProxyModel + +class AddRecordDialog(QDialog): + def __init__(self, columns, parent=None): + super().__init__(parent) + self.setWindowTitle("Add Record") + self.setGeometry(100, 100, 300, 200) + self.layout = QFormLayout(self) + self.line_edits = {} + + for column in columns: + if column.lower() != "id": # Exclude the ID field + line_edit = QLineEdit(self) + self.layout.addRow(QLabel(column), line_edit) + self.line_edits[column] = line_edit + + self.submit_button = QPushButton("Submit", self) + self.submit_button.clicked.connect(self.accept) + self.layout.addRow(self.submit_button) + + def get_values(self): + return {column: line_edit.text() for column, line_edit in self.line_edits.items()} + +class LiteSQLViewer(QMainWindow): + def __init__(self): + super().__init__() + self.setWindowTitle("LiteSQL Viewer") + self.setGeometry(100, 100, 800, 600) + self.setStyleSheet(""" + QMainWindow { + background-color: #f0f0f0; + } + QPushButton { + background-color: #4CAF50; + color: white; + border: none; + padding: 8px 16px; + text-align: center; + text-decoration: none; + font-size: 14px; + margin: 4px 2px; + border-radius: 4px; + } + QPushButton:hover { + background-color: #45a049; + } + QLineEdit { + padding: 8px; + margin: 4px 2px; + border: 1px solid #ccc; + border-radius: 4px; + } + QTableView { + border: 1px solid #ddd; + gridline-color: #ddd; + } + QHeaderView::section { + background-color: #f2f2f2; + padding: 4px; + border: 1px solid #ddd; + font-weight: bold; + } + QListWidget { + width: 200px; + background-color: #ffffff; + border: 1px solid #ddd; + } + """) + + self.db = QSqlDatabase.addDatabase("QSQLITE") + self.model = None + self.setup_ui() + + def setup_ui(self): + central_widget = QWidget() + self.setCentralWidget(central_widget) + layout = QHBoxLayout() + + # Splitter for left sidebar and main view + self.splitter = QSplitter(Qt.Horizontal) + layout.addWidget(self.splitter) + + # Left sidebar for tables + self.table_list = QListWidget() + self.table_list.itemClicked.connect(self.load_table_from_list) + self.splitter.addWidget(self.table_list) + + # Main layout + main_widget = QWidget() + main_layout = QVBoxLayout(main_widget) + + # Buttons + button_layout = QHBoxLayout() + self.open_button = QPushButton("Open Database", self) + self.open_button.clicked.connect(self.open_database) + self.commit_button = QPushButton("Commit Changes", self) + self.commit_button.clicked.connect(self.commit_changes) + self.add_button = QPushButton("Add Record", self) + self.add_button.clicked.connect(self.add_record) + self.edit_button = QPushButton("Edit Record", self) + self.edit_button.clicked.connect(self.edit_record) + self.delete_button = QPushButton("Delete Record", self) + self.delete_button.clicked.connect(self.delete_record) + self.scroll_button = QPushButton("Scroll to Bottom", self) + self.scroll_button.clicked.connect(self.scroll_to_bottom) # Connect to scroll method + button_layout.addWidget(self.open_button) + button_layout.addWidget(self.commit_button) + button_layout.addWidget(self.add_button) + button_layout.addWidget(self.edit_button) + button_layout.addWidget(self.delete_button) + button_layout.addWidget(self.scroll_button) # Add scroll button to layout + main_layout.addLayout(button_layout) + + # Search bar + self.search_bar = QLineEdit(self) + self.search_bar.setPlaceholderText("Search...") + self.search_bar.textChanged.connect(self.filter_table) + main_layout.addWidget(self.search_bar) + + # Table view + self.table_view = QTableView() + self.table_view.horizontalHeader().setSectionResizeMode(QHeaderView.ResizeToContents) + self.table_view.verticalHeader().setSectionResizeMode(QHeaderView.ResizeToContents) + main_layout.addWidget(self.table_view) + + self.splitter.addWidget(main_widget) + self.splitter.setSizes([150, 650]) # Set default sizes for the splitter + + central_widget.setLayout(layout) + + def open_database(self): + file_name, _ = QFileDialog.getOpenFileName(self, "Open Database", "", "SQLite Database Files (*.db *.sqlite);;All Files (*)") + if file_name: + self.db.setDatabaseName(file_name) + if not self.db.open(): + QMessageBox.critical(self, "Error", "Could not open database") + return + self.load_tables() + + def load_tables(self): + self.table_list.clear() + tables = self.db.tables() + if not tables: + QMessageBox.warning(self, "Warning", "No tables found in the database") + return + self.table_list.addItems(tables) + + def load_table_from_list(self, item): + table_name = item.text() + self.model = QSqlTableModel(self, self.db) + self.model.setTable(table_name) + self.model.setEditStrategy(QSqlTableModel.OnFieldChange) + self.model.select() + + self.proxy_model = QSortFilterProxyModel(self) + self.proxy_model.setSourceModel(self.model) + self.proxy_model.setFilterCaseSensitivity(Qt.CaseInsensitive) + self.proxy_model.setFilterKeyColumn(-1) # Search all columns + + self.table_view.setModel(self.proxy_model) + + def filter_table(self, text): + self.proxy_model.setFilterFixedString(text) + + def add_record(self): + if not self.model: + QMessageBox.warning(self, "Warning", "No table selected") + return + + # Get the column names, excluding the ID field + columns = [self.model.record().fieldName(i) for i in range(self.model.record().count()) if self.model.record().fieldName(i).lower() != "id"] + + # Create and show the dialog + dialog = AddRecordDialog(columns, self) + if dialog.exec_() == QDialog.Accepted: + values = dialog.get_values() + self.insert_record(values) + + def insert_record(self, values): + if not self.model: + return + + row = self.model.rowCount() + self.model.insertRow(row) + + for column, value in values.items(): + self.model.setData(self.model.index(row, self.model.fieldIndex(column)), value) + + def edit_record(self): + if not self.model: + QMessageBox.warning(self, "Warning", "No table selected") + return + indexes = self.table_view.selectionModel().selectedRows() + if len(indexes) != 1: + QMessageBox.warning(self, "Warning", "Please select a single row to edit") + return + source_index = self.proxy_model.mapToSource(indexes[0]) + self.table_view.edit(indexes[0]) + + def delete_record(self): + if not self.model: + QMessageBox.warning(self, "Warning", "No table selected") + return + indexes = self.table_view.selectionModel().selectedRows() + if not indexes: + QMessageBox.warning(self, "Warning", "Please select row(s) to delete") + return + confirm = QMessageBox.question(self, "Confirm Deletion", f"Are you sure you want to delete {len(indexes)} row(s)?", + QMessageBox.Yes | QMessageBox.No) + if confirm == QMessageBox.Yes: + for index in sorted(indexes, reverse=True): + source_index = self.proxy_model.mapToSource(index) + self.model.removeRow(source_index.row()) + self.model.select() + + def commit_changes(self): + if self.model: + if self.model.submitAll(): + QMessageBox.information(self, "Success", "Changes committed successfully.") + else: + QMessageBox.critical(self, "Error", "Failed to commit changes: " + self.model.lastError().text()) + + def scroll_to_bottom(self): + if self.model and self.model.rowCount() > 0: + self.table_view.scrollToBottom() # Scroll to the bottom of the table view + +if __name__ == '__main__': + app = QApplication(sys.argv) + window = LiteSQLViewer() + window.show() + sys.exit(app.exec_()) diff --git a/utilities/execution_engines/lilypond_execution_engine.py b/utilities/execution_engines/lilypond_execution_engine.py index 502dad1b..aa6061d5 100644 --- a/utilities/execution_engines/lilypond_execution_engine.py +++ b/utilities/execution_engines/lilypond_execution_engine.py @@ -49,7 +49,7 @@ def execute_lilypond(code, client:Client, message_id): # Create LilyPond file ly_file = root_folder/f"score_{message_id}.ly" - ly_file.write_text(code) + ly_file.write_text(code,encoding="utf8") # Get the PDF and MIDI outputs pdf_file = ly_file.with_suffix('.pdf') diff --git a/web/dist/assets/index-CSHYN0YB.js b/web/dist/assets/index-CSHYN0YB.js deleted file mode 100644 index 9e43a3fd..00000000 --- a/web/dist/assets/index-CSHYN0YB.js +++ /dev/null @@ -1,3997 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/stackoverflow-dark-8CFru5b-.css","assets/stackoverflow-light-CpIvNHzo.css"])))=>i.map(i=>d[i]); -var tI=Object.defineProperty;var nI=(n,e,t)=>e in n?tI(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Yt=(n,e,t)=>nI(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=t(r);fetch(r.href,i)}})();/** -* @vue/shared v3.5.10 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Lb(n){const e=Object.create(null);for(const t of n.split(","))e[t]=1;return t=>t in e}const $t={},Qo=[],rr=()=>{},sI=()=>!1,Cu=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Pb=n=>n.startsWith("onUpdate:"),ln=Object.assign,Fb=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},rI=Object.prototype.hasOwnProperty,Dt=(n,e)=>rI.call(n,e),it=Array.isArray,Xo=n=>Da(n)==="[object Map]",ka=n=>Da(n)==="[object Set]",Yy=n=>Da(n)==="[object Date]",iI=n=>Da(n)==="[object RegExp]",ft=n=>typeof n=="function",Xt=n=>typeof n=="string",or=n=>typeof n=="symbol",zt=n=>n!==null&&typeof n=="object",u2=n=>(zt(n)||ft(n))&&ft(n.then)&&ft(n.catch),p2=Object.prototype.toString,Da=n=>p2.call(n),oI=n=>Da(n).slice(8,-1),f2=n=>Da(n)==="[object Object]",Ub=n=>Xt(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,yl=Lb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wu=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},aI=/-(\w)/g,Cs=wu(n=>n.replace(aI,(e,t)=>t?t.toUpperCase():"")),lI=/\B([A-Z])/g,xi=wu(n=>n.replace(lI,"-$1").toLowerCase()),Ru=wu(n=>n.charAt(0).toUpperCase()+n.slice(1)),yd=wu(n=>n?`on${Ru(n)}`:""),vi=(n,e)=>!Object.is(n,e),Zo=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:s,value:t})},Fd=n=>{const e=parseFloat(n);return isNaN(e)?n:e},cI=n=>{const e=Xt(n)?Number(n):NaN;return isNaN(e)?n:e};let $y;const m2=()=>$y||($y=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bt(n){if(it(n)){const e={};for(let t=0;t{if(t){const s=t.split(uI);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Le(n){let e="";if(Xt(n))e=n;else if(it(n))for(let t=0;too(t,e))}const g2=n=>!!(n&&n.__v_isRef===!0),Y=n=>Xt(n)?n:n==null?"":it(n)||zt(n)&&(n.toString===p2||!ft(n.toString))?g2(n)?Y(n.value):JSON.stringify(n,b2,2):String(n),b2=(n,e)=>g2(e)?b2(n,e.value):Xo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,r],i)=>(t[Mp(s,i)+" =>"]=r,t),{})}:ka(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Mp(t))}:or(e)?Mp(e):zt(e)&&!it(e)&&!f2(e)?String(e):e,Mp=(n,e="")=>{var t;return or(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/** -* @vue/reactivity v3.5.10 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Un;class y2{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Un,!e&&Un&&(this.index=(Un.scopes||(Un.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0)return;let n;for(;$o;){let e=$o,t;for(;e;)e.flags&1||(e.flags&=-9),e=e.next;for(e=$o,$o=void 0;e;){if(t=e.next,e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){n||(n=s)}e=t}}if(n)throw n}function x2(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function C2(n){let e,t=n.depsTail,s=t;for(;s;){const r=s.prevDep;s.version===-1?(s===t&&(t=r),zb(s),yI(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}n.deps=e,n.depsTail=t}function Ag(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(w2(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function w2(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===Pl))return;n.globalVersion=Pl;const e=n.dep;if(n.flags|=2,e.version>0&&!n.isSSR&&n.deps&&!Ag(n)){n.flags&=-3;return}const t=Kt,s=Us;Kt=n,Us=!0;try{x2(n);const r=n.fn(n._value);(e.version===0||vi(r,n._value))&&(n._value=r,e.version++)}catch(r){throw e.version++,r}finally{Kt=t,Us=s,C2(n),n.flags&=-3}}function zb(n,e=!1){const{dep:t,prevSub:s,nextSub:r}=n;if(s&&(s.nextSub=r,n.prevSub=void 0),r&&(r.prevSub=s,n.nextSub=void 0),t.subs===n&&(t.subs=s),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)zb(i,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function yI(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let Us=!0;const R2=[];function Ci(){R2.push(Us),Us=!1}function wi(){const n=R2.pop();Us=n===void 0?!0:n}function Wy(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=Kt;Kt=void 0;try{e()}finally{Kt=t}}}let Pl=0;class EI{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Au{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Kt||!Us||Kt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Kt)t=this.activeLink=new EI(Kt,this),Kt.deps?(t.prevDep=Kt.depsTail,Kt.depsTail.nextDep=t,Kt.depsTail=t):Kt.deps=Kt.depsTail=t,A2(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const s=t.nextDep;s.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=s),t.prevDep=Kt.depsTail,t.nextDep=void 0,Kt.depsTail.nextDep=t,Kt.depsTail=t,Kt.deps===t&&(Kt.deps=s)}return t}trigger(e){this.version++,Pl++,this.notify(e)}notify(e){Gb();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{Vb()}}}function A2(n){if(n.dep.sc++,n.sub.flags&4){const e=n.dep.computed;if(e&&!n.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)A2(s)}const t=n.dep.subs;t!==n&&(n.prevSub=t,t&&(t.nextSub=n)),n.dep.subs=n}}const Ud=new WeakMap,Xi=Symbol(""),Mg=Symbol(""),Fl=Symbol("");function Dn(n,e,t){if(Us&&Kt){let s=Ud.get(n);s||Ud.set(n,s=new Map);let r=s.get(t);r||(s.set(t,r=new Au),r.target=n,r.map=s,r.key=t),r.track()}}function Nr(n,e,t,s,r,i){const o=Ud.get(n);if(!o){Pl++;return}const a=c=>{c&&c.trigger()};if(Gb(),e==="clear")o.forEach(a);else{const c=it(n),d=c&&Ub(t);if(c&&t==="length"){const u=Number(s);o.forEach((_,m)=>{(m==="length"||m===Fl||!or(m)&&m>=u)&&a(_)})}else switch(t!==void 0&&a(o.get(t)),d&&a(o.get(Fl)),e){case"add":c?d&&a(o.get("length")):(a(o.get(Xi)),Xo(n)&&a(o.get(Mg)));break;case"delete":c||(a(o.get(Xi)),Xo(n)&&a(o.get(Mg)));break;case"set":Xo(n)&&a(o.get(Xi));break}}Vb()}function vI(n,e){const t=Ud.get(n);return t&&t.get(e)}function So(n){const e=It(n);return e===n?e:(Dn(e,"iterate",Fl),Ss(n)?e:e.map(Nn))}function Mu(n){return Dn(n=It(n),"iterate",Fl),n}const SI={__proto__:null,[Symbol.iterator](){return Op(this,Symbol.iterator,Nn)},concat(...n){return So(this).concat(...n.map(e=>it(e)?So(e):e))},entries(){return Op(this,"entries",n=>(n[1]=Nn(n[1]),n))},every(n,e){return mr(this,"every",n,e,void 0,arguments)},filter(n,e){return mr(this,"filter",n,e,t=>t.map(Nn),arguments)},find(n,e){return mr(this,"find",n,e,Nn,arguments)},findIndex(n,e){return mr(this,"findIndex",n,e,void 0,arguments)},findLast(n,e){return mr(this,"findLast",n,e,Nn,arguments)},findLastIndex(n,e){return mr(this,"findLastIndex",n,e,void 0,arguments)},forEach(n,e){return mr(this,"forEach",n,e,void 0,arguments)},includes(...n){return Ip(this,"includes",n)},indexOf(...n){return Ip(this,"indexOf",n)},join(n){return So(this).join(n)},lastIndexOf(...n){return Ip(this,"lastIndexOf",n)},map(n,e){return mr(this,"map",n,e,void 0,arguments)},pop(){return Xa(this,"pop")},push(...n){return Xa(this,"push",n)},reduce(n,...e){return Ky(this,"reduce",n,e)},reduceRight(n,...e){return Ky(this,"reduceRight",n,e)},shift(){return Xa(this,"shift")},some(n,e){return mr(this,"some",n,e,void 0,arguments)},splice(...n){return Xa(this,"splice",n)},toReversed(){return So(this).toReversed()},toSorted(n){return So(this).toSorted(n)},toSpliced(...n){return So(this).toSpliced(...n)},unshift(...n){return Xa(this,"unshift",n)},values(){return Op(this,"values",Nn)}};function Op(n,e,t){const s=Mu(n),r=s[e]();return s!==n&&!Ss(n)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=t(i.value)),i}),r}const TI=Array.prototype;function mr(n,e,t,s,r,i){const o=Mu(n),a=o!==n&&!Ss(n),c=o[e];if(c!==TI[e]){const _=c.apply(n,i);return a?Nn(_):_}let d=t;o!==n&&(a?d=function(_,m){return t.call(this,Nn(_),m,n)}:t.length>2&&(d=function(_,m){return t.call(this,_,m,n)}));const u=c.call(o,d,s);return a&&r?r(u):u}function Ky(n,e,t,s){const r=Mu(n);let i=t;return r!==n&&(Ss(n)?t.length>3&&(i=function(o,a,c){return t.call(this,o,a,c,n)}):i=function(o,a,c){return t.call(this,o,Nn(a),c,n)}),r[e](i,...s)}function Ip(n,e,t){const s=It(n);Dn(s,"iterate",Fl);const r=s[e](...t);return(r===-1||r===!1)&&qb(t[0])?(t[0]=It(t[0]),s[e](...t)):r}function Xa(n,e,t=[]){Ci(),Gb();const s=It(n)[e].apply(n,t);return Vb(),wi(),s}const xI=Lb("__proto__,__v_isRef,__isVue"),M2=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(or));function CI(n){or(n)||(n=String(n));const e=It(this);return Dn(e,"has",n),e.hasOwnProperty(n)}class N2{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){const r=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!r;if(t==="__v_isReadonly")return r;if(t==="__v_isShallow")return i;if(t==="__v_raw")return s===(r?i?P2:L2:i?D2:k2).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=it(e);if(!r){let c;if(o&&(c=SI[t]))return c;if(t==="hasOwnProperty")return CI}const a=Reflect.get(e,t,pn(e)?e:s);return(or(t)?M2.has(t):xI(t))||(r||Dn(e,"get",t),i)?a:pn(a)?o&&Ub(t)?a:a.value:zt(a)?r?U2(a):Hn(a):a}}class O2 extends N2{constructor(e=!1){super(!1,e)}set(e,t,s,r){let i=e[t];if(!this._isShallow){const c=ao(i);if(!Ss(s)&&!ao(s)&&(i=It(i),s=It(s)),!it(e)&&pn(i)&&!pn(s))return c?!1:(i.value=s,!0)}const o=it(e)&&Ub(t)?Number(t)n,Nu=n=>Reflect.getPrototypeOf(n);function vc(n,e,t=!1,s=!1){n=n.__v_raw;const r=It(n),i=It(e);t||(vi(e,i)&&Dn(r,"get",e),Dn(r,"get",i));const{has:o}=Nu(r),a=s?Hb:t?Yb:Nn;if(o.call(r,e))return a(n.get(e));if(o.call(r,i))return a(n.get(i));n!==r&&n.get(e)}function Sc(n,e=!1){const t=this.__v_raw,s=It(t),r=It(n);return e||(vi(n,r)&&Dn(s,"has",n),Dn(s,"has",r)),n===r?t.has(n):t.has(n)||t.has(r)}function Tc(n,e=!1){return n=n.__v_raw,!e&&Dn(It(n),"iterate",Xi),Reflect.get(n,"size",n)}function jy(n,e=!1){!e&&!Ss(n)&&!ao(n)&&(n=It(n));const t=It(this);return Nu(t).has.call(t,n)||(t.add(n),Nr(t,"add",n,n)),this}function Qy(n,e,t=!1){!t&&!Ss(e)&&!ao(e)&&(e=It(e));const s=It(this),{has:r,get:i}=Nu(s);let o=r.call(s,n);o||(n=It(n),o=r.call(s,n));const a=i.call(s,n);return s.set(n,e),o?vi(e,a)&&Nr(s,"set",n,e):Nr(s,"add",n,e),this}function Xy(n){const e=It(this),{has:t,get:s}=Nu(e);let r=t.call(e,n);r||(n=It(n),r=t.call(e,n)),s&&s.call(e,n);const i=e.delete(n);return r&&Nr(e,"delete",n,void 0),i}function Zy(){const n=It(this),e=n.size!==0,t=n.clear();return e&&Nr(n,"clear",void 0,void 0),t}function xc(n,e){return function(s,r){const i=this,o=i.__v_raw,a=It(o),c=e?Hb:n?Yb:Nn;return!n&&Dn(a,"iterate",Xi),o.forEach((d,u)=>s.call(r,c(d),c(u),i))}}function Cc(n,e,t){return function(...s){const r=this.__v_raw,i=It(r),o=Xo(i),a=n==="entries"||n===Symbol.iterator&&o,c=n==="keys"&&o,d=r[n](...s),u=t?Hb:e?Yb:Nn;return!e&&Dn(i,"iterate",c?Mg:Xi),{next(){const{value:_,done:m}=d.next();return m?{value:_,done:m}:{value:a?[u(_[0]),u(_[1])]:u(_),done:m}},[Symbol.iterator](){return this}}}}function qr(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function NI(){const n={get(i){return vc(this,i)},get size(){return Tc(this)},has:Sc,add:jy,set:Qy,delete:Xy,clear:Zy,forEach:xc(!1,!1)},e={get(i){return vc(this,i,!1,!0)},get size(){return Tc(this)},has:Sc,add(i){return jy.call(this,i,!0)},set(i,o){return Qy.call(this,i,o,!0)},delete:Xy,clear:Zy,forEach:xc(!1,!0)},t={get(i){return vc(this,i,!0)},get size(){return Tc(this,!0)},has(i){return Sc.call(this,i,!0)},add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear"),forEach:xc(!0,!1)},s={get(i){return vc(this,i,!0,!0)},get size(){return Tc(this,!0)},has(i){return Sc.call(this,i,!0)},add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear"),forEach:xc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Cc(i,!1,!1),t[i]=Cc(i,!0,!1),e[i]=Cc(i,!1,!0),s[i]=Cc(i,!0,!0)}),[n,t,e,s]}const[OI,II,kI,DI]=NI();function Ou(n,e){const t=e?n?DI:kI:n?II:OI;return(s,r,i)=>r==="__v_isReactive"?!n:r==="__v_isReadonly"?n:r==="__v_raw"?s:Reflect.get(Dt(t,r)&&r in s?t:s,r,i)}const LI={get:Ou(!1,!1)},PI={get:Ou(!1,!0)},FI={get:Ou(!0,!1)},UI={get:Ou(!0,!0)},k2=new WeakMap,D2=new WeakMap,L2=new WeakMap,P2=new WeakMap;function BI(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function GI(n){return n.__v_skip||!Object.isExtensible(n)?0:BI(oI(n))}function Hn(n){return ao(n)?n:Iu(n,!1,wI,LI,k2)}function F2(n){return Iu(n,!1,AI,PI,D2)}function U2(n){return Iu(n,!0,RI,FI,L2)}function VI(n){return Iu(n,!0,MI,UI,P2)}function Iu(n,e,t,s,r){if(!zt(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const i=r.get(n);if(i)return i;const o=GI(n);if(o===0)return n;const a=new Proxy(n,o===2?s:t);return r.set(n,a),a}function Jo(n){return ao(n)?Jo(n.__v_raw):!!(n&&n.__v_isReactive)}function ao(n){return!!(n&&n.__v_isReadonly)}function Ss(n){return!!(n&&n.__v_isShallow)}function qb(n){return n?!!n.__v_raw:!1}function It(n){const e=n&&n.__v_raw;return e?It(e):n}function ku(n){return!Dt(n,"__v_skip")&&Object.isExtensible(n)&&_2(n,"__v_skip",!0),n}const Nn=n=>zt(n)?Hn(n):n,Yb=n=>zt(n)?U2(n):n;function pn(n){return n?n.__v_isRef===!0:!1}function ot(n){return B2(n,!1)}function zI(n){return B2(n,!0)}function B2(n,e){return pn(n)?n:new HI(n,e)}class HI{constructor(e,t){this.dep=new Au,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:It(e),this._value=t?e:Nn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,s=this.__v_isShallow||Ss(e)||ao(e);e=s?e:It(e),vi(e,t)&&(this._rawValue=e,this._value=s?e:Nn(e),this.dep.trigger())}}function bt(n){return pn(n)?n.value:n}const qI={get:(n,e,t)=>e==="__v_raw"?n:bt(Reflect.get(n,e,t)),set:(n,e,t,s)=>{const r=n[e];return pn(r)&&!pn(t)?(r.value=t,!0):Reflect.set(n,e,t,s)}};function G2(n){return Jo(n)?n:new Proxy(n,qI)}class YI{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Au,{get:s,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function $I(n){return new YI(n)}function WI(n){const e=it(n)?new Array(n.length):{};for(const t in n)e[t]=V2(n,t);return e}class KI{constructor(e,t,s){this._object=e,this._key=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return vI(It(this._object),this._key)}}class jI{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bd(n,e,t){return pn(n)?n:ft(n)?new jI(n):zt(n)&&arguments.length>1?V2(n,e,t):ot(n)}function V2(n,e,t){const s=n[e];return pn(s)?s:new KI(n,e,t)}class QI{constructor(e,t,s){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Au(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Kt!==this)return T2(this),!0}get value(){const e=this.dep.track();return w2(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function XI(n,e,t=!1){let s,r;return ft(n)?s=n:(s=n.get,r=n.set),new QI(s,r,t)}const wc={},Gd=new WeakMap;let Gi;function ZI(n,e=!1,t=Gi){if(t){let s=Gd.get(t);s||Gd.set(t,s=[]),s.push(n)}}function JI(n,e,t=$t){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:a,call:c}=t,d=S=>r?S:Ss(S)||r===!1||r===0?wr(S,1):wr(S);let u,_,m,h,f=!1,y=!1;if(pn(n)?(_=()=>n.value,f=Ss(n)):Jo(n)?(_=()=>d(n),f=!0):it(n)?(y=!0,f=n.some(S=>Jo(S)||Ss(S)),_=()=>n.map(S=>{if(pn(S))return S.value;if(Jo(S))return d(S);if(ft(S))return c?c(S,2):S()})):ft(n)?e?_=c?()=>c(n,2):n:_=()=>{if(m){Ci();try{m()}finally{wi()}}const S=Gi;Gi=u;try{return c?c(n,3,[h]):n(h)}finally{Gi=S}}:_=rr,e&&r){const S=_,R=r===!0?1/0:r;_=()=>wr(S(),R)}const b=E2(),g=()=>{u.stop(),b&&Fb(b.effects,u)};if(i&&e){const S=e;e=(...R)=>{S(...R),g()}}let E=y?new Array(n.length).fill(wc):wc;const v=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(e){const R=u.run();if(r||f||(y?R.some((w,A)=>vi(w,E[A])):vi(R,E))){m&&m();const w=Gi;Gi=u;try{const A=[R,E===wc?void 0:y&&E[0]===wc?[]:E,h];c?c(e,3,A):e(...A),E=R}finally{Gi=w}}}else u.run()};return a&&a(v),u=new v2(_),u.scheduler=o?()=>o(v,!1):v,h=S=>ZI(S,!1,u),m=u.onStop=()=>{const S=Gd.get(u);if(S){if(c)c(S,4);else for(const R of S)R();Gd.delete(u)}},e?s?v(!0):E=u.run():o?o(v.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function wr(n,e=1/0,t){if(e<=0||!zt(n)||n.__v_skip||(t=t||new Set,t.has(n)))return n;if(t.add(n),e--,pn(n))wr(n.value,e,t);else if(it(n))for(let s=0;s{wr(s,e,t)});else if(f2(n)){for(const s in n)wr(n[s],e,t);for(const s of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,s)&&wr(n[s],e,t)}return n}/** -* @vue/runtime-core v3.5.10 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function tc(n,e,t,s){try{return s?n(...s):n()}catch(r){Du(r,e,t)}}function zs(n,e,t,s){if(ft(n)){const r=tc(n,e,t,s);return r&&u2(r)&&r.catch(i=>{Du(i,e,t)}),r}if(it(n)){const r=[];for(let i=0;i>>1,r=Bn[s],i=Bl(r);i=Bl(t)?Bn.push(n):Bn.splice(tk(e),0,n),n.flags|=1,H2()}}function H2(){!Ul&&!Ng&&(Ng=!0,$b=z2.then(Y2))}function nk(n){it(n)?ea.push(...n):ti&&n.id===-1?ti.splice(qo+1,0,n):n.flags&1||(ea.push(n),n.flags|=1),H2()}function Jy(n,e,t=Ul?js+1:0){for(;tBl(t)-Bl(s));if(ea.length=0,ti){ti.push(...e);return}for(ti=e,qo=0;qon.id==null?n.flags&2?-1:1/0:n.id;function Y2(n){Ng=!1,Ul=!0;try{for(js=0;js{s._d&&dE(-1);const i=Vd(e);let o;try{o=n(...r)}finally{Vd(i),s._d&&dE(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function k(n,e){if(bn===null)return n;const t=Vu(bn),s=n.dirs||(n.dirs=[]);for(let r=0;rn.__isTeleport,El=n=>n&&(n.disabled||n.disabled===""),sk=n=>n&&(n.defer||n.defer===""),eE=n=>typeof SVGElement<"u"&&n instanceof SVGElement,tE=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Og=(n,e)=>{const t=n&&n.to;return Xt(t)?e?e(t):null:t},rk={name:"Teleport",__isTeleport:!0,process(n,e,t,s,r,i,o,a,c,d){const{mc:u,pc:_,pbc:m,o:{insert:h,querySelector:f,createText:y,createComment:b}}=d,g=El(e.props);let{shapeFlag:E,children:v,dynamicChildren:S}=e;if(n==null){const R=e.el=y(""),w=e.anchor=y("");h(R,t,s),h(w,t,s);const A=(C,M)=>{E&16&&(r&&r.isCE&&(r.ce._teleportTarget=C),u(v,C,M,r,i,o,a,c))},I=()=>{const C=e.target=Og(e.props,f),M=j2(C,e,y,h);C&&(o!=="svg"&&eE(C)?o="svg":o!=="mathml"&&tE(C)&&(o="mathml"),g||(A(C,M),Ed(e)))};g&&(A(t,w),Ed(e)),sk(e.props)?hn(I,i):I()}else{e.el=n.el,e.targetStart=n.targetStart;const R=e.anchor=n.anchor,w=e.target=n.target,A=e.targetAnchor=n.targetAnchor,I=El(n.props),C=I?t:w,M=I?R:A;if(o==="svg"||eE(w)?o="svg":(o==="mathml"||tE(w))&&(o="mathml"),S?(m(n.dynamicChildren,S,C,r,i,o,a),Xb(n,e,!0)):c||_(n,e,C,M,r,i,o,a,!1),g)I?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Rc(e,t,R,d,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const G=e.target=Og(e.props,f);G&&Rc(e,G,null,d,0)}else I&&Rc(e,w,A,d,1);Ed(e)}},remove(n,e,t,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:d,targetAnchor:u,target:_,props:m}=n;if(_&&(r(d),r(u)),i&&r(c),o&16){const h=i||!El(m);for(let f=0;f{n.isMounted=!0}),La(()=>{n.isUnmounting=!0}),n}const us=[Function,Array],X2={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:us,onEnter:us,onAfterEnter:us,onEnterCancelled:us,onBeforeLeave:us,onLeave:us,onAfterLeave:us,onLeaveCancelled:us,onBeforeAppear:us,onAppear:us,onAfterAppear:us,onAppearCancelled:us},Z2=n=>{const e=n.subTree;return e.component?Z2(e.component):e},ak={name:"BaseTransition",props:X2,setup(n,{slots:e}){const t=Jb(),s=Q2();return()=>{const r=e.default&&Kb(e.default(),!0);if(!r||!r.length)return;const i=J2(r),o=It(n),{mode:a}=o;if(s.isLeaving)return kp(i);const c=nE(i);if(!c)return kp(i);let d=Gl(c,o,s,t,m=>d=m);c.type!==In&&Si(c,d);const u=t.subTree,_=u&&nE(u);if(_&&_.type!==In&&!ui(c,_)&&Z2(t).type!==In){const m=Gl(_,o,s,t);if(Si(_,m),a==="out-in"&&c.type!==In)return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,t.job.flags&8||t.update(),delete m.afterLeave},kp(i);a==="in-out"&&c.type!==In&&(m.delayLeave=(h,f,y)=>{const b=eR(s,_);b[String(_.key)]=_,h[ni]=()=>{f(),h[ni]=void 0,delete d.delayedLeave},d.delayedLeave=y})}return i}}};function J2(n){let e=n[0];if(n.length>1){for(const t of n)if(t.type!==In){e=t;break}}return e}const lk=ak;function eR(n,e){const{leavingVNodes:t}=n;let s=t.get(e.type);return s||(s=Object.create(null),t.set(e.type,s)),s}function Gl(n,e,t,s,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:_,onBeforeLeave:m,onLeave:h,onAfterLeave:f,onLeaveCancelled:y,onBeforeAppear:b,onAppear:g,onAfterAppear:E,onAppearCancelled:v}=e,S=String(n.key),R=eR(t,n),w=(C,M)=>{C&&zs(C,s,9,M)},A=(C,M)=>{const G=M[1];w(C,M),it(C)?C.every(V=>V.length<=1)&&G():C.length<=1&&G()},I={mode:o,persisted:a,beforeEnter(C){let M=c;if(!t.isMounted)if(i)M=b||c;else return;C[ni]&&C[ni](!0);const G=R[S];G&&ui(n,G)&&G.el[ni]&&G.el[ni](),w(M,[C])},enter(C){let M=d,G=u,V=_;if(!t.isMounted)if(i)M=g||d,G=E||u,V=v||_;else return;let ee=!1;const O=C[Ac]=H=>{ee||(ee=!0,H?w(V,[C]):w(G,[C]),I.delayedLeave&&I.delayedLeave(),C[Ac]=void 0)};M?A(M,[C,O]):O()},leave(C,M){const G=String(n.key);if(C[Ac]&&C[Ac](!0),t.isUnmounting)return M();w(m,[C]);let V=!1;const ee=C[ni]=O=>{V||(V=!0,M(),O?w(y,[C]):w(f,[C]),C[ni]=void 0,R[G]===n&&delete R[G])};R[G]=n,h?A(h,[C,ee]):ee()},clone(C){const M=Gl(C,e,t,s,r);return r&&r(M),M}};return I}function kp(n){if(Lu(n))return n=Lr(n),n.children=null,n}function nE(n){if(!Lu(n))return K2(n.type)&&n.children?J2(n.children):n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&ft(t.default))return t.default()}}function Si(n,e){n.shapeFlag&6&&n.component?(n.transition=e,Si(n.component.subTree,e)):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function Kb(n,e=!1,t){let s=[],r=0;for(let i=0;i1)for(let i=0;iIg(f,e&&(it(e)?e[y]:e),t,s,r));return}if(Zi(s)&&!r)return;const i=s.shapeFlag&4?Vu(s.component):s.el,o=r?null:i,{i:a,r:c}=n,d=e&&e.r,u=a.refs===$t?a.refs={}:a.refs,_=a.setupState,m=It(_),h=_===$t?()=>!1:f=>Dt(m,f);if(d!=null&&d!==c&&(Xt(d)?(u[d]=null,h(d)&&(_[d]=null)):pn(d)&&(d.value=null)),ft(c))tc(c,a,12,[o,u]);else{const f=Xt(c),y=pn(c);if(f||y){const b=()=>{if(n.f){const g=f?h(c)?_[c]:u[c]:c.value;r?it(g)&&Fb(g,i):it(g)?g.includes(i)||g.push(i):f?(u[c]=[i],h(c)&&(_[c]=u[c])):(c.value=[i],n.k&&(u[n.k]=c.value))}else f?(u[c]=o,h(c)&&(_[c]=o)):y&&(c.value=o,n.k&&(u[n.k]=o))};o?(b.id=-1,hn(b,t)):b()}}}const Zi=n=>!!n.type.__asyncLoader,Lu=n=>n.type.__isKeepAlive,ck={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=Jb(),s=t.ctx;if(!s.renderer)return()=>{const E=e.default&&e.default();return E&&E.length===1?E[0]:E};const r=new Map,i=new Set;let o=null;const a=t.suspense,{renderer:{p:c,m:d,um:u,o:{createElement:_}}}=s,m=_("div");s.activate=(E,v,S,R,w)=>{const A=E.component;d(E,v,S,0,a),c(A.vnode,E,v,S,A,a,R,E.slotScopeIds,w),hn(()=>{A.isDeactivated=!1,A.a&&Zo(A.a);const I=E.props&&E.props.onVnodeMounted;I&&fs(I,A.parent,E)},a)},s.deactivate=E=>{const v=E.component;Hd(v.m),Hd(v.a),d(E,m,null,1,a),hn(()=>{v.da&&Zo(v.da);const S=E.props&&E.props.onVnodeUnmounted;S&&fs(S,v.parent,E),v.isDeactivated=!0},a)};function h(E){Dp(E),u(E,t,a,!0)}function f(E){r.forEach((v,S)=>{const R=Ug(v.type);R&&!E(R)&&y(S)})}function y(E){const v=r.get(E);v&&(!o||!ui(v,o))?h(v):o&&Dp(o),r.delete(E),i.delete(E)}Tn(()=>[n.include,n.exclude],([E,v])=>{E&&f(S=>_l(E,S)),v&&f(S=>!_l(v,S))},{flush:"post",deep:!0});let b=null;const g=()=>{b!=null&&(qd(t.subTree.type)?hn(()=>{r.set(b,Mc(t.subTree))},t.subTree.suspense):r.set(b,Mc(t.subTree)))};return cr(g),nc(g),La(()=>{r.forEach(E=>{const{subTree:v,suspense:S}=t,R=Mc(v);if(E.type===R.type&&E.key===R.key){Dp(R);const w=R.component.da;w&&hn(w,S);return}h(E)})}),()=>{if(b=null,!e.default)return o=null;const E=e.default(),v=E[0];if(E.length>1)return o=null,E;if(!la(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return o=null,v;let S=Mc(v);if(S.type===In)return o=null,S;const R=S.type,w=Ug(Zi(S)?S.type.__asyncResolved||{}:R),{include:A,exclude:I,max:C}=n;if(A&&(!w||!_l(A,w))||I&&w&&_l(I,w))return S.shapeFlag&=-257,o=S,v;const M=S.key==null?R:S.key,G=r.get(M);return S.el&&(S=Lr(S),v.shapeFlag&128&&(v.ssContent=S)),b=M,G?(S.el=G.el,S.component=G.component,S.transition&&Si(S,S.transition),S.shapeFlag|=512,i.delete(M),i.add(M)):(i.add(M),C&&i.size>parseInt(C,10)&&y(i.values().next().value)),S.shapeFlag|=256,o=S,qd(v.type)?v:S}}},dk=ck;function _l(n,e){return it(n)?n.some(t=>_l(t,e)):Xt(n)?n.split(",").includes(e):iI(n)?(n.lastIndex=0,n.test(e)):!1}function uk(n,e){nR(n,"a",e)}function pk(n,e){nR(n,"da",e)}function nR(n,e,t=Sn){const s=n.__wdc||(n.__wdc=()=>{let r=t;for(;r;){if(r.isDeactivated)return;r=r.parent}return n()});if(Pu(e,s,t),t){let r=t.parent;for(;r&&r.parent;)Lu(r.parent.vnode)&&fk(s,e,t,r),r=r.parent}}function fk(n,e,t,s){const r=Pu(e,n,s,!0);sR(()=>{Fb(s[e],r)},t)}function Dp(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function Mc(n){return n.shapeFlag&128?n.ssContent:n}function Pu(n,e,t=Sn,s=!1){if(t){const r=t[n]||(t[n]=[]),i=e.__weh||(e.__weh=(...o)=>{Ci();const a=sc(t),c=zs(e,t,n,o);return a(),wi(),c});return s?r.unshift(i):r.push(i),i}}const Ur=n=>(e,t=Sn)=>{(!Gu||n==="sp")&&Pu(n,(...s)=>e(...s),t)},_k=Ur("bm"),cr=Ur("m"),mk=Ur("bu"),nc=Ur("u"),La=Ur("bum"),sR=Ur("um"),hk=Ur("sp"),gk=Ur("rtg"),bk=Ur("rtc");function yk(n,e=Sn){Pu("ec",n,e)}const rR="components";function nt(n,e){return oR(rR,n,!0,e)||n}const iR=Symbol.for("v-ndc");function Fu(n){return Xt(n)?oR(rR,n,!1)||n:n||iR}function oR(n,e,t=!0,s=!1){const r=bn||Sn;if(r){const i=r.type;{const a=Ug(i,!1);if(a&&(a===e||a===Cs(e)||a===Ru(Cs(e))))return i}const o=sE(r[n]||i[n],e)||sE(r.appContext[n],e);return!o&&s?i:o}}function sE(n,e){return n&&(n[e]||n[Cs(e)]||n[Ru(Cs(e))])}function Ke(n,e,t,s){let r;const i=t,o=it(n);if(o||Xt(n)){const a=o&&Jo(n);let c=!1;a&&(c=!Ss(n),n=Mu(n)),r=new Array(n.length);for(let d=0,u=n.length;de(a,c,void 0,i));else{const a=Object.keys(n);r=new Array(a.length);for(let c=0,d=a.length;cla(e)?!(e.type===In||e.type===Be&&!aR(e.children)):!0)?n:null}function Ek(n,e){const t={};for(const s in n)t[/[A-Z]/.test(s)?`on:${s}`:yd(s)]=n[s];return t}const kg=n=>n?wR(n)?Vu(n):kg(n.parent):null,vl=ln(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>kg(n.parent),$root:n=>kg(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>jb(n),$forceUpdate:n=>n.f||(n.f=()=>{Wb(n.update)}),$nextTick:n=>n.n||(n.n=Fe.bind(n.proxy)),$watch:n=>Vk.bind(n)}),Lp=(n,e)=>n!==$t&&!n.__isScriptSetup&&Dt(n,e),vk={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:c}=n;let d;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return s[e];case 2:return r[e];case 4:return t[e];case 3:return i[e]}else{if(Lp(s,e))return o[e]=1,s[e];if(r!==$t&&Dt(r,e))return o[e]=2,r[e];if((d=n.propsOptions[0])&&Dt(d,e))return o[e]=3,i[e];if(t!==$t&&Dt(t,e))return o[e]=4,t[e];Dg&&(o[e]=0)}}const u=vl[e];let _,m;if(u)return e==="$attrs"&&Dn(n.attrs,"get",""),u(n);if((_=a.__cssModules)&&(_=_[e]))return _;if(t!==$t&&Dt(t,e))return o[e]=4,t[e];if(m=c.config.globalProperties,Dt(m,e))return m[e]},set({_:n},e,t){const{data:s,setupState:r,ctx:i}=n;return Lp(r,e)?(r[e]=t,!0):s!==$t&&Dt(s,e)?(s[e]=t,!0):Dt(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(i[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!t[o]||n!==$t&&Dt(n,o)||Lp(e,o)||(a=i[0])&&Dt(a,o)||Dt(s,o)||Dt(vl,o)||Dt(r.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Dt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function rE(n){return it(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let Dg=!0;function Sk(n){const e=jb(n),t=n.proxy,s=n.ctx;Dg=!1,e.beforeCreate&&iE(e.beforeCreate,n,"bc");const{data:r,computed:i,methods:o,watch:a,provide:c,inject:d,created:u,beforeMount:_,mounted:m,beforeUpdate:h,updated:f,activated:y,deactivated:b,beforeDestroy:g,beforeUnmount:E,destroyed:v,unmounted:S,render:R,renderTracked:w,renderTriggered:A,errorCaptured:I,serverPrefetch:C,expose:M,inheritAttrs:G,components:V,directives:ee,filters:O}=e;if(d&&Tk(d,s,null),o)for(const L in o){const W=o[L];ft(W)&&(s[L]=W.bind(t))}if(r){const L=r.call(t,t);zt(L)&&(n.data=Hn(L))}if(Dg=!0,i)for(const L in i){const W=i[L],se=ft(W)?W.bind(t,t):ft(W.get)?W.get.bind(t,t):rr,oe=!ft(W)&&ft(W.set)?W.set.bind(t):rr,ye=Je({get:se,set:oe});Object.defineProperty(s,L,{enumerable:!0,configurable:!0,get:()=>ye.value,set:xe=>ye.value=xe})}if(a)for(const L in a)lR(a[L],s,t,L);if(c){const L=ft(c)?c.call(t):c;Reflect.ownKeys(L).forEach(W=>{na(W,L[W])})}u&&iE(u,n,"c");function q(L,W){it(W)?W.forEach(se=>L(se.bind(t))):W&&L(W.bind(t))}if(q(_k,_),q(cr,m),q(mk,h),q(nc,f),q(uk,y),q(pk,b),q(yk,I),q(bk,w),q(gk,A),q(La,E),q(sR,S),q(hk,C),it(M))if(M.length){const L=n.exposed||(n.exposed={});M.forEach(W=>{Object.defineProperty(L,W,{get:()=>t[W],set:se=>t[W]=se})})}else n.exposed||(n.exposed={});R&&n.render===rr&&(n.render=R),G!=null&&(n.inheritAttrs=G),V&&(n.components=V),ee&&(n.directives=ee),C&&tR(n)}function Tk(n,e,t=rr){it(n)&&(n=Lg(n));for(const s in n){const r=n[s];let i;zt(r)?"default"in r?i=is(r.from||s,r.default,!0):i=is(r.from||s):i=is(r),pn(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i}}function iE(n,e,t){zs(it(n)?n.map(s=>s.bind(e.proxy)):n.bind(e.proxy),e,t)}function lR(n,e,t,s){let r=s.includes(".")?vR(t,s):()=>t[s];if(Xt(n)){const i=e[n];ft(i)&&Tn(r,i)}else if(ft(n))Tn(r,n.bind(t));else if(zt(n))if(it(n))n.forEach(i=>lR(i,e,t,s));else{const i=ft(n.handler)?n.handler.bind(t):e[n.handler];ft(i)&&Tn(r,i,n)}}function jb(n){const e=n.type,{mixins:t,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=n.appContext,a=i.get(e);let c;return a?c=a:!r.length&&!t&&!s?c=e:(c={},r.length&&r.forEach(d=>zd(c,d,o,!0)),zd(c,e,o)),zt(e)&&i.set(e,c),c}function zd(n,e,t,s=!1){const{mixins:r,extends:i}=e;i&&zd(n,i,t,!0),r&&r.forEach(o=>zd(n,o,t,!0));for(const o in e)if(!(s&&o==="expose")){const a=xk[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const xk={data:oE,props:aE,emits:aE,methods:ml,computed:ml,beforeCreate:Pn,created:Pn,beforeMount:Pn,mounted:Pn,beforeUpdate:Pn,updated:Pn,beforeDestroy:Pn,beforeUnmount:Pn,destroyed:Pn,unmounted:Pn,activated:Pn,deactivated:Pn,errorCaptured:Pn,serverPrefetch:Pn,components:ml,directives:ml,watch:wk,provide:oE,inject:Ck};function oE(n,e){return e?n?function(){return ln(ft(n)?n.call(this,this):n,ft(e)?e.call(this,this):e)}:e:n}function Ck(n,e){return ml(Lg(n),Lg(e))}function Lg(n){if(it(n)){const e={};for(let t=0;t1)return t&&ft(e)?e.call(s&&s.proxy):e}}const dR={},uR=()=>Object.create(dR),pR=n=>Object.getPrototypeOf(n)===dR;function Mk(n,e,t,s=!1){const r={},i=uR();n.propsDefaults=Object.create(null),fR(n,e,r,i);for(const o in n.propsOptions[0])o in r||(r[o]=void 0);t?n.props=s?r:F2(r):n.type.props?n.props=r:n.props=i,n.attrs=i}function Nk(n,e,t,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=n,a=It(r),[c]=n.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=n.vnode.dynamicProps;for(let _=0;_{c=!0;const[m,h]=_R(_,e,!0);ln(o,m),h&&a.push(...h)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!i&&!c)return zt(n)&&s.set(n,Qo),Qo;if(it(i))for(let u=0;un[0]==="_"||n==="$stable",Qb=n=>it(n)?n.map(Xs):[Xs(n)],Ik=(n,e,t)=>{if(e._n)return e;const s=Ie((...r)=>Qb(e(...r)),t);return s._c=!1,s},hR=(n,e,t)=>{const s=n._ctx;for(const r in n){if(mR(r))continue;const i=n[r];if(ft(i))e[r]=Ik(r,i,s);else if(i!=null){const o=Qb(i);e[r]=()=>o}}},gR=(n,e)=>{const t=Qb(e);n.slots.default=()=>t},bR=(n,e,t)=>{for(const s in e)(t||s!=="_")&&(n[s]=e[s])},kk=(n,e,t)=>{const s=n.slots=uR();if(n.vnode.shapeFlag&32){const r=e._;r?(bR(s,e,t),t&&_2(s,"_",r,!0)):hR(e,s)}else e&&gR(n,e)},Dk=(n,e,t)=>{const{vnode:s,slots:r}=n;let i=!0,o=$t;if(s.shapeFlag&32){const a=e._;a?t&&a===1?i=!1:bR(r,e,t):(i=!e.$stable,hR(e,r)),o=e}else e&&(gR(n,e),o={default:1});if(i)for(const a in r)!mR(a)&&o[a]==null&&delete r[a]},hn=Kk;function Lk(n){return Pk(n)}function Pk(n,e){const t=m2();t.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:c,setText:d,setElementText:u,parentNode:_,nextSibling:m,setScopeId:h=rr,insertStaticContent:f}=n,y=(U,P,Z,de=null,pe=null,he=null,le=void 0,Me=null,Re=!!P.dynamicChildren)=>{if(U===P)return;U&&!ui(U,P)&&(de=Q(U),xe(U,pe,he,!0),U=null),P.patchFlag===-2&&(Re=!1,P.dynamicChildren=null);const{type:ge,ref:D,shapeFlag:N}=P;switch(ge){case Bu:b(U,P,Z,de);break;case In:g(U,P,Z,de);break;case vd:U==null&&E(P,Z,de,le);break;case Be:V(U,P,Z,de,pe,he,le,Me,Re);break;default:N&1?R(U,P,Z,de,pe,he,le,Me,Re):N&6?ee(U,P,Z,de,pe,he,le,Me,Re):(N&64||N&128)&&ge.process(U,P,Z,de,pe,he,le,Me,Re,Ae)}D!=null&&pe&&Ig(D,U&&U.ref,he,P||U,!P)},b=(U,P,Z,de)=>{if(U==null)s(P.el=a(P.children),Z,de);else{const pe=P.el=U.el;P.children!==U.children&&d(pe,P.children)}},g=(U,P,Z,de)=>{U==null?s(P.el=c(P.children||""),Z,de):P.el=U.el},E=(U,P,Z,de)=>{[U.el,U.anchor]=f(U.children,P,Z,de,U.el,U.anchor)},v=({el:U,anchor:P},Z,de)=>{let pe;for(;U&&U!==P;)pe=m(U),s(U,Z,de),U=pe;s(P,Z,de)},S=({el:U,anchor:P})=>{let Z;for(;U&&U!==P;)Z=m(U),r(U),U=Z;r(P)},R=(U,P,Z,de,pe,he,le,Me,Re)=>{P.type==="svg"?le="svg":P.type==="math"&&(le="mathml"),U==null?w(P,Z,de,pe,he,le,Me,Re):C(U,P,pe,he,le,Me,Re)},w=(U,P,Z,de,pe,he,le,Me)=>{let Re,ge;const{props:D,shapeFlag:N,transition:K,dirs:me}=U;if(Re=U.el=o(U.type,he,D&&D.is,D),N&8?u(Re,U.children):N&16&&I(U.children,Re,null,de,pe,Pp(U,he),le,Me),me&&Oi(U,null,de,"created"),A(Re,U,U.scopeId,le,de),D){for(const re in D)re!=="value"&&!yl(re)&&i(Re,re,null,D[re],he,de);"value"in D&&i(Re,"value",null,D.value,he),(ge=D.onVnodeBeforeMount)&&fs(ge,de,U)}me&&Oi(U,null,de,"beforeMount");const j=Fk(pe,K);j&&K.beforeEnter(Re),s(Re,P,Z),((ge=D&&D.onVnodeMounted)||j||me)&&hn(()=>{ge&&fs(ge,de,U),j&&K.enter(Re),me&&Oi(U,null,de,"mounted")},pe)},A=(U,P,Z,de,pe)=>{if(Z&&h(U,Z),de)for(let he=0;he{for(let ge=Re;ge{const Me=P.el=U.el;let{patchFlag:Re,dynamicChildren:ge,dirs:D}=P;Re|=U.patchFlag&16;const N=U.props||$t,K=P.props||$t;let me;if(Z&&Ii(Z,!1),(me=K.onVnodeBeforeUpdate)&&fs(me,Z,P,U),D&&Oi(P,U,Z,"beforeUpdate"),Z&&Ii(Z,!0),(N.innerHTML&&K.innerHTML==null||N.textContent&&K.textContent==null)&&u(Me,""),ge?M(U.dynamicChildren,ge,Me,Z,de,Pp(P,pe),he):le||W(U,P,Me,null,Z,de,Pp(P,pe),he,!1),Re>0){if(Re&16)G(Me,N,K,Z,pe);else if(Re&2&&N.class!==K.class&&i(Me,"class",null,K.class,pe),Re&4&&i(Me,"style",N.style,K.style,pe),Re&8){const j=P.dynamicProps;for(let re=0;re{me&&fs(me,Z,P,U),D&&Oi(P,U,Z,"updated")},de)},M=(U,P,Z,de,pe,he,le)=>{for(let Me=0;Me{if(P!==Z){if(P!==$t)for(const he in P)!yl(he)&&!(he in Z)&&i(U,he,P[he],null,pe,de);for(const he in Z){if(yl(he))continue;const le=Z[he],Me=P[he];le!==Me&&he!=="value"&&i(U,he,Me,le,pe,de)}"value"in Z&&i(U,"value",P.value,Z.value,pe)}},V=(U,P,Z,de,pe,he,le,Me,Re)=>{const ge=P.el=U?U.el:a(""),D=P.anchor=U?U.anchor:a("");let{patchFlag:N,dynamicChildren:K,slotScopeIds:me}=P;me&&(Me=Me?Me.concat(me):me),U==null?(s(ge,Z,de),s(D,Z,de),I(P.children||[],Z,D,pe,he,le,Me,Re)):N>0&&N&64&&K&&U.dynamicChildren?(M(U.dynamicChildren,K,Z,pe,he,le,Me),(P.key!=null||pe&&P===pe.subTree)&&Xb(U,P,!0)):W(U,P,Z,D,pe,he,le,Me,Re)},ee=(U,P,Z,de,pe,he,le,Me,Re)=>{P.slotScopeIds=Me,U==null?P.shapeFlag&512?pe.ctx.activate(P,Z,de,le,Re):O(P,Z,de,pe,he,le,Re):H(U,P,Re)},O=(U,P,Z,de,pe,he,le)=>{const Me=U.component=eD(U,de,pe);if(Lu(U)&&(Me.ctx.renderer=Ae),tD(Me,!1,le),Me.asyncDep){if(pe&&pe.registerDep(Me,q,le),!U.el){const Re=Me.subTree=z(In);g(null,Re,P,Z)}}else q(Me,U,P,Z,pe,he,le)},H=(U,P,Z)=>{const de=P.component=U.component;if($k(U,P,Z))if(de.asyncDep&&!de.asyncResolved){L(de,P,Z);return}else de.next=P,de.update();else P.el=U.el,de.vnode=P},q=(U,P,Z,de,pe,he,le)=>{const Me=()=>{if(U.isMounted){let{next:N,bu:K,u:me,parent:j,vnode:re}=U;{const lt=yR(U);if(lt){N&&(N.el=re.el,L(U,N,le)),lt.asyncDep.then(()=>{U.isUnmounted||Me()});return}}let Ce=N,we;Ii(U,!1),N?(N.el=re.el,L(U,N,le)):N=re,K&&Zo(K),(we=N.props&&N.props.onVnodeBeforeUpdate)&&fs(we,j,N,re),Ii(U,!0);const ke=Fp(U),We=U.subTree;U.subTree=ke,y(We,ke,_(We.el),Q(We),U,pe,he),N.el=ke.el,Ce===null&&Wk(U,ke.el),me&&hn(me,pe),(we=N.props&&N.props.onVnodeUpdated)&&hn(()=>fs(we,j,N,re),pe)}else{let N;const{el:K,props:me}=P,{bm:j,m:re,parent:Ce,root:we,type:ke}=U,We=Zi(P);if(Ii(U,!1),j&&Zo(j),!We&&(N=me&&me.onVnodeBeforeMount)&&fs(N,Ce,P),Ii(U,!0),K&&te){const lt=()=>{U.subTree=Fp(U),te(K,U.subTree,U,pe,null)};We&&ke.__asyncHydrate?ke.__asyncHydrate(K,U,lt):lt()}else{we.ce&&we.ce._injectChildStyle(ke);const lt=U.subTree=Fp(U);y(null,lt,Z,de,U,pe,he),P.el=lt.el}if(re&&hn(re,pe),!We&&(N=me&&me.onVnodeMounted)){const lt=P;hn(()=>fs(N,Ce,lt),pe)}(P.shapeFlag&256||Ce&&Zi(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&U.a&&hn(U.a,pe),U.isMounted=!0,P=Z=de=null}};U.scope.on();const Re=U.effect=new v2(Me);U.scope.off();const ge=U.update=Re.run.bind(Re),D=U.job=Re.runIfDirty.bind(Re);D.i=U,D.id=U.uid,Re.scheduler=()=>Wb(D),Ii(U,!0),ge()},L=(U,P,Z)=>{P.component=U;const de=U.vnode.props;U.vnode=P,U.next=null,Nk(U,P.props,de,Z),Dk(U,P.children,Z),Ci(),Jy(U),wi()},W=(U,P,Z,de,pe,he,le,Me,Re=!1)=>{const ge=U&&U.children,D=U?U.shapeFlag:0,N=P.children,{patchFlag:K,shapeFlag:me}=P;if(K>0){if(K&128){oe(ge,N,Z,de,pe,he,le,Me,Re);return}else if(K&256){se(ge,N,Z,de,pe,he,le,Me,Re);return}}me&8?(D&16&&De(ge,pe,he),N!==ge&&u(Z,N)):D&16?me&16?oe(ge,N,Z,de,pe,he,le,Me,Re):De(ge,pe,he,!0):(D&8&&u(Z,""),me&16&&I(N,Z,de,pe,he,le,Me,Re))},se=(U,P,Z,de,pe,he,le,Me,Re)=>{U=U||Qo,P=P||Qo;const ge=U.length,D=P.length,N=Math.min(ge,D);let K;for(K=0;KD?De(U,pe,he,!0,!1,N):I(P,Z,de,pe,he,le,Me,Re,N)},oe=(U,P,Z,de,pe,he,le,Me,Re)=>{let ge=0;const D=P.length;let N=U.length-1,K=D-1;for(;ge<=N&&ge<=K;){const me=U[ge],j=P[ge]=Re?si(P[ge]):Xs(P[ge]);if(ui(me,j))y(me,j,Z,null,pe,he,le,Me,Re);else break;ge++}for(;ge<=N&&ge<=K;){const me=U[N],j=P[K]=Re?si(P[K]):Xs(P[K]);if(ui(me,j))y(me,j,Z,null,pe,he,le,Me,Re);else break;N--,K--}if(ge>N){if(ge<=K){const me=K+1,j=meK)for(;ge<=N;)xe(U[ge],pe,he,!0),ge++;else{const me=ge,j=ge,re=new Map;for(ge=j;ge<=K;ge++){const et=P[ge]=Re?si(P[ge]):Xs(P[ge]);et.key!=null&&re.set(et.key,ge)}let Ce,we=0;const ke=K-j+1;let We=!1,lt=0;const Pe=new Array(ke);for(ge=0;ge=ke){xe(et,pe,he,!0);continue}let tt;if(et.key!=null)tt=re.get(et.key);else for(Ce=j;Ce<=K;Ce++)if(Pe[Ce-j]===0&&ui(et,P[Ce])){tt=Ce;break}tt===void 0?xe(et,pe,he,!0):(Pe[tt-j]=ge+1,tt>=lt?lt=tt:We=!0,y(et,P[tt],Z,null,pe,he,le,Me,Re),we++)}const Mt=We?Uk(Pe):Qo;for(Ce=Mt.length-1,ge=ke-1;ge>=0;ge--){const et=j+ge,tt=P[et],ze=et+1{const{el:he,type:le,transition:Me,children:Re,shapeFlag:ge}=U;if(ge&6){ye(U.component.subTree,P,Z,de);return}if(ge&128){U.suspense.move(P,Z,de);return}if(ge&64){le.move(U,P,Z,Ae);return}if(le===Be){s(he,P,Z);for(let N=0;NMe.enter(he),pe);else{const{leave:N,delayLeave:K,afterLeave:me}=Me,j=()=>s(he,P,Z),re=()=>{N(he,()=>{j(),me&&me()})};K?K(he,j,re):re()}else s(he,P,Z)},xe=(U,P,Z,de=!1,pe=!1)=>{const{type:he,props:le,ref:Me,children:Re,dynamicChildren:ge,shapeFlag:D,patchFlag:N,dirs:K,cacheIndex:me}=U;if(N===-2&&(pe=!1),Me!=null&&Ig(Me,null,Z,U,!0),me!=null&&(P.renderCache[me]=void 0),D&256){P.ctx.deactivate(U);return}const j=D&1&&K,re=!Zi(U);let Ce;if(re&&(Ce=le&&le.onVnodeBeforeUnmount)&&fs(Ce,P,U),D&6)Oe(U.component,Z,de);else{if(D&128){U.suspense.unmount(Z,de);return}j&&Oi(U,null,P,"beforeUnmount"),D&64?U.type.remove(U,P,Z,Ae,de):ge&&!ge.hasOnce&&(he!==Be||N>0&&N&64)?De(ge,P,Z,!1,!0):(he===Be&&N&384||!pe&&D&16)&&De(Re,P,Z),de&&ce(U)}(re&&(Ce=le&&le.onVnodeUnmounted)||j)&&hn(()=>{Ce&&fs(Ce,P,U),j&&Oi(U,null,P,"unmounted")},Z)},ce=U=>{const{type:P,el:Z,anchor:de,transition:pe}=U;if(P===Be){ve(Z,de);return}if(P===vd){S(U);return}const he=()=>{r(Z),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(U.shapeFlag&1&&pe&&!pe.persisted){const{leave:le,delayLeave:Me}=pe,Re=()=>le(Z,he);Me?Me(U.el,he,Re):Re()}else he()},ve=(U,P)=>{let Z;for(;U!==P;)Z=m(U),r(U),U=Z;r(P)},Oe=(U,P,Z)=>{const{bum:de,scope:pe,job:he,subTree:le,um:Me,m:Re,a:ge}=U;Hd(Re),Hd(ge),de&&Zo(de),pe.stop(),he&&(he.flags|=8,xe(le,U,P,Z)),Me&&hn(Me,P),hn(()=>{U.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},De=(U,P,Z,de=!1,pe=!1,he=0)=>{for(let le=he;le{if(U.shapeFlag&6)return Q(U.component.subTree);if(U.shapeFlag&128)return U.suspense.next();const P=m(U.anchor||U.el),Z=P&&P[W2];return Z?m(Z):P};let fe=!1;const _e=(U,P,Z)=>{U==null?P._vnode&&xe(P._vnode,null,null,!0):y(P._vnode||null,U,P,null,null,null,Z),P._vnode=U,fe||(fe=!0,Jy(),q2(),fe=!1)},Ae={p:y,um:xe,m:ye,r:ce,mt:O,mc:I,pc:W,pbc:M,n:Q,o:n};let Ue,te;return{render:_e,hydrate:Ue,createApp:Ak(_e,Ue)}}function Pp({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function Ii({effect:n,job:e},t){t?(n.flags|=32,e.flags|=4):(n.flags&=-33,e.flags&=-5)}function Fk(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function Xb(n,e,t=!1){const s=n.children,r=e.children;if(it(s)&&it(r))for(let i=0;i>1,n[t[a]]0&&(e[s]=t[i-1]),t[i]=s)}}for(i=t.length,o=t[i-1];i-- >0;)t[i]=o,o=e[o];return t}function yR(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:yR(e)}function Hd(n){if(n)for(let e=0;eis(Bk);function Tn(n,e,t){return ER(n,e,t)}function ER(n,e,t=$t){const{immediate:s,deep:r,flush:i,once:o}=t,a=ln({},t);let c;if(Gu)if(i==="sync"){const m=Gk();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!e||s)a.once=!0;else{const m=()=>{};return m.stop=rr,m.resume=rr,m.pause=rr,m}const d=Sn;a.call=(m,h,f)=>zs(m,d,h,f);let u=!1;i==="post"?a.scheduler=m=>{hn(m,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(m,h)=>{h?m():Wb(m)}),a.augmentJob=m=>{e&&(m.flags|=4),u&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const _=JI(n,e,a);return c&&c.push(_),_}function Vk(n,e,t){const s=this.proxy,r=Xt(n)?n.includes(".")?vR(s,n):()=>s[n]:n.bind(s,s);let i;ft(e)?i=e:(i=e.handler,t=e);const o=sc(this),a=ER(r,i.bind(s),t);return o(),a}function vR(n,e){const t=e.split(".");return()=>{let s=n;for(let r=0;re==="modelValue"||e==="model-value"?n.modelModifiers:n[`${e}Modifiers`]||n[`${Cs(e)}Modifiers`]||n[`${xi(e)}Modifiers`];function Hk(n,e,...t){if(n.isUnmounted)return;const s=n.vnode.props||$t;let r=t;const i=e.startsWith("update:"),o=i&&zk(s,e.slice(7));o&&(o.trim&&(r=t.map(u=>Xt(u)?u.trim():u)),o.number&&(r=t.map(Fd)));let a,c=s[a=yd(e)]||s[a=yd(Cs(e))];!c&&i&&(c=s[a=yd(xi(e))]),c&&zs(c,n,6,r);const d=s[a+"Once"];if(d){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,zs(d,n,6,r)}}function SR(n,e,t=!1){const s=e.emitsCache,r=s.get(n);if(r!==void 0)return r;const i=n.emits;let o={},a=!1;if(!ft(n)){const c=d=>{const u=SR(d,e,!0);u&&(a=!0,ln(o,u))};!t&&e.mixins.length&&e.mixins.forEach(c),n.extends&&c(n.extends),n.mixins&&n.mixins.forEach(c)}return!i&&!a?(zt(n)&&s.set(n,null),null):(it(i)?i.forEach(c=>o[c]=null):ln(o,i),zt(n)&&s.set(n,o),o)}function Uu(n,e){return!n||!Cu(e)?!1:(e=e.slice(2).replace(/Once$/,""),Dt(n,e[0].toLowerCase()+e.slice(1))||Dt(n,xi(e))||Dt(n,e))}function Fp(n){const{type:e,vnode:t,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:a,emit:c,render:d,renderCache:u,props:_,data:m,setupState:h,ctx:f,inheritAttrs:y}=n,b=Vd(n);let g,E;try{if(t.shapeFlag&4){const S=r||s,R=S;g=Xs(d.call(R,S,u,_,h,m,f)),E=a}else{const S=e;g=Xs(S.length>1?S(_,{attrs:a,slots:o,emit:c}):S(_,null)),E=e.props?a:qk(a)}}catch(S){Sl.length=0,Du(S,n,1),g=z(In)}let v=g;if(E&&y!==!1){const S=Object.keys(E),{shapeFlag:R}=v;S.length&&R&7&&(i&&S.some(Pb)&&(E=Yk(E,i)),v=Lr(v,E,!1,!0))}return t.dirs&&(v=Lr(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(t.dirs):t.dirs),t.transition&&Si(v,t.transition),g=v,Vd(b),g}const qk=n=>{let e;for(const t in n)(t==="class"||t==="style"||Cu(t))&&((e||(e={}))[t]=n[t]);return e},Yk=(n,e)=>{const t={};for(const s in n)(!Pb(s)||!(s.slice(9)in e))&&(t[s]=n[s]);return t};function $k(n,e,t){const{props:s,children:r,component:i}=n,{props:o,children:a,patchFlag:c}=e,d=i.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&c>=0){if(c&1024)return!0;if(c&16)return s?cE(s,o,d):!!o;if(c&8){const u=e.dynamicProps;for(let _=0;_n.__isSuspense;function Kk(n,e){e&&e.pendingBranch?it(n)?e.effects.push(...n):e.effects.push(n):nk(n)}const Be=Symbol.for("v-fgt"),Bu=Symbol.for("v-txt"),In=Symbol.for("v-cmt"),vd=Symbol.for("v-stc"),Sl=[];let rs=null;function T(n=!1){Sl.push(rs=n?null:[])}function jk(){Sl.pop(),rs=Sl[Sl.length-1]||null}let Vl=1;function dE(n){Vl+=n,n<0&&rs&&(rs.hasOnce=!0)}function TR(n){return n.dynamicChildren=Vl>0?rs||Qo:null,jk(),Vl>0&&rs&&rs.push(n),n}function x(n,e,t,s,r,i){return TR(l(n,e,t,s,r,i,!0))}function at(n,e,t,s,r){return TR(z(n,e,t,s,r,!0))}function la(n){return n?n.__v_isVNode===!0:!1}function ui(n,e){return n.type===e.type&&n.key===e.key}const xR=({key:n})=>n??null,Sd=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?Xt(n)||pn(n)||ft(n)?{i:bn,r:n,k:e,f:!!t}:n:null);function l(n,e=null,t=null,s=0,r=null,i=n===Be?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&xR(e),ref:e&&Sd(e),scopeId:$2,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:bn};return a?(Zb(c,t),i&128&&n.normalize(c)):t&&(c.shapeFlag|=Xt(t)?8:16),Vl>0&&!o&&rs&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&rs.push(c),c}const z=Qk;function Qk(n,e=null,t=null,s=0,r=null,i=!1){if((!n||n===iR)&&(n=In),la(n)){const a=Lr(n,e,!0);return t&&Zb(a,t),Vl>0&&!i&&rs&&(a.shapeFlag&6?rs[rs.indexOf(n)]=a:rs.push(a)),a.patchFlag=-2,a}if(iD(n)&&(n=n.__vccOpts),e){e=Xk(e);let{class:a,style:c}=e;a&&!Xt(a)&&(e.class=Le(a)),zt(c)&&(qb(c)&&!it(c)&&(c=ln({},c)),e.style=Bt(c))}const o=Xt(n)?1:qd(n)?128:K2(n)?64:zt(n)?4:ft(n)?2:0;return l(n,e,t,s,r,o,i,!0)}function Xk(n){return n?qb(n)||pR(n)?ln({},n):n:null}function Lr(n,e,t=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:c}=n,d=e?CR(r||{},e):r,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:d,key:d&&xR(d),ref:e&&e.ref?t&&i?it(i)?i.concat(Sd(e)):[i,Sd(e)]:Sd(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Be?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:c,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Lr(n.ssContent),ssFallback:n.ssFallback&&Lr(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return c&&s&&Si(u,c.clone(u)),u}function Ze(n=" ",e=0){return z(Bu,null,n,e)}function mi(n,e){const t=z(vd,null,n);return t.staticCount=e,t}function B(n="",e=!1){return e?(T(),at(In,null,n)):z(In,null,n)}function Xs(n){return n==null||typeof n=="boolean"?z(In):it(n)?z(Be,null,n.slice()):la(n)?si(n):z(Bu,null,String(n))}function si(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Lr(n)}function Zb(n,e){let t=0;const{shapeFlag:s}=n;if(e==null)e=null;else if(it(e))t=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),Zb(n,r()),r._c&&(r._d=!0));return}else{t=32;const r=e._;!r&&!pR(e)?e._ctx=bn:r===3&&bn&&(bn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else ft(e)?(e={default:e,_ctx:bn},t=32):(e=String(e),s&64?(t=16,e=[Ze(e)]):t=8);n.children=e,n.shapeFlag|=t}function CR(...n){const e={};for(let t=0;tSn||bn;let Yd,Fg;{const n=m2(),e=(t,s)=>{let r;return(r=n[t])||(r=n[t]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Yd=e("__VUE_INSTANCE_SETTERS__",t=>Sn=t),Fg=e("__VUE_SSR_SETTERS__",t=>Gu=t)}const sc=n=>{const e=Sn;return Yd(n),n.scope.on(),()=>{n.scope.off(),Yd(e)}},uE=()=>{Sn&&Sn.scope.off(),Yd(null)};function wR(n){return n.vnode.shapeFlag&4}let Gu=!1;function tD(n,e=!1,t=!1){e&&Fg(e);const{props:s,children:r}=n.vnode,i=wR(n);Mk(n,s,i,e),kk(n,r,t);const o=i?nD(n,e):void 0;return e&&Fg(!1),o}function nD(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,vk);const{setup:s}=t;if(s){const r=n.setupContext=s.length>1?rD(n):null,i=sc(n);Ci();const o=tc(s,n,0,[n.props,r]);if(wi(),i(),u2(o)){if(Zi(n)||tR(n),o.then(uE,uE),e)return o.then(a=>{pE(n,a,e)}).catch(a=>{Du(a,n,0)});n.asyncDep=o}else pE(n,o,e)}else RR(n,e)}function pE(n,e,t){ft(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:zt(e)&&(n.setupState=G2(e)),RR(n,t)}let fE;function RR(n,e,t){const s=n.type;if(!n.render){if(!e&&fE&&!s.render){const r=s.template||jb(n).template;if(r){const{isCustomElement:i,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:c}=s,d=ln(ln({isCustomElement:i,delimiters:a},o),c);s.render=fE(r,d)}}n.render=s.render||rr}{const r=sc(n);Ci();try{Sk(n)}finally{wi(),r()}}}const sD={get(n,e){return Dn(n,"get",""),n[e]}};function rD(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,sD),slots:n.slots,emit:n.emit,expose:e}}function Vu(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(G2(ku(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in vl)return vl[t](n)},has(e,t){return t in e||t in vl}})):n.proxy}function Ug(n,e=!0){return ft(n)?n.displayName||n.name:n.name||e&&n.__name}function iD(n){return ft(n)&&"__vccOpts"in n}const Je=(n,e)=>XI(n,e,Gu);function e0(n,e,t){const s=arguments.length;return s===2?zt(e)&&!it(e)?la(e)?z(n,null,[e]):z(n,e):z(n,null,e):(s>3?t=Array.prototype.slice.call(arguments,2):s===3&&la(t)&&(t=[t]),z(n,e,t))}const oD="3.5.10";/** -* @vue/runtime-dom v3.5.10 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Bg;const _E=typeof window<"u"&&window.trustedTypes;if(_E)try{Bg=_E.createPolicy("vue",{createHTML:n=>n})}catch{}const AR=Bg?n=>Bg.createHTML(n):n=>n,aD="http://www.w3.org/2000/svg",lD="http://www.w3.org/1998/Math/MathML",Cr=typeof document<"u"?document:null,mE=Cr&&Cr.createElement("template"),cD={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,s)=>{const r=e==="svg"?Cr.createElementNS(aD,n):e==="mathml"?Cr.createElementNS(lD,n):t?Cr.createElement(n,{is:t}):Cr.createElement(n);return n==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:n=>Cr.createTextNode(n),createComment:n=>Cr.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Cr.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,s,r,i){const o=t?t.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),t),!(r===i||!(r=r.nextSibling)););else{mE.innerHTML=AR(s==="svg"?`${n}`:s==="mathml"?`${n}`:n);const a=mE.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Yr="transition",Za="animation",ca=Symbol("_vtc"),MR={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},NR=ln({},X2,MR),dD=n=>(n.displayName="Transition",n.props=NR,n),Or=dD((n,{slots:e})=>e0(lk,OR(n),e)),ki=(n,e=[])=>{it(n)?n.forEach(t=>t(...e)):n&&n(...e)},hE=n=>n?it(n)?n.some(e=>e.length>1):n.length>1:!1;function OR(n){const e={};for(const V in n)V in MR||(e[V]=n[V]);if(n.css===!1)return e;const{name:t="v",type:s,duration:r,enterFromClass:i=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=i,appearActiveClass:d=o,appearToClass:u=a,leaveFromClass:_=`${t}-leave-from`,leaveActiveClass:m=`${t}-leave-active`,leaveToClass:h=`${t}-leave-to`}=n,f=uD(r),y=f&&f[0],b=f&&f[1],{onBeforeEnter:g,onEnter:E,onEnterCancelled:v,onLeave:S,onLeaveCancelled:R,onBeforeAppear:w=g,onAppear:A=E,onAppearCancelled:I=v}=e,C=(V,ee,O)=>{ei(V,ee?u:a),ei(V,ee?d:o),O&&O()},M=(V,ee)=>{V._isLeaving=!1,ei(V,_),ei(V,h),ei(V,m),ee&&ee()},G=V=>(ee,O)=>{const H=V?A:E,q=()=>C(ee,V,O);ki(H,[ee,q]),gE(()=>{ei(ee,V?c:i),Tr(ee,V?u:a),hE(H)||bE(ee,s,y,q)})};return ln(e,{onBeforeEnter(V){ki(g,[V]),Tr(V,i),Tr(V,o)},onBeforeAppear(V){ki(w,[V]),Tr(V,c),Tr(V,d)},onEnter:G(!1),onAppear:G(!0),onLeave(V,ee){V._isLeaving=!0;const O=()=>M(V,ee);Tr(V,_),Tr(V,m),kR(),gE(()=>{V._isLeaving&&(ei(V,_),Tr(V,h),hE(S)||bE(V,s,b,O))}),ki(S,[V,O])},onEnterCancelled(V){C(V,!1),ki(v,[V])},onAppearCancelled(V){C(V,!0),ki(I,[V])},onLeaveCancelled(V){M(V),ki(R,[V])}})}function uD(n){if(n==null)return null;if(zt(n))return[Up(n.enter),Up(n.leave)];{const e=Up(n);return[e,e]}}function Up(n){return cI(n)}function Tr(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[ca]||(n[ca]=new Set)).add(e)}function ei(n,e){e.split(/\s+/).forEach(s=>s&&n.classList.remove(s));const t=n[ca];t&&(t.delete(e),t.size||(n[ca]=void 0))}function gE(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let pD=0;function bE(n,e,t,s){const r=n._endId=++pD,i=()=>{r===n._endId&&s()};if(t!=null)return setTimeout(i,t);const{type:o,timeout:a,propCount:c}=IR(n,e);if(!o)return s();const d=o+"end";let u=0;const _=()=>{n.removeEventListener(d,m),i()},m=h=>{h.target===n&&++u>=c&&_()};setTimeout(()=>{u(t[f]||"").split(", "),r=s(`${Yr}Delay`),i=s(`${Yr}Duration`),o=yE(r,i),a=s(`${Za}Delay`),c=s(`${Za}Duration`),d=yE(a,c);let u=null,_=0,m=0;e===Yr?o>0&&(u=Yr,_=o,m=i.length):e===Za?d>0&&(u=Za,_=d,m=c.length):(_=Math.max(o,d),u=_>0?o>d?Yr:Za:null,m=u?u===Yr?i.length:c.length:0);const h=u===Yr&&/\b(transform|all)(,|$)/.test(s(`${Yr}Property`).toString());return{type:u,timeout:_,propCount:m,hasTransform:h}}function yE(n,e){for(;n.lengthEE(t)+EE(n[s])))}function EE(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function kR(){return document.body.offsetHeight}function fD(n,e,t){const s=n[ca];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const $d=Symbol("_vod"),DR=Symbol("_vsh"),ht={beforeMount(n,{value:e},{transition:t}){n[$d]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):Ja(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:s}){!e!=!t&&(s?e?(s.beforeEnter(n),Ja(n,!0),s.enter(n)):s.leave(n,()=>{Ja(n,!1)}):Ja(n,e))},beforeUnmount(n,{value:e}){Ja(n,e)}};function Ja(n,e){n.style.display=e?n[$d]:"none",n[DR]=!e}const _D=Symbol(""),mD=/(^|;)\s*display\s*:/;function hD(n,e,t){const s=n.style,r=Xt(t);let i=!1;if(t&&!r){if(e)if(Xt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&Td(s,a,"")}else for(const o in e)t[o]==null&&Td(s,o,"");for(const o in t)o==="display"&&(i=!0),Td(s,o,t[o])}else if(r){if(e!==t){const o=s[_D];o&&(t+=";"+o),s.cssText=t,i=mD.test(t)}}else e&&n.removeAttribute("style");$d in n&&(n[$d]=i?s.display:"",n[DR]&&(s.display="none"))}const vE=/\s*!important$/;function Td(n,e,t){if(it(t))t.forEach(s=>Td(n,e,s));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const s=gD(n,e);vE.test(t)?n.setProperty(xi(s),t.replace(vE,""),"important"):n[s]=t}}const SE=["Webkit","Moz","ms"],Bp={};function gD(n,e){const t=Bp[e];if(t)return t;let s=Cs(e);if(s!=="filter"&&s in n)return Bp[e]=s;s=Ru(s);for(let r=0;rGp||(vD.then(()=>Gp=0),Gp=Date.now());function TD(n,e){const t=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=t.attached)return;zs(xD(s,t.value),e,5,[s])};return t.value=n,t.attached=SD(),t}function xD(n,e){if(it(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const AE=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,CD=(n,e,t,s,r,i)=>{const o=r==="svg";e==="class"?fD(n,s,o):e==="style"?hD(n,t,s):Cu(e)?Pb(e)||yD(n,e,t,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):wD(n,e,s,o))?(CE(n,e,s),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&xE(n,e,s,o,i,e!=="value")):n._isVueCE&&(/[A-Z]/.test(e)||!Xt(s))?CE(n,Cs(e),s):(e==="true-value"?n._trueValue=s:e==="false-value"&&(n._falseValue=s),xE(n,e,s,o))};function wD(n,e,t,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in n&&AE(e)&&ft(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=n.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return AE(e)&&Xt(t)?!1:e in n}const LR=new WeakMap,PR=new WeakMap,Wd=Symbol("_moveCb"),ME=Symbol("_enterCb"),RD=n=>(delete n.props.mode,n),AD=RD({name:"TransitionGroup",props:ln({},NR,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=Jb(),s=Q2();let r,i;return nc(()=>{if(!r.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!ID(r[0].el,t.vnode.el,o))return;r.forEach(MD),r.forEach(ND);const a=r.filter(OD);kR(),a.forEach(c=>{const d=c.el,u=d.style;Tr(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const _=d[Wd]=m=>{m&&m.target!==d||(!m||/transform$/.test(m.propertyName))&&(d.removeEventListener("transitionend",_),d[Wd]=null,ei(d,o))};d.addEventListener("transitionend",_)})}),()=>{const o=It(n),a=OR(o);let c=o.tag||Be;if(r=[],i)for(let d=0;d{a.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),t.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:o}=IR(s);return i.removeChild(s),o}const Ti=n=>{const e=n.props["onUpdate:modelValue"]||!1;return it(e)?t=>Zo(e,t):e};function kD(n){n.target.composing=!0}function NE(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign"),ae={created(n,{modifiers:{lazy:e,trim:t,number:s}},r){n[Ts]=Ti(r);const i=s||r.props&&r.props.type==="number";Rr(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),i&&(a=Fd(a)),n[Ts](a)}),t&&Rr(n,"change",()=>{n.value=n.value.trim()}),e||(Rr(n,"compositionstart",kD),Rr(n,"compositionend",NE),Rr(n,"change",NE))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:s,trim:r,number:i}},o){if(n[Ts]=Ti(o),n.composing)return;const a=(i||n.type==="number")&&!/^0\d/.test(n.value)?Fd(n.value):n.value,c=e??"";a!==c&&(document.activeElement===n&&n.type!=="range"&&(s&&e===t||r&&n.value.trim()===c)||(n.value=c))}},He={deep:!0,created(n,e,t){n[Ts]=Ti(t),Rr(n,"change",()=>{const s=n._modelValue,r=da(n),i=n.checked,o=n[Ts];if(it(s)){const a=Bb(s,r),c=a!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const d=[...s];d.splice(a,1),o(d)}}else if(ka(s)){const a=new Set(s);i?a.add(r):a.delete(r),o(a)}else o(FR(n,i))})},mounted:OE,beforeUpdate(n,e,t){n[Ts]=Ti(t),OE(n,e,t)}};function OE(n,{value:e},t){n._modelValue=e;let s;it(e)?s=Bb(e,t.props.value)>-1:ka(e)?s=e.has(t.props.value):s=oo(e,FR(n,!0)),n.checked!==s&&(n.checked=s)}const DD={created(n,{value:e},t){n.checked=oo(e,t.props.value),n[Ts]=Ti(t),Rr(n,"change",()=>{n[Ts](da(n))})},beforeUpdate(n,{value:e,oldValue:t},s){n[Ts]=Ti(s),e!==t&&(n.checked=oo(e,s.props.value))}},Ot={deep:!0,created(n,{value:e,modifiers:{number:t}},s){const r=ka(e);Rr(n,"change",()=>{const i=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?Fd(da(o)):da(o));n[Ts](n.multiple?r?new Set(i):i:i[0]),n._assigning=!0,Fe(()=>{n._assigning=!1})}),n[Ts]=Ti(s)},mounted(n,{value:e}){IE(n,e)},beforeUpdate(n,e,t){n[Ts]=Ti(t)},updated(n,{value:e}){n._assigning||IE(n,e)}};function IE(n,e){const t=n.multiple,s=it(e);if(!(t&&!s&&!ka(e))){for(let r=0,i=n.options.length;rString(d)===String(a)):o.selected=Bb(e,a)>-1}else o.selected=e.has(a);else if(oo(da(o),e)){n.selectedIndex!==r&&(n.selectedIndex=r);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function da(n){return"_value"in n?n._value:n.value}function FR(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const LD=["ctrl","shift","alt","meta"],PD={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>LD.some(t=>n[`${t}Key`]&&!e.includes(t))},$=(n,e)=>{const t=n._withMods||(n._withMods={}),s=e.join(".");return t[s]||(t[s]=(r,...i)=>{for(let o=0;o{const t=n._withKeys||(n._withKeys={}),s=e.join(".");return t[s]||(t[s]=r=>{if(!("key"in r))return;const i=xi(r.key);if(e.some(o=>o===i||FD[o]===i))return n(r)})},UD=ln({patchProp:CD},cD);let kE;function BD(){return kE||(kE=Lk(UD))}const GD=(...n)=>{const e=BD().createApp(...n),{mount:t}=e;return e.mount=s=>{const r=zD(s);if(!r)return;const i=e._component;!ft(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=t(r,!1,VD(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e};function VD(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function zD(n){return Xt(n)?document.querySelector(n):n}function HD(){return UR().__VUE_DEVTOOLS_GLOBAL_HOOK__}function UR(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const qD=typeof Proxy=="function",YD="devtools-plugin:setup",$D="plugin:settings:set";let To,Gg;function WD(){var n;return To!==void 0||(typeof window<"u"&&window.performance?(To=!0,Gg=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(To=!0,Gg=globalThis.perf_hooks.performance):To=!1),To}function KD(){return WD()?Gg.now():Date.now()}class jD{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const s={};if(e.settings)for(const o in e.settings){const a=e.settings[o];s[o]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},s);try{const o=localStorage.getItem(r),a=JSON.parse(o);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(r,JSON.stringify(o))}catch{}i=o},now(){return KD()}},t&&t.on($D,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...c)=>{this.onQueue.push({method:a,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...c)=>(this.targetQueue.push({method:a,args:c,resolve:()=>{}}),this.fallbacks[a](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:a,args:c,resolve:d})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function QD(n,e){const t=n,s=UR(),r=HD(),i=qD&&t.enableEarlyProxy;if(r&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))r.emit(YD,n,e);else{const o=i?new jD(t,r):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! - * vuex v4.1.0 - * (c) 2022 Evan You - * @license MIT - */var BR="store";function XD(n){return n===void 0&&(n=null),is(n!==null?n:BR)}function Pa(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function GR(n){return n!==null&&typeof n=="object"}function ZD(n){return n&&typeof n.then=="function"}function JD(n,e){return function(){return n(e)}}function VR(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var s=e.indexOf(n);s>-1&&e.splice(s,1)}}function zR(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;zu(n,t,[],n._modules.root,!0),t0(n,t,e)}function t0(n,e,t){var s=n._state,r=n._scope;n.getters={},n._makeLocalGettersCache=Object.create(null);var i=n._wrappedGetters,o={},a={},c=gI(!0);c.run(function(){Pa(i,function(d,u){o[u]=JD(d,n),a[u]=Je(function(){return o[u]()}),Object.defineProperty(n.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),n._state=Hn({data:e}),n._scope=c,n.strict&&rL(n),s&&t&&n._withCommit(function(){s.data=null}),r&&r.stop()}function zu(n,e,t,s,r){var i=!t.length,o=n._modules.getNamespace(t);if(s.namespaced&&(n._modulesNamespaceMap[o],n._modulesNamespaceMap[o]=s),!i&&!r){var a=n0(e,t.slice(0,-1)),c=t[t.length-1];n._withCommit(function(){a[c]=s.state})}var d=s.context=eL(n,o,t);s.forEachMutation(function(u,_){var m=o+_;tL(n,m,u,d)}),s.forEachAction(function(u,_){var m=u.root?_:o+_,h=u.handler||u;nL(n,m,h,d)}),s.forEachGetter(function(u,_){var m=o+_;sL(n,m,u,d)}),s.forEachChild(function(u,_){zu(n,e,t.concat(_),u,r)})}function eL(n,e,t){var s=e==="",r={dispatch:s?n.dispatch:function(i,o,a){var c=Kd(i,o,a),d=c.payload,u=c.options,_=c.type;return(!u||!u.root)&&(_=e+_),n.dispatch(_,d)},commit:s?n.commit:function(i,o,a){var c=Kd(i,o,a),d=c.payload,u=c.options,_=c.type;(!u||!u.root)&&(_=e+_),n.commit(_,d,u)}};return Object.defineProperties(r,{getters:{get:s?function(){return n.getters}:function(){return HR(n,e)}},state:{get:function(){return n0(n.state,t)}}}),r}function HR(n,e){if(!n._makeLocalGettersCache[e]){var t={},s=e.length;Object.keys(n.getters).forEach(function(r){if(r.slice(0,s)===e){var i=r.slice(s);Object.defineProperty(t,i,{get:function(){return n.getters[r]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function tL(n,e,t,s){var r=n._mutations[e]||(n._mutations[e]=[]);r.push(function(o){t.call(n,s.state,o)})}function nL(n,e,t,s){var r=n._actions[e]||(n._actions[e]=[]);r.push(function(o){var a=t.call(n,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:n.getters,rootState:n.state},o);return ZD(a)||(a=Promise.resolve(a)),n._devtoolHook?a.catch(function(c){throw n._devtoolHook.emit("vuex:error",c),c}):a})}function sL(n,e,t,s){n._wrappedGetters[e]||(n._wrappedGetters[e]=function(i){return t(s.state,s.getters,i.state,i.getters)})}function rL(n){Tn(function(){return n._state.data},function(){},{deep:!0,flush:"sync"})}function n0(n,e){return e.reduce(function(t,s){return t[s]},n)}function Kd(n,e,t){return GR(n)&&n.type&&(t=e,e=n,n=n.type),{type:n,payload:e,options:t}}var iL="vuex bindings",DE="vuex:mutations",Vp="vuex:actions",xo="vuex",oL=0;function aL(n,e){QD({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[iL]},function(t){t.addTimelineLayer({id:DE,label:"Vuex Mutations",color:LE}),t.addTimelineLayer({id:Vp,label:"Vuex Actions",color:LE}),t.addInspector({id:xo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(s){if(s.app===n&&s.inspectorId===xo)if(s.filter){var r=[];WR(r,e._modules.root,s.filter,""),s.rootNodes=r}else s.rootNodes=[$R(e._modules.root,"")]}),t.on.getInspectorState(function(s){if(s.app===n&&s.inspectorId===xo){var r=s.nodeId;HR(e,r),s.state=dL(pL(e._modules,r),r==="root"?e.getters:e._makeLocalGettersCache,r)}}),t.on.editInspectorState(function(s){if(s.app===n&&s.inspectorId===xo){var r=s.nodeId,i=s.path;r!=="root"&&(i=r.split("/").filter(Boolean).concat(i)),e._withCommit(function(){s.set(e._state.data,i,s.state.value)})}}),e.subscribe(function(s,r){var i={};s.payload&&(i.payload=s.payload),i.state=r,t.notifyComponentUpdate(),t.sendInspectorTree(xo),t.sendInspectorState(xo),t.addTimelineEvent({layerId:DE,event:{time:Date.now(),title:s.type,data:i}})}),e.subscribeAction({before:function(s,r){var i={};s.payload&&(i.payload=s.payload),s._id=oL++,s._time=Date.now(),i.state=r,t.addTimelineEvent({layerId:Vp,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:i}})},after:function(s,r){var i={},o=Date.now()-s._time;i.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},s.payload&&(i.payload=s.payload),i.state=r,t.addTimelineEvent({layerId:Vp,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:i}})}})})}var LE=8702998,lL=6710886,cL=16777215,qR={label:"namespaced",textColor:cL,backgroundColor:lL};function YR(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function $R(n,e){return{id:e||"root",label:YR(e),tags:n.namespaced?[qR]:[],children:Object.keys(n._children).map(function(t){return $R(n._children[t],e+t+"/")})}}function WR(n,e,t,s){s.includes(t)&&n.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:e.namespaced?[qR]:[]}),Object.keys(e._children).forEach(function(r){WR(n,e._children[r],t,s+r+"/")})}function dL(n,e,t){e=t==="root"?e:e[t];var s=Object.keys(e),r={state:Object.keys(n.state).map(function(o){return{key:o,editable:!0,value:n.state[o]}})};if(s.length){var i=uL(e);r.getters=Object.keys(i).map(function(o){return{key:o.endsWith("/")?YR(o):o,editable:!1,value:Vg(function(){return i[o]})}})}return r}function uL(n){var e={};return Object.keys(n).forEach(function(t){var s=t.split("/");if(s.length>1){var r=e,i=s.pop();s.forEach(function(o){r[o]||(r[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),r=r[o]._custom.value}),r[i]=Vg(function(){return n[t]})}else e[t]=Vg(function(){return n[t]})}),e}function pL(n,e){var t=e.split("/").filter(function(s){return s});return t.reduce(function(s,r,i){var o=s[r];if(!o)throw new Error('Missing module "'+r+'" for path "'+e+'".');return i===t.length-1?o:o._children},e==="root"?n:n.root._children)}function Vg(n){try{return n()}catch(e){return e}}var qs=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},KR={namespaced:{configurable:!0}};KR.namespaced.get=function(){return!!this._rawModule.namespaced};qs.prototype.addChild=function(e,t){this._children[e]=t};qs.prototype.removeChild=function(e){delete this._children[e]};qs.prototype.getChild=function(e){return this._children[e]};qs.prototype.hasChild=function(e){return e in this._children};qs.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};qs.prototype.forEachChild=function(e){Pa(this._children,e)};qs.prototype.forEachGetter=function(e){this._rawModule.getters&&Pa(this._rawModule.getters,e)};qs.prototype.forEachAction=function(e){this._rawModule.actions&&Pa(this._rawModule.actions,e)};qs.prototype.forEachMutation=function(e){this._rawModule.mutations&&Pa(this._rawModule.mutations,e)};Object.defineProperties(qs.prototype,KR);var bo=function(e){this.register([],e,!1)};bo.prototype.get=function(e){return e.reduce(function(t,s){return t.getChild(s)},this.root)};bo.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(s,r){return t=t.getChild(r),s+(t.namespaced?r+"/":"")},"")};bo.prototype.update=function(e){jR([],this.root,e)};bo.prototype.register=function(e,t,s){var r=this;s===void 0&&(s=!0);var i=new qs(t,s);if(e.length===0)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&Pa(t.modules,function(a,c){r.register(e.concat(c),a,s)})};bo.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1],r=t.getChild(s);r&&r.runtime&&t.removeChild(s)};bo.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1];return t?t.hasChild(s):!1};function jR(n,e,t){if(e.update(t),t.modules)for(var s in t.modules){if(!e.getChild(s))return;jR(n.concat(s),e.getChild(s),t.modules[s])}}function fL(n){return new Jn(n)}var Jn=function(e){var t=this;e===void 0&&(e={});var s=e.plugins;s===void 0&&(s=[]);var r=e.strict;r===void 0&&(r=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new bo(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this,c=a.dispatch,d=a.commit;this.dispatch=function(m,h){return c.call(o,m,h)},this.commit=function(m,h,f){return d.call(o,m,h,f)},this.strict=r;var u=this._modules.root.state;zu(this,u,[],this._modules.root),t0(this,u),s.forEach(function(_){return _(t)})},s0={state:{configurable:!0}};Jn.prototype.install=function(e,t){e.provide(t||BR,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&aL(e,this)};s0.state.get=function(){return this._state.data};s0.state.set=function(n){};Jn.prototype.commit=function(e,t,s){var r=this,i=Kd(e,t,s),o=i.type,a=i.payload,c={type:o,payload:a},d=this._mutations[o];d&&(this._withCommit(function(){d.forEach(function(_){_(a)})}),this._subscribers.slice().forEach(function(u){return u(c,r.state)}))};Jn.prototype.dispatch=function(e,t){var s=this,r=Kd(e,t),i=r.type,o=r.payload,a={type:i,payload:o},c=this._actions[i];if(c){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,s.state)})}catch{}var d=c.length>1?Promise.all(c.map(function(u){return u(o)})):c[0](o);return new Promise(function(u,_){d.then(function(m){try{s._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(a,s.state)})}catch{}u(m)},function(m){try{s._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(a,s.state,m)})}catch{}_(m)})})}};Jn.prototype.subscribe=function(e,t){return VR(e,this._subscribers,t)};Jn.prototype.subscribeAction=function(e,t){var s=typeof e=="function"?{before:e}:e;return VR(s,this._actionSubscribers,t)};Jn.prototype.watch=function(e,t,s){var r=this;return Tn(function(){return e(r.state,r.getters)},t,Object.assign({},s))};Jn.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})};Jn.prototype.registerModule=function(e,t,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),zu(this,this.state,e,this._modules.get(e),s.preserveState),t0(this,this.state)};Jn.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var s=n0(t.state,e.slice(0,-1));delete s[e[e.length-1]]}),zR(this)};Jn.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};Jn.prototype.hotUpdate=function(e){this._modules.update(e),zR(this,!0)};Jn.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t};Object.defineProperties(Jn.prototype,s0);var _L=gL(function(n,e){var t={};return mL(e).forEach(function(s){var r=s.key,i=s.val;t[r]=function(){var a=this.$store.state,c=this.$store.getters;if(n){var d=bL(this.$store,"mapState",n);if(!d)return;a=d.context.state,c=d.context.getters}return typeof i=="function"?i.call(this,a,c):a[i]},t[r].vuex=!0}),t});function mL(n){return hL(n)?Array.isArray(n)?n.map(function(e){return{key:e,val:e}}):Object.keys(n).map(function(e){return{key:e,val:n[e]}}):[]}function hL(n){return Array.isArray(n)||GR(n)}function gL(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function bL(n,e,t){var s=n._modulesNamespaceMap[t];return s}function QR(n,e){return function(){return n.apply(e,arguments)}}const{toString:yL}=Object.prototype,{getPrototypeOf:r0}=Object,Hu=(n=>e=>{const t=yL.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ys=n=>(n=n.toLowerCase(),e=>Hu(e)===n),qu=n=>e=>typeof e===n,{isArray:Fa}=Array,zl=qu("undefined");function EL(n){return n!==null&&!zl(n)&&n.constructor!==null&&!zl(n.constructor)&&os(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const XR=Ys("ArrayBuffer");function vL(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&XR(n.buffer),e}const SL=qu("string"),os=qu("function"),ZR=qu("number"),Yu=n=>n!==null&&typeof n=="object",TL=n=>n===!0||n===!1,xd=n=>{if(Hu(n)!=="object")return!1;const e=r0(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},xL=Ys("Date"),CL=Ys("File"),wL=Ys("Blob"),RL=Ys("FileList"),AL=n=>Yu(n)&&os(n.pipe),ML=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||os(n.append)&&((e=Hu(n))==="formdata"||e==="object"&&os(n.toString)&&n.toString()==="[object FormData]"))},NL=Ys("URLSearchParams"),[OL,IL,kL,DL]=["ReadableStream","Request","Response","Headers"].map(Ys),LL=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rc(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let s,r;if(typeof n!="object"&&(n=[n]),Fa(n))for(s=0,r=n.length;s0;)if(r=t[s],e===r.toLowerCase())return r;return null}const Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eA=n=>!zl(n)&&n!==Ki;function zg(){const{caseless:n}=eA(this)&&this||{},e={},t=(s,r)=>{const i=n&&JR(e,r)||r;xd(e[i])&&xd(s)?e[i]=zg(e[i],s):xd(s)?e[i]=zg({},s):Fa(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s(rc(e,(r,i)=>{t&&os(r)?n[i]=QR(r,t):n[i]=r},{allOwnKeys:s}),n),FL=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),UL=(n,e,t,s)=>{n.prototype=Object.create(e.prototype,s),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},BL=(n,e,t,s)=>{let r,i,o;const a={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),i=r.length;i-- >0;)o=r[i],(!s||s(o,n,e))&&!a[o]&&(e[o]=n[o],a[o]=!0);n=t!==!1&&r0(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},GL=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const s=n.indexOf(e,t);return s!==-1&&s===t},VL=n=>{if(!n)return null;if(Fa(n))return n;let e=n.length;if(!ZR(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},zL=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&r0(Uint8Array)),HL=(n,e)=>{const s=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=s.next())&&!r.done;){const i=r.value;e.call(n,i[0],i[1])}},qL=(n,e)=>{let t;const s=[];for(;(t=n.exec(e))!==null;)s.push(t);return s},YL=Ys("HTMLFormElement"),$L=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,s,r){return s.toUpperCase()+r}),PE=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),WL=Ys("RegExp"),tA=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),s={};rc(t,(r,i)=>{let o;(o=e(r,i,n))!==!1&&(s[i]=o||r)}),Object.defineProperties(n,s)},KL=n=>{tA(n,(e,t)=>{if(os(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const s=n[t];if(os(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},jL=(n,e)=>{const t={},s=r=>{r.forEach(i=>{t[i]=!0})};return Fa(n)?s(n):s(String(n).split(e)),t},QL=()=>{},XL=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,zp="abcdefghijklmnopqrstuvwxyz",FE="0123456789",nA={DIGIT:FE,ALPHA:zp,ALPHA_DIGIT:zp+zp.toUpperCase()+FE},ZL=(n=16,e=nA.ALPHA_DIGIT)=>{let t="";const{length:s}=e;for(;n--;)t+=e[Math.random()*s|0];return t};function JL(n){return!!(n&&os(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const eP=n=>{const e=new Array(10),t=(s,r)=>{if(Yu(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=Fa(s)?[]:{};return rc(s,(o,a)=>{const c=t(o,r+1);!zl(c)&&(i[a]=c)}),e[r]=void 0,i}}return s};return t(n,0)},tP=Ys("AsyncFunction"),nP=n=>n&&(Yu(n)||os(n))&&os(n.then)&&os(n.catch),sA=((n,e)=>n?setImmediate:e?((t,s)=>(Ki.addEventListener("message",({source:r,data:i})=>{r===Ki&&i===t&&s.length&&s.shift()()},!1),r=>{s.push(r),Ki.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",os(Ki.postMessage)),sP=typeof queueMicrotask<"u"?queueMicrotask.bind(Ki):typeof process<"u"&&process.nextTick||sA,Te={isArray:Fa,isArrayBuffer:XR,isBuffer:EL,isFormData:ML,isArrayBufferView:vL,isString:SL,isNumber:ZR,isBoolean:TL,isObject:Yu,isPlainObject:xd,isReadableStream:OL,isRequest:IL,isResponse:kL,isHeaders:DL,isUndefined:zl,isDate:xL,isFile:CL,isBlob:wL,isRegExp:WL,isFunction:os,isStream:AL,isURLSearchParams:NL,isTypedArray:zL,isFileList:RL,forEach:rc,merge:zg,extend:PL,trim:LL,stripBOM:FL,inherits:UL,toFlatObject:BL,kindOf:Hu,kindOfTest:Ys,endsWith:GL,toArray:VL,forEachEntry:HL,matchAll:qL,isHTMLForm:YL,hasOwnProperty:PE,hasOwnProp:PE,reduceDescriptors:tA,freezeMethods:KL,toObjectSet:jL,toCamelCase:$L,noop:QL,toFiniteNumber:XL,findKey:JR,global:Ki,isContextDefined:eA,ALPHABET:nA,generateString:ZL,isSpecCompliantForm:JL,toJSONObject:eP,isAsyncFn:tP,isThenable:nP,setImmediate:sA,asap:sP};function yt(n,e,t,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}Te.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Te.toJSONObject(this.config),code:this.code,status:this.status}}});const rA=yt.prototype,iA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{iA[n]={value:n}});Object.defineProperties(yt,iA);Object.defineProperty(rA,"isAxiosError",{value:!0});yt.from=(n,e,t,s,r,i)=>{const o=Object.create(rA);return Te.toFlatObject(n,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),yt.call(o,n.message,e,t,s,r),o.cause=n,o.name=n.name,i&&Object.assign(o,i),o};const rP=null;function Hg(n){return Te.isPlainObject(n)||Te.isArray(n)}function oA(n){return Te.endsWith(n,"[]")?n.slice(0,-2):n}function UE(n,e,t){return n?n.concat(e).map(function(r,i){return r=oA(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function iP(n){return Te.isArray(n)&&!n.some(Hg)}const oP=Te.toFlatObject(Te,{},null,function(e){return/^is[A-Z]/.test(e)});function $u(n,e,t){if(!Te.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=Te.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!Te.isUndefined(b[y])});const s=t.metaTokens,r=t.visitor||u,i=t.dots,o=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&Te.isSpecCompliantForm(e);if(!Te.isFunction(r))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(Te.isDate(f))return f.toISOString();if(!c&&Te.isBlob(f))throw new yt("Blob is not supported. Use a Buffer instead.");return Te.isArrayBuffer(f)||Te.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,y,b){let g=f;if(f&&!b&&typeof f=="object"){if(Te.endsWith(y,"{}"))y=s?y:y.slice(0,-2),f=JSON.stringify(f);else if(Te.isArray(f)&&iP(f)||(Te.isFileList(f)||Te.endsWith(y,"[]"))&&(g=Te.toArray(f)))return y=oA(y),g.forEach(function(v,S){!(Te.isUndefined(v)||v===null)&&e.append(o===!0?UE([y],S,i):o===null?y:y+"[]",d(v))}),!1}return Hg(f)?!0:(e.append(UE(b,y,i),d(f)),!1)}const _=[],m=Object.assign(oP,{defaultVisitor:u,convertValue:d,isVisitable:Hg});function h(f,y){if(!Te.isUndefined(f)){if(_.indexOf(f)!==-1)throw Error("Circular reference detected in "+y.join("."));_.push(f),Te.forEach(f,function(g,E){(!(Te.isUndefined(g)||g===null)&&r.call(e,g,Te.isString(E)?E.trim():E,y,m))===!0&&h(g,y?y.concat(E):[E])}),_.pop()}}if(!Te.isObject(n))throw new TypeError("data must be an object");return h(n),e}function BE(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function i0(n,e){this._pairs=[],n&&$u(n,this,e)}const aA=i0.prototype;aA.append=function(e,t){this._pairs.push([e,t])};aA.toString=function(e){const t=e?function(s){return e.call(this,s,BE)}:BE;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function aP(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lA(n,e,t){if(!e)return n;const s=t&&t.encode||aP,r=t&&t.serialize;let i;if(r?i=r(e,t):i=Te.isURLSearchParams(e)?e.toString():new i0(e,t).toString(s),i){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class GE{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Te.forEach(this.handlers,function(s){s!==null&&e(s)})}}const cA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lP=typeof URLSearchParams<"u"?URLSearchParams:i0,cP=typeof FormData<"u"?FormData:null,dP=typeof Blob<"u"?Blob:null,uP={isBrowser:!0,classes:{URLSearchParams:lP,FormData:cP,Blob:dP},protocols:["http","https","file","blob","url","data"]},o0=typeof window<"u"&&typeof document<"u",qg=typeof navigator=="object"&&navigator||void 0,pP=o0&&(!qg||["ReactNative","NativeScript","NS"].indexOf(qg.product)<0),fP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_P=o0&&window.location.href||"http://localhost",mP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:o0,hasStandardBrowserEnv:pP,hasStandardBrowserWebWorkerEnv:fP,navigator:qg,origin:_P},Symbol.toStringTag,{value:"Module"})),Kn={...mP,...uP};function hP(n,e){return $u(n,new Kn.classes.URLSearchParams,Object.assign({visitor:function(t,s,r,i){return Kn.isNode&&Te.isBuffer(t)?(this.append(s,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function gP(n){return Te.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bP(n){const e={},t=Object.keys(n);let s;const r=t.length;let i;for(s=0;s=t.length;return o=!o&&Te.isArray(r)?r.length:o,c?(Te.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!Te.isObject(r[o]))&&(r[o]=[]),e(t,s,r[o],i)&&Te.isArray(r[o])&&(r[o]=bP(r[o])),!a)}if(Te.isFormData(n)&&Te.isFunction(n.entries)){const t={};return Te.forEachEntry(n,(s,r)=>{e(gP(s),r,t,0)}),t}return null}function yP(n,e,t){if(Te.isString(n))try{return(e||JSON.parse)(n),Te.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(n)}const ic={transitional:cA,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const s=t.getContentType()||"",r=s.indexOf("application/json")>-1,i=Te.isObject(e);if(i&&Te.isHTMLForm(e)&&(e=new FormData(e)),Te.isFormData(e))return r?JSON.stringify(dA(e)):e;if(Te.isArrayBuffer(e)||Te.isBuffer(e)||Te.isStream(e)||Te.isFile(e)||Te.isBlob(e)||Te.isReadableStream(e))return e;if(Te.isArrayBufferView(e))return e.buffer;if(Te.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return hP(e,this.formSerializer).toString();if((a=Te.isFileList(e))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return $u(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),yP(e)):e}],transformResponse:[function(e){const t=this.transitional||ic.transitional,s=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Te.isResponse(e)||Te.isReadableStream(e))return e;if(e&&Te.isString(e)&&(s&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?yt.from(a,yt.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kn.classes.FormData,Blob:Kn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch"],n=>{ic.headers[n]={}});const EP=Te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vP=n=>{const e={};let t,s,r;return n&&n.split(` -`).forEach(function(o){r=o.indexOf(":"),t=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!t||e[t]&&EP[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e},VE=Symbol("internals");function el(n){return n&&String(n).trim().toLowerCase()}function Cd(n){return n===!1||n==null?n:Te.isArray(n)?n.map(Cd):String(n)}function SP(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(n);)e[s[1]]=s[2];return e}const TP=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Hp(n,e,t,s,r){if(Te.isFunction(s))return s.call(this,e,t);if(r&&(e=t),!!Te.isString(e)){if(Te.isString(s))return e.indexOf(s)!==-1;if(Te.isRegExp(s))return s.test(e)}}function xP(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function CP(n,e){const t=Te.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+t,{value:function(r,i,o){return this[s].call(this,e,r,i,o)},configurable:!0})})}class jn{constructor(e){e&&this.set(e)}set(e,t,s){const r=this;function i(a,c,d){const u=el(c);if(!u)throw new Error("header name must be a non-empty string");const _=Te.findKey(r,u);(!_||r[_]===void 0||d===!0||d===void 0&&r[_]!==!1)&&(r[_||c]=Cd(a))}const o=(a,c)=>Te.forEach(a,(d,u)=>i(d,u,c));if(Te.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Te.isString(e)&&(e=e.trim())&&!TP(e))o(vP(e),t);else if(Te.isHeaders(e))for(const[a,c]of e.entries())i(c,a,s);else e!=null&&i(t,e,s);return this}get(e,t){if(e=el(e),e){const s=Te.findKey(this,e);if(s){const r=this[s];if(!t)return r;if(t===!0)return SP(r);if(Te.isFunction(t))return t.call(this,r,s);if(Te.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=el(e),e){const s=Te.findKey(this,e);return!!(s&&this[s]!==void 0&&(!t||Hp(this,this[s],s,t)))}return!1}delete(e,t){const s=this;let r=!1;function i(o){if(o=el(o),o){const a=Te.findKey(s,o);a&&(!t||Hp(s,s[a],a,t))&&(delete s[a],r=!0)}}return Te.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let s=t.length,r=!1;for(;s--;){const i=t[s];(!e||Hp(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,s={};return Te.forEach(this,(r,i)=>{const o=Te.findKey(s,i);if(o){t[o]=Cd(r),delete t[i];return}const a=e?xP(i):String(i).trim();a!==i&&delete t[i],t[a]=Cd(r),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Te.forEach(this,(s,r)=>{s!=null&&s!==!1&&(t[r]=e&&Te.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[VE]=this[VE]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=el(o);s[a]||(CP(r,o),s[a]=!0)}return Te.isArray(e)?e.forEach(i):i(e),this}}jn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Te.reduceDescriptors(jn.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(s){this[t]=s}}});Te.freezeMethods(jn);function qp(n,e){const t=this||ic,s=e||t,r=jn.from(s.headers);let i=s.data;return Te.forEach(n,function(a){i=a.call(t,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function uA(n){return!!(n&&n.__CANCEL__)}function Ua(n,e,t){yt.call(this,n??"canceled",yt.ERR_CANCELED,e,t),this.name="CanceledError"}Te.inherits(Ua,yt,{__CANCEL__:!0});function pA(n,e,t){const s=t.config.validateStatus;!t.status||!s||s(t.status)?n(t):e(new yt("Request failed with status code "+t.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function wP(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function RP(n,e){n=n||10;const t=new Array(n),s=new Array(n);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=s[i];o||(o=d),t[r]=c,s[r]=d;let _=i,m=0;for(;_!==r;)m+=t[_++],_=_%n;if(r=(r+1)%n,r===i&&(i=(i+1)%n),d-o{t=u,r=null,i&&(clearTimeout(i),i=null),n.apply(null,d)};return[(...d)=>{const u=Date.now(),_=u-t;_>=s?o(d,u):(r=d,i||(i=setTimeout(()=>{i=null,o(r)},s-_)))},()=>r&&o(r)]}const jd=(n,e,t=3)=>{let s=0;const r=RP(50,250);return AP(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,d=r(c),u=o<=a;s=o;const _={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&u?(a-o)/d:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(_)},t)},zE=(n,e)=>{const t=n!=null;return[s=>e[0]({lengthComputable:t,total:n,loaded:s}),e[1]]},HE=n=>(...e)=>Te.asap(()=>n(...e)),MP=Kn.hasStandardBrowserEnv?function(){const e=Kn.navigator&&/(msie|trident)/i.test(Kn.navigator.userAgent),t=document.createElement("a");let s;function r(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return s=r(window.location.href),function(o){const a=Te.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}(),NP=Kn.hasStandardBrowserEnv?{write(n,e,t,s,r,i){const o=[n+"="+encodeURIComponent(e)];Te.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),Te.isString(s)&&o.push("path="+s),Te.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function OP(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function IP(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function fA(n,e){return n&&!OP(e)?IP(n,e):e}const qE=n=>n instanceof jn?{...n}:n;function lo(n,e){e=e||{};const t={};function s(d,u,_){return Te.isPlainObject(d)&&Te.isPlainObject(u)?Te.merge.call({caseless:_},d,u):Te.isPlainObject(u)?Te.merge({},u):Te.isArray(u)?u.slice():u}function r(d,u,_){if(Te.isUndefined(u)){if(!Te.isUndefined(d))return s(void 0,d,_)}else return s(d,u,_)}function i(d,u){if(!Te.isUndefined(u))return s(void 0,u)}function o(d,u){if(Te.isUndefined(u)){if(!Te.isUndefined(d))return s(void 0,d)}else return s(void 0,u)}function a(d,u,_){if(_ in e)return s(d,u);if(_ in n)return s(void 0,d)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(d,u)=>r(qE(d),qE(u),!0)};return Te.forEach(Object.keys(Object.assign({},n,e)),function(u){const _=c[u]||r,m=_(n[u],e[u],u);Te.isUndefined(m)&&_!==a||(t[u]=m)}),t}const _A=n=>{const e=lo({},n);let{data:t,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=e;e.headers=o=jn.from(o),e.url=lA(fA(e.baseURL,e.url),n.params,n.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(Te.isFormData(t)){if(Kn.hasStandardBrowserEnv||Kn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[d,...u]=c?c.split(";").map(_=>_.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Kn.hasStandardBrowserEnv&&(s&&Te.isFunction(s)&&(s=s(e)),s||s!==!1&&MP(e.url))){const d=r&&i&&NP.read(i);d&&o.set(r,d)}return e},kP=typeof XMLHttpRequest<"u",DP=kP&&function(n){return new Promise(function(t,s){const r=_A(n);let i=r.data;const o=jn.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=r,u,_,m,h,f;function y(){h&&h(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function g(){if(!b)return;const v=jn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:v,config:n,request:b};pA(function(A){t(A),y()},function(A){s(A),y()},R),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(g)},b.onabort=function(){b&&(s(new yt("Request aborted",yt.ECONNABORTED,n,b)),b=null)},b.onerror=function(){s(new yt("Network Error",yt.ERR_NETWORK,n,b)),b=null},b.ontimeout=function(){let S=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||cA;r.timeoutErrorMessage&&(S=r.timeoutErrorMessage),s(new yt(S,R.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,n,b)),b=null},i===void 0&&o.setContentType(null),"setRequestHeader"in b&&Te.forEach(o.toJSON(),function(S,R){b.setRequestHeader(R,S)}),Te.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),a&&a!=="json"&&(b.responseType=r.responseType),d&&([m,f]=jd(d,!0),b.addEventListener("progress",m)),c&&b.upload&&([_,h]=jd(c),b.upload.addEventListener("progress",_),b.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=v=>{b&&(s(!v||v.type?new Ua(null,n,b):v),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const E=wP(r.url);if(E&&Kn.protocols.indexOf(E)===-1){s(new yt("Unsupported protocol "+E+":",yt.ERR_BAD_REQUEST,n));return}b.send(i||null)})},LP=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let s=new AbortController,r;const i=function(d){if(!r){r=!0,a();const u=d instanceof Error?d:this.reason;s.abort(u instanceof yt?u:new Ua(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{o=null,i(new yt(`timeout ${e} of ms exceeded`,yt.ETIMEDOUT))},e);const a=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),n=null)};n.forEach(d=>d.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>Te.asap(a),c}},PP=function*(n,e){let t=n.byteLength;if(t{const r=FP(n,e);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await r.next();if(d){a(),c.close();return}let _=u.byteLength;if(t){let m=i+=_;t(m)}c.enqueue(new Uint8Array(u))}catch(d){throw a(d),d}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},Wu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mA=Wu&&typeof ReadableStream=="function",BP=Wu&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),hA=(n,...e)=>{try{return!!n(...e)}catch{return!1}},GP=mA&&hA(()=>{let n=!1;const e=new Request(Kn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),$E=64*1024,Yg=mA&&hA(()=>Te.isReadableStream(new Response("").body)),Qd={stream:Yg&&(n=>n.body)};Wu&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Qd[e]&&(Qd[e]=Te.isFunction(n[e])?t=>t[e]():(t,s)=>{throw new yt(`Response type '${e}' is not supported`,yt.ERR_NOT_SUPPORT,s)})})})(new Response);const VP=async n=>{if(n==null)return 0;if(Te.isBlob(n))return n.size;if(Te.isSpecCompliantForm(n))return(await new Request(Kn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(Te.isArrayBufferView(n)||Te.isArrayBuffer(n))return n.byteLength;if(Te.isURLSearchParams(n)&&(n=n+""),Te.isString(n))return(await BP(n)).byteLength},zP=async(n,e)=>{const t=Te.toFiniteNumber(n.getContentLength());return t??VP(e)},HP=Wu&&(async n=>{let{url:e,method:t,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:u,withCredentials:_="same-origin",fetchOptions:m}=_A(n);d=d?(d+"").toLowerCase():"text";let h=LP([r,i&&i.toAbortSignal()],o),f;const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&GP&&t!=="get"&&t!=="head"&&(b=await zP(u,s))!==0){let R=new Request(e,{method:"POST",body:s,duplex:"half"}),w;if(Te.isFormData(s)&&(w=R.headers.get("content-type"))&&u.setContentType(w),R.body){const[A,I]=zE(b,jd(HE(c)));s=YE(R.body,$E,A,I)}}Te.isString(_)||(_=_?"include":"omit");const g="credentials"in Request.prototype;f=new Request(e,{...m,signal:h,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:g?_:void 0});let E=await fetch(f);const v=Yg&&(d==="stream"||d==="response");if(Yg&&(a||v&&y)){const R={};["status","statusText","headers"].forEach(C=>{R[C]=E[C]});const w=Te.toFiniteNumber(E.headers.get("content-length")),[A,I]=a&&zE(w,jd(HE(a),!0))||[];E=new Response(YE(E.body,$E,A,()=>{I&&I(),y&&y()}),R)}d=d||"text";let S=await Qd[Te.findKey(Qd,d)||"text"](E,n);return!v&&y&&y(),await new Promise((R,w)=>{pA(R,w,{data:S,headers:jn.from(E.headers),status:E.status,statusText:E.statusText,config:n,request:f})})}catch(g){throw y&&y(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,n,f),{cause:g.cause||g}):yt.from(g,g&&g.code,n,f)}}),$g={http:rP,xhr:DP,fetch:HP};Te.forEach($g,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const WE=n=>`- ${n}`,qP=n=>Te.isFunction(n)||n===null||n===!1,gA={getAdapter:n=>{n=Te.isArray(n)?n:[n];const{length:e}=n;let t,s;const r={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since : -`+i.map(WE).join(` -`):" "+WE(i[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:$g};function Yp(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ua(null,n)}function KE(n){return Yp(n),n.headers=jn.from(n.headers),n.data=qp.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),gA.getAdapter(n.adapter||ic.adapter)(n).then(function(s){return Yp(n),s.data=qp.call(n,n.transformResponse,s),s.headers=jn.from(s.headers),s},function(s){return uA(s)||(Yp(n),s&&s.response&&(s.response.data=qp.call(n,n.transformResponse,s.response),s.response.headers=jn.from(s.response.headers))),Promise.reject(s)})}const bA="1.7.7",a0={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{a0[n]=function(s){return typeof s===n||"a"+(e<1?"n ":" ")+n}});const jE={};a0.transitional=function(e,t,s){function r(i,o){return"[Axios v"+bA+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(e===!1)throw new yt(r(o," has been removed"+(t?" in "+t:"")),yt.ERR_DEPRECATED);return t&&!jE[o]&&(jE[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,a):!0}};function YP(n,e,t){if(typeof n!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let r=s.length;for(;r-- >0;){const i=s[r],o=e[i];if(o){const a=n[i],c=a===void 0||o(a,i,n);if(c!==!0)throw new yt("option "+i+" must be "+c,yt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}const Wg={assertOptions:YP,validators:a0},$r=Wg.validators;class Ji{constructor(e){this.defaults=e,this.interceptors={request:new GE,response:new GE}}async request(e,t){try{return await this._request(e,t)}catch(s){if(s instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+i):s.stack=i}catch{}}throw s}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=lo(this.defaults,t);const{transitional:s,paramsSerializer:r,headers:i}=t;s!==void 0&&Wg.assertOptions(s,{silentJSONParsing:$r.transitional($r.boolean),forcedJSONParsing:$r.transitional($r.boolean),clarifyTimeoutError:$r.transitional($r.boolean)},!1),r!=null&&(Te.isFunction(r)?t.paramsSerializer={serialize:r}:Wg.assertOptions(r,{encode:$r.function,serialize:$r.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&Te.merge(i.common,i[t.method]);i&&Te.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),t.headers=jn.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,_=0,m;if(!c){const f=[KE.bind(this),void 0];for(f.unshift.apply(f,a),f.push.apply(f,d),m=f.length,u=Promise.resolve(t);_{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},e(function(i,o,a){s.reason||(s.reason=new Ua(i,o,a),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=s=>{e.abort(s)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new l0(function(r){e=r}),cancel:e}}}function $P(n){return function(t){return n.apply(null,t)}}function WP(n){return Te.isObject(n)&&n.isAxiosError===!0}const Kg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kg).forEach(([n,e])=>{Kg[e]=n});function yA(n){const e=new Ji(n),t=QR(Ji.prototype.request,e);return Te.extend(t,Ji.prototype,e,{allOwnKeys:!0}),Te.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return yA(lo(n,r))},t}const ne=yA(ic);ne.Axios=Ji;ne.CanceledError=Ua;ne.CancelToken=l0;ne.isCancel=uA;ne.VERSION=bA;ne.toFormData=$u;ne.AxiosError=yt;ne.Cancel=ne.CanceledError;ne.all=function(e){return Promise.all(e)};ne.spread=$P;ne.isAxiosError=WP;ne.mergeConfig=lo;ne.AxiosHeaders=jn;ne.formToJSON=n=>dA(Te.isHTMLForm(n)?new FormData(n):n);ne.getAdapter=gA.getAdapter;ne.HttpStatusCode=Kg;ne.default=ne;/*! - * vue-router v4.4.5 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const Yo=typeof document<"u";function EA(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function KP(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&EA(n.default)}const Ft=Object.assign;function $p(n,e){const t={};for(const s in e){const r=e[s];t[s]=Hs(r)?r.map(n):n(r)}return t}const Tl=()=>{},Hs=Array.isArray,vA=/#/g,jP=/&/g,QP=/\//g,XP=/=/g,ZP=/\?/g,SA=/\+/g,JP=/%5B/g,e3=/%5D/g,TA=/%5E/g,t3=/%60/g,xA=/%7B/g,n3=/%7C/g,CA=/%7D/g,s3=/%20/g;function c0(n){return encodeURI(""+n).replace(n3,"|").replace(JP,"[").replace(e3,"]")}function r3(n){return c0(n).replace(xA,"{").replace(CA,"}").replace(TA,"^")}function jg(n){return c0(n).replace(SA,"%2B").replace(s3,"+").replace(vA,"%23").replace(jP,"%26").replace(t3,"`").replace(xA,"{").replace(CA,"}").replace(TA,"^")}function i3(n){return jg(n).replace(XP,"%3D")}function o3(n){return c0(n).replace(vA,"%23").replace(ZP,"%3F")}function a3(n){return n==null?"":o3(n).replace(QP,"%2F")}function Hl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const l3=/\/$/,c3=n=>n.replace(l3,"");function Wp(n,e,t="/"){let s,r={},i="",o="";const a=e.indexOf("#");let c=e.indexOf("?");return a=0&&(c=-1),c>-1&&(s=e.slice(0,c),i=e.slice(c+1,a>-1?a:e.length),r=n(i)),a>-1&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=f3(s??e,t),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:Hl(o)}}function d3(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function QE(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function u3(n,e,t){const s=e.matched.length-1,r=t.matched.length-1;return s>-1&&s===r&&ua(e.matched[s],t.matched[r])&&wA(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function ua(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function wA(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!p3(n[t],e[t]))return!1;return!0}function p3(n,e){return Hs(n)?XE(n,e):Hs(e)?XE(e,n):n===e}function XE(n,e){return Hs(e)?n.length===e.length&&n.every((t,s)=>t===e[s]):n.length===1&&n[0]===e}function f3(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),s=n.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=t.length-1,o,a;for(o=0;o1&&i--;else break;return t.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const Wr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ql;(function(n){n.pop="pop",n.push="push"})(ql||(ql={}));var xl;(function(n){n.back="back",n.forward="forward",n.unknown=""})(xl||(xl={}));function _3(n){if(!n)if(Yo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),c3(n)}const m3=/^[^#]+#/;function h3(n,e){return n.replace(m3,"#")+e}function g3(n,e){const t=document.documentElement.getBoundingClientRect(),s=n.getBoundingClientRect();return{behavior:e.behavior,left:s.left-t.left-(e.left||0),top:s.top-t.top-(e.top||0)}}const Ku=()=>({left:window.scrollX,top:window.scrollY});function b3(n){let e;if("el"in n){const t=n.el,s=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?s?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=g3(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function ZE(n,e){return(history.state?history.state.position-e:-1)+n}const Qg=new Map;function y3(n,e){Qg.set(n,e)}function E3(n){const e=Qg.get(n);return Qg.delete(n),e}let v3=()=>location.protocol+"//"+location.host;function RA(n,e){const{pathname:t,search:s,hash:r}=e,i=n.indexOf("#");if(i>-1){let a=r.includes(n.slice(i))?n.slice(i).length:1,c=r.slice(a);return c[0]!=="/"&&(c="/"+c),QE(c,"")}return QE(t,n)+s+r}function S3(n,e,t,s){let r=[],i=[],o=null;const a=({state:m})=>{const h=RA(n,location),f=t.value,y=e.value;let b=0;if(m){if(t.value=h,e.value=m,o&&o===f){o=null;return}b=y?m.position-y.position:0}else s(h);r.forEach(g=>{g(t.value,f,{delta:b,type:ql.pop,direction:b?b>0?xl.forward:xl.back:xl.unknown})})};function c(){o=t.value}function d(m){r.push(m);const h=()=>{const f=r.indexOf(m);f>-1&&r.splice(f,1)};return i.push(h),h}function u(){const{history:m}=window;m.state&&m.replaceState(Ft({},m.state,{scroll:Ku()}),"")}function _(){for(const m of i)m();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:d,destroy:_}}function JE(n,e,t,s=!1,r=!1){return{back:n,current:e,forward:t,replaced:s,position:window.history.length,scroll:r?Ku():null}}function T3(n){const{history:e,location:t}=window,s={value:RA(n,t)},r={value:e.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,d,u){const _=n.indexOf("#"),m=_>-1?(t.host&&document.querySelector("base")?n:n.slice(_))+c:v3()+n+c;try{e[u?"replaceState":"pushState"](d,"",m),r.value=d}catch(h){console.error(h),t[u?"replace":"assign"](m)}}function o(c,d){const u=Ft({},e.state,JE(r.value.back,c,r.value.forward,!0),d,{position:r.value.position});i(c,u,!0),s.value=c}function a(c,d){const u=Ft({},r.value,e.state,{forward:c,scroll:Ku()});i(u.current,u,!0);const _=Ft({},JE(s.value,c,null),{position:u.position+1},d);i(c,_,!1),s.value=c}return{location:s,state:r,push:a,replace:o}}function x3(n){n=_3(n);const e=T3(n),t=S3(n,e.state,e.location,e.replace);function s(i,o=!0){o||t.pauseListeners(),history.go(i)}const r=Ft({location:"",base:n,go:s,createHref:h3.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function C3(n){return typeof n=="string"||n&&typeof n=="object"}function AA(n){return typeof n=="string"||typeof n=="symbol"}const MA=Symbol("");var ev;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ev||(ev={}));function pa(n,e){return Ft(new Error,{type:n,[MA]:!0},e)}function hr(n,e){return n instanceof Error&&MA in n&&(e==null||!!(n.type&e))}const tv="[^/]+?",w3={sensitive:!1,strict:!1,start:!0,end:!0},R3=/[.+*?^${}()[\]/\\]/g;function A3(n,e){const t=Ft({},w3,e),s=[];let r=t.start?"^":"";const i=[];for(const d of n){const u=d.length?[]:[90];t.strict&&!d.length&&(r+="/");for(let _=0;_e.length?e.length===1&&e[0]===80?1:-1:0}function NA(n,e){let t=0;const s=n.score,r=e.score;for(;t0&&e[e.length-1]<0}const N3={type:0,value:""},O3=/[a-zA-Z0-9_]/;function I3(n){if(!n)return[[]];if(n==="/")return[[N3]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${d}": ${h}`)}let t=0,s=t;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,c,d="",u="";function _(){d&&(t===0?i.push({type:0,value:d}):t===1||t===2||t===3?(i.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:d,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),d="")}function m(){d+=c}for(;a{o(v)}:Tl}function o(_){if(AA(_)){const m=s.get(_);m&&(s.delete(_),t.splice(t.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=t.indexOf(_);m>-1&&(t.splice(m,1),_.record.name&&s.delete(_.record.name),_.children.forEach(o),_.alias.forEach(o))}}function a(){return t}function c(_){const m=F3(_,t);t.splice(m,0,_),_.record.name&&!iv(_)&&s.set(_.record.name,_)}function d(_,m){let h,f={},y,b;if("name"in _&&_.name){if(h=s.get(_.name),!h)throw pa(1,{location:_});b=h.record.name,f=Ft(sv(m.params,h.keys.filter(v=>!v.optional).concat(h.parent?h.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),_.params&&sv(_.params,h.keys.map(v=>v.name))),y=h.stringify(f)}else if(_.path!=null)y=_.path,h=t.find(v=>v.re.test(y)),h&&(f=h.parse(y),b=h.record.name);else{if(h=m.name?s.get(m.name):t.find(v=>v.re.test(m.path)),!h)throw pa(1,{location:_,currentLocation:m});b=h.record.name,f=Ft({},m.params,_.params),y=h.stringify(f)}const g=[];let E=h;for(;E;)g.unshift(E.record),E=E.parent;return{name:b,path:y,params:f,matched:g,meta:P3(g)}}n.forEach(_=>i(_));function u(){t.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function sv(n,e){const t={};for(const s of e)s in n&&(t[s]=n[s]);return t}function rv(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:L3(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function L3(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const s in n.components)e[s]=typeof t=="object"?t[s]:t;return e}function iv(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function P3(n){return n.reduce((e,t)=>Ft(e,t.meta),{})}function ov(n,e){const t={};for(const s in n)t[s]=s in e?e[s]:n[s];return t}function F3(n,e){let t=0,s=e.length;for(;t!==s;){const i=t+s>>1;NA(n,e[i])<0?s=i:t=i+1}const r=U3(n);return r&&(s=e.lastIndexOf(r,s-1)),s}function U3(n){let e=n;for(;e=e.parent;)if(OA(e)&&NA(n,e)===0)return e}function OA({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function B3(n){const e={};if(n===""||n==="?")return e;const s=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;ri&&jg(i)):[s&&jg(s)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+t,i!=null&&(e+="="+i))})}return e}function G3(n){const e={};for(const t in n){const s=n[t];s!==void 0&&(e[t]=Hs(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return e}const V3=Symbol(""),lv=Symbol(""),d0=Symbol(""),u0=Symbol(""),Xg=Symbol("");function tl(){let n=[];function e(s){return n.push(s),()=>{const r=n.indexOf(s);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function ri(n,e,t,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,c)=>{const d=m=>{m===!1?c(pa(4,{from:t,to:e})):m instanceof Error?c(m):C3(m)?c(pa(2,{from:e,to:m})):(o&&s.enterCallbacks[r]===o&&typeof m=="function"&&o.push(m),a())},u=i(()=>n.call(s&&s.instances[r],e,t,d));let _=Promise.resolve(u);n.length<3&&(_=_.then(d)),_.catch(m=>c(m))})}function Kp(n,e,t,s,r=i=>i()){const i=[];for(const o of n)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(EA(c)){const u=(c.__vccOpts||c)[e];u&&i.push(ri(u,t,s,o,a,r))}else{let d=c();i.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const _=KP(u)?u.default:u;o.mods[a]=u,o.components[a]=_;const h=(_.__vccOpts||_)[e];return h&&ri(h,t,s,o,a,r)()}))}}return i}function cv(n){const e=is(d0),t=is(u0),s=Je(()=>{const c=bt(n.to);return e.resolve(c)}),r=Je(()=>{const{matched:c}=s.value,{length:d}=c,u=c[d-1],_=t.matched;if(!u||!_.length)return-1;const m=_.findIndex(ua.bind(null,u));if(m>-1)return m;const h=dv(c[d-2]);return d>1&&dv(u)===h&&_[_.length-1].path!==h?_.findIndex(ua.bind(null,c[d-2])):m}),i=Je(()=>r.value>-1&&q3(t.params,s.value.params)),o=Je(()=>r.value>-1&&r.value===t.matched.length-1&&wA(t.params,s.value.params));function a(c={}){return H3(c)?e[bt(n.replace)?"replace":"push"](bt(n.to)).catch(Tl):Promise.resolve()}return{route:s,href:Je(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}const z3=cn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:cv,setup(n,{slots:e}){const t=Hn(cv(n)),{options:s}=is(d0),r=Je(()=>({[uv(n.activeClass,s.linkActiveClass,"router-link-active")]:t.isActive,[uv(n.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const i=e.default&&e.default(t);return n.custom?i:e0("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},i)}}}),Xd=z3;function H3(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function q3(n,e){for(const t in e){const s=e[t],r=n[t];if(typeof s=="string"){if(s!==r)return!1}else if(!Hs(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function dv(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const uv=(n,e,t)=>n??e??t,Y3=cn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const s=is(Xg),r=Je(()=>n.route||s.value),i=is(lv,0),o=Je(()=>{let d=bt(i);const{matched:u}=r.value;let _;for(;(_=u[d])&&!_.components;)d++;return d}),a=Je(()=>r.value.matched[o.value]);na(lv,Je(()=>o.value+1)),na(V3,a),na(Xg,r);const c=ot();return Tn(()=>[c.value,a.value,n.name],([d,u,_],[m,h,f])=>{u&&(u.instances[_]=d,h&&h!==u&&d&&d===m&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),d&&u&&(!h||!ua(u,h)||!m)&&(u.enterCallbacks[_]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=r.value,u=n.name,_=a.value,m=_&&_.components[u];if(!m)return pv(t.default,{Component:m,route:d});const h=_.props[u],f=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=e0(m,Ft({},f,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(_.instances[u]=null)},ref:c}));return pv(t.default,{Component:b,route:d})||b}}});function pv(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const IA=Y3;function $3(n){const e=D3(n.routes,n),t=n.parseQuery||B3,s=n.stringifyQuery||av,r=n.history,i=tl(),o=tl(),a=tl(),c=zI(Wr);let d=Wr;Yo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=$p.bind(null,Q=>""+Q),_=$p.bind(null,a3),m=$p.bind(null,Hl);function h(Q,fe){let _e,Ae;return AA(Q)?(_e=e.getRecordMatcher(Q),Ae=fe):Ae=Q,e.addRoute(Ae,_e)}function f(Q){const fe=e.getRecordMatcher(Q);fe&&e.removeRoute(fe)}function y(){return e.getRoutes().map(Q=>Q.record)}function b(Q){return!!e.getRecordMatcher(Q)}function g(Q,fe){if(fe=Ft({},fe||c.value),typeof Q=="string"){const P=Wp(t,Q,fe.path),Z=e.resolve({path:P.path},fe),de=r.createHref(P.fullPath);return Ft(P,Z,{params:m(Z.params),hash:Hl(P.hash),redirectedFrom:void 0,href:de})}let _e;if(Q.path!=null)_e=Ft({},Q,{path:Wp(t,Q.path,fe.path).path});else{const P=Ft({},Q.params);for(const Z in P)P[Z]==null&&delete P[Z];_e=Ft({},Q,{params:_(P)}),fe.params=_(fe.params)}const Ae=e.resolve(_e,fe),Ue=Q.hash||"";Ae.params=u(m(Ae.params));const te=d3(s,Ft({},Q,{hash:r3(Ue),path:Ae.path})),U=r.createHref(te);return Ft({fullPath:te,hash:Ue,query:s===av?G3(Q.query):Q.query||{}},Ae,{redirectedFrom:void 0,href:U})}function E(Q){return typeof Q=="string"?Wp(t,Q,c.value.path):Ft({},Q)}function v(Q,fe){if(d!==Q)return pa(8,{from:fe,to:Q})}function S(Q){return A(Q)}function R(Q){return S(Ft(E(Q),{replace:!0}))}function w(Q){const fe=Q.matched[Q.matched.length-1];if(fe&&fe.redirect){const{redirect:_e}=fe;let Ae=typeof _e=="function"?_e(Q):_e;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=E(Ae):{path:Ae},Ae.params={}),Ft({query:Q.query,hash:Q.hash,params:Ae.path!=null?{}:Q.params},Ae)}}function A(Q,fe){const _e=d=g(Q),Ae=c.value,Ue=Q.state,te=Q.force,U=Q.replace===!0,P=w(_e);if(P)return A(Ft(E(P),{state:typeof P=="object"?Ft({},Ue,P.state):Ue,force:te,replace:U}),fe||_e);const Z=_e;Z.redirectedFrom=fe;let de;return!te&&u3(s,Ae,_e)&&(de=pa(16,{to:Z,from:Ae}),ye(Ae,Ae,!0,!1)),(de?Promise.resolve(de):M(Z,Ae)).catch(pe=>hr(pe)?hr(pe,2)?pe:oe(pe):W(pe,Z,Ae)).then(pe=>{if(pe){if(hr(pe,2))return A(Ft({replace:U},E(pe.to),{state:typeof pe.to=="object"?Ft({},Ue,pe.to.state):Ue,force:te}),fe||Z)}else pe=V(Z,Ae,!0,U,Ue);return G(Z,Ae,pe),pe})}function I(Q,fe){const _e=v(Q,fe);return _e?Promise.reject(_e):Promise.resolve()}function C(Q){const fe=ve.values().next().value;return fe&&typeof fe.runWithContext=="function"?fe.runWithContext(Q):Q()}function M(Q,fe){let _e;const[Ae,Ue,te]=W3(Q,fe);_e=Kp(Ae.reverse(),"beforeRouteLeave",Q,fe);for(const P of Ae)P.leaveGuards.forEach(Z=>{_e.push(ri(Z,Q,fe))});const U=I.bind(null,Q,fe);return _e.push(U),De(_e).then(()=>{_e=[];for(const P of i.list())_e.push(ri(P,Q,fe));return _e.push(U),De(_e)}).then(()=>{_e=Kp(Ue,"beforeRouteUpdate",Q,fe);for(const P of Ue)P.updateGuards.forEach(Z=>{_e.push(ri(Z,Q,fe))});return _e.push(U),De(_e)}).then(()=>{_e=[];for(const P of te)if(P.beforeEnter)if(Hs(P.beforeEnter))for(const Z of P.beforeEnter)_e.push(ri(Z,Q,fe));else _e.push(ri(P.beforeEnter,Q,fe));return _e.push(U),De(_e)}).then(()=>(Q.matched.forEach(P=>P.enterCallbacks={}),_e=Kp(te,"beforeRouteEnter",Q,fe,C),_e.push(U),De(_e))).then(()=>{_e=[];for(const P of o.list())_e.push(ri(P,Q,fe));return _e.push(U),De(_e)}).catch(P=>hr(P,8)?P:Promise.reject(P))}function G(Q,fe,_e){a.list().forEach(Ae=>C(()=>Ae(Q,fe,_e)))}function V(Q,fe,_e,Ae,Ue){const te=v(Q,fe);if(te)return te;const U=fe===Wr,P=Yo?history.state:{};_e&&(Ae||U?r.replace(Q.fullPath,Ft({scroll:U&&P&&P.scroll},Ue)):r.push(Q.fullPath,Ue)),c.value=Q,ye(Q,fe,_e,U),oe()}let ee;function O(){ee||(ee=r.listen((Q,fe,_e)=>{if(!Oe.listening)return;const Ae=g(Q),Ue=w(Ae);if(Ue){A(Ft(Ue,{replace:!0}),Ae).catch(Tl);return}d=Ae;const te=c.value;Yo&&y3(ZE(te.fullPath,_e.delta),Ku()),M(Ae,te).catch(U=>hr(U,12)?U:hr(U,2)?(A(U.to,Ae).then(P=>{hr(P,20)&&!_e.delta&&_e.type===ql.pop&&r.go(-1,!1)}).catch(Tl),Promise.reject()):(_e.delta&&r.go(-_e.delta,!1),W(U,Ae,te))).then(U=>{U=U||V(Ae,te,!1),U&&(_e.delta&&!hr(U,8)?r.go(-_e.delta,!1):_e.type===ql.pop&&hr(U,20)&&r.go(-1,!1)),G(Ae,te,U)}).catch(Tl)}))}let H=tl(),q=tl(),L;function W(Q,fe,_e){oe(Q);const Ae=q.list();return Ae.length?Ae.forEach(Ue=>Ue(Q,fe,_e)):console.error(Q),Promise.reject(Q)}function se(){return L&&c.value!==Wr?Promise.resolve():new Promise((Q,fe)=>{H.add([Q,fe])})}function oe(Q){return L||(L=!Q,O(),H.list().forEach(([fe,_e])=>Q?_e(Q):fe()),H.reset()),Q}function ye(Q,fe,_e,Ae){const{scrollBehavior:Ue}=n;if(!Yo||!Ue)return Promise.resolve();const te=!_e&&E3(ZE(Q.fullPath,0))||(Ae||!_e)&&history.state&&history.state.scroll||null;return Fe().then(()=>Ue(Q,fe,te)).then(U=>U&&b3(U)).catch(U=>W(U,Q,fe))}const xe=Q=>r.go(Q);let ce;const ve=new Set,Oe={currentRoute:c,listening:!0,addRoute:h,removeRoute:f,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:y,resolve:g,options:n,push:S,replace:R,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:q.add,isReady:se,install(Q){const fe=this;Q.component("RouterLink",Xd),Q.component("RouterView",IA),Q.config.globalProperties.$router=fe,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>bt(c)}),Yo&&!ce&&c.value===Wr&&(ce=!0,S(r.location).catch(Ue=>{}));const _e={};for(const Ue in Wr)Object.defineProperty(_e,Ue,{get:()=>c.value[Ue],enumerable:!0});Q.provide(d0,fe),Q.provide(u0,F2(_e)),Q.provide(Xg,c);const Ae=Q.unmount;ve.add(Q),Q.unmount=function(){ve.delete(Q),ve.size<1&&(d=Wr,ee&&ee(),ee=null,c.value=Wr,ce=!1,L=!1),Ae()}}};function De(Q){return Q.reduce((fe,_e)=>fe.then(()=>C(_e)),Promise.resolve())}return Oe}function W3(n,e){const t=[],s=[],r=[],i=Math.max(e.matched.length,n.matched.length);for(let o=0;oua(d,a))?s.push(a):t.push(a));const c=n.matched[o];c&&(e.matched.find(d=>ua(d,c))||r.push(c))}return[t,s,r]}function K3(n){return is(u0)}const j3="modulepreload",Q3=function(n){return"/"+n},fv={},jp=function(e,t,s){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(c=>{if(c=Q3(c),c in fv)return;fv[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const _=document.createElement("link");if(_.rel=d?"stylesheet":j3,d||(_.as="script"),_.crossOrigin="",_.href=c,a&&_.setAttribute("nonce",a),document.head.appendChild(_),d)return new Promise((m,h)=>{_.addEventListener("load",m),_.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},X3={class:"sticky top-0 z-50 w-full bg-transparent"},Z3={class:"container mx-auto px-4"},J3={class:"flex items-center justify-between h-16"},e4={class:"hidden md:block"},t4={class:"flex items-center space-x-4"},n4={class:"flex items-center space-x-1"},s4={key:0,class:"ml-1 text-xs","aria-hidden":"true"},r4={class:"md:hidden"},i4={class:"px-2 pt-2 pb-3 space-y-1"},o4={class:"flex items-center justify-between"},a4={key:0,class:"text-xs","aria-hidden":"true"},l4={name:"Navigation"},c4=Object.assign(l4,{setup(n){const e=K3(),t=ot(0),s=ot([]),r=ot(!1),i=[{active:!0,route:"discussions",text:"Discussions"},{active:!0,route:"playground",text:"Playground"},{active:!0,route:"PersonalitiesZoo",text:"Personalities Zoo"},{active:!0,route:"AppsZoo",text:"Apps Zoo"},{active:!1,route:"AutoSD",text:"Auto111-SD",condition:()=>Ps.state.config.enable_sd_service||Ps.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Ps.state.config.enable_comfyui_service||Ps.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Ps.state.config.active_tts_service!=="None"&&Ps.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],o=Je(()=>Ps.state.ready?i.filter(u=>u.condition?u.condition():u.active):i.filter(u=>u.active));cr(()=>{a()}),Tn(()=>e.name,a);function a(){const u=o.value.findIndex(_=>_.route===e.name);u!==-1&&(t.value=u)}function c(u){return e.name===u}function d(u){t.value=u}return(u,_)=>(T(),x("div",X3,[l("nav",Z3,[l("div",J3,[l("div",e4,[l("div",t4,[(T(!0),x(Be,null,Ke(o.value,(m,h)=>(T(),at(bt(Xd),{key:h,to:{name:m.route},class:Le(["px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":c(m.route)}]),onClick:f=>d(h),ref_for:!0,ref_key:"menuItems",ref:s},{default:Ie(()=>[l("div",n4,[Ze(Y(m.text)+" ",1),c(m.route)?(T(),x("span",s4," ✨ ")):B("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])]),l("div",r4,[l("button",{onClick:_[0]||(_[0]=m=>r.value=!r.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none"},[(T(),x("svg",{class:Le(["h-6 w-6",{hidden:r.value,block:!r.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},_[1]||(_[1]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)]),2)),(T(),x("svg",{class:Le(["h-6 w-6",{block:r.value,hidden:!r.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},_[2]||(_[2]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]),2))])])]),l("div",{class:Le([{block:r.value,hidden:!r.value},"md:hidden"])},[l("div",i4,[(T(!0),x(Be,null,Ke(o.value,(m,h)=>(T(),at(bt(Xd),{key:h,to:{name:m.route},class:Le(["block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200 ease-in-out text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":c(m.route)}]),onClick:f=>{d(h),r.value=!1}},{default:Ie(()=>[l("div",o4,[Ze(Y(m.text)+" ",1),c(m.route)?(T(),x("span",a4," ✨ ")):B("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])],2)])]))}}),rt=(n,e)=>{const t=n.__vccOpts||n;for(const[s,r]of e)t[s]=r;return t},d4={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(n){this.href==="#"&&(n.preventDefault(),this.$emit("click"))}}},u4=["href","title"],p4=["data-feather"];function f4(n,e,t,s,r,i){return T(),x("a",{href:t.href,onClick:e[0]||(e[0]=(...o)=>i.onClick&&i.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[l("i",{"data-feather":t.icon},null,8,p4)],8,u4)}const kA=rt(d4,[["render",f4]]),_4={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},m4=["href","title"],h4=["data-feather"],g4={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},b4={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function y4(n,e,t,s,r,i){return T(),x("a",{href:t.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[t.icon!=="x"&&t.icon!=="discord"?(T(),x("i",{key:0,"data-feather":t.icon},null,8,h4)):t.icon==="x"?(T(),x("svg",g4,e[0]||(e[0]=[l("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)]))):t.icon==="discord"?(T(),x("svg",b4,e[1]||(e[1]=[l("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},null,-1)]))):B("",!0)],8,m4)}const DA=rt(_4,[["render",y4]]);var LA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ri(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function E4(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(s){var r=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return n[s]}})}),t}var PA={exports:{}};(function(n,e){(function(s,r){n.exports=r()})(typeof self<"u"?self:LA,function(){return function(t){var s={};function r(i){if(s[i])return s[i].exports;var o=s[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=s,r.d=function(i,o,a){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:a})},r.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(t,s,r){var i,o;/*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(){var a=function(){function c(){}c.prototype=Object.create(null);function d(g,E){for(var v=E.length,S=0;S1?arguments[1]:void 0,E=g!==void 0,v=0,S=_(f),R,w,A,I;if(E&&(g=i(g,b>2?arguments[2]:void 0,2)),S!=null&&!(y==Array&&c(S)))for(I=S.call(f),w=new y;!(A=I.next()).done;v++)u(w,v,E?a(I,g,[A.value,v],!0):A.value);else for(R=d(f.length),w=new y(R);R>v;v++)u(w,v,E?g(f[v],v):f[v]);return w.length=v,w}},"./node_modules/core-js/internals/array-includes.js":function(t,s,r){var i=r("./node_modules/core-js/internals/to-indexed-object.js"),o=r("./node_modules/core-js/internals/to-length.js"),a=r("./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(c){return function(d,u,_){var m=i(d),h=o(m.length),f=a(_,h),y;if(c&&u!=u){for(;h>f;)if(y=m[f++],y!=y)return!0}else for(;h>f;f++)if((c||f in m)&&m[f]===u)return c||f||0;return!c&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(t,s,r){var i=r("./node_modules/core-js/internals/a-function.js");t.exports=function(o,a,c){if(i(o),a===void 0)return o;switch(c){case 0:return function(){return o.call(a)};case 1:return function(d){return o.call(a,d)};case 2:return function(d,u){return o.call(a,d,u)};case 3:return function(d,u,_){return o.call(a,d,u,_)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(t,s,r){var i=r("./node_modules/core-js/internals/an-object.js");t.exports=function(o,a,c,d){try{return d?a(i(c)[0],c[1]):a(c)}catch(_){var u=o.return;throw u!==void 0&&i(u.call(o)),_}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(t,s,r){var i=r("./node_modules/core-js/internals/well-known-symbol.js"),o=i("iterator"),a=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){a=!0}};d[o]=function(){return this},Array.from(d,function(){throw 2})}catch{}t.exports=function(u,_){if(!_&&!a)return!1;var m=!1;try{var h={};h[o]=function(){return{next:function(){return{done:m=!0}}}},u(h)}catch{}return m}},"./node_modules/core-js/internals/classof-raw.js":function(t,s){var r={}.toString;t.exports=function(i){return r.call(i).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,s,r){var i=r("./node_modules/core-js/internals/classof-raw.js"),o=r("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),c=i(function(){return arguments}())=="Arguments",d=function(u,_){try{return u[_]}catch{}};t.exports=function(u){var _,m,h;return u===void 0?"Undefined":u===null?"Null":typeof(m=d(_=Object(u),a))=="string"?m:c?i(_):(h=i(_))=="Object"&&typeof _.callee=="function"?"Arguments":h}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,s,r){var i=r("./node_modules/core-js/internals/has.js"),o=r("./node_modules/core-js/internals/own-keys.js"),a=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),c=r("./node_modules/core-js/internals/object-define-property.js");t.exports=function(d,u){for(var _=o(u),m=c.f,h=a.f,f=0;f<_.length;f++){var y=_[f];i(d,y)||m(d,y,h(u,y))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(t,s,r){var i=r("./node_modules/core-js/internals/fails.js");t.exports=!i(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},"./node_modules/core-js/internals/create-iterator-constructor.js":function(t,s,r){var i=r("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=r("./node_modules/core-js/internals/object-create.js"),a=r("./node_modules/core-js/internals/create-property-descriptor.js"),c=r("./node_modules/core-js/internals/set-to-string-tag.js"),d=r("./node_modules/core-js/internals/iterators.js"),u=function(){return this};t.exports=function(_,m,h){var f=m+" Iterator";return _.prototype=o(i,{next:a(1,h)}),c(_,f,!1,!0),d[f]=u,_}},"./node_modules/core-js/internals/create-property-descriptor.js":function(t,s){t.exports=function(r,i){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:i}}},"./node_modules/core-js/internals/create-property.js":function(t,s,r){var i=r("./node_modules/core-js/internals/to-primitive.js"),o=r("./node_modules/core-js/internals/object-define-property.js"),a=r("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=function(c,d,u){var _=i(d);_ in c?o.f(c,_,a(0,u)):c[_]=u}},"./node_modules/core-js/internals/define-iterator.js":function(t,s,r){var i=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/create-iterator-constructor.js"),a=r("./node_modules/core-js/internals/object-get-prototype-of.js"),c=r("./node_modules/core-js/internals/object-set-prototype-of.js"),d=r("./node_modules/core-js/internals/set-to-string-tag.js"),u=r("./node_modules/core-js/internals/hide.js"),_=r("./node_modules/core-js/internals/redefine.js"),m=r("./node_modules/core-js/internals/well-known-symbol.js"),h=r("./node_modules/core-js/internals/is-pure.js"),f=r("./node_modules/core-js/internals/iterators.js"),y=r("./node_modules/core-js/internals/iterators-core.js"),b=y.IteratorPrototype,g=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),v="keys",S="values",R="entries",w=function(){return this};t.exports=function(A,I,C,M,G,V,ee){o(C,I,M);var O=function(ve){if(ve===G&&se)return se;if(!g&&ve in L)return L[ve];switch(ve){case v:return function(){return new C(this,ve)};case S:return function(){return new C(this,ve)};case R:return function(){return new C(this,ve)}}return function(){return new C(this)}},H=I+" Iterator",q=!1,L=A.prototype,W=L[E]||L["@@iterator"]||G&&L[G],se=!g&&W||O(G),oe=I=="Array"&&L.entries||W,ye,xe,ce;if(oe&&(ye=a(oe.call(new A)),b!==Object.prototype&&ye.next&&(!h&&a(ye)!==b&&(c?c(ye,b):typeof ye[E]!="function"&&u(ye,E,w)),d(ye,H,!0,!0),h&&(f[H]=w))),G==S&&W&&W.name!==S&&(q=!0,se=function(){return W.call(this)}),(!h||ee)&&L[E]!==se&&u(L,E,se),f[I]=se,G)if(xe={values:O(S),keys:V?se:O(v),entries:O(R)},ee)for(ce in xe)(g||q||!(ce in L))&&_(L,ce,xe[ce]);else i({target:I,proto:!0,forced:g||q},xe);return xe}},"./node_modules/core-js/internals/descriptors.js":function(t,s,r){var i=r("./node_modules/core-js/internals/fails.js");t.exports=!i(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/document-create-element.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/is-object.js"),a=i.document,c=o(a)&&o(a.createElement);t.exports=function(d){return c?a.createElement(d):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":function(t,s){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=r("./node_modules/core-js/internals/hide.js"),c=r("./node_modules/core-js/internals/redefine.js"),d=r("./node_modules/core-js/internals/set-global.js"),u=r("./node_modules/core-js/internals/copy-constructor-properties.js"),_=r("./node_modules/core-js/internals/is-forced.js");t.exports=function(m,h){var f=m.target,y=m.global,b=m.stat,g,E,v,S,R,w;if(y?E=i:b?E=i[f]||d(f,{}):E=(i[f]||{}).prototype,E)for(v in h){if(R=h[v],m.noTargetGet?(w=o(E,v),S=w&&w.value):S=E[v],g=_(y?v:f+(b?".":"#")+v,m.forced),!g&&S!==void 0){if(typeof R==typeof S)continue;u(R,S)}(m.sham||S&&S.sham)&&a(R,"sham",!0),c(E,v,R,m)}}},"./node_modules/core-js/internals/fails.js":function(t,s){t.exports=function(r){try{return!!r()}catch{return!0}}},"./node_modules/core-js/internals/function-to-string.js":function(t,s,r){var i=r("./node_modules/core-js/internals/shared.js");t.exports=i("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":function(t,s,r){var i=r("./node_modules/core-js/internals/classof.js"),o=r("./node_modules/core-js/internals/iterators.js"),a=r("./node_modules/core-js/internals/well-known-symbol.js"),c=a("iterator");t.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||o[i(d)]}},"./node_modules/core-js/internals/global.js":function(t,s,r){(function(i){var o="object",a=function(c){return c&&c.Math==Math&&c};t.exports=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof i==o&&i)||Function("return this")()}).call(this,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":function(t,s){var r={}.hasOwnProperty;t.exports=function(i,o){return r.call(i,o)}},"./node_modules/core-js/internals/hidden-keys.js":function(t,s){t.exports={}},"./node_modules/core-js/internals/hide.js":function(t,s,r){var i=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/object-define-property.js"),a=r("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=i?function(c,d,u){return o.f(c,d,a(1,u))}:function(c,d,u){return c[d]=u,c}},"./node_modules/core-js/internals/html.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=i.document;t.exports=o&&o.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":function(t,s,r){var i=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/fails.js"),a=r("./node_modules/core-js/internals/document-create-element.js");t.exports=!i&&!o(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(t,s,r){var i=r("./node_modules/core-js/internals/fails.js"),o=r("./node_modules/core-js/internals/classof-raw.js"),a="".split;t.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return o(c)=="String"?a.call(c,""):Object(c)}:Object},"./node_modules/core-js/internals/internal-state.js":function(t,s,r){var i=r("./node_modules/core-js/internals/native-weak-map.js"),o=r("./node_modules/core-js/internals/global.js"),a=r("./node_modules/core-js/internals/is-object.js"),c=r("./node_modules/core-js/internals/hide.js"),d=r("./node_modules/core-js/internals/has.js"),u=r("./node_modules/core-js/internals/shared-key.js"),_=r("./node_modules/core-js/internals/hidden-keys.js"),m=o.WeakMap,h,f,y,b=function(A){return y(A)?f(A):h(A,{})},g=function(A){return function(I){var C;if(!a(I)||(C=f(I)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return C}};if(i){var E=new m,v=E.get,S=E.has,R=E.set;h=function(A,I){return R.call(E,A,I),I},f=function(A){return v.call(E,A)||{}},y=function(A){return S.call(E,A)}}else{var w=u("state");_[w]=!0,h=function(A,I){return c(A,w,I),I},f=function(A){return d(A,w)?A[w]:{}},y=function(A){return d(A,w)}}t.exports={set:h,get:f,has:y,enforce:b,getterFor:g}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(t,s,r){var i=r("./node_modules/core-js/internals/well-known-symbol.js"),o=r("./node_modules/core-js/internals/iterators.js"),a=i("iterator"),c=Array.prototype;t.exports=function(d){return d!==void 0&&(o.Array===d||c[a]===d)}},"./node_modules/core-js/internals/is-forced.js":function(t,s,r){var i=r("./node_modules/core-js/internals/fails.js"),o=/#|\.prototype\./,a=function(m,h){var f=d[c(m)];return f==_?!0:f==u?!1:typeof h=="function"?i(h):!!h},c=a.normalize=function(m){return String(m).replace(o,".").toLowerCase()},d=a.data={},u=a.NATIVE="N",_=a.POLYFILL="P";t.exports=a},"./node_modules/core-js/internals/is-object.js":function(t,s){t.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},"./node_modules/core-js/internals/is-pure.js":function(t,s){t.exports=!1},"./node_modules/core-js/internals/iterators-core.js":function(t,s,r){var i=r("./node_modules/core-js/internals/object-get-prototype-of.js"),o=r("./node_modules/core-js/internals/hide.js"),a=r("./node_modules/core-js/internals/has.js"),c=r("./node_modules/core-js/internals/well-known-symbol.js"),d=r("./node_modules/core-js/internals/is-pure.js"),u=c("iterator"),_=!1,m=function(){return this},h,f,y;[].keys&&(y=[].keys(),"next"in y?(f=i(i(y)),f!==Object.prototype&&(h=f)):_=!0),h==null&&(h={}),!d&&!a(h,u)&&o(h,u,m),t.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:_}},"./node_modules/core-js/internals/iterators.js":function(t,s){t.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(t,s,r){var i=r("./node_modules/core-js/internals/fails.js");t.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},"./node_modules/core-js/internals/native-weak-map.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/function-to-string.js"),a=i.WeakMap;t.exports=typeof a=="function"&&/native code/.test(o.call(a))},"./node_modules/core-js/internals/object-create.js":function(t,s,r){var i=r("./node_modules/core-js/internals/an-object.js"),o=r("./node_modules/core-js/internals/object-define-properties.js"),a=r("./node_modules/core-js/internals/enum-bug-keys.js"),c=r("./node_modules/core-js/internals/hidden-keys.js"),d=r("./node_modules/core-js/internals/html.js"),u=r("./node_modules/core-js/internals/document-create-element.js"),_=r("./node_modules/core-js/internals/shared-key.js"),m=_("IE_PROTO"),h="prototype",f=function(){},y=function(){var b=u("iframe"),g=a.length,E="<",v="script",S=">",R="java"+v+":",w;for(b.style.display="none",d.appendChild(b),b.src=String(R),w=b.contentWindow.document,w.open(),w.write(E+v+S+"document.F=Object"+E+"/"+v+S),w.close(),y=w.F;g--;)delete y[h][a[g]];return y()};t.exports=Object.create||function(g,E){var v;return g!==null?(f[h]=i(g),v=new f,f[h]=null,v[m]=g):v=y(),E===void 0?v:o(v,E)},c[m]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(t,s,r){var i=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/object-define-property.js"),a=r("./node_modules/core-js/internals/an-object.js"),c=r("./node_modules/core-js/internals/object-keys.js");t.exports=i?Object.defineProperties:function(u,_){a(u);for(var m=c(_),h=m.length,f=0,y;h>f;)o.f(u,y=m[f++],_[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(t,s,r){var i=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/ie8-dom-define.js"),a=r("./node_modules/core-js/internals/an-object.js"),c=r("./node_modules/core-js/internals/to-primitive.js"),d=Object.defineProperty;s.f=i?d:function(_,m,h){if(a(_),m=c(m,!0),a(h),o)try{return d(_,m,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(_[m]=h.value),_}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,s,r){var i=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=r("./node_modules/core-js/internals/create-property-descriptor.js"),c=r("./node_modules/core-js/internals/to-indexed-object.js"),d=r("./node_modules/core-js/internals/to-primitive.js"),u=r("./node_modules/core-js/internals/has.js"),_=r("./node_modules/core-js/internals/ie8-dom-define.js"),m=Object.getOwnPropertyDescriptor;s.f=i?m:function(f,y){if(f=c(f),y=d(y,!0),_)try{return m(f,y)}catch{}if(u(f,y))return a(!o.f.call(f,y),f[y])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,s,r){var i=r("./node_modules/core-js/internals/object-keys-internal.js"),o=r("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(d){return i(d,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(t,s){s.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(t,s,r){var i=r("./node_modules/core-js/internals/has.js"),o=r("./node_modules/core-js/internals/to-object.js"),a=r("./node_modules/core-js/internals/shared-key.js"),c=r("./node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(_){return _=o(_),i(_,d)?_[d]:typeof _.constructor=="function"&&_ instanceof _.constructor?_.constructor.prototype:_ instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,s,r){var i=r("./node_modules/core-js/internals/has.js"),o=r("./node_modules/core-js/internals/to-indexed-object.js"),a=r("./node_modules/core-js/internals/array-includes.js"),c=r("./node_modules/core-js/internals/hidden-keys.js"),d=a(!1);t.exports=function(u,_){var m=o(u),h=0,f=[],y;for(y in m)!i(c,y)&&i(m,y)&&f.push(y);for(;_.length>h;)i(m,y=_[h++])&&(~d(f,y)||f.push(y));return f}},"./node_modules/core-js/internals/object-keys.js":function(t,s,r){var i=r("./node_modules/core-js/internals/object-keys-internal.js"),o=r("./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(c){return i(c,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,s,r){var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!i.call({1:2},1);s.f=a?function(d){var u=o(this,d);return!!u&&u.enumerable}:i},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,s,r){var i=r("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),o=a instanceof Array}catch{}return function(u,_){return i(u,_),o?c.call(u,_):u.__proto__=_,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/object-get-own-property-names.js"),a=r("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=r("./node_modules/core-js/internals/an-object.js"),d=i.Reflect;t.exports=d&&d.ownKeys||function(_){var m=o.f(c(_)),h=a.f;return h?m.concat(h(_)):m}},"./node_modules/core-js/internals/path.js":function(t,s,r){t.exports=r("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/shared.js"),a=r("./node_modules/core-js/internals/hide.js"),c=r("./node_modules/core-js/internals/has.js"),d=r("./node_modules/core-js/internals/set-global.js"),u=r("./node_modules/core-js/internals/function-to-string.js"),_=r("./node_modules/core-js/internals/internal-state.js"),m=_.get,h=_.enforce,f=String(u).split("toString");o("inspectSource",function(y){return u.call(y)}),(t.exports=function(y,b,g,E){var v=E?!!E.unsafe:!1,S=E?!!E.enumerable:!1,R=E?!!E.noTargetGet:!1;if(typeof g=="function"&&(typeof b=="string"&&!c(g,"name")&&a(g,"name",b),h(g).source=f.join(typeof b=="string"?b:"")),y===i){S?y[b]=g:d(b,g);return}else v?!R&&y[b]&&(S=!0):delete y[b];S?y[b]=g:a(y,b,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&m(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(t,s){t.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},"./node_modules/core-js/internals/set-global.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/hide.js");t.exports=function(a,c){try{o(i,a,c)}catch{i[a]=c}return c}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,s,r){var i=r("./node_modules/core-js/internals/object-define-property.js").f,o=r("./node_modules/core-js/internals/has.js"),a=r("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toStringTag");t.exports=function(d,u,_){d&&!o(d=_?d:d.prototype,c)&&i(d,c,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(t,s,r){var i=r("./node_modules/core-js/internals/shared.js"),o=r("./node_modules/core-js/internals/uid.js"),a=i("keys");t.exports=function(c){return a[c]||(a[c]=o(c))}},"./node_modules/core-js/internals/shared.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/set-global.js"),a=r("./node_modules/core-js/internals/is-pure.js"),c="__core-js_shared__",d=i[c]||o(c,{});(t.exports=function(u,_){return d[u]||(d[u]=_!==void 0?_:{})})("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,s,r){var i=r("./node_modules/core-js/internals/to-integer.js"),o=r("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a,c,d){var u=String(o(a)),_=i(c),m=u.length,h,f;return _<0||_>=m?d?"":void 0:(h=u.charCodeAt(_),h<55296||h>56319||_+1===m||(f=u.charCodeAt(_+1))<56320||f>57343?d?u.charAt(_):h:d?u.slice(_,_+2):(h-55296<<10)+(f-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,s,r){var i=r("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;t.exports=function(c,d){var u=i(c);return u<0?o(u+d,0):a(u,d)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,s,r){var i=r("./node_modules/core-js/internals/indexed-object.js"),o=r("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a){return i(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(t,s){var r=Math.ceil,i=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?i:r)(o)}},"./node_modules/core-js/internals/to-length.js":function(t,s,r){var i=r("./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(a){return a>0?o(i(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,s,r){var i=r("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(o){return Object(i(o))}},"./node_modules/core-js/internals/to-primitive.js":function(t,s,r){var i=r("./node_modules/core-js/internals/is-object.js");t.exports=function(o,a){if(!i(o))return o;var c,d;if(a&&typeof(c=o.toString)=="function"&&!i(d=c.call(o))||typeof(c=o.valueOf)=="function"&&!i(d=c.call(o))||!a&&typeof(c=o.toString)=="function"&&!i(d=c.call(o)))return d;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(t,s){var r=0,i=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++r+i).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(t,s,r){var i=r("./node_modules/core-js/internals/is-object.js"),o=r("./node_modules/core-js/internals/an-object.js");t.exports=function(a,c){if(o(a),!i(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(t,s,r){var i=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/shared.js"),a=r("./node_modules/core-js/internals/uid.js"),c=r("./node_modules/core-js/internals/native-symbol.js"),d=i.Symbol,u=o("wks");t.exports=function(_){return u[_]||(u[_]=c&&d[_]||(c?d:a)("Symbol."+_))}},"./node_modules/core-js/modules/es.array.from.js":function(t,s,r){var i=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/array-from.js"),a=r("./node_modules/core-js/internals/check-correctness-of-iteration.js"),c=!a(function(d){Array.from(d)});i({target:"Array",stat:!0,forced:c},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,s,r){var i=r("./node_modules/core-js/internals/string-at.js"),o=r("./node_modules/core-js/internals/internal-state.js"),a=r("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",d=o.set,u=o.getterFor(c);a(String,"String",function(_){d(this,{type:c,string:String(_),index:0})},function(){var m=u(this),h=m.string,f=m.index,y;return f>=h.length?{value:void 0,done:!0}:(y=i(h,f,!0),m.index+=y.length,{value:y,done:!1})})},"./node_modules/webpack/buildin/global.js":function(t,s){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(r=window)}t.exports=r},"./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,s,r){Object.defineProperty(s,"__esModule",{value:!0});var i=Object.assign||function(y){for(var b=1;b2&&arguments[2]!==void 0?arguments[2]:[];m(this,y),this.name=b,this.contents=g,this.tags=E,this.attrs=i({},u.default,{class:"feather feather-"+b})}return o(y,[{key:"toSvg",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=i({},this.attrs,g,{class:(0,c.default)(this.attrs.class,g.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),y}();function f(y){return Object.keys(y).map(function(b){return b+'="'+y[b]+'"'}).join(" ")}s.default=h},"./src/icons.js":function(t,s,r){Object.defineProperty(s,"__esModule",{value:!0});var i=r("./src/icon.js"),o=_(i),a=r("./dist/icons.json"),c=_(a),d=r("./src/tags.json"),u=_(d);function _(m){return m&&m.__esModule?m:{default:m}}s.default=Object.keys(c.default).map(function(m){return new o.default(m,c.default[m],u.default[m])}).reduce(function(m,h){return m[h.name]=h,m},{})},"./src/index.js":function(t,s,r){var i=r("./src/icons.js"),o=_(i),a=r("./src/to-svg.js"),c=_(a),d=r("./src/replace.js"),u=_(d);function _(m){return m&&m.__esModule?m:{default:m}}t.exports={icons:o.default,toSvg:c.default,replace:u.default}},"./src/replace.js":function(t,s,r){Object.defineProperty(s,"__esModule",{value:!0});var i=Object.assign||function(f){for(var y=1;y0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var y=document.querySelectorAll("[data-feather]");Array.from(y).forEach(function(b){return m(b,f)})}function m(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=h(f),g=b["data-feather"];if(delete b["data-feather"],d.default[g]===void 0){console.warn("feather: '"+g+"' is not a valid icon");return}var E=d.default[g].toSvg(i({},y,b,{class:(0,a.default)(y.class,b.class)})),v=new DOMParser().parseFromString(E,"image/svg+xml"),S=v.querySelector("svg");f.parentNode.replaceChild(S,f)}function h(f){return Array.from(f.attributes).reduce(function(y,b){return y[b.name]=b.value,y},{})}s.default=_},"./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,s,r){Object.defineProperty(s,"__esModule",{value:!0});var i=r("./src/icons.js"),o=a(i);function a(d){return d&&d.__esModule?d:{default:d}}function c(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!d)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[d])throw new Error("No icon matching '"+d+"'. See the complete list of icons at https://feathericons.com");return o.default[d].toSvg(u)}s.default=c},0:function(t,s,r){r("./node_modules/core-js/es/array/from.js"),t.exports=r("./src/index.js")}})})})(PA);var v4=PA.exports;const Ve=Ri(v4),S4={name:"TopBar",components:{Navigation:c4,ActionButton:kA,SocialIcon:DA},data(){return{themeDropdownOpen:!1,currentTheme:localStorage.getItem("preferred-theme")||"default",availableThemes:["default","strawberry_milkshake","red_dragon","matrix_reborn","borg","amber","sober_gray","strawberry"],isLoading:!1,error:null,isInfosMenuVisible:!1,isVisible:!1,isPinned:!1,selectedLanguage:"",isLanguageMenuVisible:!1,sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},computed:{isModelOK(){return this.$store.state.isModelOk},isDarkMode(){return document.documentElement.classList.contains("dark")},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},async mounted(){try{document.addEventListener("click",this.handleClickOutside);const n=localStorage.getItem("preferred-theme");n&&this.availableThemes.includes(n)&&(this.currentTheme=n);try{await this.loadTheme(this.currentTheme)}catch(e){this.error="Failed to initialize theme system",console.error(e)}}catch(n){this.error="Failed to initialize theme system",console.error(n)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},async created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),console.log(this.userTheme),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),this.$nextTick(()=>{Ve.replace()})},methods:{handleClickOutside(n){this.$el.contains(n.target)||(this.themeDropdownOpen=!1)},getSavedTheme(){try{return localStorage.getItem("preferred-theme")}catch(n){return console.warn("Failed to access localStorage:",n),null}},saveTheme(n){try{this.clearOldStorageItems(),localStorage.setItem("preferred-theme",n)}catch(e){console.warn("Failed to save theme preference:",e)}},clearOldStorageItems(){try{const n=["preferred-theme"];for(let e=0;ePromise.resolve().then(()=>RYe),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle(),window.dispatchEvent(new Event("themeChanged"))},async selectLanguage(n){await this.$store.dispatch("changeLanguage",n),this.toggleLanguageMenu(),this.language=n},async deleteLanguage(n){await this.$store.dispatch("deleteLanguage",n),this.toggleLanguageMenu(),this.language=n},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,this.$nextTick(()=>{Ve.replace()})},hideInfosMenu(){this.isInfosMenuVisible=!1,this.$nextTick(()=>{Ve.replace()})},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show(),this.$nextTick(()=>{Ve.replace()})},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),this.$nextTick(()=>{jp(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}this.$nextTick(()=>{jp(()=>Promise.resolve({}),__vite__mapDeps([1]))})},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)}}},T4={class:"topbar-content"},x4=["title"],C4=["fill"],w4={class:"relative inline-block"},R4={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},A4={class:"flex gap-3 flex-1 items-center justify-end"},M4={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},N4={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},O4={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},I4={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},k4={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},D4={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},L4={class:"flex items-center space-x-4"},P4={class:"relative group",title:"Lollms News"},F4={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},U4={class:"language-selector relative"},B4={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},G4={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},V4=["onClick"],z4=["onClick"],H4={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},q4={class:"relative inline-flex"},Y4={class:"flex items-center space-x-2"},$4={class:"font-medium"},W4={key:0,class:"absolute left-0 z-50 w-full mt-2 overflow-hidden bg-white dark:bg-gray-800 border border-blue-200 dark:border-blue-700 rounded-lg shadow-lg transform origin-top animate-dropdown"},K4={class:"max-h-60 overflow-y-auto"},j4=["onClick"],Q4={class:"font-medium"};function X4(n,e,t,s,r,i){const o=nt("Navigation"),a=nt("ActionButton"),c=nt("SocialIcon");return T(),x("div",{ref:"topbar-container",class:Le(["topbar-container",{"h-0":!r.isPinned}])},[l("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...d)=>i.show&&i.show(...d)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),l("div",{class:Le(["topbar",{"topbar-hidden":!r.isVisible}]),onMouseleave:e[14]||(e[14]=(...d)=>i.hide&&i.hide(...d))},[l("div",T4,[on(n.$slots,"navigation",{},void 0,!0),l("button",{class:"pin-button",onClick:e[1]||(e[1]=(...d)=>i.togglePin&&i.togglePin(...d)),title:r.isPinned?"Unpin":"Pin"},[(T(),x("svg",{fill:r.isPinned?"#FF0000":"#000000",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 490.125 490.125","xml:space":"preserve"},e[15]||(e[15]=[l("g",null,[l("path",{d:`M300.625,5.025c-6.7-6.7-17.6-6.7-24.3,0l-72.6,72.6c-6.7,6.7-6.7,17.6,0,24.3l16.3,16.3l-40.3,40.3l-63.5-7\r - c-3-0.3-6-0.5-8.9-0.5c-21.7,0-42.2,8.5-57.5,23.8l-20.8,20.8c-6.7,6.7-6.7,17.6,0,24.3l108.5,108.5l-132.4,132.4\r - c-6.7,6.7-6.7,17.6,0,24.3c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5l132.5-132.5l108.5,108.5c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5\r - l20.8-20.8c17.6-17.6,26.1-41.8,23.3-66.4l-7-63.5l40.3-40.3l16.2,16.2c6.7,6.7,17.6,6.7,24.3,0l72.6-72.6c3.2-3.2,5-7.6,5-12.1\r - s-1.8-8.9-5-12.1L300.625,5.025z M400.425,250.025l-16.2-16.3c-6.4-6.4-17.8-6.4-24.3,0l-58.2,58.3c-3.7,3.7-5.5,8.8-4.9,14\r - l7.9,71.6c1.6,14.3-3.3,28.3-13.5,38.4l-8.7,8.7l-217.1-217.1l8.7-8.6c10.1-10.1,24.2-15,38.4-13.5l71.7,7.9\r - c5.2,0.6,10.3-1.2,14-4.9l58.2-58.2c6.7-6.7,6.7-17.6,0-24.3l-16.3-16.3l48.3-48.3l160.3,160.3L400.425,250.025z`})],-1)]),8,C4))],8,x4),z(o),l("div",{class:"toolbar-button",onMouseleave:e[5]||(e[5]=(...d)=>i.hideInfosMenu&&i.hideInfosMenu(...d))},[l("div",w4,[r.isInfosMenuVisible?(T(),x("div",{key:0,onMouseenter:e[3]||(e[3]=(...d)=>i.showInfosMenu&&i.showInfosMenu(...d)),class:"absolute m-0 p-0 z-50 top-full right-0 transform bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",R4,[l("div",A4,[i.isModelOK?(T(),x("div",M4,e[16]||(e[16]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(T(),x("div",N4,e[17]||(e[17]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),i.isGenerating?(T(),x("div",I4,e[19]||(e[19]=[l("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]))):(T(),x("div",O4,e[18]||(e[18]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})],-1)]))),i.isConnected?(T(),x("div",k4,e[20]||(e[20]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(T(),x("div",D4,e[21]||(e[21]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)])))]),l("div",L4,[z(a,{onClick:n.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),z(a,{onClick:i.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),z(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),z(c,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),z(c,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),z(c,{href:"https://x.com/ParisNeo_AI",icon:"x"}),z(c,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),l("div",P4,[l("div",{onClick:e[2]||(e[2]=d=>i.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 text-gray-600 hover:text-primary dark:text-gray-300 dark:hover:text-primary"},e[22]||(e[22]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-full h-full"},[l("path",{d:"M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})],-1)])),e[23]||(e[23]=l("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mt-2 whitespace-nowrap"}," Lollms News ",-1))])])],32)):B("",!0),l("div",{onMouseenter:e[4]||(e[4]=(...d)=>i.showInfosMenu&&i.showInfosMenu(...d)),class:"infos-hover-area"},e[24]||(e[24]=[mi('',1)]),32)])],32),i.is_fun_mode?(T(),x("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300",onClick:e[6]||(e[6]=d=>i.fun_mode_off())},e[25]||(e[25]=[mi('',1)]))):(T(),x("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-8 h-8 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-300",onClick:e[7]||(e[7]=d=>i.fun_mode_on())},e[26]||(e[26]=[mi('',1)]))),l("span",F4,Y(i.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1),l("div",U4,[l("button",{onClick:e[8]||(e[8]=(...d)=>i.toggleLanguageMenu&&i.toggleLanguageMenu(...d)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},Y(n.$store.state.language.slice(0,2)),1),r.isLanguageMenuVisible?(T(),x("div",B4,[l("ul",G4,[(T(!0),x(Be,null,Ke(i.languages,d=>(T(),x("li",{key:d,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[l("button",{onClick:u=>i.deleteLanguage(d),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,V4),l("div",{onClick:u=>i.selectLanguage(d),class:Le({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":d===n.$store.state.language,"flex-grow":!0})},Y(d),11,z4)]))),128)),l("li",H4,[k(l("input",{type:"text","onUpdate:modelValue":e[9]||(e[9]=d=>n.customLanguage=d),onKeyup:e[10]||(e[10]=ws($((...d)=>n.addCustomLanguage&&n.addCustomLanguage(...d),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[ae,n.customLanguage]])])])],512)):B("",!0)]),i.isDarkMode?(T(),x("div",{key:2,class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:e[11]||(e[11]=d=>i.themeSwitch())},e[27]||(e[27]=[l("i",{"data-feather":"sun"},null,-1)]))):(T(),x("div",{key:3,class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:e[12]||(e[12]=d=>i.themeSwitch())},e[28]||(e[28]=[l("i",{"data-feather":"moon"},null,-1)]))),l("div",q4,[l("button",{onClick:e[13]||(e[13]=d=>r.themeDropdownOpen=!r.themeDropdownOpen),class:"inline-flex items-center justify-between min-w-[120px] px-4 py-2 bg-gradient-to-r from-blue-500/10 to-purple-500/10 dark:from-blue-400/20 dark:to-purple-400/20 border border-blue-200 dark:border-blue-700 rounded-lg shadow-sm text-gray-700 dark:text-gray-200 hover:border-blue-300 dark:hover:border-blue-600 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-all duration-300 ease-in-out backdrop-blur-sm"},[l("div",Y4,[e[29]||(e[29]=l("svg",{class:"w-5 h-5 text-blue-500 dark:text-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})],-1)),l("span",$4,Y(r.currentTheme),1)]),(T(),x("svg",{class:Le(["w-5 h-5 text-blue-500 dark:text-blue-400 transition-transform duration-300",{"rotate-180":r.themeDropdownOpen}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e[30]||(e[30]=[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)]),2))]),r.themeDropdownOpen?(T(),x("div",W4,[l("div",K4,[(T(!0),x(Be,null,Ke(r.availableThemes,d=>(T(),x("a",{key:d,onClick:u=>{i.loadTheme(d),r.currentTheme=d,r.themeDropdownOpen=!1},class:"flex items-center space-x-2 px-4 py-3 text-gray-700 dark:text-gray-200 hover:bg-gradient-to-r hover:from-blue-50 hover:to-purple-50 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 cursor-pointer transition-colors duration-150 group"},[e[31]||(e[31]=l("div",{class:"w-2 h-2 rounded-full bg-blue-400 group-hover:bg-blue-500 transition-colors duration-150"},null,-1)),l("span",Q4,Y(d),1)],8,j4))),128))])])):B("",!0)])])],34)],2)}const Z4=rt(S4,[["render",X4],["__scopeId","data-v-13593b99"]]),J4={class:"flex overflow-hidden flex-grow w-full"},e5={__name:"App",setup(n){return(e,t)=>(T(),x("div",{class:Le([e.currentTheme,"flex flex-col h-screen font-sans background-color text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full overflow-hidden"])},[z(Z4),l("div",J4,[z(bt(IA),null,{default:Ie(({Component:s})=>[(T(),at(dk,null,[(T(),at(Fu(s)))],1024))]),_:1})])],2))}},ar=Object.create(null);ar.open="0";ar.close="1";ar.ping="2";ar.pong="3";ar.message="4";ar.upgrade="5";ar.noop="6";const wd=Object.create(null);Object.keys(ar).forEach(n=>{wd[ar[n]]=n});const Zg={type:"error",data:"parser error"},FA=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",UA=typeof ArrayBuffer=="function",BA=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,p0=({type:n,data:e},t,s)=>FA&&e instanceof Blob?t?s(e):_v(e,s):UA&&(e instanceof ArrayBuffer||BA(e))?t?s(e):_v(new Blob([e]),s):s(ar[n]+(e||"")),_v=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function mv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Qp;function t5(n,e){if(FA&&n.data instanceof Blob)return n.data.arrayBuffer().then(mv).then(e);if(UA&&(n.data instanceof ArrayBuffer||BA(n.data)))return e(mv(n.data));p0(n,!1,t=>{Qp||(Qp=new TextEncoder),e(Qp.encode(t))})}const hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,s,r=0,i,o,a,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(s=0;s>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|c&63;return d},s5=typeof ArrayBuffer=="function",f0=(n,e)=>{if(typeof n!="string")return{type:"message",data:GA(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:r5(n.substring(1),e)}:wd[t]?n.length>1?{type:wd[t],data:n.substring(1)}:{type:wd[t]}:Zg},r5=(n,e)=>{if(s5){const t=n5(n);return GA(t,e)}else return{base64:!0,data:n}},GA=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},VA="",i5=(n,e)=>{const t=n.length,s=new Array(t);let r=0;n.forEach((i,o)=>{p0(i,!1,a=>{s[o]=a,++r===t&&e(s.join(VA))})})},o5=(n,e)=>{const t=n.split(VA),s=[];for(let r=0;r{const s=t.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,s)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(t)})}})}let Xp;function Nc(n){return n.reduce((e,t)=>e+t.length,0)}function Oc(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let r=0;rMath.pow(2,21)-1){a.enqueue(Zg);break}r=u*Math.pow(2,32)+d.getUint32(4),s=3}else{if(Nc(t)n){a.enqueue(Zg);break}}}})}const zA=4;function an(n){if(n)return c5(n)}function c5(n){for(var e in an.prototype)n[e]=an.prototype[e];return n}an.prototype.on=an.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};an.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,r=0;rPromise.resolve().then(e):(e,t)=>t(e,0),ms=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),d5="arraybuffer";function HA(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const u5=ms.setTimeout,p5=ms.clearTimeout;function Qu(n,e){e.useNativeTimers?(n.setTimeoutFn=u5.bind(ms),n.clearTimeoutFn=p5.bind(ms)):(n.setTimeoutFn=ms.setTimeout.bind(ms),n.clearTimeoutFn=ms.clearTimeout.bind(ms))}const f5=1.33;function _5(n){return typeof n=="string"?m5(n):Math.ceil((n.byteLength||n.size)*f5)}function m5(n){let e=0,t=0;for(let s=0,r=n.length;s=57344?t+=3:(s++,t+=4);return t}function qA(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function h5(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function g5(n){let e={},t=n.split("&");for(let s=0,r=t.length;s{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};o5(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,i5(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=qA()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let YA=!1;try{YA=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const E5=YA;function v5(){}class S5 extends y5{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}let sa=class Rd extends an{constructor(e,t,s){super(),this.createRequest=e,Qu(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=HA(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=Rd.requestsCount++,Rd.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=v5,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Rd.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};sa.requestsCount=0;sa.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",gv);else if(typeof addEventListener=="function"){const n="onpagehide"in ms?"pagehide":"unload";addEventListener(n,gv,!1)}}function gv(){for(let n in sa.requests)sa.requests.hasOwnProperty(n)&&sa.requests[n].abort()}const T5=function(){const n=$A({xdomain:!1});return n&&n.responseType!==null}();class x5 extends S5{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=T5&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new sa($A,this.uri(),e)}}function $A(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||E5))return new XMLHttpRequest}catch{}if(!e)try{return new ms[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const WA=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class C5 extends _0{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=WA?{}:HA(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(s,i)}catch{}r&&ju(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=qA()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Zp=ms.WebSocket||ms.MozWebSocket;class w5 extends C5{createSocket(e,t,s){return WA?new Zp(e,t,s):t?new Zp(e,t):new Zp(e)}doWrite(e,t){this.ws.send(t)}}class R5 extends _0{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=l5(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),r=a5();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{s.read().then(({done:a,value:c})=>{a||(this.onPacket(c),i())}).catch(a=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{r&&ju(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const A5={websocket:w5,webtransport:R5,polling:x5},M5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,N5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Jg(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let r=M5.exec(n||""),i={},o=14;for(;o--;)i[N5[o]]=r[o]||"";return t!=-1&&s!=-1&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=O5(i,i.path),i.queryKey=I5(i,i.query),i}function O5(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function I5(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,i){r&&(t[r]=i)}),t}const eb=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ad=[];eb&&addEventListener("offline",()=>{Ad.forEach(n=>n())},!1);class hi extends an{constructor(e,t){if(super(),this.binaryType=d5,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=Jg(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=Jg(t.host).host);Qu(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const r=s.prototype.name;this.transports.push(r),this._transportsByName[r]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=g5(this.opts.query)),eb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ad.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=zA,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&hi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",hi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ju(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,r){if(typeof t=="function"&&(r=t,t=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const i={type:e,data:t,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(hi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),eb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Ad.indexOf(this._offlineEventListener);s!==-1&&Ad.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}hi.protocol=zA;class k5 extends hi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;hi.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=t.name,this.emitReserved("upgradeError",m)}}))};function i(){s||(s=!0,u(),t.close(),t=null)}const o=_=>{const m=new Error("probe error: "+_);m.transport=t.name,i(),this.emitReserved("upgradeError",m)};function a(){o("transport closed")}function c(){o("socket closed")}function d(_){t&&_.name!==t.name&&i()}const u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",d)};t.once("open",r),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;sA5[r]).filter(r=>!!r)),super(e,s)}};function L5(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=Jg(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const i=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+i+":"+s.port+e,s.href=s.protocol+"://"+i+(t&&t.port===s.port?"":":"+s.port),s}const P5=typeof ArrayBuffer=="function",F5=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,KA=Object.prototype.toString,U5=typeof Blob=="function"||typeof Blob<"u"&&KA.call(Blob)==="[object BlobConstructor]",B5=typeof File=="function"||typeof File<"u"&&KA.call(File)==="[object FileConstructor]";function m0(n){return P5&&(n instanceof ArrayBuffer||F5(n))||U5&&n instanceof Blob||B5&&n instanceof File}function Md(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let a=0;a{this.io.clearTimeoutFn(i),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,r)=>{const i=(o,a)=>o?r(o):s(a);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...i)=>s!==this._queue[0]?void 0:(r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(r)):(this._queue.shift(),t&&t(null,...i)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:At.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case At.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case At.EVENT:case At.BINARY_EVENT:this.onevent(e);break;case At.ACK:case At.BINARY_ACK:this.onack(e);break;case At.DISCONNECT:this.ondisconnect();break;case At.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...r){s||(s=!0,t.packet({type:At.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:At.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}Ba.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};Ba.prototype.reset=function(){this.attempts=0};Ba.prototype.setMin=function(n){this.ms=n};Ba.prototype.setMax=function(n){this.max=n};Ba.prototype.setJitter=function(n){this.jitter=n};class sb extends an{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Qu(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Ba({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||$5;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new D5(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=Ls(t,"open",function(){s.onopen(),e&&e()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Ls(t,"error",i);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Ls(e,"ping",this.onping.bind(this)),Ls(e,"data",this.ondata.bind(this)),Ls(e,"error",this.onerror.bind(this)),Ls(e,"close",this.onclose.bind(this)),Ls(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){ju(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new jA(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const nl={};function Nd(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=L5(n,e.path||"/socket.io"),s=t.source,r=t.id,i=t.path,o=nl[r]&&i in nl[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new sb(s,e):(nl[r]||(nl[r]=new sb(s,e)),c=nl[r]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(Nd,{Manager:sb,Socket:jA,io:Nd,connect:Nd});const QA="/";console.log(QA);const Ye=new Nd(QA,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),K5={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),Fe(()=>{Ve.replace()})},showToast(n,e=3,t=!0){const s=parseInt((new Date().getTime()*Math.random()).toString()).toString(),r={id:s,log_type:t,message:n,show:!0};this.toastArr.push(r),Fe(()=>{Ve.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(i=>i.id!=s)},e*1e3)}},watch:{}},j5={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},Q5={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"},X5={class:"flex flex-row flex-grow items-center h-auto"},Z5={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"},J5={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"},eF={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"},tF={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"},nF=["title"],sF={class:"flex"},rF=["onClick"],iF=["onClick"];function oF(n,e,t,s,r,i){return T(),x("div",j5,[z(Ir,{name:"toastItem",tag:"div"},{default:Ie(()=>[(T(!0),x(Be,null,Ke(r.toastArr,o=>(T(),x("div",{key:o.id,class:"relative"},[l("div",Q5,[l("div",X5,[o.log_type==0?(T(),x("div",Z5,e[0]||(e[0]=[l("i",{"data-feather":"x"},null,-1),l("span",{class:"sr-only"},"Cross icon",-1)]))):B("",!0),o.log_type==1?(T(),x("div",J5,e[1]||(e[1]=[l("i",{"data-feather":"check"},null,-1),l("span",{class:"sr-only"},"Check icon",-1)]))):B("",!0),o.log_type==2?(T(),x("div",eF,e[2]||(e[2]=[l("i",{"data-feather":"info"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),o.log_type==3?(T(),x("div",tF,e[3]||(e[3]=[l("i",{"data-feather":"alert-triangle"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),l("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},Y(o.message),9,nF)]),l("div",sF,[l("button",{type:"button",onClick:$(a=>i.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[4]||(e[4]=[l("span",{class:"sr-only"},"Copy message",-1),l("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,rF),l("button",{type:"button",onClick:a=>i.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[5]||(e[5]=[l("span",{class:"sr-only"},"Close",-1),l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,iF)])])]))),128))]),_:1})])}const Xu=rt(K5,[["render",oF],["__scopeId","data-v-46f379e5"]]);var kt={};const aF="Á",lF="á",cF="Ă",dF="ă",uF="∾",pF="∿",fF="∾̳",_F="Â",mF="â",hF="´",gF="А",bF="а",yF="Æ",EF="æ",vF="⁡",SF="𝔄",TF="𝔞",xF="À",CF="à",wF="ℵ",RF="ℵ",AF="Α",MF="α",NF="Ā",OF="ā",IF="⨿",kF="&",DF="&",LF="⩕",PF="⩓",FF="∧",UF="⩜",BF="⩘",GF="⩚",VF="∠",zF="⦤",HF="∠",qF="⦨",YF="⦩",$F="⦪",WF="⦫",KF="⦬",jF="⦭",QF="⦮",XF="⦯",ZF="∡",JF="∟",eU="⊾",tU="⦝",nU="∢",sU="Å",rU="⍼",iU="Ą",oU="ą",aU="𝔸",lU="𝕒",cU="⩯",dU="≈",uU="⩰",pU="≊",fU="≋",_U="'",mU="⁡",hU="≈",gU="≊",bU="Å",yU="å",EU="𝒜",vU="𝒶",SU="≔",TU="*",xU="≈",CU="≍",wU="Ã",RU="ã",AU="Ä",MU="ä",NU="∳",OU="⨑",IU="≌",kU="϶",DU="‵",LU="∽",PU="⋍",FU="∖",UU="⫧",BU="⊽",GU="⌅",VU="⌆",zU="⌅",HU="⎵",qU="⎶",YU="≌",$U="Б",WU="б",KU="„",jU="∵",QU="∵",XU="∵",ZU="⦰",JU="϶",eB="ℬ",tB="ℬ",nB="Β",sB="β",rB="ℶ",iB="≬",oB="𝔅",aB="𝔟",lB="⋂",cB="◯",dB="⋃",uB="⨀",pB="⨁",fB="⨂",_B="⨆",mB="★",hB="▽",gB="△",bB="⨄",yB="⋁",EB="⋀",vB="⤍",SB="⧫",TB="▪",xB="▴",CB="▾",wB="◂",RB="▸",AB="␣",MB="▒",NB="░",OB="▓",IB="█",kB="=⃥",DB="≡⃥",LB="⫭",PB="⌐",FB="𝔹",UB="𝕓",BB="⊥",GB="⊥",VB="⋈",zB="⧉",HB="┐",qB="╕",YB="╖",$B="╗",WB="┌",KB="╒",jB="╓",QB="╔",XB="─",ZB="═",JB="┬",e6="╤",t6="╥",n6="╦",s6="┴",r6="╧",i6="╨",o6="╩",a6="⊟",l6="⊞",c6="⊠",d6="┘",u6="╛",p6="╜",f6="╝",_6="└",m6="╘",h6="╙",g6="╚",b6="│",y6="║",E6="┼",v6="╪",S6="╫",T6="╬",x6="┤",C6="╡",w6="╢",R6="╣",A6="├",M6="╞",N6="╟",O6="╠",I6="‵",k6="˘",D6="˘",L6="¦",P6="𝒷",F6="ℬ",U6="⁏",B6="∽",G6="⋍",V6="⧅",z6="\\",H6="⟈",q6="•",Y6="•",$6="≎",W6="⪮",K6="≏",j6="≎",Q6="≏",X6="Ć",Z6="ć",J6="⩄",e9="⩉",t9="⩋",n9="∩",s9="⋒",r9="⩇",i9="⩀",o9="ⅅ",a9="∩︀",l9="⁁",c9="ˇ",d9="ℭ",u9="⩍",p9="Č",f9="č",_9="Ç",m9="ç",h9="Ĉ",g9="ĉ",b9="∰",y9="⩌",E9="⩐",v9="Ċ",S9="ċ",T9="¸",x9="¸",C9="⦲",w9="¢",R9="·",A9="·",M9="𝔠",N9="ℭ",O9="Ч",I9="ч",k9="✓",D9="✓",L9="Χ",P9="χ",F9="ˆ",U9="≗",B9="↺",G9="↻",V9="⊛",z9="⊚",H9="⊝",q9="⊙",Y9="®",$9="Ⓢ",W9="⊖",K9="⊕",j9="⊗",Q9="○",X9="⧃",Z9="≗",J9="⨐",e8="⫯",t8="⧂",n8="∲",s8="”",r8="’",i8="♣",o8="♣",a8=":",l8="∷",c8="⩴",d8="≔",u8="≔",p8=",",f8="@",_8="∁",m8="∘",h8="∁",g8="ℂ",b8="≅",y8="⩭",E8="≡",v8="∮",S8="∯",T8="∮",x8="𝕔",C8="ℂ",w8="∐",R8="∐",A8="©",M8="©",N8="℗",O8="∳",I8="↵",k8="✗",D8="⨯",L8="𝒞",P8="𝒸",F8="⫏",U8="⫑",B8="⫐",G8="⫒",V8="⋯",z8="⤸",H8="⤵",q8="⋞",Y8="⋟",$8="↶",W8="⤽",K8="⩈",j8="⩆",Q8="≍",X8="∪",Z8="⋓",J8="⩊",eG="⊍",tG="⩅",nG="∪︀",sG="↷",rG="⤼",iG="⋞",oG="⋟",aG="⋎",lG="⋏",cG="¤",dG="↶",uG="↷",pG="⋎",fG="⋏",_G="∲",mG="∱",hG="⌭",gG="†",bG="‡",yG="ℸ",EG="↓",vG="↡",SG="⇓",TG="‐",xG="⫤",CG="⊣",wG="⤏",RG="˝",AG="Ď",MG="ď",NG="Д",OG="д",IG="‡",kG="⇊",DG="ⅅ",LG="ⅆ",PG="⤑",FG="⩷",UG="°",BG="∇",GG="Δ",VG="δ",zG="⦱",HG="⥿",qG="𝔇",YG="𝔡",$G="⥥",WG="⇃",KG="⇂",jG="´",QG="˙",XG="˝",ZG="`",JG="˜",e7="⋄",t7="⋄",n7="⋄",s7="♦",r7="♦",i7="¨",o7="ⅆ",a7="ϝ",l7="⋲",c7="÷",d7="÷",u7="⋇",p7="⋇",f7="Ђ",_7="ђ",m7="⌞",h7="⌍",g7="$",b7="𝔻",y7="𝕕",E7="¨",v7="˙",S7="⃜",T7="≐",x7="≑",C7="≐",w7="∸",R7="∔",A7="⊡",M7="⌆",N7="∯",O7="¨",I7="⇓",k7="⇐",D7="⇔",L7="⫤",P7="⟸",F7="⟺",U7="⟹",B7="⇒",G7="⊨",V7="⇑",z7="⇕",H7="∥",q7="⤓",Y7="↓",$7="↓",W7="⇓",K7="⇵",j7="̑",Q7="⇊",X7="⇃",Z7="⇂",J7="⥐",eV="⥞",tV="⥖",nV="↽",sV="⥟",rV="⥗",iV="⇁",oV="↧",aV="⊤",lV="⤐",cV="⌟",dV="⌌",uV="𝒟",pV="𝒹",fV="Ѕ",_V="ѕ",mV="⧶",hV="Đ",gV="đ",bV="⋱",yV="▿",EV="▾",vV="⇵",SV="⥯",TV="⦦",xV="Џ",CV="џ",wV="⟿",RV="É",AV="é",MV="⩮",NV="Ě",OV="ě",IV="Ê",kV="ê",DV="≖",LV="≕",PV="Э",FV="э",UV="⩷",BV="Ė",GV="ė",VV="≑",zV="ⅇ",HV="≒",qV="𝔈",YV="𝔢",$V="⪚",WV="È",KV="è",jV="⪖",QV="⪘",XV="⪙",ZV="∈",JV="⏧",ez="ℓ",tz="⪕",nz="⪗",sz="Ē",rz="ē",iz="∅",oz="∅",az="◻",lz="∅",cz="▫",dz=" ",uz=" ",pz=" ",fz="Ŋ",_z="ŋ",mz=" ",hz="Ę",gz="ę",bz="𝔼",yz="𝕖",Ez="⋕",vz="⧣",Sz="⩱",Tz="ε",xz="Ε",Cz="ε",wz="ϵ",Rz="≖",Az="≕",Mz="≂",Nz="⪖",Oz="⪕",Iz="⩵",kz="=",Dz="≂",Lz="≟",Pz="⇌",Fz="≡",Uz="⩸",Bz="⧥",Gz="⥱",Vz="≓",zz="ℯ",Hz="ℰ",qz="≐",Yz="⩳",$z="≂",Wz="Η",Kz="η",jz="Ð",Qz="ð",Xz="Ë",Zz="ë",Jz="€",eH="!",tH="∃",nH="∃",sH="ℰ",rH="ⅇ",iH="ⅇ",oH="≒",aH="Ф",lH="ф",cH="♀",dH="ffi",uH="ff",pH="ffl",fH="𝔉",_H="𝔣",mH="fi",hH="◼",gH="▪",bH="fj",yH="♭",EH="fl",vH="▱",SH="ƒ",TH="𝔽",xH="𝕗",CH="∀",wH="∀",RH="⋔",AH="⫙",MH="ℱ",NH="⨍",OH="½",IH="⅓",kH="¼",DH="⅕",LH="⅙",PH="⅛",FH="⅔",UH="⅖",BH="¾",GH="⅗",VH="⅜",zH="⅘",HH="⅚",qH="⅝",YH="⅞",$H="⁄",WH="⌢",KH="𝒻",jH="ℱ",QH="ǵ",XH="Γ",ZH="γ",JH="Ϝ",eq="ϝ",tq="⪆",nq="Ğ",sq="ğ",rq="Ģ",iq="Ĝ",oq="ĝ",aq="Г",lq="г",cq="Ġ",dq="ġ",uq="≥",pq="≧",fq="⪌",_q="⋛",mq="≥",hq="≧",gq="⩾",bq="⪩",yq="⩾",Eq="⪀",vq="⪂",Sq="⪄",Tq="⋛︀",xq="⪔",Cq="𝔊",wq="𝔤",Rq="≫",Aq="⋙",Mq="⋙",Nq="ℷ",Oq="Ѓ",Iq="ѓ",kq="⪥",Dq="≷",Lq="⪒",Pq="⪤",Fq="⪊",Uq="⪊",Bq="⪈",Gq="≩",Vq="⪈",zq="≩",Hq="⋧",qq="𝔾",Yq="𝕘",$q="`",Wq="≥",Kq="⋛",jq="≧",Qq="⪢",Xq="≷",Zq="⩾",Jq="≳",eY="𝒢",tY="ℊ",nY="≳",sY="⪎",rY="⪐",iY="⪧",oY="⩺",aY=">",lY=">",cY="≫",dY="⋗",uY="⦕",pY="⩼",fY="⪆",_Y="⥸",mY="⋗",hY="⋛",gY="⪌",bY="≷",yY="≳",EY="≩︀",vY="≩︀",SY="ˇ",TY=" ",xY="½",CY="ℋ",wY="Ъ",RY="ъ",AY="⥈",MY="↔",NY="⇔",OY="↭",IY="^",kY="ℏ",DY="Ĥ",LY="ĥ",PY="♥",FY="♥",UY="…",BY="⊹",GY="𝔥",VY="ℌ",zY="ℋ",HY="⤥",qY="⤦",YY="⇿",$Y="∻",WY="↩",KY="↪",jY="𝕙",QY="ℍ",XY="―",ZY="─",JY="𝒽",e$="ℋ",t$="ℏ",n$="Ħ",s$="ħ",r$="≎",i$="≏",o$="⁃",a$="‐",l$="Í",c$="í",d$="⁣",u$="Î",p$="î",f$="И",_$="и",m$="İ",h$="Е",g$="е",b$="¡",y$="⇔",E$="𝔦",v$="ℑ",S$="Ì",T$="ì",x$="ⅈ",C$="⨌",w$="∭",R$="⧜",A$="℩",M$="IJ",N$="ij",O$="Ī",I$="ī",k$="ℑ",D$="ⅈ",L$="ℐ",P$="ℑ",F$="ı",U$="ℑ",B$="⊷",G$="Ƶ",V$="⇒",z$="℅",H$="∞",q$="⧝",Y$="ı",$$="⊺",W$="∫",K$="∬",j$="ℤ",Q$="∫",X$="⊺",Z$="⋂",J$="⨗",eW="⨼",tW="⁣",nW="⁢",sW="Ё",rW="ё",iW="Į",oW="į",aW="𝕀",lW="𝕚",cW="Ι",dW="ι",uW="⨼",pW="¿",fW="𝒾",_W="ℐ",mW="∈",hW="⋵",gW="⋹",bW="⋴",yW="⋳",EW="∈",vW="⁢",SW="Ĩ",TW="ĩ",xW="І",CW="і",wW="Ï",RW="ï",AW="Ĵ",MW="ĵ",NW="Й",OW="й",IW="𝔍",kW="𝔧",DW="ȷ",LW="𝕁",PW="𝕛",FW="𝒥",UW="𝒿",BW="Ј",GW="ј",VW="Є",zW="є",HW="Κ",qW="κ",YW="ϰ",$W="Ķ",WW="ķ",KW="К",jW="к",QW="𝔎",XW="𝔨",ZW="ĸ",JW="Х",eK="х",tK="Ќ",nK="ќ",sK="𝕂",rK="𝕜",iK="𝒦",oK="𝓀",aK="⇚",lK="Ĺ",cK="ĺ",dK="⦴",uK="ℒ",pK="Λ",fK="λ",_K="⟨",mK="⟪",hK="⦑",gK="⟨",bK="⪅",yK="ℒ",EK="«",vK="⇤",SK="⤟",TK="←",xK="↞",CK="⇐",wK="⤝",RK="↩",AK="↫",MK="⤹",NK="⥳",OK="↢",IK="⤙",kK="⤛",DK="⪫",LK="⪭",PK="⪭︀",FK="⤌",UK="⤎",BK="❲",GK="{",VK="[",zK="⦋",HK="⦏",qK="⦍",YK="Ľ",$K="ľ",WK="Ļ",KK="ļ",jK="⌈",QK="{",XK="Л",ZK="л",JK="⤶",ej="“",tj="„",nj="⥧",sj="⥋",rj="↲",ij="≤",oj="≦",aj="⟨",lj="⇤",cj="←",dj="←",uj="⇐",pj="⇆",fj="↢",_j="⌈",mj="⟦",hj="⥡",gj="⥙",bj="⇃",yj="⌊",Ej="↽",vj="↼",Sj="⇇",Tj="↔",xj="↔",Cj="⇔",wj="⇆",Rj="⇋",Aj="↭",Mj="⥎",Nj="↤",Oj="⊣",Ij="⥚",kj="⋋",Dj="⧏",Lj="⊲",Pj="⊴",Fj="⥑",Uj="⥠",Bj="⥘",Gj="↿",Vj="⥒",zj="↼",Hj="⪋",qj="⋚",Yj="≤",$j="≦",Wj="⩽",Kj="⪨",jj="⩽",Qj="⩿",Xj="⪁",Zj="⪃",Jj="⋚︀",eQ="⪓",tQ="⪅",nQ="⋖",sQ="⋚",rQ="⪋",iQ="⋚",oQ="≦",aQ="≶",lQ="≶",cQ="⪡",dQ="≲",uQ="⩽",pQ="≲",fQ="⥼",_Q="⌊",mQ="𝔏",hQ="𝔩",gQ="≶",bQ="⪑",yQ="⥢",EQ="↽",vQ="↼",SQ="⥪",TQ="▄",xQ="Љ",CQ="љ",wQ="⇇",RQ="≪",AQ="⋘",MQ="⌞",NQ="⇚",OQ="⥫",IQ="◺",kQ="Ŀ",DQ="ŀ",LQ="⎰",PQ="⎰",FQ="⪉",UQ="⪉",BQ="⪇",GQ="≨",VQ="⪇",zQ="≨",HQ="⋦",qQ="⟬",YQ="⇽",$Q="⟦",WQ="⟵",KQ="⟵",jQ="⟸",QQ="⟷",XQ="⟷",ZQ="⟺",JQ="⟼",eX="⟶",tX="⟶",nX="⟹",sX="↫",rX="↬",iX="⦅",oX="𝕃",aX="𝕝",lX="⨭",cX="⨴",dX="∗",uX="_",pX="↙",fX="↘",_X="◊",mX="◊",hX="⧫",gX="(",bX="⦓",yX="⇆",EX="⌟",vX="⇋",SX="⥭",TX="‎",xX="⊿",CX="‹",wX="𝓁",RX="ℒ",AX="↰",MX="↰",NX="≲",OX="⪍",IX="⪏",kX="[",DX="‘",LX="‚",PX="Ł",FX="ł",UX="⪦",BX="⩹",GX="<",VX="<",zX="≪",HX="⋖",qX="⋋",YX="⋉",$X="⥶",WX="⩻",KX="◃",jX="⊴",QX="◂",XX="⦖",ZX="⥊",JX="⥦",eZ="≨︀",tZ="≨︀",nZ="¯",sZ="♂",rZ="✠",iZ="✠",oZ="↦",aZ="↦",lZ="↧",cZ="↤",dZ="↥",uZ="▮",pZ="⨩",fZ="М",_Z="м",mZ="—",hZ="∺",gZ="∡",bZ=" ",yZ="ℳ",EZ="𝔐",vZ="𝔪",SZ="℧",TZ="µ",xZ="*",CZ="⫰",wZ="∣",RZ="·",AZ="⊟",MZ="−",NZ="∸",OZ="⨪",IZ="∓",kZ="⫛",DZ="…",LZ="∓",PZ="⊧",FZ="𝕄",UZ="𝕞",BZ="∓",GZ="𝓂",VZ="ℳ",zZ="∾",HZ="Μ",qZ="μ",YZ="⊸",$Z="⊸",WZ="∇",KZ="Ń",jZ="ń",QZ="∠⃒",XZ="≉",ZZ="⩰̸",JZ="≋̸",eJ="ʼn",tJ="≉",nJ="♮",sJ="ℕ",rJ="♮",iJ=" ",oJ="≎̸",aJ="≏̸",lJ="⩃",cJ="Ň",dJ="ň",uJ="Ņ",pJ="ņ",fJ="≇",_J="⩭̸",mJ="⩂",hJ="Н",gJ="н",bJ="–",yJ="⤤",EJ="↗",vJ="⇗",SJ="↗",TJ="≠",xJ="≐̸",CJ="​",wJ="​",RJ="​",AJ="​",MJ="≢",NJ="⤨",OJ="≂̸",IJ="≫",kJ="≪",DJ=` -`,LJ="∄",PJ="∄",FJ="𝔑",UJ="𝔫",BJ="≧̸",GJ="≱",VJ="≱",zJ="≧̸",HJ="⩾̸",qJ="⩾̸",YJ="⋙̸",$J="≵",WJ="≫⃒",KJ="≯",jJ="≯",QJ="≫̸",XJ="↮",ZJ="⇎",JJ="⫲",eee="∋",tee="⋼",nee="⋺",see="∋",ree="Њ",iee="њ",oee="↚",aee="⇍",lee="‥",cee="≦̸",dee="≰",uee="↚",pee="⇍",fee="↮",_ee="⇎",mee="≰",hee="≦̸",gee="⩽̸",bee="⩽̸",yee="≮",Eee="⋘̸",vee="≴",See="≪⃒",Tee="≮",xee="⋪",Cee="⋬",wee="≪̸",Ree="∤",Aee="⁠",Mee=" ",Nee="𝕟",Oee="ℕ",Iee="⫬",kee="¬",Dee="≢",Lee="≭",Pee="∦",Fee="∉",Uee="≠",Bee="≂̸",Gee="∄",Vee="≯",zee="≱",Hee="≧̸",qee="≫̸",Yee="≹",$ee="⩾̸",Wee="≵",Kee="≎̸",jee="≏̸",Qee="∉",Xee="⋵̸",Zee="⋹̸",Jee="∉",ete="⋷",tte="⋶",nte="⧏̸",ste="⋪",rte="⋬",ite="≮",ote="≰",ate="≸",lte="≪̸",cte="⩽̸",dte="≴",ute="⪢̸",pte="⪡̸",fte="∌",_te="∌",mte="⋾",hte="⋽",gte="⊀",bte="⪯̸",yte="⋠",Ete="∌",vte="⧐̸",Ste="⋫",Tte="⋭",xte="⊏̸",Cte="⋢",wte="⊐̸",Rte="⋣",Ate="⊂⃒",Mte="⊈",Nte="⊁",Ote="⪰̸",Ite="⋡",kte="≿̸",Dte="⊃⃒",Lte="⊉",Pte="≁",Fte="≄",Ute="≇",Bte="≉",Gte="∤",Vte="∦",zte="∦",Hte="⫽⃥",qte="∂̸",Yte="⨔",$te="⊀",Wte="⋠",Kte="⊀",jte="⪯̸",Qte="⪯̸",Xte="⤳̸",Zte="↛",Jte="⇏",ene="↝̸",tne="↛",nne="⇏",sne="⋫",rne="⋭",ine="⊁",one="⋡",ane="⪰̸",lne="𝒩",cne="𝓃",dne="∤",une="∦",pne="≁",fne="≄",_ne="≄",mne="∤",hne="∦",gne="⋢",bne="⋣",yne="⊄",Ene="⫅̸",vne="⊈",Sne="⊂⃒",Tne="⊈",xne="⫅̸",Cne="⊁",wne="⪰̸",Rne="⊅",Ane="⫆̸",Mne="⊉",Nne="⊃⃒",One="⊉",Ine="⫆̸",kne="≹",Dne="Ñ",Lne="ñ",Pne="≸",Fne="⋪",Une="⋬",Bne="⋫",Gne="⋭",Vne="Ν",zne="ν",Hne="#",qne="№",Yne=" ",$ne="≍⃒",Wne="⊬",Kne="⊭",jne="⊮",Qne="⊯",Xne="≥⃒",Zne=">⃒",Jne="⤄",ese="⧞",tse="⤂",nse="≤⃒",sse="<⃒",rse="⊴⃒",ise="⤃",ose="⊵⃒",ase="∼⃒",lse="⤣",cse="↖",dse="⇖",use="↖",pse="⤧",fse="Ó",_se="ó",mse="⊛",hse="Ô",gse="ô",bse="⊚",yse="О",Ese="о",vse="⊝",Sse="Ő",Tse="ő",xse="⨸",Cse="⊙",wse="⦼",Rse="Œ",Ase="œ",Mse="⦿",Nse="𝔒",Ose="𝔬",Ise="˛",kse="Ò",Dse="ò",Lse="⧁",Pse="⦵",Fse="Ω",Use="∮",Bse="↺",Gse="⦾",Vse="⦻",zse="‾",Hse="⧀",qse="Ō",Yse="ō",$se="Ω",Wse="ω",Kse="Ο",jse="ο",Qse="⦶",Xse="⊖",Zse="𝕆",Jse="𝕠",ere="⦷",tre="“",nre="‘",sre="⦹",rre="⊕",ire="↻",ore="⩔",are="∨",lre="⩝",cre="ℴ",dre="ℴ",ure="ª",pre="º",fre="⊶",_re="⩖",mre="⩗",hre="⩛",gre="Ⓢ",bre="𝒪",yre="ℴ",Ere="Ø",vre="ø",Sre="⊘",Tre="Õ",xre="õ",Cre="⨶",wre="⨷",Rre="⊗",Are="Ö",Mre="ö",Nre="⌽",Ore="‾",Ire="⏞",kre="⎴",Dre="⏜",Lre="¶",Pre="∥",Fre="∥",Ure="⫳",Bre="⫽",Gre="∂",Vre="∂",zre="П",Hre="п",qre="%",Yre=".",$re="‰",Wre="⊥",Kre="‱",jre="𝔓",Qre="𝔭",Xre="Φ",Zre="φ",Jre="ϕ",eie="ℳ",tie="☎",nie="Π",sie="π",rie="⋔",iie="ϖ",oie="ℏ",aie="ℎ",lie="ℏ",cie="⨣",die="⊞",uie="⨢",pie="+",fie="∔",_ie="⨥",mie="⩲",hie="±",gie="±",bie="⨦",yie="⨧",Eie="±",vie="ℌ",Sie="⨕",Tie="𝕡",xie="ℙ",Cie="£",wie="⪷",Rie="⪻",Aie="≺",Mie="≼",Nie="⪷",Oie="≺",Iie="≼",kie="≺",Die="⪯",Lie="≼",Pie="≾",Fie="⪯",Uie="⪹",Bie="⪵",Gie="⋨",Vie="⪯",zie="⪳",Hie="≾",qie="′",Yie="″",$ie="ℙ",Wie="⪹",Kie="⪵",jie="⋨",Qie="∏",Xie="∏",Zie="⌮",Jie="⌒",eoe="⌓",toe="∝",noe="∝",soe="∷",roe="∝",ioe="≾",ooe="⊰",aoe="𝒫",loe="𝓅",coe="Ψ",doe="ψ",uoe=" ",poe="𝔔",foe="𝔮",_oe="⨌",moe="𝕢",hoe="ℚ",goe="⁗",boe="𝒬",yoe="𝓆",Eoe="ℍ",voe="⨖",Soe="?",Toe="≟",xoe='"',Coe='"',woe="⇛",Roe="∽̱",Aoe="Ŕ",Moe="ŕ",Noe="√",Ooe="⦳",Ioe="⟩",koe="⟫",Doe="⦒",Loe="⦥",Poe="⟩",Foe="»",Uoe="⥵",Boe="⇥",Goe="⤠",Voe="⤳",zoe="→",Hoe="↠",qoe="⇒",Yoe="⤞",$oe="↪",Woe="↬",Koe="⥅",joe="⥴",Qoe="⤖",Xoe="↣",Zoe="↝",Joe="⤚",eae="⤜",tae="∶",nae="ℚ",sae="⤍",rae="⤏",iae="⤐",oae="❳",aae="}",lae="]",cae="⦌",dae="⦎",uae="⦐",pae="Ř",fae="ř",_ae="Ŗ",mae="ŗ",hae="⌉",gae="}",bae="Р",yae="р",Eae="⤷",vae="⥩",Sae="”",Tae="”",xae="↳",Cae="ℜ",wae="ℛ",Rae="ℜ",Aae="ℝ",Mae="ℜ",Nae="▭",Oae="®",Iae="®",kae="∋",Dae="⇋",Lae="⥯",Pae="⥽",Fae="⌋",Uae="𝔯",Bae="ℜ",Gae="⥤",Vae="⇁",zae="⇀",Hae="⥬",qae="Ρ",Yae="ρ",$ae="ϱ",Wae="⟩",Kae="⇥",jae="→",Qae="→",Xae="⇒",Zae="⇄",Jae="↣",ele="⌉",tle="⟧",nle="⥝",sle="⥕",rle="⇂",ile="⌋",ole="⇁",ale="⇀",lle="⇄",cle="⇌",dle="⇉",ule="↝",ple="↦",fle="⊢",_le="⥛",mle="⋌",hle="⧐",gle="⊳",ble="⊵",yle="⥏",Ele="⥜",vle="⥔",Sle="↾",Tle="⥓",xle="⇀",Cle="˚",wle="≓",Rle="⇄",Ale="⇌",Mle="‏",Nle="⎱",Ole="⎱",Ile="⫮",kle="⟭",Dle="⇾",Lle="⟧",Ple="⦆",Fle="𝕣",Ule="ℝ",Ble="⨮",Gle="⨵",Vle="⥰",zle=")",Hle="⦔",qle="⨒",Yle="⇉",$le="⇛",Wle="›",Kle="𝓇",jle="ℛ",Qle="↱",Xle="↱",Zle="]",Jle="’",ece="’",tce="⋌",nce="⋊",sce="▹",rce="⊵",ice="▸",oce="⧎",ace="⧴",lce="⥨",cce="℞",dce="Ś",uce="ś",pce="‚",fce="⪸",_ce="Š",mce="š",hce="⪼",gce="≻",bce="≽",yce="⪰",Ece="⪴",vce="Ş",Sce="ş",Tce="Ŝ",xce="ŝ",Cce="⪺",wce="⪶",Rce="⋩",Ace="⨓",Mce="≿",Nce="С",Oce="с",Ice="⊡",kce="⋅",Dce="⩦",Lce="⤥",Pce="↘",Fce="⇘",Uce="↘",Bce="§",Gce=";",Vce="⤩",zce="∖",Hce="∖",qce="✶",Yce="𝔖",$ce="𝔰",Wce="⌢",Kce="♯",jce="Щ",Qce="щ",Xce="Ш",Zce="ш",Jce="↓",ede="←",tde="∣",nde="∥",sde="→",rde="↑",ide="­",ode="Σ",ade="σ",lde="ς",cde="ς",dde="∼",ude="⩪",pde="≃",fde="≃",_de="⪞",mde="⪠",hde="⪝",gde="⪟",bde="≆",yde="⨤",Ede="⥲",vde="←",Sde="∘",Tde="∖",xde="⨳",Cde="⧤",wde="∣",Rde="⌣",Ade="⪪",Mde="⪬",Nde="⪬︀",Ode="Ь",Ide="ь",kde="⌿",Dde="⧄",Lde="/",Pde="𝕊",Fde="𝕤",Ude="♠",Bde="♠",Gde="∥",Vde="⊓",zde="⊓︀",Hde="⊔",qde="⊔︀",Yde="√",$de="⊏",Wde="⊑",Kde="⊏",jde="⊑",Qde="⊐",Xde="⊒",Zde="⊐",Jde="⊒",eue="□",tue="□",nue="⊓",sue="⊏",rue="⊑",iue="⊐",oue="⊒",aue="⊔",lue="▪",cue="□",due="▪",uue="→",pue="𝒮",fue="𝓈",_ue="∖",mue="⌣",hue="⋆",gue="⋆",bue="☆",yue="★",Eue="ϵ",vue="ϕ",Sue="¯",Tue="⊂",xue="⋐",Cue="⪽",wue="⫅",Rue="⊆",Aue="⫃",Mue="⫁",Nue="⫋",Oue="⊊",Iue="⪿",kue="⥹",Due="⊂",Lue="⋐",Pue="⊆",Fue="⫅",Uue="⊆",Bue="⊊",Gue="⫋",Vue="⫇",zue="⫕",Hue="⫓",que="⪸",Yue="≻",$ue="≽",Wue="≻",Kue="⪰",jue="≽",Que="≿",Xue="⪰",Zue="⪺",Jue="⪶",epe="⋩",tpe="≿",npe="∋",spe="∑",rpe="∑",ipe="♪",ope="¹",ape="²",lpe="³",cpe="⊃",dpe="⋑",upe="⪾",ppe="⫘",fpe="⫆",_pe="⊇",mpe="⫄",hpe="⊃",gpe="⊇",bpe="⟉",ype="⫗",Epe="⥻",vpe="⫂",Spe="⫌",Tpe="⊋",xpe="⫀",Cpe="⊃",wpe="⋑",Rpe="⊇",Ape="⫆",Mpe="⊋",Npe="⫌",Ope="⫈",Ipe="⫔",kpe="⫖",Dpe="⤦",Lpe="↙",Ppe="⇙",Fpe="↙",Upe="⤪",Bpe="ß",Gpe=" ",Vpe="⌖",zpe="Τ",Hpe="τ",qpe="⎴",Ype="Ť",$pe="ť",Wpe="Ţ",Kpe="ţ",jpe="Т",Qpe="т",Xpe="⃛",Zpe="⌕",Jpe="𝔗",efe="𝔱",tfe="∴",nfe="∴",sfe="∴",rfe="Θ",ife="θ",ofe="ϑ",afe="ϑ",lfe="≈",cfe="∼",dfe="  ",ufe=" ",pfe=" ",ffe="≈",_fe="∼",mfe="Þ",hfe="þ",gfe="˜",bfe="∼",yfe="≃",Efe="≅",vfe="≈",Sfe="⨱",Tfe="⊠",xfe="×",Cfe="⨰",wfe="∭",Rfe="⤨",Afe="⌶",Mfe="⫱",Nfe="⊤",Ofe="𝕋",Ife="𝕥",kfe="⫚",Dfe="⤩",Lfe="‴",Pfe="™",Ffe="™",Ufe="▵",Bfe="▿",Gfe="◃",Vfe="⊴",zfe="≜",Hfe="▹",qfe="⊵",Yfe="◬",$fe="≜",Wfe="⨺",Kfe="⃛",jfe="⨹",Qfe="⧍",Xfe="⨻",Zfe="⏢",Jfe="𝒯",e_e="𝓉",t_e="Ц",n_e="ц",s_e="Ћ",r_e="ћ",i_e="Ŧ",o_e="ŧ",a_e="≬",l_e="↞",c_e="↠",d_e="Ú",u_e="ú",p_e="↑",f_e="↟",__e="⇑",m_e="⥉",h_e="Ў",g_e="ў",b_e="Ŭ",y_e="ŭ",E_e="Û",v_e="û",S_e="У",T_e="у",x_e="⇅",C_e="Ű",w_e="ű",R_e="⥮",A_e="⥾",M_e="𝔘",N_e="𝔲",O_e="Ù",I_e="ù",k_e="⥣",D_e="↿",L_e="↾",P_e="▀",F_e="⌜",U_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="𝕦",eme="⤒",tme="↑",nme="↑",sme="⇑",rme="⇅",ime="↕",ome="↕",ame="⇕",lme="⥮",cme="↿",dme="↾",ume="⊎",pme="↖",fme="↗",_me="υ",mme="ϒ",hme="ϒ",gme="Υ",bme="υ",yme="↥",Eme="⊥",vme="⇈",Sme="⌝",Tme="⌝",xme="⌎",Cme="Ů",wme="ů",Rme="◹",Ame="𝒰",Mme="𝓊",Nme="⋰",Ome="Ũ",Ime="ũ",kme="▵",Dme="▴",Lme="⇈",Pme="Ü",Fme="ü",Ume="⦧",Bme="⦜",Gme="ϵ",Vme="ϰ",zme="∅",Hme="ϕ",qme="ϖ",Yme="∝",$me="↕",Wme="⇕",Kme="ϱ",jme="ς",Qme="⊊︀",Xme="⫋︀",Zme="⊋︀",Jme="⫌︀",ehe="ϑ",the="⊲",nhe="⊳",she="⫨",rhe="⫫",ihe="⫩",ohe="В",ahe="в",lhe="⊢",che="⊨",dhe="⊩",uhe="⊫",phe="⫦",fhe="⊻",_he="∨",mhe="⋁",hhe="≚",ghe="⋮",bhe="|",yhe="‖",Ehe="|",vhe="‖",She="∣",The="|",xhe="❘",Che="≀",whe=" ",Rhe="𝔙",Ahe="𝔳",Mhe="⊲",Nhe="⊂⃒",Ohe="⊃⃒",Ihe="𝕍",khe="𝕧",Dhe="∝",Lhe="⊳",Phe="𝒱",Fhe="𝓋",Uhe="⫋︀",Bhe="⊊︀",Ghe="⫌︀",Vhe="⊋︀",zhe="⊪",Hhe="⦚",qhe="Ŵ",Yhe="ŵ",$he="⩟",Whe="∧",Khe="⋀",jhe="≙",Qhe="℘",Xhe="𝔚",Zhe="𝔴",Jhe="𝕎",ege="𝕨",tge="℘",nge="≀",sge="≀",rge="𝒲",ige="𝓌",oge="⋂",age="◯",lge="⋃",cge="▽",dge="𝔛",uge="𝔵",pge="⟷",fge="⟺",_ge="Ξ",mge="ξ",hge="⟵",gge="⟸",bge="⟼",yge="⋻",Ege="⨀",vge="𝕏",Sge="𝕩",Tge="⨁",xge="⨂",Cge="⟶",wge="⟹",Rge="𝒳",Age="𝓍",Mge="⨆",Nge="⨄",Oge="△",Ige="⋁",kge="⋀",Dge="Ý",Lge="ý",Pge="Я",Fge="я",Uge="Ŷ",Bge="ŷ",Gge="Ы",Vge="ы",zge="¥",Hge="𝔜",qge="𝔶",Yge="Ї",$ge="ї",Wge="𝕐",Kge="𝕪",jge="𝒴",Qge="𝓎",Xge="Ю",Zge="ю",Jge="ÿ",ebe="Ÿ",tbe="Ź",nbe="ź",sbe="Ž",rbe="ž",ibe="З",obe="з",abe="Ż",lbe="ż",cbe="ℨ",dbe="​",ube="Ζ",pbe="ζ",fbe="𝔷",_be="ℨ",mbe="Ж",hbe="ж",gbe="⇝",bbe="𝕫",ybe="ℤ",Ebe="𝒵",vbe="𝓏",Sbe="‍",Tbe="‌",xbe={Aacute:aF,aacute:lF,Abreve:cF,abreve:dF,ac:uF,acd:pF,acE:fF,Acirc:_F,acirc:mF,acute:hF,Acy:gF,acy:bF,AElig:yF,aelig:EF,af:vF,Afr:SF,afr:TF,Agrave:xF,agrave:CF,alefsym:wF,aleph:RF,Alpha:AF,alpha:MF,Amacr:NF,amacr:OF,amalg:IF,amp:kF,AMP:DF,andand:LF,And:PF,and:FF,andd:UF,andslope:BF,andv:GF,ang:VF,ange:zF,angle:HF,angmsdaa:qF,angmsdab:YF,angmsdac:$F,angmsdad:WF,angmsdae:KF,angmsdaf:jF,angmsdag:QF,angmsdah:XF,angmsd:ZF,angrt:JF,angrtvb:eU,angrtvbd:tU,angsph:nU,angst:sU,angzarr:rU,Aogon:iU,aogon:oU,Aopf:aU,aopf:lU,apacir:cU,ap:dU,apE:uU,ape:pU,apid:fU,apos:_U,ApplyFunction:mU,approx:hU,approxeq:gU,Aring:bU,aring:yU,Ascr:EU,ascr:vU,Assign:SU,ast:TU,asymp:xU,asympeq:CU,Atilde:wU,atilde:RU,Auml:AU,auml:MU,awconint:NU,awint:OU,backcong:IU,backepsilon:kU,backprime:DU,backsim:LU,backsimeq:PU,Backslash:FU,Barv:UU,barvee:BU,barwed:GU,Barwed:VU,barwedge:zU,bbrk:HU,bbrktbrk:qU,bcong:YU,Bcy:$U,bcy:WU,bdquo:KU,becaus:jU,because:QU,Because:XU,bemptyv:ZU,bepsi:JU,bernou:eB,Bernoullis:tB,Beta:nB,beta:sB,beth:rB,between:iB,Bfr:oB,bfr:aB,bigcap:lB,bigcirc:cB,bigcup:dB,bigodot:uB,bigoplus:pB,bigotimes:fB,bigsqcup:_B,bigstar:mB,bigtriangledown:hB,bigtriangleup:gB,biguplus:bB,bigvee:yB,bigwedge:EB,bkarow:vB,blacklozenge:SB,blacksquare:TB,blacktriangle:xB,blacktriangledown:CB,blacktriangleleft:wB,blacktriangleright:RB,blank:AB,blk12:MB,blk14:NB,blk34:OB,block:IB,bne:kB,bnequiv:DB,bNot:LB,bnot:PB,Bopf:FB,bopf:UB,bot:BB,bottom:GB,bowtie:VB,boxbox:zB,boxdl:HB,boxdL:qB,boxDl:YB,boxDL:$B,boxdr:WB,boxdR:KB,boxDr:jB,boxDR:QB,boxh:XB,boxH:ZB,boxhd:JB,boxHd:e6,boxhD:t6,boxHD:n6,boxhu:s6,boxHu:r6,boxhU:i6,boxHU:o6,boxminus:a6,boxplus:l6,boxtimes:c6,boxul:d6,boxuL:u6,boxUl:p6,boxUL:f6,boxur:_6,boxuR:m6,boxUr:h6,boxUR:g6,boxv:b6,boxV:y6,boxvh:E6,boxvH:v6,boxVh:S6,boxVH:T6,boxvl:x6,boxvL:C6,boxVl:w6,boxVL:R6,boxvr:A6,boxvR:M6,boxVr:N6,boxVR:O6,bprime:I6,breve:k6,Breve:D6,brvbar:L6,bscr:P6,Bscr:F6,bsemi:U6,bsim:B6,bsime:G6,bsolb:V6,bsol:z6,bsolhsub:H6,bull:q6,bullet:Y6,bump:$6,bumpE:W6,bumpe:K6,Bumpeq:j6,bumpeq:Q6,Cacute:X6,cacute:Z6,capand:J6,capbrcup:e9,capcap:t9,cap:n9,Cap:s9,capcup:r9,capdot:i9,CapitalDifferentialD:o9,caps:a9,caret:l9,caron:c9,Cayleys:d9,ccaps:u9,Ccaron:p9,ccaron:f9,Ccedil:_9,ccedil:m9,Ccirc:h9,ccirc:g9,Cconint:b9,ccups:y9,ccupssm:E9,Cdot:v9,cdot:S9,cedil:T9,Cedilla:x9,cemptyv:C9,cent:w9,centerdot:R9,CenterDot:A9,cfr:M9,Cfr:N9,CHcy:O9,chcy:I9,check:k9,checkmark:D9,Chi:L9,chi:P9,circ:F9,circeq:U9,circlearrowleft:B9,circlearrowright:G9,circledast:V9,circledcirc:z9,circleddash:H9,CircleDot:q9,circledR:Y9,circledS:$9,CircleMinus:W9,CirclePlus:K9,CircleTimes:j9,cir:Q9,cirE:X9,cire:Z9,cirfnint:J9,cirmid:e8,cirscir:t8,ClockwiseContourIntegral:n8,CloseCurlyDoubleQuote:s8,CloseCurlyQuote:r8,clubs:i8,clubsuit:o8,colon:a8,Colon:l8,Colone:c8,colone:d8,coloneq:u8,comma:p8,commat:f8,comp:_8,compfn:m8,complement:h8,complexes:g8,cong:b8,congdot:y8,Congruent:E8,conint:v8,Conint:S8,ContourIntegral:T8,copf:x8,Copf:C8,coprod:w8,Coproduct:R8,copy:A8,COPY:M8,copysr:N8,CounterClockwiseContourIntegral:O8,crarr:I8,cross:k8,Cross:D8,Cscr:L8,cscr:P8,csub:F8,csube:U8,csup:B8,csupe:G8,ctdot:V8,cudarrl:z8,cudarrr:H8,cuepr:q8,cuesc:Y8,cularr:$8,cularrp:W8,cupbrcap:K8,cupcap:j8,CupCap:Q8,cup:X8,Cup:Z8,cupcup:J8,cupdot:eG,cupor:tG,cups:nG,curarr:sG,curarrm:rG,curlyeqprec:iG,curlyeqsucc:oG,curlyvee:aG,curlywedge:lG,curren:cG,curvearrowleft:dG,curvearrowright:uG,cuvee:pG,cuwed:fG,cwconint:_G,cwint:mG,cylcty:hG,dagger:gG,Dagger:bG,daleth:yG,darr:EG,Darr:vG,dArr:SG,dash:TG,Dashv:xG,dashv:CG,dbkarow:wG,dblac:RG,Dcaron:AG,dcaron:MG,Dcy:NG,dcy:OG,ddagger:IG,ddarr:kG,DD:DG,dd:LG,DDotrahd:PG,ddotseq:FG,deg:UG,Del:BG,Delta:GG,delta:VG,demptyv:zG,dfisht:HG,Dfr:qG,dfr:YG,dHar:$G,dharl:WG,dharr:KG,DiacriticalAcute:jG,DiacriticalDot:QG,DiacriticalDoubleAcute:XG,DiacriticalGrave:ZG,DiacriticalTilde:JG,diam:e7,diamond:t7,Diamond:n7,diamondsuit:s7,diams:r7,die:i7,DifferentialD:o7,digamma:a7,disin:l7,div:c7,divide:d7,divideontimes:u7,divonx:p7,DJcy:f7,djcy:_7,dlcorn:m7,dlcrop:h7,dollar:g7,Dopf:b7,dopf:y7,Dot:E7,dot:v7,DotDot:S7,doteq:T7,doteqdot:x7,DotEqual:C7,dotminus:w7,dotplus:R7,dotsquare:A7,doublebarwedge:M7,DoubleContourIntegral:N7,DoubleDot:O7,DoubleDownArrow:I7,DoubleLeftArrow:k7,DoubleLeftRightArrow:D7,DoubleLeftTee:L7,DoubleLongLeftArrow:P7,DoubleLongLeftRightArrow:F7,DoubleLongRightArrow:U7,DoubleRightArrow:B7,DoubleRightTee:G7,DoubleUpArrow:V7,DoubleUpDownArrow:z7,DoubleVerticalBar:H7,DownArrowBar:q7,downarrow:Y7,DownArrow:$7,Downarrow:W7,DownArrowUpArrow:K7,DownBreve:j7,downdownarrows:Q7,downharpoonleft:X7,downharpoonright:Z7,DownLeftRightVector:J7,DownLeftTeeVector:eV,DownLeftVectorBar:tV,DownLeftVector:nV,DownRightTeeVector:sV,DownRightVectorBar:rV,DownRightVector:iV,DownTeeArrow:oV,DownTee:aV,drbkarow:lV,drcorn:cV,drcrop:dV,Dscr:uV,dscr:pV,DScy:fV,dscy:_V,dsol:mV,Dstrok:hV,dstrok:gV,dtdot:bV,dtri:yV,dtrif:EV,duarr:vV,duhar:SV,dwangle:TV,DZcy:xV,dzcy:CV,dzigrarr:wV,Eacute:RV,eacute:AV,easter:MV,Ecaron:NV,ecaron:OV,Ecirc:IV,ecirc:kV,ecir:DV,ecolon:LV,Ecy:PV,ecy:FV,eDDot:UV,Edot:BV,edot:GV,eDot:VV,ee:zV,efDot:HV,Efr:qV,efr:YV,eg:$V,Egrave:WV,egrave:KV,egs:jV,egsdot:QV,el:XV,Element:ZV,elinters:JV,ell:ez,els:tz,elsdot:nz,Emacr:sz,emacr:rz,empty:iz,emptyset:oz,EmptySmallSquare:az,emptyv:lz,EmptyVerySmallSquare:cz,emsp13:dz,emsp14:uz,emsp:pz,ENG:fz,eng:_z,ensp:mz,Eogon:hz,eogon:gz,Eopf:bz,eopf:yz,epar:Ez,eparsl:vz,eplus:Sz,epsi:Tz,Epsilon:xz,epsilon:Cz,epsiv:wz,eqcirc:Rz,eqcolon:Az,eqsim:Mz,eqslantgtr:Nz,eqslantless:Oz,Equal:Iz,equals:kz,EqualTilde:Dz,equest:Lz,Equilibrium:Pz,equiv:Fz,equivDD:Uz,eqvparsl:Bz,erarr:Gz,erDot:Vz,escr:zz,Escr:Hz,esdot:qz,Esim:Yz,esim:$z,Eta:Wz,eta:Kz,ETH:jz,eth:Qz,Euml:Xz,euml:Zz,euro:Jz,excl:eH,exist:tH,Exists:nH,expectation:sH,exponentiale:rH,ExponentialE:iH,fallingdotseq:oH,Fcy:aH,fcy:lH,female:cH,ffilig:dH,fflig:uH,ffllig:pH,Ffr:fH,ffr:_H,filig:mH,FilledSmallSquare:hH,FilledVerySmallSquare:gH,fjlig:bH,flat:yH,fllig:EH,fltns:vH,fnof:SH,Fopf:TH,fopf:xH,forall:CH,ForAll:wH,fork:RH,forkv:AH,Fouriertrf:MH,fpartint:NH,frac12:OH,frac13:IH,frac14:kH,frac15:DH,frac16:LH,frac18:PH,frac23:FH,frac25:UH,frac34:BH,frac35:GH,frac38:VH,frac45:zH,frac56:HH,frac58:qH,frac78:YH,frasl:$H,frown:WH,fscr:KH,Fscr:jH,gacute:QH,Gamma:XH,gamma:ZH,Gammad:JH,gammad:eq,gap:tq,Gbreve:nq,gbreve:sq,Gcedil:rq,Gcirc:iq,gcirc:oq,Gcy:aq,gcy:lq,Gdot:cq,gdot:dq,ge:uq,gE:pq,gEl:fq,gel:_q,geq:mq,geqq:hq,geqslant:gq,gescc:bq,ges:yq,gesdot:Eq,gesdoto:vq,gesdotol:Sq,gesl:Tq,gesles:xq,Gfr:Cq,gfr:wq,gg:Rq,Gg:Aq,ggg:Mq,gimel:Nq,GJcy:Oq,gjcy:Iq,gla:kq,gl:Dq,glE:Lq,glj:Pq,gnap:Fq,gnapprox:Uq,gne:Bq,gnE:Gq,gneq:Vq,gneqq:zq,gnsim:Hq,Gopf:qq,gopf:Yq,grave:$q,GreaterEqual:Wq,GreaterEqualLess:Kq,GreaterFullEqual:jq,GreaterGreater:Qq,GreaterLess:Xq,GreaterSlantEqual:Zq,GreaterTilde:Jq,Gscr:eY,gscr:tY,gsim:nY,gsime:sY,gsiml:rY,gtcc:iY,gtcir:oY,gt:aY,GT:lY,Gt:cY,gtdot:dY,gtlPar:uY,gtquest:pY,gtrapprox:fY,gtrarr:_Y,gtrdot:mY,gtreqless:hY,gtreqqless:gY,gtrless:bY,gtrsim:yY,gvertneqq:EY,gvnE:vY,Hacek:SY,hairsp:TY,half:xY,hamilt:CY,HARDcy:wY,hardcy:RY,harrcir:AY,harr:MY,hArr:NY,harrw:OY,Hat:IY,hbar:kY,Hcirc:DY,hcirc:LY,hearts:PY,heartsuit:FY,hellip:UY,hercon:BY,hfr:GY,Hfr:VY,HilbertSpace:zY,hksearow:HY,hkswarow:qY,hoarr:YY,homtht:$Y,hookleftarrow:WY,hookrightarrow:KY,hopf:jY,Hopf:QY,horbar:XY,HorizontalLine:ZY,hscr:JY,Hscr:e$,hslash:t$,Hstrok:n$,hstrok:s$,HumpDownHump:r$,HumpEqual:i$,hybull:o$,hyphen:a$,Iacute:l$,iacute:c$,ic:d$,Icirc:u$,icirc:p$,Icy:f$,icy:_$,Idot:m$,IEcy:h$,iecy:g$,iexcl:b$,iff:y$,ifr:E$,Ifr:v$,Igrave:S$,igrave:T$,ii:x$,iiiint:C$,iiint:w$,iinfin:R$,iiota:A$,IJlig:M$,ijlig:N$,Imacr:O$,imacr:I$,image:k$,ImaginaryI:D$,imagline:L$,imagpart:P$,imath:F$,Im:U$,imof:B$,imped:G$,Implies:V$,incare:z$,in:"∈",infin:H$,infintie:q$,inodot:Y$,intcal:$$,int:W$,Int:K$,integers:j$,Integral:Q$,intercal:X$,Intersection:Z$,intlarhk:J$,intprod:eW,InvisibleComma:tW,InvisibleTimes:nW,IOcy:sW,iocy:rW,Iogon:iW,iogon:oW,Iopf:aW,iopf:lW,Iota:cW,iota:dW,iprod:uW,iquest:pW,iscr:fW,Iscr:_W,isin:mW,isindot:hW,isinE:gW,isins:bW,isinsv:yW,isinv:EW,it:vW,Itilde:SW,itilde:TW,Iukcy:xW,iukcy:CW,Iuml:wW,iuml:RW,Jcirc:AW,jcirc:MW,Jcy:NW,jcy:OW,Jfr:IW,jfr:kW,jmath:DW,Jopf:LW,jopf:PW,Jscr:FW,jscr:UW,Jsercy:BW,jsercy:GW,Jukcy:VW,jukcy:zW,Kappa:HW,kappa:qW,kappav:YW,Kcedil:$W,kcedil:WW,Kcy:KW,kcy:jW,Kfr:QW,kfr:XW,kgreen:ZW,KHcy:JW,khcy:eK,KJcy:tK,kjcy:nK,Kopf:sK,kopf:rK,Kscr:iK,kscr:oK,lAarr:aK,Lacute:lK,lacute:cK,laemptyv:dK,lagran:uK,Lambda:pK,lambda:fK,lang:_K,Lang:mK,langd:hK,langle:gK,lap:bK,Laplacetrf:yK,laquo:EK,larrb:vK,larrbfs:SK,larr:TK,Larr:xK,lArr:CK,larrfs:wK,larrhk:RK,larrlp:AK,larrpl:MK,larrsim:NK,larrtl:OK,latail:IK,lAtail:kK,lat:DK,late:LK,lates:PK,lbarr:FK,lBarr:UK,lbbrk:BK,lbrace:GK,lbrack:VK,lbrke:zK,lbrksld:HK,lbrkslu:qK,Lcaron:YK,lcaron:$K,Lcedil:WK,lcedil:KK,lceil:jK,lcub:QK,Lcy:XK,lcy:ZK,ldca:JK,ldquo:ej,ldquor:tj,ldrdhar:nj,ldrushar:sj,ldsh:rj,le:ij,lE:oj,LeftAngleBracket:aj,LeftArrowBar:lj,leftarrow:cj,LeftArrow:dj,Leftarrow:uj,LeftArrowRightArrow:pj,leftarrowtail:fj,LeftCeiling:_j,LeftDoubleBracket:mj,LeftDownTeeVector:hj,LeftDownVectorBar:gj,LeftDownVector:bj,LeftFloor:yj,leftharpoondown:Ej,leftharpoonup:vj,leftleftarrows:Sj,leftrightarrow:Tj,LeftRightArrow:xj,Leftrightarrow:Cj,leftrightarrows:wj,leftrightharpoons:Rj,leftrightsquigarrow:Aj,LeftRightVector:Mj,LeftTeeArrow:Nj,LeftTee:Oj,LeftTeeVector:Ij,leftthreetimes:kj,LeftTriangleBar:Dj,LeftTriangle:Lj,LeftTriangleEqual:Pj,LeftUpDownVector:Fj,LeftUpTeeVector:Uj,LeftUpVectorBar:Bj,LeftUpVector:Gj,LeftVectorBar:Vj,LeftVector:zj,lEg:Hj,leg:qj,leq:Yj,leqq:$j,leqslant:Wj,lescc:Kj,les:jj,lesdot:Qj,lesdoto:Xj,lesdotor:Zj,lesg:Jj,lesges:eQ,lessapprox:tQ,lessdot:nQ,lesseqgtr:sQ,lesseqqgtr:rQ,LessEqualGreater:iQ,LessFullEqual:oQ,LessGreater:aQ,lessgtr:lQ,LessLess:cQ,lesssim:dQ,LessSlantEqual:uQ,LessTilde:pQ,lfisht:fQ,lfloor:_Q,Lfr:mQ,lfr:hQ,lg:gQ,lgE:bQ,lHar:yQ,lhard:EQ,lharu:vQ,lharul:SQ,lhblk:TQ,LJcy:xQ,ljcy:CQ,llarr:wQ,ll:RQ,Ll:AQ,llcorner:MQ,Lleftarrow:NQ,llhard:OQ,lltri:IQ,Lmidot:kQ,lmidot:DQ,lmoustache:LQ,lmoust:PQ,lnap:FQ,lnapprox:UQ,lne:BQ,lnE:GQ,lneq:VQ,lneqq:zQ,lnsim:HQ,loang:qQ,loarr:YQ,lobrk:$Q,longleftarrow:WQ,LongLeftArrow:KQ,Longleftarrow:jQ,longleftrightarrow:QQ,LongLeftRightArrow:XQ,Longleftrightarrow:ZQ,longmapsto:JQ,longrightarrow:eX,LongRightArrow:tX,Longrightarrow:nX,looparrowleft:sX,looparrowright:rX,lopar:iX,Lopf:oX,lopf:aX,loplus:lX,lotimes:cX,lowast:dX,lowbar:uX,LowerLeftArrow:pX,LowerRightArrow:fX,loz:_X,lozenge:mX,lozf:hX,lpar:gX,lparlt:bX,lrarr:yX,lrcorner:EX,lrhar:vX,lrhard:SX,lrm:TX,lrtri:xX,lsaquo:CX,lscr:wX,Lscr:RX,lsh:AX,Lsh:MX,lsim:NX,lsime:OX,lsimg:IX,lsqb:kX,lsquo:DX,lsquor:LX,Lstrok:PX,lstrok:FX,ltcc:UX,ltcir:BX,lt:GX,LT:VX,Lt:zX,ltdot:HX,lthree:qX,ltimes:YX,ltlarr:$X,ltquest:WX,ltri:KX,ltrie:jX,ltrif:QX,ltrPar:XX,lurdshar:ZX,luruhar:JX,lvertneqq:eZ,lvnE:tZ,macr:nZ,male:sZ,malt:rZ,maltese:iZ,Map:"⤅",map:oZ,mapsto:aZ,mapstodown:lZ,mapstoleft:cZ,mapstoup:dZ,marker:uZ,mcomma:pZ,Mcy:fZ,mcy:_Z,mdash:mZ,mDDot:hZ,measuredangle:gZ,MediumSpace:bZ,Mellintrf:yZ,Mfr:EZ,mfr:vZ,mho:SZ,micro:TZ,midast:xZ,midcir:CZ,mid:wZ,middot:RZ,minusb:AZ,minus:MZ,minusd:NZ,minusdu:OZ,MinusPlus:IZ,mlcp:kZ,mldr:DZ,mnplus:LZ,models:PZ,Mopf:FZ,mopf:UZ,mp:BZ,mscr:GZ,Mscr:VZ,mstpos:zZ,Mu:HZ,mu:qZ,multimap:YZ,mumap:$Z,nabla:WZ,Nacute:KZ,nacute:jZ,nang:QZ,nap:XZ,napE:ZZ,napid:JZ,napos:eJ,napprox:tJ,natural:nJ,naturals:sJ,natur:rJ,nbsp:iJ,nbump:oJ,nbumpe:aJ,ncap:lJ,Ncaron:cJ,ncaron:dJ,Ncedil:uJ,ncedil:pJ,ncong:fJ,ncongdot:_J,ncup:mJ,Ncy:hJ,ncy:gJ,ndash:bJ,nearhk:yJ,nearr:EJ,neArr:vJ,nearrow:SJ,ne:TJ,nedot:xJ,NegativeMediumSpace:CJ,NegativeThickSpace:wJ,NegativeThinSpace:RJ,NegativeVeryThinSpace:AJ,nequiv:MJ,nesear:NJ,nesim:OJ,NestedGreaterGreater:IJ,NestedLessLess:kJ,NewLine:DJ,nexist:LJ,nexists:PJ,Nfr:FJ,nfr:UJ,ngE:BJ,nge:GJ,ngeq:VJ,ngeqq:zJ,ngeqslant:HJ,nges:qJ,nGg:YJ,ngsim:$J,nGt:WJ,ngt:KJ,ngtr:jJ,nGtv:QJ,nharr:XJ,nhArr:ZJ,nhpar:JJ,ni:eee,nis:tee,nisd:nee,niv:see,NJcy:ree,njcy:iee,nlarr:oee,nlArr:aee,nldr:lee,nlE:cee,nle:dee,nleftarrow:uee,nLeftarrow:pee,nleftrightarrow:fee,nLeftrightarrow:_ee,nleq:mee,nleqq:hee,nleqslant:gee,nles:bee,nless:yee,nLl:Eee,nlsim:vee,nLt:See,nlt:Tee,nltri:xee,nltrie:Cee,nLtv:wee,nmid:Ree,NoBreak:Aee,NonBreakingSpace:Mee,nopf:Nee,Nopf:Oee,Not:Iee,not:kee,NotCongruent:Dee,NotCupCap:Lee,NotDoubleVerticalBar:Pee,NotElement:Fee,NotEqual:Uee,NotEqualTilde:Bee,NotExists:Gee,NotGreater:Vee,NotGreaterEqual:zee,NotGreaterFullEqual:Hee,NotGreaterGreater:qee,NotGreaterLess:Yee,NotGreaterSlantEqual:$ee,NotGreaterTilde:Wee,NotHumpDownHump:Kee,NotHumpEqual:jee,notin:Qee,notindot:Xee,notinE:Zee,notinva:Jee,notinvb:ete,notinvc:tte,NotLeftTriangleBar:nte,NotLeftTriangle:ste,NotLeftTriangleEqual:rte,NotLess:ite,NotLessEqual:ote,NotLessGreater:ate,NotLessLess:lte,NotLessSlantEqual:cte,NotLessTilde:dte,NotNestedGreaterGreater:ute,NotNestedLessLess:pte,notni:fte,notniva:_te,notnivb:mte,notnivc:hte,NotPrecedes:gte,NotPrecedesEqual:bte,NotPrecedesSlantEqual:yte,NotReverseElement:Ete,NotRightTriangleBar:vte,NotRightTriangle:Ste,NotRightTriangleEqual:Tte,NotSquareSubset:xte,NotSquareSubsetEqual:Cte,NotSquareSuperset:wte,NotSquareSupersetEqual:Rte,NotSubset:Ate,NotSubsetEqual:Mte,NotSucceeds:Nte,NotSucceedsEqual:Ote,NotSucceedsSlantEqual:Ite,NotSucceedsTilde:kte,NotSuperset:Dte,NotSupersetEqual:Lte,NotTilde:Pte,NotTildeEqual:Fte,NotTildeFullEqual:Ute,NotTildeTilde:Bte,NotVerticalBar:Gte,nparallel:Vte,npar:zte,nparsl:Hte,npart:qte,npolint:Yte,npr:$te,nprcue:Wte,nprec:Kte,npreceq:jte,npre:Qte,nrarrc:Xte,nrarr:Zte,nrArr:Jte,nrarrw:ene,nrightarrow:tne,nRightarrow:nne,nrtri:sne,nrtrie:rne,nsc:ine,nsccue:one,nsce:ane,Nscr:lne,nscr:cne,nshortmid:dne,nshortparallel:une,nsim:pne,nsime:fne,nsimeq:_ne,nsmid:mne,nspar:hne,nsqsube:gne,nsqsupe:bne,nsub:yne,nsubE:Ene,nsube:vne,nsubset:Sne,nsubseteq:Tne,nsubseteqq:xne,nsucc:Cne,nsucceq:wne,nsup:Rne,nsupE:Ane,nsupe:Mne,nsupset:Nne,nsupseteq:One,nsupseteqq:Ine,ntgl:kne,Ntilde:Dne,ntilde:Lne,ntlg:Pne,ntriangleleft:Fne,ntrianglelefteq:Une,ntriangleright:Bne,ntrianglerighteq:Gne,Nu:Vne,nu:zne,num:Hne,numero:qne,numsp:Yne,nvap:$ne,nvdash:Wne,nvDash:Kne,nVdash:jne,nVDash:Qne,nvge:Xne,nvgt:Zne,nvHarr:Jne,nvinfin:ese,nvlArr:tse,nvle:nse,nvlt:sse,nvltrie:rse,nvrArr:ise,nvrtrie:ose,nvsim:ase,nwarhk:lse,nwarr:cse,nwArr:dse,nwarrow:use,nwnear:pse,Oacute:fse,oacute:_se,oast:mse,Ocirc:hse,ocirc:gse,ocir:bse,Ocy:yse,ocy:Ese,odash:vse,Odblac:Sse,odblac:Tse,odiv:xse,odot:Cse,odsold:wse,OElig:Rse,oelig:Ase,ofcir:Mse,Ofr:Nse,ofr:Ose,ogon:Ise,Ograve:kse,ograve:Dse,ogt:Lse,ohbar:Pse,ohm:Fse,oint:Use,olarr:Bse,olcir:Gse,olcross:Vse,oline:zse,olt:Hse,Omacr:qse,omacr:Yse,Omega:$se,omega:Wse,Omicron:Kse,omicron:jse,omid:Qse,ominus:Xse,Oopf:Zse,oopf:Jse,opar:ere,OpenCurlyDoubleQuote:tre,OpenCurlyQuote:nre,operp:sre,oplus:rre,orarr:ire,Or:ore,or:are,ord:lre,order:cre,orderof:dre,ordf:ure,ordm:pre,origof:fre,oror:_re,orslope:mre,orv:hre,oS:gre,Oscr:bre,oscr:yre,Oslash:Ere,oslash:vre,osol:Sre,Otilde:Tre,otilde:xre,otimesas:Cre,Otimes:wre,otimes:Rre,Ouml:Are,ouml:Mre,ovbar:Nre,OverBar:Ore,OverBrace:Ire,OverBracket:kre,OverParenthesis:Dre,para:Lre,parallel:Pre,par:Fre,parsim:Ure,parsl:Bre,part:Gre,PartialD:Vre,Pcy:zre,pcy:Hre,percnt:qre,period:Yre,permil:$re,perp:Wre,pertenk:Kre,Pfr:jre,pfr:Qre,Phi:Xre,phi:Zre,phiv:Jre,phmmat:eie,phone:tie,Pi:nie,pi:sie,pitchfork:rie,piv:iie,planck:oie,planckh:aie,plankv:lie,plusacir:cie,plusb:die,pluscir:uie,plus:pie,plusdo:fie,plusdu:_ie,pluse:mie,PlusMinus:hie,plusmn:gie,plussim:bie,plustwo:yie,pm:Eie,Poincareplane:vie,pointint:Sie,popf:Tie,Popf:xie,pound:Cie,prap:wie,Pr:Rie,pr:Aie,prcue:Mie,precapprox:Nie,prec:Oie,preccurlyeq:Iie,Precedes:kie,PrecedesEqual:Die,PrecedesSlantEqual:Lie,PrecedesTilde:Pie,preceq:Fie,precnapprox:Uie,precneqq:Bie,precnsim:Gie,pre:Vie,prE:zie,precsim:Hie,prime:qie,Prime:Yie,primes:$ie,prnap:Wie,prnE:Kie,prnsim:jie,prod:Qie,Product:Xie,profalar:Zie,profline:Jie,profsurf:eoe,prop:toe,Proportional:noe,Proportion:soe,propto:roe,prsim:ioe,prurel:ooe,Pscr:aoe,pscr:loe,Psi:coe,psi:doe,puncsp:uoe,Qfr:poe,qfr:foe,qint:_oe,qopf:moe,Qopf:hoe,qprime:goe,Qscr:boe,qscr:yoe,quaternions:Eoe,quatint:voe,quest:Soe,questeq:Toe,quot:xoe,QUOT:Coe,rAarr:woe,race:Roe,Racute:Aoe,racute:Moe,radic:Noe,raemptyv:Ooe,rang:Ioe,Rang:koe,rangd:Doe,range:Loe,rangle:Poe,raquo:Foe,rarrap:Uoe,rarrb:Boe,rarrbfs:Goe,rarrc:Voe,rarr:zoe,Rarr:Hoe,rArr:qoe,rarrfs:Yoe,rarrhk:$oe,rarrlp:Woe,rarrpl:Koe,rarrsim:joe,Rarrtl:Qoe,rarrtl:Xoe,rarrw:Zoe,ratail:Joe,rAtail:eae,ratio:tae,rationals:nae,rbarr:sae,rBarr:rae,RBarr:iae,rbbrk:oae,rbrace:aae,rbrack:lae,rbrke:cae,rbrksld:dae,rbrkslu:uae,Rcaron:pae,rcaron:fae,Rcedil:_ae,rcedil:mae,rceil:hae,rcub:gae,Rcy:bae,rcy:yae,rdca:Eae,rdldhar:vae,rdquo:Sae,rdquor:Tae,rdsh:xae,real:Cae,realine:wae,realpart:Rae,reals:Aae,Re:Mae,rect:Nae,reg:Oae,REG:Iae,ReverseElement:kae,ReverseEquilibrium:Dae,ReverseUpEquilibrium:Lae,rfisht:Pae,rfloor:Fae,rfr:Uae,Rfr:Bae,rHar:Gae,rhard:Vae,rharu:zae,rharul:Hae,Rho:qae,rho:Yae,rhov:$ae,RightAngleBracket:Wae,RightArrowBar:Kae,rightarrow:jae,RightArrow:Qae,Rightarrow:Xae,RightArrowLeftArrow:Zae,rightarrowtail:Jae,RightCeiling:ele,RightDoubleBracket:tle,RightDownTeeVector:nle,RightDownVectorBar:sle,RightDownVector:rle,RightFloor:ile,rightharpoondown:ole,rightharpoonup:ale,rightleftarrows:lle,rightleftharpoons:cle,rightrightarrows:dle,rightsquigarrow:ule,RightTeeArrow:ple,RightTee:fle,RightTeeVector:_le,rightthreetimes:mle,RightTriangleBar:hle,RightTriangle:gle,RightTriangleEqual:ble,RightUpDownVector:yle,RightUpTeeVector:Ele,RightUpVectorBar:vle,RightUpVector:Sle,RightVectorBar:Tle,RightVector:xle,ring:Cle,risingdotseq:wle,rlarr:Rle,rlhar:Ale,rlm:Mle,rmoustache:Nle,rmoust:Ole,rnmid:Ile,roang:kle,roarr:Dle,robrk:Lle,ropar:Ple,ropf:Fle,Ropf:Ule,roplus:Ble,rotimes:Gle,RoundImplies:Vle,rpar:zle,rpargt:Hle,rppolint:qle,rrarr:Yle,Rrightarrow:$le,rsaquo:Wle,rscr:Kle,Rscr:jle,rsh:Qle,Rsh:Xle,rsqb:Zle,rsquo:Jle,rsquor:ece,rthree:tce,rtimes:nce,rtri:sce,rtrie:rce,rtrif:ice,rtriltri:oce,RuleDelayed:ace,ruluhar:lce,rx:cce,Sacute:dce,sacute:uce,sbquo:pce,scap:fce,Scaron:_ce,scaron:mce,Sc:hce,sc:gce,sccue:bce,sce:yce,scE:Ece,Scedil:vce,scedil:Sce,Scirc:Tce,scirc:xce,scnap:Cce,scnE:wce,scnsim:Rce,scpolint:Ace,scsim:Mce,Scy:Nce,scy:Oce,sdotb:Ice,sdot:kce,sdote:Dce,searhk:Lce,searr:Pce,seArr:Fce,searrow:Uce,sect:Bce,semi:Gce,seswar:Vce,setminus:zce,setmn:Hce,sext:qce,Sfr:Yce,sfr:$ce,sfrown:Wce,sharp:Kce,SHCHcy:jce,shchcy:Qce,SHcy:Xce,shcy:Zce,ShortDownArrow:Jce,ShortLeftArrow:ede,shortmid:tde,shortparallel:nde,ShortRightArrow:sde,ShortUpArrow:rde,shy:ide,Sigma:ode,sigma:ade,sigmaf:lde,sigmav:cde,sim:dde,simdot:ude,sime:pde,simeq:fde,simg:_de,simgE:mde,siml:hde,simlE:gde,simne:bde,simplus:yde,simrarr:Ede,slarr:vde,SmallCircle:Sde,smallsetminus:Tde,smashp:xde,smeparsl:Cde,smid:wde,smile:Rde,smt:Ade,smte:Mde,smtes:Nde,SOFTcy:Ode,softcy:Ide,solbar:kde,solb:Dde,sol:Lde,Sopf:Pde,sopf:Fde,spades:Ude,spadesuit:Bde,spar:Gde,sqcap:Vde,sqcaps:zde,sqcup:Hde,sqcups:qde,Sqrt:Yde,sqsub:$de,sqsube:Wde,sqsubset:Kde,sqsubseteq:jde,sqsup:Qde,sqsupe:Xde,sqsupset:Zde,sqsupseteq:Jde,square:eue,Square:tue,SquareIntersection:nue,SquareSubset:sue,SquareSubsetEqual:rue,SquareSuperset:iue,SquareSupersetEqual:oue,SquareUnion:aue,squarf:lue,squ:cue,squf:due,srarr:uue,Sscr:pue,sscr:fue,ssetmn:_ue,ssmile:mue,sstarf:hue,Star:gue,star:bue,starf:yue,straightepsilon:Eue,straightphi:vue,strns:Sue,sub:Tue,Sub:xue,subdot:Cue,subE:wue,sube:Rue,subedot:Aue,submult:Mue,subnE:Nue,subne:Oue,subplus:Iue,subrarr:kue,subset:Due,Subset:Lue,subseteq:Pue,subseteqq:Fue,SubsetEqual:Uue,subsetneq:Bue,subsetneqq:Gue,subsim:Vue,subsub:zue,subsup:Hue,succapprox:que,succ:Yue,succcurlyeq:$ue,Succeeds:Wue,SucceedsEqual:Kue,SucceedsSlantEqual:jue,SucceedsTilde:Que,succeq:Xue,succnapprox:Zue,succneqq:Jue,succnsim:epe,succsim:tpe,SuchThat:npe,sum:spe,Sum:rpe,sung:ipe,sup1:ope,sup2:ape,sup3:lpe,sup:cpe,Sup:dpe,supdot:upe,supdsub:ppe,supE:fpe,supe:_pe,supedot:mpe,Superset:hpe,SupersetEqual:gpe,suphsol:bpe,suphsub:ype,suplarr:Epe,supmult:vpe,supnE:Spe,supne:Tpe,supplus:xpe,supset:Cpe,Supset:wpe,supseteq:Rpe,supseteqq:Ape,supsetneq:Mpe,supsetneqq:Npe,supsim:Ope,supsub:Ipe,supsup:kpe,swarhk:Dpe,swarr:Lpe,swArr:Ppe,swarrow:Fpe,swnwar:Upe,szlig:Bpe,Tab:Gpe,target:Vpe,Tau:zpe,tau:Hpe,tbrk:qpe,Tcaron:Ype,tcaron:$pe,Tcedil:Wpe,tcedil:Kpe,Tcy:jpe,tcy:Qpe,tdot:Xpe,telrec:Zpe,Tfr:Jpe,tfr:efe,there4:tfe,therefore:nfe,Therefore:sfe,Theta:rfe,theta:ife,thetasym:ofe,thetav:afe,thickapprox:lfe,thicksim:cfe,ThickSpace:dfe,ThinSpace:ufe,thinsp:pfe,thkap:ffe,thksim:_fe,THORN:mfe,thorn:hfe,tilde:gfe,Tilde:bfe,TildeEqual:yfe,TildeFullEqual:Efe,TildeTilde:vfe,timesbar:Sfe,timesb:Tfe,times:xfe,timesd:Cfe,tint:wfe,toea:Rfe,topbot:Afe,topcir:Mfe,top:Nfe,Topf:Ofe,topf:Ife,topfork:kfe,tosa:Dfe,tprime:Lfe,trade:Pfe,TRADE:Ffe,triangle:Ufe,triangledown:Bfe,triangleleft:Gfe,trianglelefteq:Vfe,triangleq:zfe,triangleright:Hfe,trianglerighteq:qfe,tridot:Yfe,trie:$fe,triminus:Wfe,TripleDot:Kfe,triplus:jfe,trisb:Qfe,tritime:Xfe,trpezium:Zfe,Tscr:Jfe,tscr:e_e,TScy:t_e,tscy:n_e,TSHcy:s_e,tshcy:r_e,Tstrok:i_e,tstrok:o_e,twixt:a_e,twoheadleftarrow:l_e,twoheadrightarrow:c_e,Uacute:d_e,uacute:u_e,uarr:p_e,Uarr:f_e,uArr:__e,Uarrocir:m_e,Ubrcy:h_e,ubrcy:g_e,Ubreve:b_e,ubreve:y_e,Ucirc:E_e,ucirc:v_e,Ucy:S_e,ucy:T_e,udarr:x_e,Udblac:C_e,udblac:w_e,udhar:R_e,ufisht:A_e,Ufr:M_e,ufr:N_e,Ugrave:O_e,ugrave:I_e,uHar:k_e,uharl:D_e,uharr:L_e,uhblk:P_e,ulcorn:F_e,ulcorner:U_e,ulcrop:B_e,ultri:G_e,Umacr:V_e,umacr:z_e,uml:H_e,UnderBar:q_e,UnderBrace:Y_e,UnderBracket:$_e,UnderParenthesis:W_e,Union:K_e,UnionPlus:j_e,Uogon:Q_e,uogon:X_e,Uopf:Z_e,uopf:J_e,UpArrowBar:eme,uparrow:tme,UpArrow:nme,Uparrow:sme,UpArrowDownArrow:rme,updownarrow:ime,UpDownArrow:ome,Updownarrow:ame,UpEquilibrium:lme,upharpoonleft:cme,upharpoonright:dme,uplus:ume,UpperLeftArrow:pme,UpperRightArrow:fme,upsi:_me,Upsi:mme,upsih:hme,Upsilon:gme,upsilon:bme,UpTeeArrow:yme,UpTee:Eme,upuparrows:vme,urcorn:Sme,urcorner:Tme,urcrop:xme,Uring:Cme,uring:wme,urtri:Rme,Uscr:Ame,uscr:Mme,utdot:Nme,Utilde:Ome,utilde:Ime,utri:kme,utrif:Dme,uuarr:Lme,Uuml:Pme,uuml:Fme,uwangle:Ume,vangrt:Bme,varepsilon:Gme,varkappa:Vme,varnothing:zme,varphi:Hme,varpi:qme,varpropto:Yme,varr:$me,vArr:Wme,varrho:Kme,varsigma:jme,varsubsetneq:Qme,varsubsetneqq:Xme,varsupsetneq:Zme,varsupsetneqq:Jme,vartheta:ehe,vartriangleleft:the,vartriangleright:nhe,vBar:she,Vbar:rhe,vBarv:ihe,Vcy:ohe,vcy:ahe,vdash:lhe,vDash:che,Vdash:dhe,VDash:uhe,Vdashl:phe,veebar:fhe,vee:_he,Vee:mhe,veeeq:hhe,vellip:ghe,verbar:bhe,Verbar:yhe,vert:Ehe,Vert:vhe,VerticalBar:She,VerticalLine:The,VerticalSeparator:xhe,VerticalTilde:Che,VeryThinSpace:whe,Vfr:Rhe,vfr:Ahe,vltri:Mhe,vnsub:Nhe,vnsup:Ohe,Vopf:Ihe,vopf:khe,vprop:Dhe,vrtri:Lhe,Vscr:Phe,vscr:Fhe,vsubnE:Uhe,vsubne:Bhe,vsupnE:Ghe,vsupne:Vhe,Vvdash:zhe,vzigzag:Hhe,Wcirc:qhe,wcirc:Yhe,wedbar:$he,wedge:Whe,Wedge:Khe,wedgeq:jhe,weierp:Qhe,Wfr:Xhe,wfr:Zhe,Wopf:Jhe,wopf:ege,wp:tge,wr:nge,wreath:sge,Wscr:rge,wscr:ige,xcap:oge,xcirc:age,xcup:lge,xdtri:cge,Xfr:dge,xfr:uge,xharr:pge,xhArr:fge,Xi:_ge,xi:mge,xlarr:hge,xlArr:gge,xmap:bge,xnis:yge,xodot:Ege,Xopf:vge,xopf:Sge,xoplus:Tge,xotime:xge,xrarr:Cge,xrArr:wge,Xscr:Rge,xscr:Age,xsqcup:Mge,xuplus:Nge,xutri:Oge,xvee:Ige,xwedge:kge,Yacute:Dge,yacute:Lge,YAcy:Pge,yacy:Fge,Ycirc:Uge,ycirc:Bge,Ycy:Gge,ycy:Vge,yen:zge,Yfr:Hge,yfr:qge,YIcy:Yge,yicy:$ge,Yopf:Wge,yopf:Kge,Yscr:jge,yscr:Qge,YUcy:Xge,yucy:Zge,yuml:Jge,Yuml:ebe,Zacute:tbe,zacute:nbe,Zcaron:sbe,zcaron:rbe,Zcy:ibe,zcy:obe,Zdot:abe,zdot:lbe,zeetrf:cbe,ZeroWidthSpace:dbe,Zeta:ube,zeta:pbe,zfr:fbe,Zfr:_be,ZHcy:mbe,zhcy:hbe,zigrarr:gbe,zopf:bbe,Zopf:ybe,Zscr:Ebe,zscr:vbe,zwj:Sbe,zwnj:Tbe};var XA=xbe,g0=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Ga={},yv={};function Cbe(n){var e,t,s=yv[n];if(s)return s;for(s=yv[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?s.push(t):s.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(t=!0),a=Cbe(e),s=0,r=n.length;s=55296&&i<=57343){if(i>=55296&&i<=56319&&s+1=56320&&o<=57343)){c+=encodeURIComponent(n[s]+n[s+1]),s++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(n[s])}return c}Zu.defaultChars=";/?:@&=+$,-_.!~*'()#";Zu.componentChars="-_.!~*'()";var wbe=Zu,Ev={};function Rbe(n){var e,t,s=Ev[n];if(s)return s;for(s=Ev[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),s.push(t);for(e=0;e=55296&&u<=57343?_+="���":_+=String.fromCharCode(u),r+=6;continue}if((o&248)===240&&r+91114111?_+="����":(u-=65536,_+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}_+="�"}return _})}Ju.defaultChars=";/?:@&=+$,#";Ju.componentChars="";var Abe=Ju,Mbe=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 Zd(){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 Nbe=/^([a-z0-9.+-]+:)/i,Obe=/:[0-9]*$/,Ibe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,kbe=["<",">",'"',"`"," ","\r",` -`," "],Dbe=["{","}","|","\\","^","`"].concat(kbe),Lbe=["'"].concat(Dbe),vv=["%","/","?",";","#"].concat(Lbe),Sv=["/","?","#"],Pbe=255,Tv=/^[+a-z0-9A-Z_-]{0,63}$/,Fbe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xv={javascript:!0,"javascript:":!0},Cv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ube(n,e){if(n&&n instanceof Zd)return n;var t=new Zd;return t.parse(n,e),t}Zd.prototype.parse=function(n,e){var t,s,r,i,o,a=n;if(a=a.trim(),!e&&n.split("#").length===1){var c=Ibe.exec(a);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var d=Nbe.exec(a);if(d&&(d=d[0],r=d.toLowerCase(),this.protocol=d,a=a.substr(d.length)),(e||d||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(d&&xv[d])&&(a=a.substr(2),this.slashes=!0)),!xv[d]&&(o||d&&!Cv[d])){var u=-1;for(t=0;t127?g+="x":g+=b[E];if(!g.match(Tv)){var S=y.slice(0,t),R=y.slice(t+1),w=b.match(Fbe);w&&(S.push(w[1]),R.unshift(w[2])),R.length&&(a=R.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>Pbe&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=a.indexOf("#");A!==-1&&(this.hash=a.substr(A),a=a.slice(0,A));var I=a.indexOf("?");return I!==-1&&(this.search=a.substr(I),a=a.slice(0,I)),a&&(this.pathname=a),Cv[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Zd.prototype.parseHost=function(n){var e=Obe.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 Bbe=Ube;Ga.encode=wbe;Ga.decode=Abe;Ga.format=Mbe;Ga.parse=Bbe;var Di={},Jp,wv;function ZA(){return wv||(wv=1,Jp=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Jp}var ef,Rv;function JA(){return Rv||(Rv=1,ef=/[\0-\x1F\x7F-\x9F]/),ef}var tf,Av;function Gbe(){return Av||(Av=1,tf=/[\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]/),tf}var nf,Mv;function eM(){return Mv||(Mv=1,nf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),nf}var Nv;function Vbe(){return Nv||(Nv=1,Di.Any=ZA(),Di.Cc=JA(),Di.Cf=Gbe(),Di.P=g0,Di.Z=eM()),Di}(function(n){function e(O){return Object.prototype.toString.call(O)}function t(O){return e(O)==="[object String]"}var s=Object.prototype.hasOwnProperty;function r(O,H){return s.call(O,H)}function i(O){var H=Array.prototype.slice.call(arguments,1);return H.forEach(function(q){if(q){if(typeof q!="object")throw new TypeError(q+"must be object");Object.keys(q).forEach(function(L){O[L]=q[L]})}}),O}function o(O,H,q){return[].concat(O.slice(0,H),q,O.slice(H+1))}function a(O){return!(O>=55296&&O<=57343||O>=64976&&O<=65007||(O&65535)===65535||(O&65535)===65534||O>=0&&O<=8||O===11||O>=14&&O<=31||O>=127&&O<=159||O>1114111)}function c(O){if(O>65535){O-=65536;var H=55296+(O>>10),q=56320+(O&1023);return String.fromCharCode(H,q)}return String.fromCharCode(O)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,_=new RegExp(d.source+"|"+u.source,"gi"),m=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=XA;function f(O,H){var q;return r(h,H)?h[H]:H.charCodeAt(0)===35&&m.test(H)&&(q=H[1].toLowerCase()==="x"?parseInt(H.slice(2),16):parseInt(H.slice(1),10),a(q))?c(q):O}function y(O){return O.indexOf("\\")<0?O:O.replace(d,"$1")}function b(O){return O.indexOf("\\")<0&&O.indexOf("&")<0?O:O.replace(_,function(H,q,L){return q||f(H,L)})}var g=/[&<>"]/,E=/[&<>"]/g,v={"&":"&","<":"<",">":">",'"':"""};function S(O){return v[O]}function R(O){return g.test(O)?O.replace(E,S):O}var w=/[.?*+^$[\]\\(){}|-]/g;function A(O){return O.replace(w,"\\$&")}function I(O){switch(O){case 9:case 32:return!0}return!1}function C(O){if(O>=8192&&O<=8202)return!0;switch(O){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 M=g0;function G(O){return M.test(O)}function V(O){switch(O){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 ee(O){return O=O.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(O=O.replace(/ẞ/g,"ß")),O.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Ga,n.lib.ucmicro=Vbe(),n.assign=i,n.isString=t,n.has=r,n.unescapeMd=y,n.unescapeAll=b,n.isValidEntityCode=a,n.fromCodePoint=c,n.escapeHtml=R,n.arrayReplaceAt=o,n.isSpace=I,n.isWhiteSpace=C,n.isMdAsciiPunct=V,n.isPunctChar=G,n.escapeRE=A,n.normalizeReference=ee})(kt);var ep={},zbe=function(e,t,s){var r,i,o,a,c=-1,d=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos32))return a;if(r===41){if(i===0)break;i--}o++}return t===o||i!==0||(a.str=Ov(e.slice(t,o)),a.pos=o,a.ok=!0),a},qbe=kt.unescapeAll,Ybe=function(e,t,s){var r,i,o=0,a=t,c={ok:!1,pos:0,lines:0,str:""};if(a>=s||(i=e.charCodeAt(a),i!==34&&i!==39&&i!==40))return c;for(a++,i===40&&(i=41);a"+co(i.content)+""};dr.code_block=function(n,e,t,s,r){var i=n[e];return""+co(n[e].content)+` -`};dr.fence=function(n,e,t,s,r){var i=n[e],o=i.info?Wbe(i.info).trim():"",a="",c="",d,u,_,m,h;return o&&(_=o.split(/(\s+)/g),a=_[0],c=_.slice(2).join("")),t.highlight?d=t.highlight(i.content,a,c)||co(i.content):d=co(i.content),d.indexOf(""+d+` -`):"
"+d+`
-`};dr.image=function(n,e,t,s,r){var i=n[e];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,t,s),r.renderToken(n,e,t)};dr.hardbreak=function(n,e,t){return t.xhtmlOut?`
-`:`
-`};dr.softbreak=function(n,e,t){return t.breaks?t.xhtmlOut?`
-`:`
-`:` -`};dr.text=function(n,e){return co(n[e].content)};dr.html_block=function(n,e){return n[e].content};dr.html_inline=function(n,e){return n[e].content};function Va(){this.rules=$be({},dr)}Va.prototype.renderAttrs=function(e){var t,s,r;if(!e.attrs)return"";for(r="",t=0,s=e.attrs.length;t -`:">",i)};Va.prototype.renderInline=function(n,e,t){for(var s,r="",i=this.rules,o=0,a=n.length;o\s]/i.test(n)}function n0e(n){return/^<\/a\s*>/i.test(n)}var s0e=function(e){var t,s,r,i,o,a,c,d,u,_,m,h,f,y,b,g,E=e.tokens,v;if(e.md.options.linkify){for(s=0,r=E.length;s=0;t--){if(a=i[t],a.type==="link_close"){for(t--;i[t].level!==a.level&&i[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(t0e(a.content)&&f>0&&f--,n0e(a.content)&&f++),!(f>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,v=e.md.linkify.match(u),c=[],h=a.level,m=0,v.length>0&&v[0].index===0&&t>0&&i[t-1].type==="text_special"&&(v=v.slice(1)),d=0;dm&&(o=new e.Token("text","",0),o.content=u.slice(m,_),o.level=h,c.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=h++,o.markup="linkify",o.info="auto",c.push(o),o=new e.Token("text","",0),o.content=g,o.level=h,c.push(o),o=new e.Token("link_close","a",-1),o.level=--h,o.markup="linkify",o.info="auto",c.push(o),m=v[d].lastIndex);m=0;e--)t=n[e],t.type==="text"&&!s&&(t.content=t.content.replace(i0e,a0e)),t.type==="link_open"&&t.info==="auto"&&s--,t.type==="link_close"&&t.info==="auto"&&s++}function c0e(n){var e,t,s=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!s&&tM.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"&&s--,t.type==="link_close"&&t.info==="auto"&&s++}var d0e=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(r0e.test(e.tokens[t].content)&&l0e(e.tokens[t].children),tM.test(e.tokens[t].content)&&c0e(e.tokens[t].children))},Iv=kt.isWhiteSpace,kv=kt.isPunctChar,Dv=kt.isMdAsciiPunct,u0e=/['"]/,Lv=/['"]/g,Pv="’";function Ic(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function p0e(n,e){var t,s,r,i,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,w;for(S=[],t=0;t=0&&!(S[E].level<=c);E--);if(S.length=E+1,s.type==="text"){r=s.content,o=0,a=r.length;e:for(;o=0)u=r.charCodeAt(i.index-1);else for(E=t-1;E>=0&&!(n[E].type==="softbreak"||n[E].type==="hardbreak");E--)if(n[E].content){u=n[E].content.charCodeAt(n[E].content.length-1);break}if(_=32,o=48&&u<=57&&(g=b=!1),b&&g&&(b=m,g=h),!b&&!g){v&&(s.content=Ic(s.content,i.index,Pv));continue}if(g){for(E=S.length-1;E>=0&&(d=S[E],!(S[E].level=0;t--)e.tokens[t].type!=="inline"||!u0e.test(e.tokens[t].content)||p0e(e.tokens[t].children,e)},_0e=function(e){var t,s,r,i,o,a,c=e.tokens;for(t=0,s=c.length;t=0&&(s=this.attrs[t][1]),s};za.prototype.attrJoin=function(e,t){var s=this.attrIndex(e);s<0?this.attrPush([e,t]):this.attrs[s][1]=this.attrs[s][1]+" "+t};var y0=za,m0e=y0;function nM(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}nM.prototype.Token=m0e;var h0e=nM,g0e=b0,sf=[["normalize",Xbe],["block",Zbe],["inline",Jbe],["linkify",s0e],["replacements",d0e],["smartquotes",f0e],["text_join",_0e]];function E0(){this.ruler=new g0e;for(var n=0;ns||(u=t+1,e.sCount[u]=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(R=e.src.charCodeAt(a++),R!==124&&R!==45&&R!==58)||a>=e.eMarks[u]||(w=e.src.charCodeAt(a++),w!==124&&w!==45&&w!==58&&!rf(w))||R===45&&rf(w))return!1;for(;a=4||(_=Fv(o),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),m=_.length,m===0||m!==f.length))return!1;if(r)return!0;for(E=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=b=[t,0],h=e.push("thead_open","thead",1),h.map=[t,t+1],h=e.push("tr_open","tr",1),h.map=[t,t+1],c=0;c<_.length;c++)h=e.push("th_open","th",1),f[c]&&(h.attrs=[["style","text-align:"+f[c]]]),h=e.push("inline","",0),h.content=_[c].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),u=t+2;u=4)break;for(_=Fv(o),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),u===t+2&&(h=e.push("tbody_open","tbody",1),h.map=g=[t+2,0]),h=e.push("tr_open","tr",1),h.map=[u,u+1],c=0;c=4){r++,i=r;continue}break}return e.line=i,o=e.push("code_block","code",0),o.content=e.getLines(t,i,4+e.blkIndent,!1)+` -`,o.map=[t,e.line],!0},v0e=function(e,t,s,r){var i,o,a,c,d,u,_,m=!1,h=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>f||(i=e.src.charCodeAt(h),i!==126&&i!==96)||(d=h,h=e.skipChars(h,i),o=h-d,o<3)||(_=e.src.slice(d,h),a=e.src.slice(h,f),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(c=t;c++,!(c>=s||(h=d=e.bMarks[c]+e.tShift[c],f=e.eMarks[c],h=4)&&(h=e.skipChars(h,i),!(h-d=4||e.src.charCodeAt(M)!==62)return!1;if(r)return!0;for(f=[],y=[],E=[],v=[],w=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",m=t;m=G));m++){if(e.src.charCodeAt(M++)===62&&!I){for(c=e.sCount[m]+1,e.src.charCodeAt(M)===32?(M++,c++,i=!1,S=!0):e.src.charCodeAt(M)===9?(S=!0,(e.bsCount[m]+c)%4===3?(M++,c++,i=!1):i=!0):S=!1,h=c,f.push(e.bMarks[m]),e.bMarks[m]=M;M=G,y.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(S?1:0),E.push(e.sCount[m]),e.sCount[m]=h-c,v.push(e.tShift[m]),e.tShift[m]=M-e.bMarks[m];continue}if(u)break;for(R=!1,a=0,d=w.length;a",A.map=_=[t,0],e.md.block.tokenize(e,t,m),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=C,e.parentType=g,_[1]=e.line,a=0;a=4||(i=e.src.charCodeAt(d++),i!==42&&i!==45&&i!==95))return!1;for(o=1;d=i||(t=n.src.charCodeAt(r++),t<48||t>57))return-1;for(;;){if(r>=i)return-1;if(t=n.src.charCodeAt(r++),t>=48&&t<=57){if(r-s>=10)return-1;continue}if(t===41||t===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[q]-e.listIndent>=4&&e.sCount[q]=e.blkIndent&&(L=!0),(M=Bv(e,q))>=0){if(_=!0,V=e.bMarks[q]+e.tShift[q],g=Number(e.src.slice(V,M-1)),L&&g!==1)return!1}else if((M=Uv(e,q))>=0)_=!1;else return!1;if(L&&e.skipSpaces(M)>=e.eMarks[q])return!1;if(r)return!0;for(b=e.src.charCodeAt(M-1),y=e.tokens.length,_?(H=e.push("ordered_list_open","ol",1),g!==1&&(H.attrs=[["start",g]])):H=e.push("bullet_list_open","ul",1),H.map=f=[q,0],H.markup=String.fromCharCode(b),G=!1,O=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";q=E?d=1:d=v-u,d>4&&(d=1),c=u+d,H=e.push("list_item_open","li",1),H.markup=String.fromCharCode(b),H.map=m=[q,0],_&&(H.info=e.src.slice(V,M-1)),I=e.tight,A=e.tShift[q],w=e.sCount[q],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[q]=o-e.bMarks[q],e.sCount[q]=v,o>=E&&e.isEmpty(q+1)?e.line=Math.min(e.line+2,s):e.md.block.tokenize(e,q,s,!0),(!e.tight||G)&&(W=!1),G=e.line-q>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[q]=A,e.sCount[q]=w,e.tight=I,H=e.push("list_item_close","li",-1),H.markup=String.fromCharCode(b),q=e.line,m[1]=q,q>=s||e.sCount[q]=4)break;for(ee=!1,a=0,h=O.length;a=4||e.src.charCodeAt(w)!==91)return!1;for(;++w3)&&!(e.sCount[I]<0)){for(E=!1,u=0,_=v.length;u<_;u++)if(v[u](e,I,c,!0)){E=!0;break}if(E)break}for(g=e.getLines(t,I,e.blkIndent,!1).trim(),A=g.length,w=1;w"u"&&(e.env.references={}),typeof e.env.references[m]>"u"&&(e.env.references[m]={title:S,href:d}),e.parentType=f,e.line=t+R+1),!0)},N0e=["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"],tp={},O0e="[a-zA-Z_:][a-zA-Z0-9:._-]*",I0e="[^\"'=<>`\\x00-\\x20]+",k0e="'[^']*'",D0e='"[^"]*"',L0e="(?:"+I0e+"|"+k0e+"|"+D0e+")",P0e="(?:\\s+"+O0e+"(?:\\s*=\\s*"+L0e+")?)",rM="<[A-Za-z][A-Za-z0-9\\-]*"+P0e+"*\\s*\\/?>",iM="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",F0e="|",U0e="<[?][\\s\\S]*?[?]>",B0e="]*>",G0e="",V0e=new RegExp("^(?:"+rM+"|"+iM+"|"+F0e+"|"+U0e+"|"+B0e+"|"+G0e+")"),z0e=new RegExp("^(?:"+rM+"|"+iM+")");tp.HTML_TAG_RE=V0e;tp.HTML_OPEN_CLOSE_TAG_RE=z0e;var H0e=N0e,q0e=tp.HTML_OPEN_CLOSE_TAG_RE,Co=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(q0e.source+"\\s*$"),/^$/,!1]],Y0e=function(e,t,s,r){var i,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),i=0;i=4||(i=e.src.charCodeAt(d),i!==35||d>=u))return!1;for(o=1,i=e.src.charCodeAt(++d);i===35&&d6||dd&&Gv(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,c=e.push("heading_open","h"+String(o),1),c.markup="########".slice(0,o),c.map=[t,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[t,e.line],c.children=[],c=e.push("heading_close","h"+String(o),-1),c.markup="########".slice(0,o)),!0)},W0e=function(e,t,s){var r,i,o,a,c,d,u,_,m,h=t+1,f,y=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";h3)){if(e.sCount[h]>=e.blkIndent&&(d=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],d=u)))){_=m===61?1:2;break}if(!(e.sCount[h]<0)){for(i=!1,o=0,a=y.length;o3)&&!(e.sCount[u]<0)){for(i=!1,o=0,a=_.length;o0&&this.level++,this.tokens.push(s),s};ur.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ur.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!np(this.src.charCodeAt(--e)))return e+1;return e};ur.prototype.skipChars=function(e,t){for(var s=this.src.length;es;)if(t!==this.src.charCodeAt(--e))return e+1;return e};ur.prototype.getLines=function(e,t,s,r){var i,o,a,c,d,u,_,m=e;if(e>=t)return"";for(u=new Array(t-e),i=0;ms?u[i]=new Array(o-s+1).join(" ")+this.src.slice(c,d):u[i]=this.src.slice(c,d)}return u.join("")};ur.prototype.Token=oM;var j0e=ur,Q0e=b0,Dc=[["table",y0e,["paragraph","reference"]],["code",E0e],["fence",v0e,["paragraph","reference","blockquote","list"]],["blockquote",T0e,["paragraph","reference","blockquote","list"]],["hr",C0e,["paragraph","reference","blockquote","list"]],["list",R0e,["paragraph","reference","blockquote"]],["reference",M0e],["html_block",Y0e,["paragraph","reference","blockquote"]],["heading",$0e,["paragraph","reference","blockquote"]],["lheading",W0e],["paragraph",K0e]];function sp(){this.ruler=new Q0e;for(var n=0;n=t||n.sCount[c]=u){n.line=t;break}for(i=n.line,r=0;r=n.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");n.tight=!d,n.isEmpty(n.line-1)&&(d=!0),c=n.line,c0||(s=e.pos,r=e.posMax,s+3>r)||e.src.charCodeAt(s)!==58||e.src.charCodeAt(s+1)!==47||e.src.charCodeAt(s+2)!==47||(i=e.pending.match(eye),!i)||(o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(s-o.length)),!a)||(c=a.url,c.length<=o.length)||(c=c.replace(/\*+$/,""),d=e.md.normalizeLink(c),!e.md.validateLink(d))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(c),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=c.length-o.length,!0)},nye=kt.isSpace,sye=function(e,t){var s,r,i,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(s=e.pending.length-1,r=e.posMax,!t)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){for(i=s-1;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),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){v0[n.charCodeAt(0)]=1});var iye=function(e,t){var s,r,i,o,a,c=e.pos,d=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=d))return!1;if(s=e.src.charCodeAt(c),s===10){for(t||e.push("hardbreak","br",0),c++;c=55296&&s<=56319&&c+1=56320&&r<=57343&&(o+=e.src[c+1],c++)),i="\\"+o,t||(a=e.push("text_special","",0),s<256&&v0[s]!==0?a.content=o:a.content=i,a.markup=i,a.info="escape"),e.pos=c+1,!0},oye=function(e,t){var s,r,i,o,a,c,d,u,_=e.pos,m=e.src.charCodeAt(_);if(m!==96)return!1;for(s=_,_++,r=e.posMax;_=0;t--)s=e[t],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(r=e[s.end],a=t>0&&e[t-1].end===s.end+1&&e[t-1].marker===s.marker&&e[t-1].token===s.token-1&&e[s.end+1].token===r.token+1,o=String.fromCharCode(s.marker),i=n.tokens[s.token],i.type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="",i=n.tokens[r.token],i.type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?o+o:o,i.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[s.end+1].token].content="",t--))}ip.postProcess=function(e){var t,s=e.tokens_meta,r=e.tokens_meta.length;for(Hv(e,e.delimiters),t=0;t=y)return!1;if(b=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(m=e.md.normalizeLink(d.str),e.md.validateLink(m)?c=d.pos:m="",b=c;c=y||e.src.charCodeAt(c)!==41)&&(g=!0),c++}if(g){if(typeof e.env.references>"u")return!1;if(c=0?i=e.src.slice(b,c++):c=o+1):c=o+1,i||(i=e.src.slice(a,o)),u=e.env.references[aye(i)],!u)return e.pos=f,!1;m=u.href,h=u.title}return t||(e.pos=a,e.posMax=o,_=e.push("link_open","a",1),_.attrs=s=[["href",m]],h&&s.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,_=e.push("link_close","a",-1)),e.pos=c,e.posMax=y,!0},cye=kt.normalizeReference,lf=kt.isSpace,dye=function(e,t){var s,r,i,o,a,c,d,u,_,m,h,f,y,b="",g=e.pos,E=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d=E)return!1;for(y=d,_=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),_.ok&&(b=e.md.normalizeLink(_.str),e.md.validateLink(b)?d=_.pos:b=""),y=d;d=E||e.src.charCodeAt(d)!==41)return e.pos=g,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d=0?o=e.src.slice(y,d++):d=a+1):d=a+1,o||(o=e.src.slice(c,a)),u=e.env.references[cye(o)],!u)return e.pos=g,!1;b=u.href,m=u.title}return t||(i=e.src.slice(c,a),e.md.inline.parse(i,e.md,e.env,f=[]),h=e.push("image","img",0),h.attrs=s=[["src",b],["alt",""]],h.children=f,h.content=i,m&&s.push(["title",m])),e.pos=d,e.posMax=E,!0},uye=/^([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])?)*)$/,pye=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,fye=function(e,t){var s,r,i,o,a,c,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,c=e.posMax;;){if(++d>=c||(o=e.src.charCodeAt(d),o===60))return!1;if(o===62)break}return s=e.src.slice(a+1,d),pye.test(s)?(r=e.md.normalizeLink(s),e.md.validateLink(r)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(s),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=s.length+2,!0):!1):uye.test(s)?(r=e.md.normalizeLink("mailto:"+s),e.md.validateLink(r)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(s),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=s.length+2,!0):!1):!1},_ye=tp.HTML_TAG_RE;function mye(n){return/^\s]/i.test(n)}function hye(n){return/^<\/a\s*>/i.test(n)}function gye(n){var e=n|32;return e>=97&&e<=122}var bye=function(e,t){var s,r,i,o,a=e.pos;return!e.md.options.html||(i=e.posMax,e.src.charCodeAt(a)!==60||a+2>=i)||(s=e.src.charCodeAt(a+1),s!==33&&s!==63&&s!==47&&!gye(s))||(r=e.src.slice(a).match(_ye),!r)?!1:(t||(o=e.push("html_inline","",0),o.content=r[0],mye(o.content)&&e.linkLevel++,hye(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},qv=XA,yye=kt.has,Eye=kt.isValidEntityCode,Yv=kt.fromCodePoint,vye=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Sye=/^&([a-z][a-z0-9]{1,31});/i,Tye=function(e,t){var s,r,i,o,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=c)return!1;if(s=e.src.charCodeAt(a+1),s===35){if(i=e.src.slice(a).match(vye),i)return t||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0),o.content=Eye(r)?Yv(r):Yv(65533),o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0}else if(i=e.src.slice(a).match(Sye),i&&yye(qv,i[1]))return t||(o=e.push("text_special","",0),o.content=qv[i[1]],o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0;return!1};function $v(n){var e,t,s,r,i,o,a,c,d={},u=n.length;if(u){var _=0,m=-2,h=[];for(e=0;ei;t-=h[t]+1)if(r=n[t],r.marker===s.marker&&r.open&&r.end<0&&(a=!1,(r.close||s.open)&&(r.length+s.length)%3===0&&(r.length%3!==0||s.length%3!==0)&&(a=!0),!a)){c=t>0&&!n[t-1].open?h[t-1]+1:0,h[e]=e-t+c,h[t]=c,s.open=!1,r.end=e,r.close=!1,o=-1,m=-2;break}o!==-1&&(d[s.marker][(s.open?3:0)+(s.length||0)%3]=o)}}}var xye=function(e){var t,s=e.tokens_meta,r=e.tokens_meta.length;for($v(e.delimiters),t=0;t0&&r++,i[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(r),s};oc.prototype.scanDelims=function(n,e){var t=n,s,r,i,o,a,c,d,u,_,m=!0,h=!0,f=this.posMax,y=this.src.charCodeAt(n);for(s=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[s]=n.pos};ac.prototype.tokenize=function(n){for(var e,t,s,r=this.ruler.getRules(""),i=r.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()};ac.prototype.parse=function(n,e,t,s){var r,i,o,a=new this.State(n,e,t,s);for(this.tokenize(a),i=this.ruler2.getRules(""),o=i.length,r=0;r|$))",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}),uf}function rb(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(s){n[s]=t[s]})}),n}function op(n){return Object.prototype.toString.call(n)}function Mye(n){return op(n)==="[object String]"}function Nye(n){return op(n)==="[object Object]"}function Oye(n){return op(n)==="[object RegExp]"}function Zv(n){return op(n)==="[object Function]"}function Iye(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var aM={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function kye(n){return Object.keys(n||{}).reduce(function(e,t){return e||aM.hasOwnProperty(t)},!1)}var Dye={"http:":{validate:function(n,e,t){var s=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(s)?s.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var s=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(s)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:s.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var s=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(s)?s.match(t.re.mailto)[0].length:0}}},Lye="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]",Pye="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Fye(n){n.__index__=-1,n.__text_cache__=""}function Uye(n){return function(e,t){var s=e.slice(t);return n.test(s)?s.match(n)[0].length:0}}function Jv(){return function(n,e){e.normalize(n)}}function Jd(n){var e=n.re=Aye()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(Lye),t.push(e.src_xn),e.src_tlds=t.join("|");function s(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var r=[];n.__compiled__={};function i(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(n.__schemas__).forEach(function(a){var c=n.__schemas__[a];if(c!==null){var d={validate:null,link:null};if(n.__compiled__[a]=d,Nye(c)){Oye(c.validate)?d.validate=Uye(c.validate):Zv(c.validate)?d.validate=c.validate:i(a,c),Zv(c.normalize)?d.normalize=c.normalize:c.normalize?i(a,c):d.normalize=Jv();return}if(Mye(c)){r.push(a);return}i(a,c)}}),r.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:Jv()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(Iye).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"),Fye(n)}function Bye(n,e){var t=n.__index__,s=n.__last_index__,r=n.__text_cache__.slice(t,s);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=s+e,this.raw=r,this.text=r,this.url=r}function ib(n,e){var t=new Bye(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function as(n,e){if(!(this instanceof as))return new as(n,e);e||kye(n)&&(e=n,n={}),this.__opts__=rb({},aM,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=rb({},Dye,n),this.__compiled__={},this.__tlds__=Pye,this.__tlds_replaced__=!1,this.re={},Jd(this)}as.prototype.add=function(e,t){return this.__schemas__[e]=t,Jd(this),this};as.prototype.set=function(e){return this.__opts__=rb(this.__opts__,e),this};as.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,s,r,i,o,a,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(t=c.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],c.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};as.prototype.pretest=function(e){return this.re.pretest.test(e)};as.prototype.testSchemaAt=function(e,t,s){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,s,this):0};as.prototype.match=function(e){var t=0,s=[];this.__index__>=0&&this.__text_cache__===e&&(s.push(ib(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)s.push(ib(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return s.length?s:null};as.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 s=this.testSchemaAt(e,t[2],t[0].length);return s?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s,ib(this,0)):null};as.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(s,r,i){return s!==i[r-1]}).reverse(),Jd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Jd(this),this)};as.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};as.prototype.onCompile=function(){};var Gye=as;const ra=2147483647,tr=36,T0=1,Yl=26,Vye=38,zye=700,lM=72,cM=128,dM="-",Hye=/^xn--/,qye=/[^\0-\x7F]/,Yye=/[\x2E\u3002\uFF0E\uFF61]/g,$ye={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pf=tr-T0,nr=Math.floor,ff=String.fromCharCode;function ii(n){throw new RangeError($ye[n])}function Wye(n,e){const t=[];let s=n.length;for(;s--;)t[s]=e(n[s]);return t}function uM(n,e){const t=n.split("@");let s="";t.length>1&&(s=t[0]+"@",n=t[1]),n=n.replace(Yye,".");const r=n.split("."),i=Wye(r,e).join(".");return s+i}function x0(n){const e=[];let t=0;const s=n.length;for(;t=55296&&r<=56319&&tString.fromCodePoint(...n),Kye=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:tr},eS=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},fM=function(n,e,t){let s=0;for(n=t?nr(n/zye):n>>1,n+=nr(n/e);n>pf*Yl>>1;s+=tr)n=nr(n/pf);return nr(s+(pf+1)*n/(n+Vye))},C0=function(n){const e=[],t=n.length;let s=0,r=cM,i=lM,o=n.lastIndexOf(dM);o<0&&(o=0);for(let a=0;a=128&&ii("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a=t&&ii("invalid-input");const m=Kye(n.charCodeAt(a++));m>=tr&&ii("invalid-input"),m>nr((ra-s)/u)&&ii("overflow"),s+=m*u;const h=_<=i?T0:_>=i+Yl?Yl:_-i;if(mnr(ra/f)&&ii("overflow"),u*=f}const d=e.length+1;i=fM(s-c,d,c==0),nr(s/d)>ra-r&&ii("overflow"),r+=nr(s/d),s%=d,e.splice(s++,0,r)}return String.fromCodePoint(...e)},w0=function(n){const e=[];n=x0(n);const t=n.length;let s=cM,r=0,i=lM;for(const c of n)c<128&&e.push(ff(c));const o=e.length;let a=o;for(o&&e.push(dM);a=s&&unr((ra-r)/d)&&ii("overflow"),r+=(c-s)*d,s=c;for(const u of n)if(ura&&ii("overflow"),u===s){let _=r;for(let m=tr;;m+=tr){const h=m<=i?T0:m>=i+Yl?Yl:m-i;if(_=0))try{e.hostname=hM.toASCII(e.hostname)}catch{}return ji.encode(ji.format(e))}function pEe(n){var e=ji.parse(n,!0);if(e.hostname&&(!e.protocol||gM.indexOf(e.protocol)>=0))try{e.hostname=hM.toUnicode(e.hostname)}catch{}return ji.decode(ji.format(e),ji.decode.defaultChars+"%")}function Rs(n,e){if(!(this instanceof Rs))return new Rs(n,e);e||Cl.isString(n)||(e=n||{},n="default"),this.inline=new iEe,this.block=new rEe,this.core=new sEe,this.renderer=new nEe,this.linkify=new oEe,this.validateLink=dEe,this.normalizeLink=uEe,this.normalizeLinkText=pEe,this.utils=Cl,this.helpers=Cl.assign({},tEe),this.options={},this.configure(n),e&&this.set(e)}Rs.prototype.set=function(n){return Cl.assign(this.options,n),this};Rs.prototype.configure=function(n){var e=this,t;if(Cl.isString(n)&&(t=n,n=aEe[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(s){n.components[s].rules&&e[s].ruler.enableOnly(n.components[s].rules),n.components[s].rules2&&e[s].ruler2.enableOnly(n.components[s].rules2)}),this};Rs.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var s=n.filter(function(r){return t.indexOf(r)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};Rs.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var s=n.filter(function(r){return t.indexOf(r)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};Rs.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Rs.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};Rs.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Rs.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Rs.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var fEe=Rs,_Ee=fEe;const mEe=Ri(_Ee),hEe="😀",gEe="😃",bEe="😄",yEe="😁",EEe="😆",vEe="😆",SEe="😅",TEe="🤣",xEe="😂",CEe="🙂",wEe="🙃",REe="😉",AEe="😊",MEe="😇",NEe="🥰",OEe="😍",IEe="🤩",kEe="😘",DEe="😗",LEe="☺️",PEe="😚",FEe="😙",UEe="🥲",BEe="😋",GEe="😛",VEe="😜",zEe="🤪",HEe="😝",qEe="🤑",YEe="🤗",$Ee="🤭",WEe="🤫",KEe="🤔",jEe="🤐",QEe="🤨",XEe="😐",ZEe="😑",JEe="😶",eve="😏",tve="😒",nve="🙄",sve="😬",rve="🤥",ive="😌",ove="😔",ave="😪",lve="🤤",cve="😴",dve="😷",uve="🤒",pve="🤕",fve="🤢",_ve="🤮",mve="🤧",hve="🥵",gve="🥶",bve="🥴",yve="😵",Eve="🤯",vve="🤠",Sve="🥳",Tve="🥸",xve="😎",Cve="🤓",wve="🧐",Rve="😕",Ave="😟",Mve="🙁",Nve="☹️",Ove="😮",Ive="😯",kve="😲",Dve="😳",Lve="🥺",Pve="😦",Fve="😧",Uve="😨",Bve="😰",Gve="😥",Vve="😢",zve="😭",Hve="😱",qve="😖",Yve="😣",$ve="😞",Wve="😓",Kve="😩",jve="😫",Qve="🥱",Xve="😤",Zve="😡",Jve="😡",eSe="😠",tSe="🤬",nSe="😈",sSe="👿",rSe="💀",iSe="☠️",oSe="💩",aSe="💩",lSe="💩",cSe="🤡",dSe="👹",uSe="👺",pSe="👻",fSe="👽",_Se="👾",mSe="🤖",hSe="😺",gSe="😸",bSe="😹",ySe="😻",ESe="😼",vSe="😽",SSe="🙀",TSe="😿",xSe="😾",CSe="🙈",wSe="🙉",RSe="🙊",ASe="💋",MSe="💌",NSe="💘",OSe="💝",ISe="💖",kSe="💗",DSe="💓",LSe="💞",PSe="💕",FSe="💟",USe="❣️",BSe="💔",GSe="❤️",VSe="🧡",zSe="💛",HSe="💚",qSe="💙",YSe="💜",$Se="🤎",WSe="🖤",KSe="🤍",jSe="💢",QSe="💥",XSe="💥",ZSe="💫",JSe="💦",e1e="💨",t1e="🕳️",n1e="💣",s1e="💬",r1e="👁️‍🗨️",i1e="🗨️",o1e="🗯️",a1e="💭",l1e="💤",c1e="👋",d1e="🤚",u1e="🖐️",p1e="✋",f1e="✋",_1e="🖖",m1e="👌",h1e="🤌",g1e="🤏",b1e="✌️",y1e="🤞",E1e="🤟",v1e="🤘",S1e="🤙",T1e="👈",x1e="👉",C1e="👆",w1e="🖕",R1e="🖕",A1e="👇",M1e="☝️",N1e="👍",O1e="👎",I1e="✊",k1e="✊",D1e="👊",L1e="👊",P1e="👊",F1e="🤛",U1e="🤜",B1e="👏",G1e="🙌",V1e="👐",z1e="🤲",H1e="🤝",q1e="🙏",Y1e="✍️",$1e="💅",W1e="🤳",K1e="💪",j1e="🦾",Q1e="🦿",X1e="🦵",Z1e="🦶",J1e="👂",eTe="🦻",tTe="👃",nTe="🧠",sTe="🫀",rTe="🫁",iTe="🦷",oTe="🦴",aTe="👀",lTe="👁️",cTe="👅",dTe="👄",uTe="👶",pTe="🧒",fTe="👦",_Te="👧",mTe="🧑",hTe="👱",gTe="👨",bTe="🧔",yTe="👨‍🦰",ETe="👨‍🦱",vTe="👨‍🦳",STe="👨‍🦲",TTe="👩",xTe="👩‍🦰",CTe="🧑‍🦰",wTe="👩‍🦱",RTe="🧑‍🦱",ATe="👩‍🦳",MTe="🧑‍🦳",NTe="👩‍🦲",OTe="🧑‍🦲",ITe="👱‍♀️",kTe="👱‍♀️",DTe="👱‍♂️",LTe="🧓",PTe="👴",FTe="👵",UTe="🙍",BTe="🙍‍♂️",GTe="🙍‍♀️",VTe="🙎",zTe="🙎‍♂️",HTe="🙎‍♀️",qTe="🙅",YTe="🙅‍♂️",$Te="🙅‍♂️",WTe="🙅‍♀️",KTe="🙅‍♀️",jTe="🙆",QTe="🙆‍♂️",XTe="🙆‍♀️",ZTe="💁",JTe="💁",exe="💁‍♂️",txe="💁‍♂️",nxe="💁‍♀️",sxe="💁‍♀️",rxe="🙋",ixe="🙋‍♂️",oxe="🙋‍♀️",axe="🧏",lxe="🧏‍♂️",cxe="🧏‍♀️",dxe="🙇",uxe="🙇‍♂️",pxe="🙇‍♀️",fxe="🤦",_xe="🤦‍♂️",mxe="🤦‍♀️",hxe="🤷",gxe="🤷‍♂️",bxe="🤷‍♀️",yxe="🧑‍⚕️",Exe="👨‍⚕️",vxe="👩‍⚕️",Sxe="🧑‍🎓",Txe="👨‍🎓",xxe="👩‍🎓",Cxe="🧑‍🏫",wxe="👨‍🏫",Rxe="👩‍🏫",Axe="🧑‍⚖️",Mxe="👨‍⚖️",Nxe="👩‍⚖️",Oxe="🧑‍🌾",Ixe="👨‍🌾",kxe="👩‍🌾",Dxe="🧑‍🍳",Lxe="👨‍🍳",Pxe="👩‍🍳",Fxe="🧑‍🔧",Uxe="👨‍🔧",Bxe="👩‍🔧",Gxe="🧑‍🏭",Vxe="👨‍🏭",zxe="👩‍🏭",Hxe="🧑‍💼",qxe="👨‍💼",Yxe="👩‍💼",$xe="🧑‍🔬",Wxe="👨‍🔬",Kxe="👩‍🔬",jxe="🧑‍💻",Qxe="👨‍💻",Xxe="👩‍💻",Zxe="🧑‍🎤",Jxe="👨‍🎤",eCe="👩‍🎤",tCe="🧑‍🎨",nCe="👨‍🎨",sCe="👩‍🎨",rCe="🧑‍✈️",iCe="👨‍✈️",oCe="👩‍✈️",aCe="🧑‍🚀",lCe="👨‍🚀",cCe="👩‍🚀",dCe="🧑‍🚒",uCe="👨‍🚒",pCe="👩‍🚒",fCe="👮",_Ce="👮",mCe="👮‍♂️",hCe="👮‍♀️",gCe="🕵️",bCe="🕵️‍♂️",yCe="🕵️‍♀️",ECe="💂",vCe="💂‍♂️",SCe="💂‍♀️",TCe="🥷",xCe="👷",CCe="👷‍♂️",wCe="👷‍♀️",RCe="🤴",ACe="👸",MCe="👳",NCe="👳‍♂️",OCe="👳‍♀️",ICe="👲",kCe="🧕",DCe="🤵",LCe="🤵‍♂️",PCe="🤵‍♀️",FCe="👰",UCe="👰‍♂️",BCe="👰‍♀️",GCe="👰‍♀️",VCe="🤰",zCe="🤱",HCe="👩‍🍼",qCe="👨‍🍼",YCe="🧑‍🍼",$Ce="👼",WCe="🎅",KCe="🤶",jCe="🧑‍🎄",QCe="🦸",XCe="🦸‍♂️",ZCe="🦸‍♀️",JCe="🦹",ewe="🦹‍♂️",twe="🦹‍♀️",nwe="🧙",swe="🧙‍♂️",rwe="🧙‍♀️",iwe="🧚",owe="🧚‍♂️",awe="🧚‍♀️",lwe="🧛",cwe="🧛‍♂️",dwe="🧛‍♀️",uwe="🧜",pwe="🧜‍♂️",fwe="🧜‍♀️",_we="🧝",mwe="🧝‍♂️",hwe="🧝‍♀️",gwe="🧞",bwe="🧞‍♂️",ywe="🧞‍♀️",Ewe="🧟",vwe="🧟‍♂️",Swe="🧟‍♀️",Twe="💆",xwe="💆‍♂️",Cwe="💆‍♀️",wwe="💇",Rwe="💇‍♂️",Awe="💇‍♀️",Mwe="🚶",Nwe="🚶‍♂️",Owe="🚶‍♀️",Iwe="🧍",kwe="🧍‍♂️",Dwe="🧍‍♀️",Lwe="🧎",Pwe="🧎‍♂️",Fwe="🧎‍♀️",Uwe="🧑‍🦯",Bwe="👨‍🦯",Gwe="👩‍🦯",Vwe="🧑‍🦼",zwe="👨‍🦼",Hwe="👩‍🦼",qwe="🧑‍🦽",Ywe="👨‍🦽",$we="👩‍🦽",Wwe="🏃",Kwe="🏃",jwe="🏃‍♂️",Qwe="🏃‍♀️",Xwe="💃",Zwe="💃",Jwe="🕺",e2e="🕴️",t2e="👯",n2e="👯‍♂️",s2e="👯‍♀️",r2e="🧖",i2e="🧖‍♂️",o2e="🧖‍♀️",a2e="🧗",l2e="🧗‍♂️",c2e="🧗‍♀️",d2e="🤺",u2e="🏇",p2e="⛷️",f2e="🏂",_2e="🏌️",m2e="🏌️‍♂️",h2e="🏌️‍♀️",g2e="🏄",b2e="🏄‍♂️",y2e="🏄‍♀️",E2e="🚣",v2e="🚣‍♂️",S2e="🚣‍♀️",T2e="🏊",x2e="🏊‍♂️",C2e="🏊‍♀️",w2e="⛹️",R2e="⛹️‍♂️",A2e="⛹️‍♂️",M2e="⛹️‍♀️",N2e="⛹️‍♀️",O2e="🏋️",I2e="🏋️‍♂️",k2e="🏋️‍♀️",D2e="🚴",L2e="🚴‍♂️",P2e="🚴‍♀️",F2e="🚵",U2e="🚵‍♂️",B2e="🚵‍♀️",G2e="🤸",V2e="🤸‍♂️",z2e="🤸‍♀️",H2e="🤼",q2e="🤼‍♂️",Y2e="🤼‍♀️",$2e="🤽",W2e="🤽‍♂️",K2e="🤽‍♀️",j2e="🤾",Q2e="🤾‍♂️",X2e="🤾‍♀️",Z2e="🤹",J2e="🤹‍♂️",eRe="🤹‍♀️",tRe="🧘",nRe="🧘‍♂️",sRe="🧘‍♀️",rRe="🛀",iRe="🛌",oRe="🧑‍🤝‍🧑",aRe="👭",lRe="👫",cRe="👬",dRe="💏",uRe="👩‍❤️‍💋‍👨",pRe="👨‍❤️‍💋‍👨",fRe="👩‍❤️‍💋‍👩",_Re="💑",mRe="👩‍❤️‍👨",hRe="👨‍❤️‍👨",gRe="👩‍❤️‍👩",bRe="👪",yRe="👨‍👩‍👦",ERe="👨‍👩‍👧",vRe="👨‍👩‍👧‍👦",SRe="👨‍👩‍👦‍👦",TRe="👨‍👩‍👧‍👧",xRe="👨‍👨‍👦",CRe="👨‍👨‍👧",wRe="👨‍👨‍👧‍👦",RRe="👨‍👨‍👦‍👦",ARe="👨‍👨‍👧‍👧",MRe="👩‍👩‍👦",NRe="👩‍👩‍👧",ORe="👩‍👩‍👧‍👦",IRe="👩‍👩‍👦‍👦",kRe="👩‍👩‍👧‍👧",DRe="👨‍👦",LRe="👨‍👦‍👦",PRe="👨‍👧",FRe="👨‍👧‍👦",URe="👨‍👧‍👧",BRe="👩‍👦",GRe="👩‍👦‍👦",VRe="👩‍👧",zRe="👩‍👧‍👦",HRe="👩‍👧‍👧",qRe="🗣️",YRe="👤",$Re="👥",WRe="🫂",KRe="👣",jRe="🐵",QRe="🐒",XRe="🦍",ZRe="🦧",JRe="🐶",eAe="🐕",tAe="🦮",nAe="🐕‍🦺",sAe="🐩",rAe="🐺",iAe="🦊",oAe="🦝",aAe="🐱",lAe="🐈",cAe="🐈‍⬛",dAe="🦁",uAe="🐯",pAe="🐅",fAe="🐆",_Ae="🐴",mAe="🐎",hAe="🦄",gAe="🦓",bAe="🦌",yAe="🦬",EAe="🐮",vAe="🐂",SAe="🐃",TAe="🐄",xAe="🐷",CAe="🐖",wAe="🐗",RAe="🐽",AAe="🐏",MAe="🐑",NAe="🐐",OAe="🐪",IAe="🐫",kAe="🦙",DAe="🦒",LAe="🐘",PAe="🦣",FAe="🦏",UAe="🦛",BAe="🐭",GAe="🐁",VAe="🐀",zAe="🐹",HAe="🐰",qAe="🐇",YAe="🐿️",$Ae="🦫",WAe="🦔",KAe="🦇",jAe="🐻",QAe="🐻‍❄️",XAe="🐨",ZAe="🐼",JAe="🦥",eMe="🦦",tMe="🦨",nMe="🦘",sMe="🦡",rMe="🐾",iMe="🐾",oMe="🦃",aMe="🐔",lMe="🐓",cMe="🐣",dMe="🐤",uMe="🐥",pMe="🐦",fMe="🐧",_Me="🕊️",mMe="🦅",hMe="🦆",gMe="🦢",bMe="🦉",yMe="🦤",EMe="🪶",vMe="🦩",SMe="🦚",TMe="🦜",xMe="🐸",CMe="🐊",wMe="🐢",RMe="🦎",AMe="🐍",MMe="🐲",NMe="🐉",OMe="🦕",IMe="🐳",kMe="🐋",DMe="🐬",LMe="🐬",PMe="🦭",FMe="🐟",UMe="🐠",BMe="🐡",GMe="🦈",VMe="🐙",zMe="🐚",HMe="🐌",qMe="🦋",YMe="🐛",$Me="🐜",WMe="🐝",KMe="🐝",jMe="🪲",QMe="🐞",XMe="🦗",ZMe="🪳",JMe="🕷️",eNe="🕸️",tNe="🦂",nNe="🦟",sNe="🪰",rNe="🪱",iNe="🦠",oNe="💐",aNe="🌸",lNe="💮",cNe="🏵️",dNe="🌹",uNe="🥀",pNe="🌺",fNe="🌻",_Ne="🌼",mNe="🌷",hNe="🌱",gNe="🪴",bNe="🌲",yNe="🌳",ENe="🌴",vNe="🌵",SNe="🌾",TNe="🌿",xNe="☘️",CNe="🍀",wNe="🍁",RNe="🍂",ANe="🍃",MNe="🍇",NNe="🍈",ONe="🍉",INe="🍊",kNe="🍊",DNe="🍊",LNe="🍋",PNe="🍌",FNe="🍍",UNe="🥭",BNe="🍎",GNe="🍏",VNe="🍐",zNe="🍑",HNe="🍒",qNe="🍓",YNe="🫐",$Ne="🥝",WNe="🍅",KNe="🫒",jNe="🥥",QNe="🥑",XNe="🍆",ZNe="🥔",JNe="🥕",eOe="🌽",tOe="🌶️",nOe="🫑",sOe="🥒",rOe="🥬",iOe="🥦",oOe="🧄",aOe="🧅",lOe="🍄",cOe="🥜",dOe="🌰",uOe="🍞",pOe="🥐",fOe="🥖",_Oe="🫓",mOe="🥨",hOe="🥯",gOe="🥞",bOe="🧇",yOe="🧀",EOe="🍖",vOe="🍗",SOe="🥩",TOe="🥓",xOe="🍔",COe="🍟",wOe="🍕",ROe="🌭",AOe="🥪",MOe="🌮",NOe="🌯",OOe="🫔",IOe="🥙",kOe="🧆",DOe="🥚",LOe="🍳",POe="🥘",FOe="🍲",UOe="🫕",BOe="🥣",GOe="🥗",VOe="🍿",zOe="🧈",HOe="🧂",qOe="🥫",YOe="🍱",$Oe="🍘",WOe="🍙",KOe="🍚",jOe="🍛",QOe="🍜",XOe="🍝",ZOe="🍠",JOe="🍢",eIe="🍣",tIe="🍤",nIe="🍥",sIe="🥮",rIe="🍡",iIe="🥟",oIe="🥠",aIe="🥡",lIe="🦀",cIe="🦞",dIe="🦐",uIe="🦑",pIe="🦪",fIe="🍦",_Ie="🍧",mIe="🍨",hIe="🍩",gIe="🍪",bIe="🎂",yIe="🍰",EIe="🧁",vIe="🥧",SIe="🍫",TIe="🍬",xIe="🍭",CIe="🍮",wIe="🍯",RIe="🍼",AIe="🥛",MIe="☕",NIe="🫖",OIe="🍵",IIe="🍶",kIe="🍾",DIe="🍷",LIe="🍸",PIe="🍹",FIe="🍺",UIe="🍻",BIe="🥂",GIe="🥃",VIe="🥤",zIe="🧋",HIe="🧃",qIe="🧉",YIe="🧊",$Ie="🥢",WIe="🍽️",KIe="🍴",jIe="🥄",QIe="🔪",XIe="🔪",ZIe="🏺",JIe="🌍",eke="🌎",tke="🌏",nke="🌐",ske="🗺️",rke="🗾",ike="🧭",oke="🏔️",ake="⛰️",lke="🌋",cke="🗻",dke="🏕️",uke="🏖️",pke="🏜️",fke="🏝️",_ke="🏞️",mke="🏟️",hke="🏛️",gke="🏗️",bke="🧱",yke="🪨",Eke="🪵",vke="🛖",Ske="🏘️",Tke="🏚️",xke="🏠",Cke="🏡",wke="🏢",Rke="🏣",Ake="🏤",Mke="🏥",Nke="🏦",Oke="🏨",Ike="🏩",kke="🏪",Dke="🏫",Lke="🏬",Pke="🏭",Fke="🏯",Uke="🏰",Bke="💒",Gke="🗼",Vke="🗽",zke="⛪",Hke="🕌",qke="🛕",Yke="🕍",$ke="⛩️",Wke="🕋",Kke="⛲",jke="⛺",Qke="🌁",Xke="🌃",Zke="🏙️",Jke="🌄",eDe="🌅",tDe="🌆",nDe="🌇",sDe="🌉",rDe="♨️",iDe="🎠",oDe="🎡",aDe="🎢",lDe="💈",cDe="🎪",dDe="🚂",uDe="🚃",pDe="🚄",fDe="🚅",_De="🚆",mDe="🚇",hDe="🚈",gDe="🚉",bDe="🚊",yDe="🚝",EDe="🚞",vDe="🚋",SDe="🚌",TDe="🚍",xDe="🚎",CDe="🚐",wDe="🚑",RDe="🚒",ADe="🚓",MDe="🚔",NDe="🚕",ODe="🚖",IDe="🚗",kDe="🚗",DDe="🚘",LDe="🚙",PDe="🛻",FDe="🚚",UDe="🚛",BDe="🚜",GDe="🏎️",VDe="🏍️",zDe="🛵",HDe="🦽",qDe="🦼",YDe="🛺",$De="🚲",WDe="🛴",KDe="🛹",jDe="🛼",QDe="🚏",XDe="🛣️",ZDe="🛤️",JDe="🛢️",eLe="⛽",tLe="🚨",nLe="🚥",sLe="🚦",rLe="🛑",iLe="🚧",oLe="⚓",aLe="⛵",lLe="⛵",cLe="🛶",dLe="🚤",uLe="🛳️",pLe="⛴️",fLe="🛥️",_Le="🚢",mLe="✈️",hLe="🛩️",gLe="🛫",bLe="🛬",yLe="🪂",ELe="💺",vLe="🚁",SLe="🚟",TLe="🚠",xLe="🚡",CLe="🛰️",wLe="🚀",RLe="🛸",ALe="🛎️",MLe="🧳",NLe="⌛",OLe="⏳",ILe="⌚",kLe="⏰",DLe="⏱️",LLe="⏲️",PLe="🕰️",FLe="🕛",ULe="🕧",BLe="🕐",GLe="🕜",VLe="🕑",zLe="🕝",HLe="🕒",qLe="🕞",YLe="🕓",$Le="🕟",WLe="🕔",KLe="🕠",jLe="🕕",QLe="🕡",XLe="🕖",ZLe="🕢",JLe="🕗",ePe="🕣",tPe="🕘",nPe="🕤",sPe="🕙",rPe="🕥",iPe="🕚",oPe="🕦",aPe="🌑",lPe="🌒",cPe="🌓",dPe="🌔",uPe="🌔",pPe="🌕",fPe="🌖",_Pe="🌗",mPe="🌘",hPe="🌙",gPe="🌚",bPe="🌛",yPe="🌜",EPe="🌡️",vPe="☀️",SPe="🌝",TPe="🌞",xPe="🪐",CPe="⭐",wPe="🌟",RPe="🌠",APe="🌌",MPe="☁️",NPe="⛅",OPe="⛈️",IPe="🌤️",kPe="🌥️",DPe="🌦️",LPe="🌧️",PPe="🌨️",FPe="🌩️",UPe="🌪️",BPe="🌫️",GPe="🌬️",VPe="🌀",zPe="🌈",HPe="🌂",qPe="☂️",YPe="☔",$Pe="⛱️",WPe="⚡",KPe="❄️",jPe="☃️",QPe="⛄",XPe="☄️",ZPe="🔥",JPe="💧",e3e="🌊",t3e="🎃",n3e="🎄",s3e="🎆",r3e="🎇",i3e="🧨",o3e="✨",a3e="🎈",l3e="🎉",c3e="🎊",d3e="🎋",u3e="🎍",p3e="🎎",f3e="🎏",_3e="🎐",m3e="🎑",h3e="🧧",g3e="🎀",b3e="🎁",y3e="🎗️",E3e="🎟️",v3e="🎫",S3e="🎖️",T3e="🏆",x3e="🏅",C3e="⚽",w3e="⚾",R3e="🥎",A3e="🏀",M3e="🏐",N3e="🏈",O3e="🏉",I3e="🎾",k3e="🥏",D3e="🎳",L3e="🏏",P3e="🏑",F3e="🏒",U3e="🥍",B3e="🏓",G3e="🏸",V3e="🥊",z3e="🥋",H3e="🥅",q3e="⛳",Y3e="⛸️",$3e="🎣",W3e="🤿",K3e="🎽",j3e="🎿",Q3e="🛷",X3e="🥌",Z3e="🎯",J3e="🪀",e4e="🪁",t4e="🔮",n4e="🪄",s4e="🧿",r4e="🎮",i4e="🕹️",o4e="🎰",a4e="🎲",l4e="🧩",c4e="🧸",d4e="🪅",u4e="🪆",p4e="♠️",f4e="♥️",_4e="♦️",m4e="♣️",h4e="♟️",g4e="🃏",b4e="🀄",y4e="🎴",E4e="🎭",v4e="🖼️",S4e="🎨",T4e="🧵",x4e="🪡",C4e="🧶",w4e="🪢",R4e="👓",A4e="🕶️",M4e="🥽",N4e="🥼",O4e="🦺",I4e="👔",k4e="👕",D4e="👕",L4e="👖",P4e="🧣",F4e="🧤",U4e="🧥",B4e="🧦",G4e="👗",V4e="👘",z4e="🥻",H4e="🩱",q4e="🩲",Y4e="🩳",$4e="👙",W4e="👚",K4e="👛",j4e="👜",Q4e="👝",X4e="🛍️",Z4e="🎒",J4e="🩴",e5e="👞",t5e="👞",n5e="👟",s5e="🥾",r5e="🥿",i5e="👠",o5e="👡",a5e="🩰",l5e="👢",c5e="👑",d5e="👒",u5e="🎩",p5e="🎓",f5e="🧢",_5e="🪖",m5e="⛑️",h5e="📿",g5e="💄",b5e="💍",y5e="💎",E5e="🔇",v5e="🔈",S5e="🔉",T5e="🔊",x5e="📢",C5e="📣",w5e="📯",R5e="🔔",A5e="🔕",M5e="🎼",N5e="🎵",O5e="🎶",I5e="🎙️",k5e="🎚️",D5e="🎛️",L5e="🎤",P5e="🎧",F5e="📻",U5e="🎷",B5e="🪗",G5e="🎸",V5e="🎹",z5e="🎺",H5e="🎻",q5e="🪕",Y5e="🥁",$5e="🪘",W5e="📱",K5e="📲",j5e="☎️",Q5e="☎️",X5e="📞",Z5e="📟",J5e="📠",eFe="🔋",tFe="🔌",nFe="💻",sFe="🖥️",rFe="🖨️",iFe="⌨️",oFe="🖱️",aFe="🖲️",lFe="💽",cFe="💾",dFe="💿",uFe="📀",pFe="🧮",fFe="🎥",_Fe="🎞️",mFe="📽️",hFe="🎬",gFe="📺",bFe="📷",yFe="📸",EFe="📹",vFe="📼",SFe="🔍",TFe="🔎",xFe="🕯️",CFe="💡",wFe="🔦",RFe="🏮",AFe="🏮",MFe="🪔",NFe="📔",OFe="📕",IFe="📖",kFe="📖",DFe="📗",LFe="📘",PFe="📙",FFe="📚",UFe="📓",BFe="📒",GFe="📃",VFe="📜",zFe="📄",HFe="📰",qFe="🗞️",YFe="📑",$Fe="🔖",WFe="🏷️",KFe="💰",jFe="🪙",QFe="💴",XFe="💵",ZFe="💶",JFe="💷",eUe="💸",tUe="💳",nUe="🧾",sUe="💹",rUe="✉️",iUe="📧",oUe="📨",aUe="📩",lUe="📤",cUe="📥",dUe="📫",uUe="📪",pUe="📬",fUe="📭",_Ue="📮",mUe="🗳️",hUe="✏️",gUe="✒️",bUe="🖋️",yUe="🖊️",EUe="🖌️",vUe="🖍️",SUe="📝",TUe="📝",xUe="💼",CUe="📁",wUe="📂",RUe="🗂️",AUe="📅",MUe="📆",NUe="🗒️",OUe="🗓️",IUe="📇",kUe="📈",DUe="📉",LUe="📊",PUe="📋",FUe="📌",UUe="📍",BUe="📎",GUe="🖇️",VUe="📏",zUe="📐",HUe="✂️",qUe="🗃️",YUe="🗄️",$Ue="🗑️",WUe="🔒",KUe="🔓",jUe="🔏",QUe="🔐",XUe="🔑",ZUe="🗝️",JUe="🔨",eBe="🪓",tBe="⛏️",nBe="⚒️",sBe="🛠️",rBe="🗡️",iBe="⚔️",oBe="🔫",aBe="🪃",lBe="🏹",cBe="🛡️",dBe="🪚",uBe="🔧",pBe="🪛",fBe="🔩",_Be="⚙️",mBe="🗜️",hBe="⚖️",gBe="🦯",bBe="🔗",yBe="⛓️",EBe="🪝",vBe="🧰",SBe="🧲",TBe="🪜",xBe="⚗️",CBe="🧪",wBe="🧫",RBe="🧬",ABe="🔬",MBe="🔭",NBe="📡",OBe="💉",IBe="🩸",kBe="💊",DBe="🩹",LBe="🩺",PBe="🚪",FBe="🛗",UBe="🪞",BBe="🪟",GBe="🛏️",VBe="🛋️",zBe="🪑",HBe="🚽",qBe="🪠",YBe="🚿",$Be="🛁",WBe="🪤",KBe="🪒",jBe="🧴",QBe="🧷",XBe="🧹",ZBe="🧺",JBe="🧻",e6e="🪣",t6e="🧼",n6e="🪥",s6e="🧽",r6e="🧯",i6e="🛒",o6e="🚬",a6e="⚰️",l6e="🪦",c6e="⚱️",d6e="🗿",u6e="🪧",p6e="🏧",f6e="🚮",_6e="🚰",m6e="♿",h6e="🚹",g6e="🚺",b6e="🚻",y6e="🚼",E6e="🚾",v6e="🛂",S6e="🛃",T6e="🛄",x6e="🛅",C6e="⚠️",w6e="🚸",R6e="⛔",A6e="🚫",M6e="🚳",N6e="🚭",O6e="🚯",I6e="🚷",k6e="📵",D6e="🔞",L6e="☢️",P6e="☣️",F6e="⬆️",U6e="↗️",B6e="➡️",G6e="↘️",V6e="⬇️",z6e="↙️",H6e="⬅️",q6e="↖️",Y6e="↕️",$6e="↔️",W6e="↩️",K6e="↪️",j6e="⤴️",Q6e="⤵️",X6e="🔃",Z6e="🔄",J6e="🔙",e9e="🔚",t9e="🔛",n9e="🔜",s9e="🔝",r9e="🛐",i9e="⚛️",o9e="🕉️",a9e="✡️",l9e="☸️",c9e="☯️",d9e="✝️",u9e="☦️",p9e="☪️",f9e="☮️",_9e="🕎",m9e="🔯",h9e="♈",g9e="♉",b9e="♊",y9e="♋",E9e="♌",v9e="♍",S9e="♎",T9e="♏",x9e="♐",C9e="♑",w9e="♒",R9e="♓",A9e="⛎",M9e="🔀",N9e="🔁",O9e="🔂",I9e="▶️",k9e="⏩",D9e="⏭️",L9e="⏯️",P9e="◀️",F9e="⏪",U9e="⏮️",B9e="🔼",G9e="⏫",V9e="🔽",z9e="⏬",H9e="⏸️",q9e="⏹️",Y9e="⏺️",$9e="⏏️",W9e="🎦",K9e="🔅",j9e="🔆",Q9e="📶",X9e="📳",Z9e="📴",J9e="♀️",e8e="♂️",t8e="⚧️",n8e="✖️",s8e="➕",r8e="➖",i8e="➗",o8e="♾️",a8e="‼️",l8e="⁉️",c8e="❓",d8e="❔",u8e="❕",p8e="❗",f8e="❗",_8e="〰️",m8e="💱",h8e="💲",g8e="⚕️",b8e="♻️",y8e="⚜️",E8e="🔱",v8e="📛",S8e="🔰",T8e="⭕",x8e="✅",C8e="☑️",w8e="✔️",R8e="❌",A8e="❎",M8e="➰",N8e="➿",O8e="〽️",I8e="✳️",k8e="✴️",D8e="❇️",L8e="©️",P8e="®️",F8e="™️",U8e="#️⃣",B8e="*️⃣",G8e="0️⃣",V8e="1️⃣",z8e="2️⃣",H8e="3️⃣",q8e="4️⃣",Y8e="5️⃣",$8e="6️⃣",W8e="7️⃣",K8e="8️⃣",j8e="9️⃣",Q8e="🔟",X8e="🔠",Z8e="🔡",J8e="🔣",eGe="🔤",tGe="🅰️",nGe="🆎",sGe="🅱️",rGe="🆑",iGe="🆒",oGe="🆓",aGe="ℹ️",lGe="🆔",cGe="Ⓜ️",dGe="🆖",uGe="🅾️",pGe="🆗",fGe="🅿️",_Ge="🆘",mGe="🆙",hGe="🆚",gGe="🈁",bGe="🈂️",yGe="🉐",EGe="🉑",vGe="㊗️",SGe="㊙️",TGe="🈵",xGe="🔴",CGe="🟠",wGe="🟡",RGe="🟢",AGe="🔵",MGe="🟣",NGe="🟤",OGe="⚫",IGe="⚪",kGe="🟥",DGe="🟧",LGe="🟨",PGe="🟩",FGe="🟦",UGe="🟪",BGe="🟫",GGe="⬛",VGe="⬜",zGe="◼️",HGe="◻️",qGe="◾",YGe="◽",$Ge="▪️",WGe="▫️",KGe="🔶",jGe="🔷",QGe="🔸",XGe="🔹",ZGe="🔺",JGe="🔻",e7e="💠",t7e="🔘",n7e="🔳",s7e="🔲",r7e="🏁",i7e="🚩",o7e="🎌",a7e="🏴",l7e="🏳️",c7e="🏳️‍🌈",d7e="🏳️‍⚧️",u7e="🏴‍☠️",p7e="🇦🇨",f7e="🇦🇩",_7e="🇦🇪",m7e="🇦🇫",h7e="🇦🇬",g7e="🇦🇮",b7e="🇦🇱",y7e="🇦🇲",E7e="🇦🇴",v7e="🇦🇶",S7e="🇦🇷",T7e="🇦🇸",x7e="🇦🇹",C7e="🇦🇺",w7e="🇦🇼",R7e="🇦🇽",A7e="🇦🇿",M7e="🇧🇦",N7e="🇧🇧",O7e="🇧🇩",I7e="🇧🇪",k7e="🇧🇫",D7e="🇧🇬",L7e="🇧🇭",P7e="🇧🇮",F7e="🇧🇯",U7e="🇧🇱",B7e="🇧🇲",G7e="🇧🇳",V7e="🇧🇴",z7e="🇧🇶",H7e="🇧🇷",q7e="🇧🇸",Y7e="🇧🇹",$7e="🇧🇻",W7e="🇧🇼",K7e="🇧🇾",j7e="🇧🇿",Q7e="🇨🇦",X7e="🇨🇨",Z7e="🇨🇩",J7e="🇨🇫",eVe="🇨🇬",tVe="🇨🇭",nVe="🇨🇮",sVe="🇨🇰",rVe="🇨🇱",iVe="🇨🇲",oVe="🇨🇳",aVe="🇨🇴",lVe="🇨🇵",cVe="🇨🇷",dVe="🇨🇺",uVe="🇨🇻",pVe="🇨🇼",fVe="🇨🇽",_Ve="🇨🇾",mVe="🇨🇿",hVe="🇩🇪",gVe="🇩🇬",bVe="🇩🇯",yVe="🇩🇰",EVe="🇩🇲",vVe="🇩🇴",SVe="🇩🇿",TVe="🇪🇦",xVe="🇪🇨",CVe="🇪🇪",wVe="🇪🇬",RVe="🇪🇭",AVe="🇪🇷",MVe="🇪🇸",NVe="🇪🇹",OVe="🇪🇺",IVe="🇪🇺",kVe="🇫🇮",DVe="🇫🇯",LVe="🇫🇰",PVe="🇫🇲",FVe="🇫🇴",UVe="🇫🇷",BVe="🇬🇦",GVe="🇬🇧",VVe="🇬🇧",zVe="🇬🇩",HVe="🇬🇪",qVe="🇬🇫",YVe="🇬🇬",$Ve="🇬🇭",WVe="🇬🇮",KVe="🇬🇱",jVe="🇬🇲",QVe="🇬🇳",XVe="🇬🇵",ZVe="🇬🇶",JVe="🇬🇷",eze="🇬🇸",tze="🇬🇹",nze="🇬🇺",sze="🇬🇼",rze="🇬🇾",ize="🇭🇰",oze="🇭🇲",aze="🇭🇳",lze="🇭🇷",cze="🇭🇹",dze="🇭🇺",uze="🇮🇨",pze="🇮🇩",fze="🇮🇪",_ze="🇮🇱",mze="🇮🇲",hze="🇮🇳",gze="🇮🇴",bze="🇮🇶",yze="🇮🇷",Eze="🇮🇸",vze="🇮🇹",Sze="🇯🇪",Tze="🇯🇲",xze="🇯🇴",Cze="🇯🇵",wze="🇰🇪",Rze="🇰🇬",Aze="🇰🇭",Mze="🇰🇮",Nze="🇰🇲",Oze="🇰🇳",Ize="🇰🇵",kze="🇰🇷",Dze="🇰🇼",Lze="🇰🇾",Pze="🇰🇿",Fze="🇱🇦",Uze="🇱🇧",Bze="🇱🇨",Gze="🇱🇮",Vze="🇱🇰",zze="🇱🇷",Hze="🇱🇸",qze="🇱🇹",Yze="🇱🇺",$ze="🇱🇻",Wze="🇱🇾",Kze="🇲🇦",jze="🇲🇨",Qze="🇲🇩",Xze="🇲🇪",Zze="🇲🇫",Jze="🇲🇬",eHe="🇲🇭",tHe="🇲🇰",nHe="🇲🇱",sHe="🇲🇲",rHe="🇲🇳",iHe="🇲🇴",oHe="🇲🇵",aHe="🇲🇶",lHe="🇲🇷",cHe="🇲🇸",dHe="🇲🇹",uHe="🇲🇺",pHe="🇲🇻",fHe="🇲🇼",_He="🇲🇽",mHe="🇲🇾",hHe="🇲🇿",gHe="🇳🇦",bHe="🇳🇨",yHe="🇳🇪",EHe="🇳🇫",vHe="🇳🇬",SHe="🇳🇮",THe="🇳🇱",xHe="🇳🇴",CHe="🇳🇵",wHe="🇳🇷",RHe="🇳🇺",AHe="🇳🇿",MHe="🇴🇲",NHe="🇵🇦",OHe="🇵🇪",IHe="🇵🇫",kHe="🇵🇬",DHe="🇵🇭",LHe="🇵🇰",PHe="🇵🇱",FHe="🇵🇲",UHe="🇵🇳",BHe="🇵🇷",GHe="🇵🇸",VHe="🇵🇹",zHe="🇵🇼",HHe="🇵🇾",qHe="🇶🇦",YHe="🇷🇪",$He="🇷🇴",WHe="🇷🇸",KHe="🇷🇺",jHe="🇷🇼",QHe="🇸🇦",XHe="🇸🇧",ZHe="🇸🇨",JHe="🇸🇩",eqe="🇸🇪",tqe="🇸🇬",nqe="🇸🇭",sqe="🇸🇮",rqe="🇸🇯",iqe="🇸🇰",oqe="🇸🇱",aqe="🇸🇲",lqe="🇸🇳",cqe="🇸🇴",dqe="🇸🇷",uqe="🇸🇸",pqe="🇸🇹",fqe="🇸🇻",_qe="🇸🇽",mqe="🇸🇾",hqe="🇸🇿",gqe="🇹🇦",bqe="🇹🇨",yqe="🇹🇩",Eqe="🇹🇫",vqe="🇹🇬",Sqe="🇹🇭",Tqe="🇹🇯",xqe="🇹🇰",Cqe="🇹🇱",wqe="🇹🇲",Rqe="🇹🇳",Aqe="🇹🇴",Mqe="🇹🇷",Nqe="🇹🇹",Oqe="🇹🇻",Iqe="🇹🇼",kqe="🇹🇿",Dqe="🇺🇦",Lqe="🇺🇬",Pqe="🇺🇲",Fqe="🇺🇳",Uqe="🇺🇸",Bqe="🇺🇾",Gqe="🇺🇿",Vqe="🇻🇦",zqe="🇻🇨",Hqe="🇻🇪",qqe="🇻🇬",Yqe="🇻🇮",$qe="🇻🇳",Wqe="🇻🇺",Kqe="🇼🇫",jqe="🇼🇸",Qqe="🇽🇰",Xqe="🇾🇪",Zqe="🇾🇹",Jqe="🇿🇦",eYe="🇿🇲",tYe="🇿🇼",nYe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",sYe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",rYe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",iYe={100:"💯",1234:"🔢",grinning:hEe,smiley:gEe,smile:bEe,grin:yEe,laughing:EEe,satisfied:vEe,sweat_smile:SEe,rofl:TEe,joy:xEe,slightly_smiling_face:CEe,upside_down_face:wEe,wink:REe,blush:AEe,innocent:MEe,smiling_face_with_three_hearts:NEe,heart_eyes:OEe,star_struck:IEe,kissing_heart:kEe,kissing:DEe,relaxed:LEe,kissing_closed_eyes:PEe,kissing_smiling_eyes:FEe,smiling_face_with_tear:UEe,yum:BEe,stuck_out_tongue:GEe,stuck_out_tongue_winking_eye:VEe,zany_face:zEe,stuck_out_tongue_closed_eyes:HEe,money_mouth_face:qEe,hugs:YEe,hand_over_mouth:$Ee,shushing_face:WEe,thinking:KEe,zipper_mouth_face:jEe,raised_eyebrow:QEe,neutral_face:XEe,expressionless:ZEe,no_mouth:JEe,smirk:eve,unamused:tve,roll_eyes:nve,grimacing:sve,lying_face:rve,relieved:ive,pensive:ove,sleepy:ave,drooling_face:lve,sleeping:cve,mask:dve,face_with_thermometer:uve,face_with_head_bandage:pve,nauseated_face:fve,vomiting_face:_ve,sneezing_face:mve,hot_face:hve,cold_face:gve,woozy_face:bve,dizzy_face:yve,exploding_head:Eve,cowboy_hat_face:vve,partying_face:Sve,disguised_face:Tve,sunglasses:xve,nerd_face:Cve,monocle_face:wve,confused:Rve,worried:Ave,slightly_frowning_face:Mve,frowning_face:Nve,open_mouth:Ove,hushed:Ive,astonished:kve,flushed:Dve,pleading_face:Lve,frowning:Pve,anguished:Fve,fearful:Uve,cold_sweat:Bve,disappointed_relieved:Gve,cry:Vve,sob:zve,scream:Hve,confounded:qve,persevere:Yve,disappointed:$ve,sweat:Wve,weary:Kve,tired_face:jve,yawning_face:Qve,triumph:Xve,rage:Zve,pout:Jve,angry:eSe,cursing_face:tSe,smiling_imp:nSe,imp:sSe,skull:rSe,skull_and_crossbones:iSe,hankey:oSe,poop:aSe,shit:lSe,clown_face:cSe,japanese_ogre:dSe,japanese_goblin:uSe,ghost:pSe,alien:fSe,space_invader:_Se,robot:mSe,smiley_cat:hSe,smile_cat:gSe,joy_cat:bSe,heart_eyes_cat:ySe,smirk_cat:ESe,kissing_cat:vSe,scream_cat:SSe,crying_cat_face:TSe,pouting_cat:xSe,see_no_evil:CSe,hear_no_evil:wSe,speak_no_evil:RSe,kiss:ASe,love_letter:MSe,cupid:NSe,gift_heart:OSe,sparkling_heart:ISe,heartpulse:kSe,heartbeat:DSe,revolving_hearts:LSe,two_hearts:PSe,heart_decoration:FSe,heavy_heart_exclamation:USe,broken_heart:BSe,heart:GSe,orange_heart:VSe,yellow_heart:zSe,green_heart:HSe,blue_heart:qSe,purple_heart:YSe,brown_heart:$Se,black_heart:WSe,white_heart:KSe,anger:jSe,boom:QSe,collision:XSe,dizzy:ZSe,sweat_drops:JSe,dash:e1e,hole:t1e,bomb:n1e,speech_balloon:s1e,eye_speech_bubble:r1e,left_speech_bubble:i1e,right_anger_bubble:o1e,thought_balloon:a1e,zzz:l1e,wave:c1e,raised_back_of_hand:d1e,raised_hand_with_fingers_splayed:u1e,hand:p1e,raised_hand:f1e,vulcan_salute:_1e,ok_hand:m1e,pinched_fingers:h1e,pinching_hand:g1e,v:b1e,crossed_fingers:y1e,love_you_gesture:E1e,metal:v1e,call_me_hand:S1e,point_left:T1e,point_right:x1e,point_up_2:C1e,middle_finger:w1e,fu:R1e,point_down:A1e,point_up:M1e,"+1":"👍",thumbsup:N1e,"-1":"👎",thumbsdown:O1e,fist_raised:I1e,fist:k1e,fist_oncoming:D1e,facepunch:L1e,punch:P1e,fist_left:F1e,fist_right:U1e,clap:B1e,raised_hands:G1e,open_hands:V1e,palms_up_together:z1e,handshake:H1e,pray:q1e,writing_hand:Y1e,nail_care:$1e,selfie:W1e,muscle:K1e,mechanical_arm:j1e,mechanical_leg:Q1e,leg:X1e,foot:Z1e,ear:J1e,ear_with_hearing_aid:eTe,nose:tTe,brain:nTe,anatomical_heart:sTe,lungs:rTe,tooth:iTe,bone:oTe,eyes:aTe,eye:lTe,tongue:cTe,lips:dTe,baby:uTe,child:pTe,boy:fTe,girl:_Te,adult:mTe,blond_haired_person:hTe,man:gTe,bearded_person:bTe,red_haired_man:yTe,curly_haired_man:ETe,white_haired_man:vTe,bald_man:STe,woman:TTe,red_haired_woman:xTe,person_red_hair:CTe,curly_haired_woman:wTe,person_curly_hair:RTe,white_haired_woman:ATe,person_white_hair:MTe,bald_woman:NTe,person_bald:OTe,blond_haired_woman:ITe,blonde_woman:kTe,blond_haired_man:DTe,older_adult:LTe,older_man:PTe,older_woman:FTe,frowning_person:UTe,frowning_man:BTe,frowning_woman:GTe,pouting_face:VTe,pouting_man:zTe,pouting_woman:HTe,no_good:qTe,no_good_man:YTe,ng_man:$Te,no_good_woman:WTe,ng_woman:KTe,ok_person:jTe,ok_man:QTe,ok_woman:XTe,tipping_hand_person:ZTe,information_desk_person:JTe,tipping_hand_man:exe,sassy_man:txe,tipping_hand_woman:nxe,sassy_woman:sxe,raising_hand:rxe,raising_hand_man:ixe,raising_hand_woman:oxe,deaf_person:axe,deaf_man:lxe,deaf_woman:cxe,bow:dxe,bowing_man:uxe,bowing_woman:pxe,facepalm:fxe,man_facepalming:_xe,woman_facepalming:mxe,shrug:hxe,man_shrugging:gxe,woman_shrugging:bxe,health_worker:yxe,man_health_worker:Exe,woman_health_worker:vxe,student:Sxe,man_student:Txe,woman_student:xxe,teacher:Cxe,man_teacher:wxe,woman_teacher:Rxe,judge:Axe,man_judge:Mxe,woman_judge:Nxe,farmer:Oxe,man_farmer:Ixe,woman_farmer:kxe,cook:Dxe,man_cook:Lxe,woman_cook:Pxe,mechanic:Fxe,man_mechanic:Uxe,woman_mechanic:Bxe,factory_worker:Gxe,man_factory_worker:Vxe,woman_factory_worker:zxe,office_worker:Hxe,man_office_worker:qxe,woman_office_worker:Yxe,scientist:$xe,man_scientist:Wxe,woman_scientist:Kxe,technologist:jxe,man_technologist:Qxe,woman_technologist:Xxe,singer:Zxe,man_singer:Jxe,woman_singer:eCe,artist:tCe,man_artist:nCe,woman_artist:sCe,pilot:rCe,man_pilot:iCe,woman_pilot:oCe,astronaut:aCe,man_astronaut:lCe,woman_astronaut:cCe,firefighter:dCe,man_firefighter:uCe,woman_firefighter:pCe,police_officer:fCe,cop:_Ce,policeman:mCe,policewoman:hCe,detective:gCe,male_detective:bCe,female_detective:yCe,guard:ECe,guardsman:vCe,guardswoman:SCe,ninja:TCe,construction_worker:xCe,construction_worker_man:CCe,construction_worker_woman:wCe,prince:RCe,princess:ACe,person_with_turban:MCe,man_with_turban:NCe,woman_with_turban:OCe,man_with_gua_pi_mao:ICe,woman_with_headscarf:kCe,person_in_tuxedo:DCe,man_in_tuxedo:LCe,woman_in_tuxedo:PCe,person_with_veil:FCe,man_with_veil:UCe,woman_with_veil:BCe,bride_with_veil:GCe,pregnant_woman:VCe,breast_feeding:zCe,woman_feeding_baby:HCe,man_feeding_baby:qCe,person_feeding_baby:YCe,angel:$Ce,santa:WCe,mrs_claus:KCe,mx_claus:jCe,superhero:QCe,superhero_man:XCe,superhero_woman:ZCe,supervillain:JCe,supervillain_man:ewe,supervillain_woman:twe,mage:nwe,mage_man:swe,mage_woman:rwe,fairy:iwe,fairy_man:owe,fairy_woman:awe,vampire:lwe,vampire_man:cwe,vampire_woman:dwe,merperson:uwe,merman:pwe,mermaid:fwe,elf:_we,elf_man:mwe,elf_woman:hwe,genie:gwe,genie_man:bwe,genie_woman:ywe,zombie:Ewe,zombie_man:vwe,zombie_woman:Swe,massage:Twe,massage_man:xwe,massage_woman:Cwe,haircut:wwe,haircut_man:Rwe,haircut_woman:Awe,walking:Mwe,walking_man:Nwe,walking_woman:Owe,standing_person:Iwe,standing_man:kwe,standing_woman:Dwe,kneeling_person:Lwe,kneeling_man:Pwe,kneeling_woman:Fwe,person_with_probing_cane:Uwe,man_with_probing_cane:Bwe,woman_with_probing_cane:Gwe,person_in_motorized_wheelchair:Vwe,man_in_motorized_wheelchair:zwe,woman_in_motorized_wheelchair:Hwe,person_in_manual_wheelchair:qwe,man_in_manual_wheelchair:Ywe,woman_in_manual_wheelchair:$we,runner:Wwe,running:Kwe,running_man:jwe,running_woman:Qwe,woman_dancing:Xwe,dancer:Zwe,man_dancing:Jwe,business_suit_levitating:e2e,dancers:t2e,dancing_men:n2e,dancing_women:s2e,sauna_person:r2e,sauna_man:i2e,sauna_woman:o2e,climbing:a2e,climbing_man:l2e,climbing_woman:c2e,person_fencing:d2e,horse_racing:u2e,skier:p2e,snowboarder:f2e,golfing:_2e,golfing_man:m2e,golfing_woman:h2e,surfer:g2e,surfing_man:b2e,surfing_woman:y2e,rowboat:E2e,rowing_man:v2e,rowing_woman:S2e,swimmer:T2e,swimming_man:x2e,swimming_woman:C2e,bouncing_ball_person:w2e,bouncing_ball_man:R2e,basketball_man:A2e,bouncing_ball_woman:M2e,basketball_woman:N2e,weight_lifting:O2e,weight_lifting_man:I2e,weight_lifting_woman:k2e,bicyclist:D2e,biking_man:L2e,biking_woman:P2e,mountain_bicyclist:F2e,mountain_biking_man:U2e,mountain_biking_woman:B2e,cartwheeling:G2e,man_cartwheeling:V2e,woman_cartwheeling:z2e,wrestling:H2e,men_wrestling:q2e,women_wrestling:Y2e,water_polo:$2e,man_playing_water_polo:W2e,woman_playing_water_polo:K2e,handball_person:j2e,man_playing_handball:Q2e,woman_playing_handball:X2e,juggling_person:Z2e,man_juggling:J2e,woman_juggling:eRe,lotus_position:tRe,lotus_position_man:nRe,lotus_position_woman:sRe,bath:rRe,sleeping_bed:iRe,people_holding_hands:oRe,two_women_holding_hands:aRe,couple:lRe,two_men_holding_hands:cRe,couplekiss:dRe,couplekiss_man_woman:uRe,couplekiss_man_man:pRe,couplekiss_woman_woman:fRe,couple_with_heart:_Re,couple_with_heart_woman_man:mRe,couple_with_heart_man_man:hRe,couple_with_heart_woman_woman:gRe,family:bRe,family_man_woman_boy:yRe,family_man_woman_girl:ERe,family_man_woman_girl_boy:vRe,family_man_woman_boy_boy:SRe,family_man_woman_girl_girl:TRe,family_man_man_boy:xRe,family_man_man_girl:CRe,family_man_man_girl_boy:wRe,family_man_man_boy_boy:RRe,family_man_man_girl_girl:ARe,family_woman_woman_boy:MRe,family_woman_woman_girl:NRe,family_woman_woman_girl_boy:ORe,family_woman_woman_boy_boy:IRe,family_woman_woman_girl_girl:kRe,family_man_boy:DRe,family_man_boy_boy:LRe,family_man_girl:PRe,family_man_girl_boy:FRe,family_man_girl_girl:URe,family_woman_boy:BRe,family_woman_boy_boy:GRe,family_woman_girl:VRe,family_woman_girl_boy:zRe,family_woman_girl_girl:HRe,speaking_head:qRe,bust_in_silhouette:YRe,busts_in_silhouette:$Re,people_hugging:WRe,footprints:KRe,monkey_face:jRe,monkey:QRe,gorilla:XRe,orangutan:ZRe,dog:JRe,dog2:eAe,guide_dog:tAe,service_dog:nAe,poodle:sAe,wolf:rAe,fox_face:iAe,raccoon:oAe,cat:aAe,cat2:lAe,black_cat:cAe,lion:dAe,tiger:uAe,tiger2:pAe,leopard:fAe,horse:_Ae,racehorse:mAe,unicorn:hAe,zebra:gAe,deer:bAe,bison:yAe,cow:EAe,ox:vAe,water_buffalo:SAe,cow2:TAe,pig:xAe,pig2:CAe,boar:wAe,pig_nose:RAe,ram:AAe,sheep:MAe,goat:NAe,dromedary_camel:OAe,camel:IAe,llama:kAe,giraffe:DAe,elephant:LAe,mammoth:PAe,rhinoceros:FAe,hippopotamus:UAe,mouse:BAe,mouse2:GAe,rat:VAe,hamster:zAe,rabbit:HAe,rabbit2:qAe,chipmunk:YAe,beaver:$Ae,hedgehog:WAe,bat:KAe,bear:jAe,polar_bear:QAe,koala:XAe,panda_face:ZAe,sloth:JAe,otter:eMe,skunk:tMe,kangaroo:nMe,badger:sMe,feet:rMe,paw_prints:iMe,turkey:oMe,chicken:aMe,rooster:lMe,hatching_chick:cMe,baby_chick:dMe,hatched_chick:uMe,bird:pMe,penguin:fMe,dove:_Me,eagle:mMe,duck:hMe,swan:gMe,owl:bMe,dodo:yMe,feather:EMe,flamingo:vMe,peacock:SMe,parrot:TMe,frog:xMe,crocodile:CMe,turtle:wMe,lizard:RMe,snake:AMe,dragon_face:MMe,dragon:NMe,sauropod:OMe,"t-rex":"🦖",whale:IMe,whale2:kMe,dolphin:DMe,flipper:LMe,seal:PMe,fish:FMe,tropical_fish:UMe,blowfish:BMe,shark:GMe,octopus:VMe,shell:zMe,snail:HMe,butterfly:qMe,bug:YMe,ant:$Me,bee:WMe,honeybee:KMe,beetle:jMe,lady_beetle:QMe,cricket:XMe,cockroach:ZMe,spider:JMe,spider_web:eNe,scorpion:tNe,mosquito:nNe,fly:sNe,worm:rNe,microbe:iNe,bouquet:oNe,cherry_blossom:aNe,white_flower:lNe,rosette:cNe,rose:dNe,wilted_flower:uNe,hibiscus:pNe,sunflower:fNe,blossom:_Ne,tulip:mNe,seedling:hNe,potted_plant:gNe,evergreen_tree:bNe,deciduous_tree:yNe,palm_tree:ENe,cactus:vNe,ear_of_rice:SNe,herb:TNe,shamrock:xNe,four_leaf_clover:CNe,maple_leaf:wNe,fallen_leaf:RNe,leaves:ANe,grapes:MNe,melon:NNe,watermelon:ONe,tangerine:INe,orange:kNe,mandarin:DNe,lemon:LNe,banana:PNe,pineapple:FNe,mango:UNe,apple:BNe,green_apple:GNe,pear:VNe,peach:zNe,cherries:HNe,strawberry:qNe,blueberries:YNe,kiwi_fruit:$Ne,tomato:WNe,olive:KNe,coconut:jNe,avocado:QNe,eggplant:XNe,potato:ZNe,carrot:JNe,corn:eOe,hot_pepper:tOe,bell_pepper:nOe,cucumber:sOe,leafy_green:rOe,broccoli:iOe,garlic:oOe,onion:aOe,mushroom:lOe,peanuts:cOe,chestnut:dOe,bread:uOe,croissant:pOe,baguette_bread:fOe,flatbread:_Oe,pretzel:mOe,bagel:hOe,pancakes:gOe,waffle:bOe,cheese:yOe,meat_on_bone:EOe,poultry_leg:vOe,cut_of_meat:SOe,bacon:TOe,hamburger:xOe,fries:COe,pizza:wOe,hotdog:ROe,sandwich:AOe,taco:MOe,burrito:NOe,tamale:OOe,stuffed_flatbread:IOe,falafel:kOe,egg:DOe,fried_egg:LOe,shallow_pan_of_food:POe,stew:FOe,fondue:UOe,bowl_with_spoon:BOe,green_salad:GOe,popcorn:VOe,butter:zOe,salt:HOe,canned_food:qOe,bento:YOe,rice_cracker:$Oe,rice_ball:WOe,rice:KOe,curry:jOe,ramen:QOe,spaghetti:XOe,sweet_potato:ZOe,oden:JOe,sushi:eIe,fried_shrimp:tIe,fish_cake:nIe,moon_cake:sIe,dango:rIe,dumpling:iIe,fortune_cookie:oIe,takeout_box:aIe,crab:lIe,lobster:cIe,shrimp:dIe,squid:uIe,oyster:pIe,icecream:fIe,shaved_ice:_Ie,ice_cream:mIe,doughnut:hIe,cookie:gIe,birthday:bIe,cake:yIe,cupcake:EIe,pie:vIe,chocolate_bar:SIe,candy:TIe,lollipop:xIe,custard:CIe,honey_pot:wIe,baby_bottle:RIe,milk_glass:AIe,coffee:MIe,teapot:NIe,tea:OIe,sake:IIe,champagne:kIe,wine_glass:DIe,cocktail:LIe,tropical_drink:PIe,beer:FIe,beers:UIe,clinking_glasses:BIe,tumbler_glass:GIe,cup_with_straw:VIe,bubble_tea:zIe,beverage_box:HIe,mate:qIe,ice_cube:YIe,chopsticks:$Ie,plate_with_cutlery:WIe,fork_and_knife:KIe,spoon:jIe,hocho:QIe,knife:XIe,amphora:ZIe,earth_africa:JIe,earth_americas:eke,earth_asia:tke,globe_with_meridians:nke,world_map:ske,japan:rke,compass:ike,mountain_snow:oke,mountain:ake,volcano:lke,mount_fuji:cke,camping:dke,beach_umbrella:uke,desert:pke,desert_island:fke,national_park:_ke,stadium:mke,classical_building:hke,building_construction:gke,bricks:bke,rock:yke,wood:Eke,hut:vke,houses:Ske,derelict_house:Tke,house:xke,house_with_garden:Cke,office:wke,post_office:Rke,european_post_office:Ake,hospital:Mke,bank:Nke,hotel:Oke,love_hotel:Ike,convenience_store:kke,school:Dke,department_store:Lke,factory:Pke,japanese_castle:Fke,european_castle:Uke,wedding:Bke,tokyo_tower:Gke,statue_of_liberty:Vke,church:zke,mosque:Hke,hindu_temple:qke,synagogue:Yke,shinto_shrine:$ke,kaaba:Wke,fountain:Kke,tent:jke,foggy:Qke,night_with_stars:Xke,cityscape:Zke,sunrise_over_mountains:Jke,sunrise:eDe,city_sunset:tDe,city_sunrise:nDe,bridge_at_night:sDe,hotsprings:rDe,carousel_horse:iDe,ferris_wheel:oDe,roller_coaster:aDe,barber:lDe,circus_tent:cDe,steam_locomotive:dDe,railway_car:uDe,bullettrain_side:pDe,bullettrain_front:fDe,train2:_De,metro:mDe,light_rail:hDe,station:gDe,tram:bDe,monorail:yDe,mountain_railway:EDe,train:vDe,bus:SDe,oncoming_bus:TDe,trolleybus:xDe,minibus:CDe,ambulance:wDe,fire_engine:RDe,police_car:ADe,oncoming_police_car:MDe,taxi:NDe,oncoming_taxi:ODe,car:IDe,red_car:kDe,oncoming_automobile:DDe,blue_car:LDe,pickup_truck:PDe,truck:FDe,articulated_lorry:UDe,tractor:BDe,racing_car:GDe,motorcycle:VDe,motor_scooter:zDe,manual_wheelchair:HDe,motorized_wheelchair:qDe,auto_rickshaw:YDe,bike:$De,kick_scooter:WDe,skateboard:KDe,roller_skate:jDe,busstop:QDe,motorway:XDe,railway_track:ZDe,oil_drum:JDe,fuelpump:eLe,rotating_light:tLe,traffic_light:nLe,vertical_traffic_light:sLe,stop_sign:rLe,construction:iLe,anchor:oLe,boat:aLe,sailboat:lLe,canoe:cLe,speedboat:dLe,passenger_ship:uLe,ferry:pLe,motor_boat:fLe,ship:_Le,airplane:mLe,small_airplane:hLe,flight_departure:gLe,flight_arrival:bLe,parachute:yLe,seat:ELe,helicopter:vLe,suspension_railway:SLe,mountain_cableway:TLe,aerial_tramway:xLe,artificial_satellite:CLe,rocket:wLe,flying_saucer:RLe,bellhop_bell:ALe,luggage:MLe,hourglass:NLe,hourglass_flowing_sand:OLe,watch:ILe,alarm_clock:kLe,stopwatch:DLe,timer_clock:LLe,mantelpiece_clock:PLe,clock12:FLe,clock1230:ULe,clock1:BLe,clock130:GLe,clock2:VLe,clock230:zLe,clock3:HLe,clock330:qLe,clock4:YLe,clock430:$Le,clock5:WLe,clock530:KLe,clock6:jLe,clock630:QLe,clock7:XLe,clock730:ZLe,clock8:JLe,clock830:ePe,clock9:tPe,clock930:nPe,clock10:sPe,clock1030:rPe,clock11:iPe,clock1130:oPe,new_moon:aPe,waxing_crescent_moon:lPe,first_quarter_moon:cPe,moon:dPe,waxing_gibbous_moon:uPe,full_moon:pPe,waning_gibbous_moon:fPe,last_quarter_moon:_Pe,waning_crescent_moon:mPe,crescent_moon:hPe,new_moon_with_face:gPe,first_quarter_moon_with_face:bPe,last_quarter_moon_with_face:yPe,thermometer:EPe,sunny:vPe,full_moon_with_face:SPe,sun_with_face:TPe,ringed_planet:xPe,star:CPe,star2:wPe,stars:RPe,milky_way:APe,cloud:MPe,partly_sunny:NPe,cloud_with_lightning_and_rain:OPe,sun_behind_small_cloud:IPe,sun_behind_large_cloud:kPe,sun_behind_rain_cloud:DPe,cloud_with_rain:LPe,cloud_with_snow:PPe,cloud_with_lightning:FPe,tornado:UPe,fog:BPe,wind_face:GPe,cyclone:VPe,rainbow:zPe,closed_umbrella:HPe,open_umbrella:qPe,umbrella:YPe,parasol_on_ground:$Pe,zap:WPe,snowflake:KPe,snowman_with_snow:jPe,snowman:QPe,comet:XPe,fire:ZPe,droplet:JPe,ocean:e3e,jack_o_lantern:t3e,christmas_tree:n3e,fireworks:s3e,sparkler:r3e,firecracker:i3e,sparkles:o3e,balloon:a3e,tada:l3e,confetti_ball:c3e,tanabata_tree:d3e,bamboo:u3e,dolls:p3e,flags:f3e,wind_chime:_3e,rice_scene:m3e,red_envelope:h3e,ribbon:g3e,gift:b3e,reminder_ribbon:y3e,tickets:E3e,ticket:v3e,medal_military:S3e,trophy:T3e,medal_sports:x3e,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:C3e,baseball:w3e,softball:R3e,basketball:A3e,volleyball:M3e,football:N3e,rugby_football:O3e,tennis:I3e,flying_disc:k3e,bowling:D3e,cricket_game:L3e,field_hockey:P3e,ice_hockey:F3e,lacrosse:U3e,ping_pong:B3e,badminton:G3e,boxing_glove:V3e,martial_arts_uniform:z3e,goal_net:H3e,golf:q3e,ice_skate:Y3e,fishing_pole_and_fish:$3e,diving_mask:W3e,running_shirt_with_sash:K3e,ski:j3e,sled:Q3e,curling_stone:X3e,dart:Z3e,yo_yo:J3e,kite:e4e,"8ball":"🎱",crystal_ball:t4e,magic_wand:n4e,nazar_amulet:s4e,video_game:r4e,joystick:i4e,slot_machine:o4e,game_die:a4e,jigsaw:l4e,teddy_bear:c4e,pinata:d4e,nesting_dolls:u4e,spades:p4e,hearts:f4e,diamonds:_4e,clubs:m4e,chess_pawn:h4e,black_joker:g4e,mahjong:b4e,flower_playing_cards:y4e,performing_arts:E4e,framed_picture:v4e,art:S4e,thread:T4e,sewing_needle:x4e,yarn:C4e,knot:w4e,eyeglasses:R4e,dark_sunglasses:A4e,goggles:M4e,lab_coat:N4e,safety_vest:O4e,necktie:I4e,shirt:k4e,tshirt:D4e,jeans:L4e,scarf:P4e,gloves:F4e,coat:U4e,socks:B4e,dress:G4e,kimono:V4e,sari:z4e,one_piece_swimsuit:H4e,swim_brief:q4e,shorts:Y4e,bikini:$4e,womans_clothes:W4e,purse:K4e,handbag:j4e,pouch:Q4e,shopping:X4e,school_satchel:Z4e,thong_sandal:J4e,mans_shoe:e5e,shoe:t5e,athletic_shoe:n5e,hiking_boot:s5e,flat_shoe:r5e,high_heel:i5e,sandal:o5e,ballet_shoes:a5e,boot:l5e,crown:c5e,womans_hat:d5e,tophat:u5e,mortar_board:p5e,billed_cap:f5e,military_helmet:_5e,rescue_worker_helmet:m5e,prayer_beads:h5e,lipstick:g5e,ring:b5e,gem:y5e,mute:E5e,speaker:v5e,sound:S5e,loud_sound:T5e,loudspeaker:x5e,mega:C5e,postal_horn:w5e,bell:R5e,no_bell:A5e,musical_score:M5e,musical_note:N5e,notes:O5e,studio_microphone:I5e,level_slider:k5e,control_knobs:D5e,microphone:L5e,headphones:P5e,radio:F5e,saxophone:U5e,accordion:B5e,guitar:G5e,musical_keyboard:V5e,trumpet:z5e,violin:H5e,banjo:q5e,drum:Y5e,long_drum:$5e,iphone:W5e,calling:K5e,phone:j5e,telephone:Q5e,telephone_receiver:X5e,pager:Z5e,fax:J5e,battery:eFe,electric_plug:tFe,computer:nFe,desktop_computer:sFe,printer:rFe,keyboard:iFe,computer_mouse:oFe,trackball:aFe,minidisc:lFe,floppy_disk:cFe,cd:dFe,dvd:uFe,abacus:pFe,movie_camera:fFe,film_strip:_Fe,film_projector:mFe,clapper:hFe,tv:gFe,camera:bFe,camera_flash:yFe,video_camera:EFe,vhs:vFe,mag:SFe,mag_right:TFe,candle:xFe,bulb:CFe,flashlight:wFe,izakaya_lantern:RFe,lantern:AFe,diya_lamp:MFe,notebook_with_decorative_cover:NFe,closed_book:OFe,book:IFe,open_book:kFe,green_book:DFe,blue_book:LFe,orange_book:PFe,books:FFe,notebook:UFe,ledger:BFe,page_with_curl:GFe,scroll:VFe,page_facing_up:zFe,newspaper:HFe,newspaper_roll:qFe,bookmark_tabs:YFe,bookmark:$Fe,label:WFe,moneybag:KFe,coin:jFe,yen:QFe,dollar:XFe,euro:ZFe,pound:JFe,money_with_wings:eUe,credit_card:tUe,receipt:nUe,chart:sUe,envelope:rUe,email:iUe,"e-mail":"📧",incoming_envelope:oUe,envelope_with_arrow:aUe,outbox_tray:lUe,inbox_tray:cUe,package:"📦",mailbox:dUe,mailbox_closed:uUe,mailbox_with_mail:pUe,mailbox_with_no_mail:fUe,postbox:_Ue,ballot_box:mUe,pencil2:hUe,black_nib:gUe,fountain_pen:bUe,pen:yUe,paintbrush:EUe,crayon:vUe,memo:SUe,pencil:TUe,briefcase:xUe,file_folder:CUe,open_file_folder:wUe,card_index_dividers:RUe,date:AUe,calendar:MUe,spiral_notepad:NUe,spiral_calendar:OUe,card_index:IUe,chart_with_upwards_trend:kUe,chart_with_downwards_trend:DUe,bar_chart:LUe,clipboard:PUe,pushpin:FUe,round_pushpin:UUe,paperclip:BUe,paperclips:GUe,straight_ruler:VUe,triangular_ruler:zUe,scissors:HUe,card_file_box:qUe,file_cabinet:YUe,wastebasket:$Ue,lock:WUe,unlock:KUe,lock_with_ink_pen:jUe,closed_lock_with_key:QUe,key:XUe,old_key:ZUe,hammer:JUe,axe:eBe,pick:tBe,hammer_and_pick:nBe,hammer_and_wrench:sBe,dagger:rBe,crossed_swords:iBe,gun:oBe,boomerang:aBe,bow_and_arrow:lBe,shield:cBe,carpentry_saw:dBe,wrench:uBe,screwdriver:pBe,nut_and_bolt:fBe,gear:_Be,clamp:mBe,balance_scale:hBe,probing_cane:gBe,link:bBe,chains:yBe,hook:EBe,toolbox:vBe,magnet:SBe,ladder:TBe,alembic:xBe,test_tube:CBe,petri_dish:wBe,dna:RBe,microscope:ABe,telescope:MBe,satellite:NBe,syringe:OBe,drop_of_blood:IBe,pill:kBe,adhesive_bandage:DBe,stethoscope:LBe,door:PBe,elevator:FBe,mirror:UBe,window:BBe,bed:GBe,couch_and_lamp:VBe,chair:zBe,toilet:HBe,plunger:qBe,shower:YBe,bathtub:$Be,mouse_trap:WBe,razor:KBe,lotion_bottle:jBe,safety_pin:QBe,broom:XBe,basket:ZBe,roll_of_paper:JBe,bucket:e6e,soap:t6e,toothbrush:n6e,sponge:s6e,fire_extinguisher:r6e,shopping_cart:i6e,smoking:o6e,coffin:a6e,headstone:l6e,funeral_urn:c6e,moyai:d6e,placard:u6e,atm:p6e,put_litter_in_its_place:f6e,potable_water:_6e,wheelchair:m6e,mens:h6e,womens:g6e,restroom:b6e,baby_symbol:y6e,wc:E6e,passport_control:v6e,customs:S6e,baggage_claim:T6e,left_luggage:x6e,warning:C6e,children_crossing:w6e,no_entry:R6e,no_entry_sign:A6e,no_bicycles:M6e,no_smoking:N6e,do_not_litter:O6e,"non-potable_water":"🚱",no_pedestrians:I6e,no_mobile_phones:k6e,underage:D6e,radioactive:L6e,biohazard:P6e,arrow_up:F6e,arrow_upper_right:U6e,arrow_right:B6e,arrow_lower_right:G6e,arrow_down:V6e,arrow_lower_left:z6e,arrow_left:H6e,arrow_upper_left:q6e,arrow_up_down:Y6e,left_right_arrow:$6e,leftwards_arrow_with_hook:W6e,arrow_right_hook:K6e,arrow_heading_up:j6e,arrow_heading_down:Q6e,arrows_clockwise:X6e,arrows_counterclockwise:Z6e,back:J6e,end:e9e,on:t9e,soon:n9e,top:s9e,place_of_worship:r9e,atom_symbol:i9e,om:o9e,star_of_david:a9e,wheel_of_dharma:l9e,yin_yang:c9e,latin_cross:d9e,orthodox_cross:u9e,star_and_crescent:p9e,peace_symbol:f9e,menorah:_9e,six_pointed_star:m9e,aries:h9e,taurus:g9e,gemini:b9e,cancer:y9e,leo:E9e,virgo:v9e,libra:S9e,scorpius:T9e,sagittarius:x9e,capricorn:C9e,aquarius:w9e,pisces:R9e,ophiuchus:A9e,twisted_rightwards_arrows:M9e,repeat:N9e,repeat_one:O9e,arrow_forward:I9e,fast_forward:k9e,next_track_button:D9e,play_or_pause_button:L9e,arrow_backward:P9e,rewind:F9e,previous_track_button:U9e,arrow_up_small:B9e,arrow_double_up:G9e,arrow_down_small:V9e,arrow_double_down:z9e,pause_button:H9e,stop_button:q9e,record_button:Y9e,eject_button:$9e,cinema:W9e,low_brightness:K9e,high_brightness:j9e,signal_strength:Q9e,vibration_mode:X9e,mobile_phone_off:Z9e,female_sign:J9e,male_sign:e8e,transgender_symbol:t8e,heavy_multiplication_x:n8e,heavy_plus_sign:s8e,heavy_minus_sign:r8e,heavy_division_sign:i8e,infinity:o8e,bangbang:a8e,interrobang:l8e,question:c8e,grey_question:d8e,grey_exclamation:u8e,exclamation:p8e,heavy_exclamation_mark:f8e,wavy_dash:_8e,currency_exchange:m8e,heavy_dollar_sign:h8e,medical_symbol:g8e,recycle:b8e,fleur_de_lis:y8e,trident:E8e,name_badge:v8e,beginner:S8e,o:T8e,white_check_mark:x8e,ballot_box_with_check:C8e,heavy_check_mark:w8e,x:R8e,negative_squared_cross_mark:A8e,curly_loop:M8e,loop:N8e,part_alternation_mark:O8e,eight_spoked_asterisk:I8e,eight_pointed_black_star:k8e,sparkle:D8e,copyright:L8e,registered:P8e,tm:F8e,hash:U8e,asterisk:B8e,zero:G8e,one:V8e,two:z8e,three:H8e,four:q8e,five:Y8e,six:$8e,seven:W8e,eight:K8e,nine:j8e,keycap_ten:Q8e,capital_abcd:X8e,abcd:Z8e,symbols:J8e,abc:eGe,a:tGe,ab:nGe,b:sGe,cl:rGe,cool:iGe,free:oGe,information_source:aGe,id:lGe,m:cGe,new:"🆕",ng:dGe,o2:uGe,ok:pGe,parking:fGe,sos:_Ge,up:mGe,vs:hGe,koko:gGe,sa:bGe,ideograph_advantage:yGe,accept:EGe,congratulations:vGe,secret:SGe,u6e80:TGe,red_circle:xGe,orange_circle:CGe,yellow_circle:wGe,green_circle:RGe,large_blue_circle:AGe,purple_circle:MGe,brown_circle:NGe,black_circle:OGe,white_circle:IGe,red_square:kGe,orange_square:DGe,yellow_square:LGe,green_square:PGe,blue_square:FGe,purple_square:UGe,brown_square:BGe,black_large_square:GGe,white_large_square:VGe,black_medium_square:zGe,white_medium_square:HGe,black_medium_small_square:qGe,white_medium_small_square:YGe,black_small_square:$Ge,white_small_square:WGe,large_orange_diamond:KGe,large_blue_diamond:jGe,small_orange_diamond:QGe,small_blue_diamond:XGe,small_red_triangle:ZGe,small_red_triangle_down:JGe,diamond_shape_with_a_dot_inside:e7e,radio_button:t7e,white_square_button:n7e,black_square_button:s7e,checkered_flag:r7e,triangular_flag_on_post:i7e,crossed_flags:o7e,black_flag:a7e,white_flag:l7e,rainbow_flag:c7e,transgender_flag:d7e,pirate_flag:u7e,ascension_island:p7e,andorra:f7e,united_arab_emirates:_7e,afghanistan:m7e,antigua_barbuda:h7e,anguilla:g7e,albania:b7e,armenia:y7e,angola:E7e,antarctica:v7e,argentina:S7e,american_samoa:T7e,austria:x7e,australia:C7e,aruba:w7e,aland_islands:R7e,azerbaijan:A7e,bosnia_herzegovina:M7e,barbados:N7e,bangladesh:O7e,belgium:I7e,burkina_faso:k7e,bulgaria:D7e,bahrain:L7e,burundi:P7e,benin:F7e,st_barthelemy:U7e,bermuda:B7e,brunei:G7e,bolivia:V7e,caribbean_netherlands:z7e,brazil:H7e,bahamas:q7e,bhutan:Y7e,bouvet_island:$7e,botswana:W7e,belarus:K7e,belize:j7e,canada:Q7e,cocos_islands:X7e,congo_kinshasa:Z7e,central_african_republic:J7e,congo_brazzaville:eVe,switzerland:tVe,cote_divoire:nVe,cook_islands:sVe,chile:rVe,cameroon:iVe,cn:oVe,colombia:aVe,clipperton_island:lVe,costa_rica:cVe,cuba:dVe,cape_verde:uVe,curacao:pVe,christmas_island:fVe,cyprus:_Ve,czech_republic:mVe,de:hVe,diego_garcia:gVe,djibouti:bVe,denmark:yVe,dominica:EVe,dominican_republic:vVe,algeria:SVe,ceuta_melilla:TVe,ecuador:xVe,estonia:CVe,egypt:wVe,western_sahara:RVe,eritrea:AVe,es:MVe,ethiopia:NVe,eu:OVe,european_union:IVe,finland:kVe,fiji:DVe,falkland_islands:LVe,micronesia:PVe,faroe_islands:FVe,fr:UVe,gabon:BVe,gb:GVe,uk:VVe,grenada:zVe,georgia:HVe,french_guiana:qVe,guernsey:YVe,ghana:$Ve,gibraltar:WVe,greenland:KVe,gambia:jVe,guinea:QVe,guadeloupe:XVe,equatorial_guinea:ZVe,greece:JVe,south_georgia_south_sandwich_islands:eze,guatemala:tze,guam:nze,guinea_bissau:sze,guyana:rze,hong_kong:ize,heard_mcdonald_islands:oze,honduras:aze,croatia:lze,haiti:cze,hungary:dze,canary_islands:uze,indonesia:pze,ireland:fze,israel:_ze,isle_of_man:mze,india:hze,british_indian_ocean_territory:gze,iraq:bze,iran:yze,iceland:Eze,it:vze,jersey:Sze,jamaica:Tze,jordan:xze,jp:Cze,kenya:wze,kyrgyzstan:Rze,cambodia:Aze,kiribati:Mze,comoros:Nze,st_kitts_nevis:Oze,north_korea:Ize,kr:kze,kuwait:Dze,cayman_islands:Lze,kazakhstan:Pze,laos:Fze,lebanon:Uze,st_lucia:Bze,liechtenstein:Gze,sri_lanka:Vze,liberia:zze,lesotho:Hze,lithuania:qze,luxembourg:Yze,latvia:$ze,libya:Wze,morocco:Kze,monaco:jze,moldova:Qze,montenegro:Xze,st_martin:Zze,madagascar:Jze,marshall_islands:eHe,macedonia:tHe,mali:nHe,myanmar:sHe,mongolia:rHe,macau:iHe,northern_mariana_islands:oHe,martinique:aHe,mauritania:lHe,montserrat:cHe,malta:dHe,mauritius:uHe,maldives:pHe,malawi:fHe,mexico:_He,malaysia:mHe,mozambique:hHe,namibia:gHe,new_caledonia:bHe,niger:yHe,norfolk_island:EHe,nigeria:vHe,nicaragua:SHe,netherlands:THe,norway:xHe,nepal:CHe,nauru:wHe,niue:RHe,new_zealand:AHe,oman:MHe,panama:NHe,peru:OHe,french_polynesia:IHe,papua_new_guinea:kHe,philippines:DHe,pakistan:LHe,poland:PHe,st_pierre_miquelon:FHe,pitcairn_islands:UHe,puerto_rico:BHe,palestinian_territories:GHe,portugal:VHe,palau:zHe,paraguay:HHe,qatar:qHe,reunion:YHe,romania:$He,serbia:WHe,ru:KHe,rwanda:jHe,saudi_arabia:QHe,solomon_islands:XHe,seychelles:ZHe,sudan:JHe,sweden:eqe,singapore:tqe,st_helena:nqe,slovenia:sqe,svalbard_jan_mayen:rqe,slovakia:iqe,sierra_leone:oqe,san_marino:aqe,senegal:lqe,somalia:cqe,suriname:dqe,south_sudan:uqe,sao_tome_principe:pqe,el_salvador:fqe,sint_maarten:_qe,syria:mqe,swaziland:hqe,tristan_da_cunha:gqe,turks_caicos_islands:bqe,chad:yqe,french_southern_territories:Eqe,togo:vqe,thailand:Sqe,tajikistan:Tqe,tokelau:xqe,timor_leste:Cqe,turkmenistan:wqe,tunisia:Rqe,tonga:Aqe,tr:Mqe,trinidad_tobago:Nqe,tuvalu:Oqe,taiwan:Iqe,tanzania:kqe,ukraine:Dqe,uganda:Lqe,us_outlying_islands:Pqe,united_nations:Fqe,us:Uqe,uruguay:Bqe,uzbekistan:Gqe,vatican_city:Vqe,st_vincent_grenadines:zqe,venezuela:Hqe,british_virgin_islands:qqe,us_virgin_islands:Yqe,vietnam:$qe,vanuatu:Wqe,wallis_futuna:Kqe,samoa:jqe,kosovo:Qqe,yemen:Xqe,mayotte:Zqe,south_africa:Jqe,zambia:eYe,zimbabwe:tYe,england:nYe,scotland:sYe,wales:rYe};var oYe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!c.test(E[g-1])||g+b.lengthf&&(h=new m("text","",0),h.content=u.slice(f,g),y.push(h)),h=new m("emoji","",0),h.markup=v,h.content=t[v],y.push(h),f=g+b.length}),f=0;m--)b=y[m],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(E-=b.nesting),b.type==="text"&&E===0&&r.test(b.content)&&(g[h].children=y=o(y,m,d(b.content,b.level,_.Token)))}};function cYe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var dYe=function(e){var t=e.defs,s;e.enabled.length&&(t=Object.keys(t).reduce(function(c,d){return e.enabled.indexOf(d)>=0&&(c[d]=t[d]),c},{})),s=Object.keys(e.shortcuts).reduce(function(c,d){return t[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){c[u]=d}),c):(c[e.shortcuts[d]]=d,c):c},{});var r=Object.keys(t),i;r.length===0?i="^$":i=r.map(function(c){return":"+c+":"}).concat(Object.keys(s)).sort().reverse().map(function(c){return cYe(c)}).join("|");var o=RegExp(i),a=RegExp(i,"g");return{defs:t,shortcuts:s,scanRE:o,replaceRE:a}},uYe=aYe,pYe=lYe,fYe=dYe,_Ye=function(e,t){var s={defs:{},shortcuts:{},enabled:[]},r=fYe(e.utils.assign({},s,t||{}));e.renderer.rules.emoji=uYe,e.core.ruler.after("linkify","emoji",pYe(e,r.defs,r.shortcuts,r.scanRE,r.replaceRE))},mYe=iYe,hYe=oYe,gYe=_Ye,bYe=function(e,t){var s={defs:mYe,shortcuts:hYe,enabled:[]},r=e.utils.assign({},s,t||{});gYe(e,r)};const yYe=Ri(bYe);var tS=!1,fa={false:"push",true:"unshift",after:"push",before:"unshift"},eu={isPermalinkSymbol:!0};function ob(n,e,t,s){var r;if(!tS){var i="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(i):console.warn(i),tS=!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:eu}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[s+1].children[fa[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(r=t.tokens[s+1].children)[fa[e.permalinkBefore]].apply(r,o)}function bM(n){return"#"+n}function yM(n){return{}}var EYe={class:"header-anchor",symbol:"#",renderHref:bM,renderAttrs:yM};function lc(n){function e(t){return t=Object.assign({},e.defaults,t),function(s,r,i,o){return n(s,t,r,i,o)}}return e.defaults=Object.assign({},EYe),e.renderPermalinkImpl=n,e}var ap=lc(function(n,e,t,s,r){var i,o=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,s)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,s)))}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}),new s.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";s.tokens[r+1].children[fa[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(i=s.tokens[r+1].children)[fa[e.placement]].apply(i,o)});Object.assign(ap.defaults,{space:!0,placement:"after",ariaHidden:!1});var Vi=lc(ap.renderPermalinkImpl);Vi.defaults=Object.assign({},ap.defaults,{ariaHidden:!0});var EM=lc(function(n,e,t,s,r){var i=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,s)]],Object.entries(e.renderAttrs(n,s)))})].concat(e.safariReaderFix?[new s.Token("span_open","span",1)]:[],s.tokens[r+1].children,e.safariReaderFix?[new s.Token("span_close","span",-1)]:[],[new s.Token("link_close","a",-1)]);s.tokens[r+1]=Object.assign(new s.Token("inline","",0),{children:i})});Object.assign(EM.defaults,{safariReaderFix:!1});var nS=lc(function(n,e,t,s,r){var i;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=s.tokens[r+1].children.filter(function(_){return _.type==="text"||_.type==="code_inline"}).reduce(function(_,m){return _+m.content},""),a=[],c=[];if(e.class&&c.push(["class",e.class]),c.push(["href",e.renderHref(n,s)]),c.push.apply(c,Object.entries(e.renderAttrs(n,s))),e.style==="visually-hidden"){if(a.push(Object.assign(new s.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new s.Token("text","",0),{content:e.assistiveText(o)}),new s.Token("span_close","span",-1)),e.space){var d=typeof e.space=="string"?e.space:" ";a[fa[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[fa[e.placement]](Object.assign(new s.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}),new s.Token("span_close","span",-1))}else a.push(Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:eu}));e.style==="aria-label"?c.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&c.push([e.style,n]);var u=[Object.assign(new s.Token("link_open","a",1),{attrs:c})].concat(a,[new s.Token("link_close","a",-1)]);(i=s.tokens).splice.apply(i,[r+3,0].concat(u)),e.wrapper&&(s.tokens.splice(r,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[0]+` -`})),s.tokens.splice(r+3+u.length+1,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[1]+` -`})))});function sS(n,e,t,s){var r=n,i=s;if(t&&Object.prototype.hasOwnProperty.call(e,r))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,r);)r=n+"-"+i,i+=1;return e[r]=!0,r}function Wo(n,e){e=Object.assign({},Wo.defaults,e),n.core.ruler.push("anchor",function(t){for(var s,r={},i=t.tokens,o=Array.isArray(e.level)?(s=e.level,function(_){return s.includes(_)}):function(_){return function(m){return m>=_}}(e.level),a=0;a0&&!(t&r&&this.__match_alphabets__[r].call(this,s,t,r));r>>=4);if(this.__actions__(s,t,r),r===0)break;t=this.__transitions__[t][r]||0}return!!this.__accept_states__[t]};var vYe=Br,SYe=vYe,TYe=function(e,t){var s={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};t=e.utils.assign({},s,t||{});function r(u,_){var m=u.bMarks[_]+u.sCount[_],h=u.bMarks[_]+u.blkIndent,f=u.skipSpacesBack(u.eMarks[_],h),y=[],b,g,E=!1,v=!1,S=0;for(b=m;bb?(v||(S===0?S=g-b:S===g-b&&(S=0)),b=g):(v||!E&&!S)&&(v=!v),E=!1;break;case 124:!v&&!E&&y.push(b),E=!1;break;default:E=!1;break}return y.length===0||(y[0]>h&&y.unshift(h-1),y[y.length-1]=4||f.length===0)return!1;for(b=0;bm||(E=new u.Token("table_open","table",1),E.meta={sep:null,cap:null,tr:[]},f.set_highest_alphabet(65536),f.set_initial_state(65792),f.set_accept_states([65552,65553,0]),f.set_match_alphabets({65536:i.bind(this,u,!0),4096:a.bind(this,u,!0),256:o.bind(this,u,!0),16:o.bind(this,u,!0),1:c.bind(this,u,!0)}),f.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),t.headerless&&(f.set_initial_state(69888),f.update_transition(69888,{65536:4352,4096:65552,256:4352}),v=new u.Token("tr_placeholder","tr",0),v.meta=Object()),t.multibody||f.update_transition(65552,{65536:0,16:65552}),f.set_actions(function(oe,ye,xe){switch(xe){case 65536:if(E.meta.cap)break;E.meta.cap=i(u,!1,oe),E.meta.cap.map=[oe,oe+1],E.meta.cap.first=oe===_;break;case 4096:E.meta.sep=a(u,!1,oe),E.meta.sep.map=[oe,oe+1],v.meta.grp|=1,y=16;break;case 256:case 16:v=new u.Token("tr_open","tr",1),v.map=[oe,oe+1],v.meta=o(u,!1,oe),v.meta.type=xe,v.meta.grp=y,y=0,E.meta.tr.push(v),t.multiline&&(v.meta.multiline&&b<0?b=E.meta.tr.length-1:!v.meta.multiline&&b>=0&&(g=E.meta.tr[b],g.meta.mbounds=E.meta.tr.slice(b).map(function(ce){return ce.meta.bounds}),g.map[1]=v.map[1],E.meta.tr=E.meta.tr.slice(0,b+1),b=-1));break;case 1:v.meta.grp|=1,y=16;break}}),f.execute(_,m)===!1)||!E.meta.tr.length)return!1;if(h)return!0;if(E.meta.tr[E.meta.tr.length-1].meta.grp|=1,E.map=I=[_,0],E.block=!0,E.level=u.level++,u.tokens.push(E),E.meta.cap){g=u.push("caption_open","caption",1),g.map=E.meta.cap.map;var W=[],se=E.meta.cap.first?"top":"bottom";E.meta.cap.label!==null&&W.push(["id",E.meta.cap.label]),se!=="top"&&W.push(["style","caption-side: "+se]),g.attrs=W,g=u.push("inline","",0),g.content=E.meta.cap.text,g.map=E.meta.cap.map,g.children=[],g=u.push("caption_close","caption",-1)}for(ee=0;eev.meta.mbounds[H].length-2||(V=[v.meta.mbounds[H][O]+1,v.meta.mbounds[H][O+1]],G.push(u.src.slice.apply(u.src,V).trimRight()));for(L=new u.md.block.State(G.join(` -`),u.md,u.env,[]),L.level=v.level+1,u.md.block.tokenize(L,v.map[0],L.lineMax),q=0;qm.match(_))}t.tabindex==!0&&(r.tokens[o-1].attrPush(["tabindex",i]),i++),t.lazyLoading==!0&&u.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",s)};const wYe=Ri(CYe),RYe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Ai={};Ai.getAttrs=function(n,e,t){const s=/[^\t\n\f />"'=]/,r=" ",i="=",o=".",a="#",c=[];let d="",u="",_=!0,m=!1;for(let h=e+t.leftDelimiter.length;h=s+1:u.length>=s}let i,o,a,c;const d=s-e.rightDelimiter.length;switch(n){case"start":a=t.slice(0,e.leftDelimiter.length),i=a===e.leftDelimiter?0:-1,o=i===-1?-1:t.indexOf(e.rightDelimiter,d),c=t.charAt(o+e.rightDelimiter.length),c&&e.rightDelimiter.indexOf(c)!==-1&&(o=-1);break;case"end":i=t.lastIndexOf(e.leftDelimiter),o=i===-1?-1:t.indexOf(e.rightDelimiter,i+d),o=o===t.length-e.rightDelimiter.length?o:-1;break;case"only":a=t.slice(0,e.leftDelimiter.length),i=a===e.leftDelimiter?0:-1,a=t.slice(t.length-e.rightDelimiter.length),o=a===e.rightDelimiter?t.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${n}, expected 'start', 'end' or 'only'`)}return i!==-1&&o!==-1&&r(t.substring(i,o+e.rightDelimiter.length))}};Ai.removeDelimiter=function(n,e){const t=ab(e.leftDelimiter),s=ab(e.rightDelimiter),r=new RegExp("[ \\n]?"+t+"[^"+t+s+"]+"+s+"$"),i=n.search(r);return i!==-1?n.slice(0,i):n};function ab(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Ai.escapeRegExp=ab;Ai.getMatchingOpeningToken=function(n,e){if(n[e].type==="softbreak")return!1;if(n[e].nesting===0)return n[e];const t=n[e].level,s=n[e].type.replace("_close","_open");for(;e>=0;--e)if(n[e].type===s&&n[e].level===t)return n[e];return!1};const AYe=/[&<>"]/,MYe=/[&<>"]/g,NYe={"&":"&","<":"<",">":">",'"':"""};function OYe(n){return NYe[n]}Ai.escapeHtml=function(n){return AYe.test(n)?n.replace(MYe,OYe):n};const Ct=Ai;var IYe=n=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+Ct.escapeRegExp(n.leftDelimiter)+"[^"+Ct.escapeRegExp(n.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:Ct.hasDelimiters("end",n)}],transform:(t,s)=>{const r=t[s],i=r.info.lastIndexOf(n.leftDelimiter),o=Ct.getAttrs(r.info,i,n);Ct.addAttrs(o,r),r.info=Ct.removeDelimiter(r.info,n)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:t=>t==="image"||t==="code_inline"},{shift:0,type:"text",content:Ct.hasDelimiters("start",n)}]}],transform:(t,s,r)=>{const i=t[s].children[r],o=i.content.indexOf(n.rightDelimiter),a=t[s].children[r-1],c=Ct.getAttrs(i.content,0,n);Ct.addAttrs(c,a),i.content.length===o+n.rightDelimiter.length?t[s].children.splice(r,1):i.content=i.content.slice(o+n.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",n)}],transform:(t,s)=>{const r=t[s+2],i=Ct.getMatchingOpeningToken(t,s),o=Ct.getAttrs(r.content,0,n);Ct.addAttrs(o,i),t.splice(s+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:Ct.hasDelimiters("start",n)}]}],transform:(t,s,r)=>{const i=t[s].children[r],o=i.content,a=Ct.getAttrs(o,0,n),c=Ct.getMatchingOpeningToken(t[s].children,r-1);Ct.addAttrs(a,c),i.content=o.slice(o.indexOf(n.rightDelimiter)+n.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ct.hasDelimiters("only",n)}]}],transform:(t,s,r)=>{const o=t[s].children[r].content,a=Ct.getAttrs(o,0,n);let c=s-2;for(;t[c-1]&&t[c-1].type!=="ordered_list_open"&&t[c-1].type!=="bullet_list_open";)c--;Ct.addAttrs(a,t[c-1]),t[s].children=t[s].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:t=>t==="bullet_list_close"||t==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",n),children:t=>t.length===1},{shift:3,type:"paragraph_close"}],transform:(t,s)=>{const i=t[s+2].content,o=Ct.getAttrs(i,0,n),a=Ct.getMatchingOpeningToken(t,s);Ct.addAttrs(o,a),t.splice(s+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:Ct.hasDelimiters("end",n)}]}],transform:(t,s,r)=>{const i=t[s].children[r],o=i.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);Ct.addAttrs(a,t[s-2]);const c=o.slice(0,o.lastIndexOf(n.leftDelimiter));i.content=rS(c)!==" "?c:c.slice(0,-1)}},{name:` -{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ct.hasDelimiters("only",n)}]}],transform:(t,s,r)=>{const i=t[s].children[r],o=Ct.getAttrs(i.content,0,n);let a=s+1;for(;t[a+1]&&t[a+1].nesting===-1;)a++;const c=Ct.getMatchingOpeningToken(t,a);Ct.addAttrs(o,c),t[s].children=t[s].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:t=>t.length===1,content:t=>t.match(e)!==null},{shift:2,type:"paragraph_close"}],transform:(t,s)=>{const r=t[s];r.type="hr",r.tag="hr",r.nesting=0;const i=t[s+1].content,o=i.lastIndexOf(n.leftDelimiter),a=Ct.getAttrs(i,o,n);Ct.addAttrs(a,r),r.markup=i,t.splice(s+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:Ct.hasDelimiters("end",n),type:t=>t!=="code_inline"&&t!=="math_inline"}]}],transform:(t,s,r)=>{const i=t[s].children[r],o=i.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);let c=s+1;do if(t[c]&&t[c].nesting===-1)break;while(c++{const f=lb(a,c,h);return f.j!==null&&(_=f.j),f.match})&&(u.transform(a,c,_),(u.name==="inline attributes"||u.name==="inline nesting 0")&&d--)}}e.core.ruler.before("linkify","curly_attributes",i)};function lb(n,e,t){const s={match:!1,j:null},r=t.shift!==void 0?e+t.shift:t.position;if(t.shift!==void 0&&r<0)return s;const i=UYe(n,r);if(i===void 0)return s;for(const o of Object.keys(t))if(!(o==="shift"||o==="position")){if(i[o]===void 0)return s;if(o==="children"&&PYe(t.children)){if(i.children.length===0)return s;let a;const c=t.children,d=i.children;if(c.every(u=>u.position!==void 0)){if(a=c.every(u=>lb(d,u.position,u).match),a){const u=BYe(c).position;s.j=u>=0?u:d.length+u}}else for(let u=0;ulb(d,u,_).match),a){s.j=u;break}if(a===!1)return s;continue}switch(typeof t[o]){case"boolean":case"number":case"string":if(i[o]!==t[o])return s;break;case"function":if(!t[o](i[o]))return s;break;case"object":if(FYe(t[o])){if(t[o].every(c=>c(i[o]))===!1)return s;break}default:throw new Error(`Unknown type of pattern test (key: ${o}). Test should be of type boolean, number, string, function or array of functions.`)}}return s.match=!0,s}function PYe(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="object")}function FYe(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="function")}function UYe(n,e){return e>=0?n[e]:n[n.length+e]}function BYe(n){return n.slice(-1)[0]||{}}const GYe=Ri(LYe);function vM(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],s=typeof t;(s==="object"||s==="function")&&!Object.isFrozen(t)&&vM(t)}),n}let iS=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function SM(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function pi(n,...e){const t=Object.create(null);for(const s in n)t[s]=n[s];return e.forEach(function(s){for(const r in s)t[r]=s[r]}),t}const VYe="",oS=n=>!!n.scope,zYe=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((s,r)=>`${s}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class HYe{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=SM(e)}openNode(e){if(!oS(e))return;const t=zYe(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){oS(e)&&(this.buffer+=VYe)}value(){return this.buffer}span(e){this.buffer+=``}}const aS=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class R0{constructor(){this.rootNode=aS(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=aS({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(s=>this._walk(e,s)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{R0._collapse(t)}))}}class qYe extends R0{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const s=e.root;t&&(s.scope=`language:${t}`),this.add(s)}toHTML(){return new HYe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function $l(n){return n?typeof n=="string"?n:n.source:null}function TM(n){return yo("(?=",n,")")}function YYe(n){return yo("(?:",n,")*")}function $Ye(n){return yo("(?:",n,")?")}function yo(...n){return n.map(t=>$l(t)).join("")}function WYe(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function A0(...n){return"("+(WYe(n).capture?"":"?:")+n.map(s=>$l(s)).join("|")+")"}function xM(n){return new RegExp(n.toString()+"|").exec("").length-1}function KYe(n,e){const t=n&&n.exec(e);return t&&t.index===0}const jYe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function M0(n,{joinWith:e}){let t=0;return n.map(s=>{t+=1;const r=t;let i=$l(s),o="";for(;i.length>0;){const a=jYe.exec(i);if(!a){o+=i;break}o+=i.substring(0,a.index),i=i.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+r):(o+=a[0],a[0]==="("&&t++)}return o}).map(s=>`(${s})`).join(e)}const QYe=/\b\B/,CM="[a-zA-Z]\\w*",N0="[a-zA-Z_]\\w*",wM="\\b\\d+(\\.\\d+)?",RM="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",AM="\\b(0b[01]+)",XYe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ZYe=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=yo(e,/.*\b/,n.binary,/\b.*/)),pi({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},n)},Wl={begin:"\\\\[\\s\\S]",relevance:0},JYe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Wl]},e$e={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Wl]},t$e={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},lp=function(n,e,t={}){const s=pi({scope:"comment",begin:n,end:e,contains:[]},t);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=A0("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:yo(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},n$e=lp("//","$"),s$e=lp("/\\*","\\*/"),r$e=lp("#","$"),i$e={scope:"number",begin:wM,relevance:0},o$e={scope:"number",begin:RM,relevance:0},a$e={scope:"number",begin:AM,relevance:0},l$e={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Wl,{begin:/\[/,end:/\]/,relevance:0,contains:[Wl]}]},c$e={scope:"title",begin:CM,relevance:0},d$e={scope:"title",begin:N0,relevance:0},u$e={begin:"\\.\\s*"+N0,relevance:0},p$e=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Lc=Object.freeze({__proto__:null,APOS_STRING_MODE:JYe,BACKSLASH_ESCAPE:Wl,BINARY_NUMBER_MODE:a$e,BINARY_NUMBER_RE:AM,COMMENT:lp,C_BLOCK_COMMENT_MODE:s$e,C_LINE_COMMENT_MODE:n$e,C_NUMBER_MODE:o$e,C_NUMBER_RE:RM,END_SAME_AS_BEGIN:p$e,HASH_COMMENT_MODE:r$e,IDENT_RE:CM,MATCH_NOTHING_RE:QYe,METHOD_GUARD:u$e,NUMBER_MODE:i$e,NUMBER_RE:wM,PHRASAL_WORDS_MODE:t$e,QUOTE_STRING_MODE:e$e,REGEXP_MODE:l$e,RE_STARTERS_RE:XYe,SHEBANG:ZYe,TITLE_MODE:c$e,UNDERSCORE_IDENT_RE:N0,UNDERSCORE_TITLE_MODE:d$e});function f$e(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function _$e(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function m$e(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=f$e,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function h$e(n,e){Array.isArray(n.illegal)&&(n.illegal=A0(...n.illegal))}function g$e(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function b$e(n,e){n.relevance===void 0&&(n.relevance=1)}const y$e=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(s=>{delete n[s]}),n.keywords=t.keywords,n.begin=yo(t.beforeMatch,TM(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},E$e=["of","and","for","in","not","or","if","then","parent","list","value"],v$e="keyword";function MM(n,e,t=v$e){const s=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(i){Object.assign(s,MM(n[i],e,i))}),s;function r(i,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const c=a.split("|");s[c[0]]=[i,S$e(c[0],c[1])]})}}function S$e(n,e){return e?Number(e):T$e(n)?0:1}function T$e(n){return E$e.includes(n.toLowerCase())}const lS={},eo=n=>{console.error(n)},cS=(n,...e)=>{console.log(`WARN: ${n}`,...e)},wo=(n,e)=>{lS[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),lS[`${n}/${e}`]=!0)},tu=new Error;function NM(n,e,{key:t}){let s=0;const r=n[t],i={},o={};for(let a=1;a<=e.length;a++)o[a+s]=r[a],i[a+s]=!0,s+=xM(e[a-1]);n[t]=o,n[t]._emit=i,n[t]._multi=!0}function x$e(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw eo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),tu;if(typeof n.beginScope!="object"||n.beginScope===null)throw eo("beginScope must be object"),tu;NM(n,n.begin,{key:"beginScope"}),n.begin=M0(n.begin,{joinWith:""})}}function C$e(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw eo("skip, excludeEnd, returnEnd not compatible with endScope: {}"),tu;if(typeof n.endScope!="object"||n.endScope===null)throw eo("endScope must be object"),tu;NM(n,n.end,{key:"endScope"}),n.end=M0(n.end,{joinWith:""})}}function w$e(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function R$e(n){w$e(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),x$e(n),C$e(n)}function A$e(n){function e(o,a){return new RegExp($l(o),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=xM(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(c=>c[1]);this.matcherRe=e(M0(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(a);if(!c)return null;const d=c.findIndex((_,m)=>m>0&&_!==void 0),u=this.matchIndexes[d];return c.splice(0,d),Object.assign(c,u)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const c=new t;return this.rules.slice(a).forEach(([d,u])=>c.addRule(d,u)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let d=c.exec(a);if(this.resumingScanAtSamePosition()&&!(d&&d.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,d=u.exec(a)}return d&&(this.regexIndex+=d.position+1,this.regexIndex===this.count&&this.considerAll()),d}}function r(o){const a=new s;return o.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function i(o,a){const c=o;if(o.isCompiled)return c;[_$e,g$e,R$e,y$e].forEach(u=>u(o,a)),n.compilerExtensions.forEach(u=>u(o,a)),o.__beforeBegin=null,[m$e,h$e,b$e].forEach(u=>u(o,a)),o.isCompiled=!0;let d=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),d=o.keywords.$pattern,delete o.keywords.$pattern),d=d||/\w+/,o.keywords&&(o.keywords=MM(o.keywords,n.case_insensitive)),c.keywordPatternRe=e(d,!0),a&&(o.begin||(o.begin=/\B|\b/),c.beginRe=e(c.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(c.endRe=e(c.end)),c.terminatorEnd=$l(c.end)||"",o.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(c.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return M$e(u==="self"?o:u)})),o.contains.forEach(function(u){i(u,c)}),o.starts&&i(o.starts,a),c.matcher=r(c),c}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=pi(n.classNameAliases||{}),i(n)}function OM(n){return n?n.endsWithParent||OM(n.starts):!1}function M$e(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return pi(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:OM(n)?pi(n,{starts:n.starts?pi(n.starts):null}):Object.isFrozen(n)?pi(n):n}var N$e="11.10.0";class O$e extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const _f=SM,dS=pi,uS=Symbol("nomatch"),I$e=7,IM=function(n){const e=Object.create(null),t=Object.create(null),s=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:qYe};function c(L){return a.noHighlightRe.test(L)}function d(L){let W=L.className+" ";W+=L.parentNode?L.parentNode.className:"";const se=a.languageDetectRe.exec(W);if(se){const oe=C(se[1]);return oe||(cS(i.replace("{}",se[1])),cS("Falling back to no-highlight mode for this block.",L)),oe?se[1]:"no-highlight"}return W.split(/\s+/).find(oe=>c(oe)||C(oe))}function u(L,W,se){let oe="",ye="";typeof W=="object"?(oe=L,se=W.ignoreIllegals,ye=W.language):(wo("10.7.0","highlight(lang, code, ...args) has been deprecated."),wo("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),ye=L,oe=W),se===void 0&&(se=!0);const xe={code:oe,language:ye};H("before:highlight",xe);const ce=xe.result?xe.result:_(xe.language,xe.code,se);return ce.code=xe.code,H("after:highlight",ce),ce}function _(L,W,se,oe){const ye=Object.create(null);function xe(j,re){return j.keywords[re]}function ce(){if(!le.keywords){Re.addText(ge);return}let j=0;le.keywordPatternRe.lastIndex=0;let re=le.keywordPatternRe.exec(ge),Ce="";for(;re;){Ce+=ge.substring(j,re.index);const we=de.case_insensitive?re[0].toLowerCase():re[0],ke=xe(le,we);if(ke){const[We,lt]=ke;if(Re.addText(Ce),Ce="",ye[we]=(ye[we]||0)+1,ye[we]<=I$e&&(D+=lt),We.startsWith("_"))Ce+=re[0];else{const Pe=de.classNameAliases[We]||We;De(re[0],Pe)}}else Ce+=re[0];j=le.keywordPatternRe.lastIndex,re=le.keywordPatternRe.exec(ge)}Ce+=ge.substring(j),Re.addText(Ce)}function ve(){if(ge==="")return;let j=null;if(typeof le.subLanguage=="string"){if(!e[le.subLanguage]){Re.addText(ge);return}j=_(le.subLanguage,ge,!0,Me[le.subLanguage]),Me[le.subLanguage]=j._top}else j=h(ge,le.subLanguage.length?le.subLanguage:null);le.relevance>0&&(D+=j.relevance),Re.__addSublanguage(j._emitter,j.language)}function Oe(){le.subLanguage!=null?ve():ce(),ge=""}function De(j,re){j!==""&&(Re.startScope(re),Re.addText(j),Re.endScope())}function Q(j,re){let Ce=1;const we=re.length-1;for(;Ce<=we;){if(!j._emit[Ce]){Ce++;continue}const ke=de.classNameAliases[j[Ce]]||j[Ce],We=re[Ce];ke?De(We,ke):(ge=We,ce(),ge=""),Ce++}}function fe(j,re){return j.scope&&typeof j.scope=="string"&&Re.openNode(de.classNameAliases[j.scope]||j.scope),j.beginScope&&(j.beginScope._wrap?(De(ge,de.classNameAliases[j.beginScope._wrap]||j.beginScope._wrap),ge=""):j.beginScope._multi&&(Q(j.beginScope,re),ge="")),le=Object.create(j,{parent:{value:le}}),le}function _e(j,re,Ce){let we=KYe(j.endRe,Ce);if(we){if(j["on:end"]){const ke=new iS(j);j["on:end"](re,ke),ke.isMatchIgnored&&(we=!1)}if(we){for(;j.endsParent&&j.parent;)j=j.parent;return j}}if(j.endsWithParent)return _e(j.parent,re,Ce)}function Ae(j){return le.matcher.regexIndex===0?(ge+=j[0],1):(me=!0,0)}function Ue(j){const re=j[0],Ce=j.rule,we=new iS(Ce),ke=[Ce.__beforeBegin,Ce["on:begin"]];for(const We of ke)if(We&&(We(j,we),we.isMatchIgnored))return Ae(re);return Ce.skip?ge+=re:(Ce.excludeBegin&&(ge+=re),Oe(),!Ce.returnBegin&&!Ce.excludeBegin&&(ge=re)),fe(Ce,j),Ce.returnBegin?0:re.length}function te(j){const re=j[0],Ce=W.substring(j.index),we=_e(le,j,Ce);if(!we)return uS;const ke=le;le.endScope&&le.endScope._wrap?(Oe(),De(re,le.endScope._wrap)):le.endScope&&le.endScope._multi?(Oe(),Q(le.endScope,j)):ke.skip?ge+=re:(ke.returnEnd||ke.excludeEnd||(ge+=re),Oe(),ke.excludeEnd&&(ge=re));do le.scope&&Re.closeNode(),!le.skip&&!le.subLanguage&&(D+=le.relevance),le=le.parent;while(le!==we.parent);return we.starts&&fe(we.starts,j),ke.returnEnd?0:re.length}function U(){const j=[];for(let re=le;re!==de;re=re.parent)re.scope&&j.unshift(re.scope);j.forEach(re=>Re.openNode(re))}let P={};function Z(j,re){const Ce=re&&re[0];if(ge+=j,Ce==null)return Oe(),0;if(P.type==="begin"&&re.type==="end"&&P.index===re.index&&Ce===""){if(ge+=W.slice(re.index,re.index+1),!r){const we=new Error(`0 width match regex (${L})`);throw we.languageName=L,we.badRule=P.rule,we}return 1}if(P=re,re.type==="begin")return Ue(re);if(re.type==="illegal"&&!se){const we=new Error('Illegal lexeme "'+Ce+'" for mode "'+(le.scope||"")+'"');throw we.mode=le,we}else if(re.type==="end"){const we=te(re);if(we!==uS)return we}if(re.type==="illegal"&&Ce==="")return 1;if(K>1e5&&K>re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ge+=Ce,Ce.length}const de=C(L);if(!de)throw eo(i.replace("{}",L)),new Error('Unknown language: "'+L+'"');const pe=A$e(de);let he="",le=oe||pe;const Me={},Re=new a.__emitter(a);U();let ge="",D=0,N=0,K=0,me=!1;try{if(de.__emitTokens)de.__emitTokens(W,Re);else{for(le.matcher.considerAll();;){K++,me?me=!1:le.matcher.considerAll(),le.matcher.lastIndex=N;const j=le.matcher.exec(W);if(!j)break;const re=W.substring(N,j.index),Ce=Z(re,j);N=j.index+Ce}Z(W.substring(N))}return Re.finalize(),he=Re.toHTML(),{language:L,value:he,relevance:D,illegal:!1,_emitter:Re,_top:le}}catch(j){if(j.message&&j.message.includes("Illegal"))return{language:L,value:_f(W),illegal:!0,relevance:0,_illegalBy:{message:j.message,index:N,context:W.slice(N-100,N+100),mode:j.mode,resultSoFar:he},_emitter:Re};if(r)return{language:L,value:_f(W),illegal:!1,relevance:0,errorRaised:j,_emitter:Re,_top:le};throw j}}function m(L){const W={value:_f(L),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return W._emitter.addText(L),W}function h(L,W){W=W||a.languages||Object.keys(e);const se=m(L),oe=W.filter(C).filter(G).map(Oe=>_(Oe,L,!1));oe.unshift(se);const ye=oe.sort((Oe,De)=>{if(Oe.relevance!==De.relevance)return De.relevance-Oe.relevance;if(Oe.language&&De.language){if(C(Oe.language).supersetOf===De.language)return 1;if(C(De.language).supersetOf===Oe.language)return-1}return 0}),[xe,ce]=ye,ve=xe;return ve.secondBest=ce,ve}function f(L,W,se){const oe=W&&t[W]||se;L.classList.add("hljs"),L.classList.add(`language-${oe}`)}function y(L){let W=null;const se=d(L);if(c(se))return;if(H("before:highlightElement",{el:L,language:se}),L.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",L);return}if(L.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(L)),a.throwUnescapedHTML))throw new O$e("One of your code blocks includes unescaped HTML.",L.innerHTML);W=L;const oe=W.textContent,ye=se?u(oe,{language:se,ignoreIllegals:!0}):h(oe);L.innerHTML=ye.value,L.dataset.highlighted="yes",f(L,se,ye.language),L.result={language:ye.language,re:ye.relevance,relevance:ye.relevance},ye.secondBest&&(L.secondBest={language:ye.secondBest.language,relevance:ye.secondBest.relevance}),H("after:highlightElement",{el:L,result:ye,text:oe})}function b(L){a=dS(a,L)}const g=()=>{S(),wo("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function E(){S(),wo("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let v=!1;function S(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(a.cssSelector).forEach(y)}function R(){v&&S()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function w(L,W){let se=null;try{se=W(n)}catch(oe){if(eo("Language definition for '{}' could not be registered.".replace("{}",L)),r)eo(oe);else throw oe;se=o}se.name||(se.name=L),e[L]=se,se.rawDefinition=W.bind(null,n),se.aliases&&M(se.aliases,{languageName:L})}function A(L){delete e[L];for(const W of Object.keys(t))t[W]===L&&delete t[W]}function I(){return Object.keys(e)}function C(L){return L=(L||"").toLowerCase(),e[L]||e[t[L]]}function M(L,{languageName:W}){typeof L=="string"&&(L=[L]),L.forEach(se=>{t[se.toLowerCase()]=W})}function G(L){const W=C(L);return W&&!W.disableAutodetect}function V(L){L["before:highlightBlock"]&&!L["before:highlightElement"]&&(L["before:highlightElement"]=W=>{L["before:highlightBlock"](Object.assign({block:W.el},W))}),L["after:highlightBlock"]&&!L["after:highlightElement"]&&(L["after:highlightElement"]=W=>{L["after:highlightBlock"](Object.assign({block:W.el},W))})}function ee(L){V(L),s.push(L)}function O(L){const W=s.indexOf(L);W!==-1&&s.splice(W,1)}function H(L,W){const se=L;s.forEach(function(oe){oe[se]&&oe[se](W)})}function q(L){return wo("10.7.0","highlightBlock will be removed entirely in v12.0"),wo("10.7.0","Please use highlightElement now."),y(L)}Object.assign(n,{highlight:u,highlightAuto:h,highlightAll:S,highlightElement:y,highlightBlock:q,configure:b,initHighlighting:g,initHighlightingOnLoad:E,registerLanguage:w,unregisterLanguage:A,listLanguages:I,getLanguage:C,registerAliases:M,autoDetection:G,inherit:dS,addPlugin:ee,removePlugin:O}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=N$e,n.regex={concat:yo,lookahead:TM,either:A0,optional:$Ye,anyNumberOfTimes:YYe};for(const L in Lc)typeof Lc[L]=="object"&&vM(Lc[L]);return Object.assign(n,Lc),n},_a=IM({});_a.newInstance=()=>IM({});var k$e=_a;_a.HighlightJS=_a;_a.default=_a;var mf,pS;function D$e(){if(pS)return mf;pS=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",c="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",h="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",oe="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",ce="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ve="null истина ложь неопределено",Oe=e.inherit(e.NUMBER_MODE),De={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Q={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},fe={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},_e=e.inherit(e.C_LINE_COMMENT_MODE),Ae={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:i+c},contains:[_e]},Ue={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},te={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:ve},contains:[Oe,De,Q]},_e]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:i,built_in:h,class:oe,type:ce,literal:ve},contains:[Ae,te,_e,Ue,Oe,De,Q,fe]}}return mf=n,mf}var hf,fS;function L$e(){if(fS)return hf;fS=1;function n(e){const t=e.regex,s=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},c={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},d={scope:"symbol",match:/%[si](?=".*")/},u={scope:"attribute",match:t.concat(s,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:"operator",match:/=\/?/},u,i,o,a,c,d,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return hf=n,hf}var gf,_S;function P$e(){if(_S)return gf;_S=1;function n(e){const t=e.regex,s=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...s)),end:/"/,keywords:s,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return gf=n,gf}var bf,mS;function F$e(){if(mS)return bf;mS=1;function n(e){const t=e.regex,s=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(s,t.concat("(\\.",s,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:s,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}return bf=n,bf}var yf,hS;function U$e(){if(hS)return yf;hS=1;function n(e){const t="\\d(_|\\d)*",s="[eE][-+]?"+t,r=t+"(\\."+t+")?("+s+")?",i="\\w+",a="\\b("+(t+"#"+i+"(\\."+i+")?#("+s+")?")+"|"+r+")",c="[A-Za-z](_?[A-Za-z0-9.])*",d=`[]\\{\\}%#'"`,u=e.COMMENT("--","$"),_={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:d,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:c,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[u,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+c},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:d},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[u,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:d},_,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:d}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:d},_]}}return yf=n,yf}var Ef,gS;function B$e(){if(gS)return Ef;gS=1;function n(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},s={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[t,s]};return t.contains=[r],s.contains=[r],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,s,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return Ef=n,Ef}var vf,bS;function G$e(){if(bS)return vf;bS=1;function n(e){const t={className:"number",begin:/[$%]\d+/},s={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,s,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return vf=n,vf}var Sf,yS;function V$e(){if(yS)return Sf;yS=1;function n(e){const t=e.regex,s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,s]},i=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),a=[i,o,e.HASH_COMMENT_MODE],c=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],d=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[s,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(...d),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(...c),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}return Sf=n,Sf}var Tf,ES;function z$e(){if(ES)return Tf;ES=1;function n(e){const t=e.regex,s="[A-Za-z_][0-9A-Za-z_]*",r={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},i=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","value","view"],o={className:"symbol",begin:"\\$"+t.either(...i)},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},d={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]};c.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,a,e.REGEXP_MODE];const u=c.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:s+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:s,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+s+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:s},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:u}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:s}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:u}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Tf=n,Tf}var xf,vS;function H$e(){if(vS)return xf;vS=1;function n(t){const s=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",c="(?!struct)("+i+"|"+s.optional(o)+"[a-zA-Z_]\\w*"+s.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},_={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(_,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:s.optional(o)+t.IDENT_RE,relevance:0},y=s.optional(o)+t.IDENT_RE+"\\s*\\(",b=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],w={type:g,keyword:b,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},A={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:s.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,s.lookahead(/(<[^<>]+>|)\s*\(/))},I=[A,h,d,r,t.C_BLOCK_COMMENT_MODE,m,_],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:I.concat([{begin:/\(/,end:/\)/,keywords:w,contains:I.concat(["self"]),relevance:0}]),relevance:0},M={className:"function",begin:"("+c+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:w,relevance:0},{begin:y,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[_,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,_,m,d,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,_,m,d]}]},d,r,t.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"",keywords:w,contains:["self",d]},{begin:t.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(t){const s={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=n(t),i=r.keywords;return i.type=[...i.type,...s.type],i.literal=[...i.literal,...s.literal],i.built_in=[...i.built_in,...s.built_in],i._hints=s._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}return xf=e,xf}var Cf,SS;function q$e(){if(SS)return Cf;SS=1;function n(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return Cf=n,Cf}var wf,TS;function Y$e(){if(TS)return wf;TS=1;function n(e){const t=e.regex,s=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,d,c,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,a,d,c]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return wf=n,wf}var Rf,xS;function $$e(){if(xS)return Rf;xS=1;function n(e){const t=e.regex,s={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],o=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},c={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},c,a,...r,...i,...o,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},s,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return Rf=n,Rf}var Af,CS;function W$e(){if(CS)return Af;CS=1;function n(e){const t=e.regex,s=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:s,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:s.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:s,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:s.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:s,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:s,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return Af=n,Af}var Mf,wS;function K$e(){if(wS)return Mf;wS=1;function n(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return Mf=n,Mf}var Nf,RS;function j$e(){if(RS)return Nf;RS=1;function n(e){const t="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",s=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",o={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},c={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},d={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},u={className:"meta",begin:"#",end:"$",keywords:{keyword:s},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[c,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},c,o]},_={className:"symbol",begin:"@[A-z0-9_]+"},m={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,c,d]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:r},contains:[o,a,c,d,u,_,m]}}return Nf=n,Nf}var Of,AS;function Q$e(){if(AS)return Of;AS=1;function n(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return Of=n,Of}var If,MS;function X$e(){if(MS)return If;MS=1;function n(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:s},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return If=n,If}var kf,NS;function Z$e(){if(NS)return kf;NS=1;function n(e){const t=e.UNDERSCORE_IDENT_RE,o={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o};return{name:"X++",aliases:["x++"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a]}}return kf=n,kf}var Df,OS;function J$e(){if(OS)return Df;OS=1;function n(e){const t=e.regex,s={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,i]};i.contains.push(c);const d={match:/\\"/},u={className:"string",begin:/'/,end:/'/},_={match:/\\'/},m={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,s]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),y={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],g=["true","false"],E={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],R=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],w=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:g,built_in:[...v,...S,"set","shopt",...R,...w]},contains:[f,e.SHEBANG(),y,m,o,a,E,c,d,u,_,s]}}return Df=n,Df}var Lf,IS;function eWe(){if(IS)return Lf;IS=1;function n(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return Lf=n,Lf}var Pf,kS;function tWe(){if(kS)return Pf;kS=1;function n(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return Pf=n,Pf}var Ff,DS;function nWe(){if(DS)return Ff;DS=1;function n(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}return Ff=n,Ff}var Uf,LS;function sWe(){if(LS)return Uf;LS=1;function n(e){const t=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",g={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},E=[m,c,s,e.C_BLOCK_COMMENT_MODE,_,u],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:E.concat([{begin:/\(/,end:/\)/,keywords:g,contains:E.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,u,_,c,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,u,_,c]}]},c,s,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:m,strings:u,keywords:g}}}return Uf=n,Uf}var Bf,PS;function rWe(){if(PS)return Bf;PS=1;function n(e){const t=e.regex,s=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},c={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},d={className:"string",begin:'"',end:'"'},u={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:s,contains:[o,a,e.NUMBER_MODE]},...i]},_=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],m={match:[/OBJECT/,/\s+/,t.either(..._),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:s,literal:r},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,c,d,e.NUMBER_MODE,m,u]}}return Bf=n,Bf}var Gf,FS;function iWe(){if(FS)return Gf;FS=1;function n(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],s=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:t,type:s,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}return Gf=n,Gf}var Vf,US;function oWe(){if(US)return Vf;US=1;function n(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],s=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=o,{name:"Ceylon",keywords:{keyword:t.concat(s),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}return Vf=n,Vf}var zf,BS;function aWe(){if(BS)return zf;BS=1;function n(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return zf=n,zf}var Hf,GS;function lWe(){if(GS)return Hf;GS=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",s="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:s,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:s,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},c={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},d={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_={scope:"punctuation",match:/,/,relevance:0},m=e.COMMENT(";","$",{relevance:0}),h={className:"literal",begin:/\b(true|false|nil)\b/},f={begin:"\\[|(#::?"+s+")?\\{",end:"[\\]\\}]",relevance:0},y={className:"symbol",begin:"[:]{1,2}"+s},b={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},E={keywords:i,className:"name",begin:s,relevance:0,starts:g},v=[_,b,c,d,u,m,y,f,a,h,o],S={beginKeywords:r,keywords:{$pattern:s,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:s,relevance:0,excludeEnd:!0,endsParent:!0}].concat(v)};return b.contains=[S,E,g],g.contains=v,f.contains=v,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[_,b,c,d,u,m,y,f,a,h]}}return Hf=n,Hf}var qf,VS;function cWe(){if(VS)return qf;VS=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return qf=n,qf}var Yf,zS;function dWe(){if(zS)return Yf;zS=1;function n(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Yf=n,Yf}var $f,HS;function uWe(){if(HS)return $f;HS=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,s);function o(a){const c=["npm","print"],d=["yes","no","on","off"],u=["then","unless","until","loop","by","when","and","or","is","isnt","not"],_=["var","const","let","function","static"],m=R=>w=>!R.includes(w),h={keyword:n.concat(u).filter(m(_)),literal:e.concat(d),built_in:i.concat(c)},f="[A-Za-z$_][0-9A-Za-z$_]*",y={className:"subst",begin:/#\{/,end:/\}/,keywords:h},b=[a.BINARY_NUMBER_MODE,a.inherit(a.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,y]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,y]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[y,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+f},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];y.contains=b;const g=a.inherit(a.TITLE_MODE,{begin:f}),E="(\\(.*\\)\\s*)?\\B[-=]>",v={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(b)}]},S={variants:[{match:[/class\s+/,f,/\s+extends\s+/,f]},{match:[/class\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:h};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:h,illegal:/\/\*/,contains:[...b,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+f+"\\s*=\\s*"+E,end:"[-=]>",returnBegin:!0,contains:[g,v]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:E,end:"[-=]>",returnBegin:!0,contains:[v]}]},S,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return $f=o,$f}var Wf,qS;function pWe(){if(qS)return Wf;qS=1;function n(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return Wf=n,Wf}var Kf,YS;function fWe(){if(YS)return Kf;YS=1;function n(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return Kf=n,Kf}var jf,$S;function _We(){if($S)return jf;$S=1;function n(e){const t=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},_={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",y=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],E=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],R={type:b,keyword:y,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},w={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},A=[w,m,c,s,e.C_BLOCK_COMMENT_MODE,_,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:A.concat([{begin:/\(/,end:/\)/,keywords:R,contains:A.concat(["self"]),relevance:0}]),relevance:0},C={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:R,relevance:0},{begin:f,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,_]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,u,_,c,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,u,_,c]}]},c,s,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"",keywords:R,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return jf=n,jf}var Qf,WS;function mWe(){if(WS)return Qf;WS=1;function n(e){const t="primitive rsc_template",s="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+s.split(" ").join("|")+")\\s+",keywords:s,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return Qf=n,Qf}var Xf,KS;function hWe(){if(KS)return Xf;KS=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",s="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},u={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function _(E,v){const S=[{begin:E,end:v}];return S[0].contains=S,S}const m={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:_("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},h={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%q<",end:">",contains:_("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},f={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},y={className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:"%r\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%r<",end:">",contains:_("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},b={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},g=[u,m,h,y,f,b,d,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[m,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+s+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return c.contains=g,u.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:g}}return Xf=n,Xf}var Zf,jS;function gWe(){if(jS)return Zf;jS=1;function n(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},_={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},m=e.inherit(_,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(h,{illegal:/\n/}),y={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},g=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});h.contains=[b,y,_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],f.contains=[g,y,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const E={variants:[u,b,y,_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},S=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",R={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},E,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+S+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[E,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},R]}}return Zf=n,Zf}var Jf,QS;function bWe(){if(QS)return Jf;QS=1;function n(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return Jf=n,Jf}var e_,XS;function yWe(){if(XS)return e_;XS=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=d.regex,_=n(d),m={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},h="and or not only",f=/@-?\w[\w]*(-\w+)*/,y="[a-zA-Z-][a-zA-Z0-9_-]*",b=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[_.BLOCK_COMMENT,m,_.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+y,relevance:0},_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[_.BLOCK_COMMENT,_.HEXCOLOR,_.IMPORTANT,_.CSS_NUMBER_MODE,...b,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...b,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},_.FUNCTION_DISPATCH]},{begin:u.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...b,_.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return e_=c,e_}var t_,ZS;function EWe(){if(ZS)return t_;ZS=1;function n(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},s="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,c="([eE][+-]?"+r+")",d="("+r+"(\\.\\d*|"+c+")|\\d+\\."+r+"|\\."+s+c+"?)",u="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+r+")",_="("+s+"|"+i+"|"+a+")",m="("+u+"|"+d+")",h=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,f={className:"number",begin:"\\b"+_+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},y={className:"number",begin:"\\b("+m+"([fF]|L|i|[fF]i|Li)?|"+_+"(i|[fF]i|Li))",relevance:0},b={className:"string",begin:"'("+h+"|.)",end:"'",illegal:"."},E={className:"string",begin:'"',contains:[{begin:h,relevance:0}],end:'"[cwd]?'},v={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},S={className:"string",begin:"`",end:"`[cwd]?"},R={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},w={className:"string",begin:'q"\\{',end:'\\}"'},A={className:"meta",begin:"^#!",end:"$",relevance:5},I={className:"meta",begin:"#(line)",end:"$",relevance:5},C={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},M=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,M,R,E,v,S,w,y,f,b,A,I,C]}}return t_=n,t_}var n_,JS;function vWe(){if(JS)return n_;JS=1;function n(e){const t=e.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},_={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},m=e.inherit(u,{contains:[]}),h=e.inherit(_,{contains:[]});u.contains.push(h),_.contains.push(m);let f=[s,d];return[u,_,m,h].forEach(E=>{E.contains=E.contains.concat(f)}),f=f.concat(u,_),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},s,o,u,_,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},i,r,d,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return n_=n,n_}var s_,e1;function SWe(){if(e1)return s_;e1=1;function n(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},s={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,s]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,s]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,s]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,s]}]};s.contains=[e.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=i.map(d=>`${d}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:i.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[r,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return s_=n,s_}var r_,t1;function TWe(){if(t1)return r_;t1=1;function n(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],s=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},a={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},c={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},d={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,a,r].concat(s)},r].concat(s)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,a,o,c,d,r].concat(s)}}return r_=n,r_}var i_,n1;function xWe(){if(n1)return i_;n1=1;function n(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return i_=n,i_}var o_,s1;function CWe(){if(s1)return o_;s1=1;function n(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}return o_=n,o_}var a_,r1;function wWe(){if(r1)return a_;r1=1;function n(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return a_=n,a_}var l_,i1;function RWe(){if(i1)return l_;i1=1;function n(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},c={className:"params",relevance:0,begin:"<",end:">",contains:[s,i]},d={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},u={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},_={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},m={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},h={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[u,i,o,a,d,m,_,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,t,r,h,{begin:e.IDENT_RE+"::",keywords:""}]}}return u_=n,u_}var p_,c1;function OWe(){if(c1)return p_;c1=1;function n(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return p_=n,p_}var f_,d1;function IWe(){if(d1)return f_;d1=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),s={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,s,i]}}return f_=n,f_}var __,u1;function kWe(){if(u1)return __;u1=1;function n(e){const t=e.regex,s="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={$pattern:s,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},_={match:/\\[\s\S]/,scope:"char.escape",relevance:0},m=`[/|([{<"']`,h=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],f=w=>({scope:"char.escape",begin:t.concat(/\\/,w),relevance:0}),y={className:"string",begin:"~[a-z](?="+m+")",contains:h.map(w=>e.inherit(w,{contains:[f(w.end),_,c]}))},b={className:"string",begin:"~[A-Z](?="+m+")",contains:h.map(w=>e.inherit(w,{contains:[f(w.end)]}))},g={className:"regex",variants:[{begin:"~r(?="+m+")",contains:h.map(w=>e.inherit(w,{end:t.concat(w.end,/[uismxfU]{0,7}/),contains:[f(w.end),_,c]}))},{begin:"~R(?="+m+")",contains:h.map(w=>e.inherit(w,{end:t.concat(w.end,/[uismxfU]{0,7}/),contains:[f(w.end)]}))}]},E={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},v={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:s,endsParent:!0})]},S=e.inherit(v,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),R=[E,g,b,y,e.HASH_COMMENT_MODE,S,v,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[E,{begin:r}],relevance:0},{className:"symbol",begin:s+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return c.contains=R,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:R}}return __=n,__}var m_,p1;function DWe(){if(p1)return m_;p1=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},s={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[s,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,s,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}return m_=n,m_}var h_,f1;function LWe(){if(f1)return h_;f1=1;function n(e){const t=e.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],_={className:"subst",begin:/#\{/,end:/\}/,keywords:a},m={className:"string",contains:[e.BACKSLASH_ESCAPE,_],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,_]})]}]},h="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",y={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},A=[m,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[m,{begin:s}],relevance:0},y,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,_],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,u),relevance:0}].concat(d,u);_.contains=A,b.contains=A;const G=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:A}}];return u.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(G).concat(u).concat(A)}}return h_=n,h_}var g_,_1;function PWe(){if(_1)return g_;_1=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return g_=n,g_}var b_,m1;function FWe(){if(m1)return b_;m1=1;function n(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return b_=n,b_}var y_,h1;function UWe(){if(h1)return y_;h1=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",s="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},c={begin:s+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:s,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},d={begin:/\{/,end:/\}/,relevance:0},u={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},_={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},m={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},f={beginKeywords:"fun receive if try case",end:"end",keywords:r};f.contains=[i,a,e.inherit(e.APOS_STRING_MODE,{className:""}),f,c,e.QUOTE_STRING_MODE,o,d,u,_,m,h];const y=[i,a,f,c,e.QUOTE_STRING_MODE,o,d,u,_,m,h];c.contains[1].contains=y,d.contains=y,m.contains[1].contains=y;const b=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],g={className:"params",begin:"\\(",end:"\\)",contains:y};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[g,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:y}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:b.map(E=>`${E}|1.5`).join(" ")},contains:[g]},o,e.QUOTE_STRING_MODE,m,u,_,d,h,{begin:/\.$/}]}}return y_=n,y_}var E_,g1;function BWe(){if(g1)return E_;g1=1;function n(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return E_=n,E_}var v_,b1;function GWe(){if(b1)return v_;b1=1;function n(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return v_=n,v_}var S_,y1;function VWe(){if(y1)return S_;y1=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},s={className:"string",variants:[{begin:'"',end:'"'}]},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,s,i,e.C_NUMBER_MODE]}}return S_=n,S_}var T_,E1;function zWe(){if(E1)return T_;E1=1;function n(e){const t=e.regex,s={className:"params",begin:"\\(",end:"\\)"},r={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,o,i)},{begin:t.concat(/\b\d+/,o,i)},{begin:t.concat(/\.\d+/,o,i)}],relevance:0},c={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,s]},d={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[d,c,{begin:/^C\s*=(?!=)/,relevance:0},r,a]}}return T_=n,T_}var x_,v1;function HWe(){if(v1)return x_;v1=1;function n(a){return new RegExp(a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return s("(?=",a,")")}function s(...a){return a.map(d=>e(d)).join("")}function r(a){const c=a[a.length-1];return typeof c=="object"&&c.constructor===Object?(a.splice(a.length-1,1),c):{}}function i(...a){return"("+(r(a).capture?"":"?:")+a.map(u=>e(u)).join("|")+")"}function o(a){const c=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],d={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},u=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],_=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],m=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],h=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],y={keyword:c,literal:_,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":m},g={variants:[a.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),a.C_LINE_COMMENT_MODE]},E=/[a-zA-Z_](\w|')*/,v={scope:"variable",begin:/``/,end:/``/},S=/\B('|\^)/,R={scope:"symbol",variants:[{match:s(S,/``.*?``/)},{match:s(S,a.UNDERSCORE_IDENT_RE)}],relevance:0},w=function({includeEqual:Oe}){let De;Oe?De="!%&*+-/<=>@^|~?":De="!%&*+-/<>@^|~?";const Q=Array.from(De),fe=s("[",...Q.map(n),"]"),_e=i(fe,/\./),Ae=s(_e,t(_e)),Ue=i(s(Ae,_e,"*"),s(fe,"+"));return{scope:"operator",match:i(Ue,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},A=w({includeEqual:!0}),I=w({includeEqual:!1}),C=function(Oe,De){return{begin:s(Oe,t(s(/\s*/,i(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:De,end:t(i(/\n/,/=/)),relevance:0,keywords:a.inherit(y,{type:h}),contains:[g,R,a.inherit(v,{scope:null}),I]}},M=C(/:/,"operator"),G=C(/\bof\b/,"keyword"),V={begin:[/(^|\s+)/,/type/,/\s+/,E],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:y,contains:[g,a.inherit(v,{scope:null}),R,{scope:"operator",match:/<|>/},M]},ee={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},O={begin:[/^\s*/,s(/#/,i(...u)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},H={variants:[a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]},q={scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]},L={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},a.BACKSLASH_ESCAPE]},W={scope:"string",begin:/"""/,end:/"""/,relevance:2},se={scope:"subst",begin:/\{/,end:/\}/,keywords:y},oe={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},a.BACKSLASH_ESCAPE,se]},ye={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},a.BACKSLASH_ESCAPE,se]},xe={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},se],relevance:2},ce={scope:"string",match:s(/'/,i(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return se.contains=[ye,oe,L,q,ce,d,g,v,M,ee,O,H,R,A],{name:"F#",aliases:["fs","f#"],keywords:y,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[d,{variants:[xe,ye,oe,W,L,q,ce]},g,v,V,{scope:"meta",begin:/\[\]/,relevance:2,contains:[v,W,L,q,ce,H]},G,M,ee,O,H,R,A]}}return x_=o,x_}var C_,S1;function qWe(){if(S1)return C_;S1=1;function n(e){const t=e.regex,s={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:s,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},c=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,d={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:t.concat(c,t.anyNumberOfTimes(t.concat(/[ ]+/,c))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:s,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,d]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[d]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}return C_=n,C_}var w_,T1;function YWe(){if(T1)return w_;T1=1;function n(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},s=e.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,s,i]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},c=function(h,f,y){const b=e.inherit({className:"function",beginKeywords:h,end:f,excludeEnd:!0,contains:[].concat(o)},{});return b.contains.push(a),b.contains.push(e.C_NUMBER_MODE),b.contains.push(e.C_BLOCK_COMMENT_MODE),b.contains.push(s),b},d={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},u={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},_={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},d,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},m={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,s,d,_,u,"self"]};return _.contains.push(m),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,u,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},c("proc keyword",";"),c("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,s,m]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},_,i]}}return w_=n,w_}var R_,x1;function $We(){if(x1)return R_;x1=1;function n(e){const t="[A-Z_][A-Z0-9_.]*",s="%",r={$pattern:t,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},i={className:"meta",begin:"([O])([0-9]+)"},o=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),a=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),o,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[o],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:r,contains:[{className:"meta",begin:s},i].concat(a)}}return R_=n,R_}var A_,C1;function WWe(){if(C1)return A_;C1=1;function n(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return A_=n,A_}var M_,w1;function KWe(){if(w1)return M_;w1=1;function n(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return M_=n,M_}var N_,R1;function jWe(){if(R1)return N_;R1=1;function n(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return N_=n,N_}var O_,A1;function QWe(){if(A1)return O_;A1=1;function n(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return P_=n,P_}var F_,D1;function nKe(){if(D1)return F_;D1=1;function n(e){const t=e.regex,s={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,c=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,d=/(\.|\/)/,u=t.either(i,o,a,c),_=t.concat(t.optional(/\.|\.\/|\//),u,t.anyNumberOfTimes(t.concat(d,u))),m=t.concat("(",a,"|",c,")(?==)"),h={begin:_},f=e.inherit(h,{keywords:r}),y={begin:/\(/,end:/\)/},b={className:"attr",begin:m,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,f,y]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},E={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,b,f,y],returnEnd:!0},v=e.inherit(h,{className:"name",keywords:s,starts:e.inherit(E,{end:/\)/})});y.contains=[v];const S=e.inherit(h,{keywords:s,className:"name",starts:e.inherit(E,{end:/\}\}/})}),R=e.inherit(h,{keywords:s,className:"name"}),w=e.inherit(h,{className:"name",keywords:s,starts:e.inherit(E,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[S],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[R]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[S]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[R]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[w]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[w]}]}}return F_=n,F_}var U_,L1;function sKe(){if(L1)return U_;L1=1;function n(e){const t="([0-9]_*)+",s="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",d="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",u={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},_={className:"meta",begin:/\{-#/,end:/#-\}/},m={className:"meta",begin:"^#",end:"$"},h={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},f={begin:"\\(",end:"\\)",illegal:'"',contains:[_,m,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),u]},y={begin:/\{/,end:/\}/,contains:f.contains},b={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${s})(\\.(${s}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[f,u],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[f,u],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[h,f,u]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[_,h,f,y,u]},{beginKeywords:"default",end:"$",contains:[h,f,u]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,u]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[h,e.QUOTE_STRING_MODE,u]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},_,m,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,b,h,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${d}--+|--+(?!-)${d}`},u,{begin:"->|<-"}]}}return U_=n,U_}var B_,P1;function rKe(){if(P1)return B_;P1=1;function n(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",s=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:s,relevance:0},{className:"variable",begin:"\\$"+t},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return B_=n,B_}var G_,F1;function iKe(){if(F1)return G_;F1=1;function n(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return G_=n,G_}var V_,U1;function oKe(){if(U1)return V_;U1=1;function n(e){const t=e.regex,s="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:t.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+s+" \\d{3})",end:/$/,contains:[{className:"meta",begin:s},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+s+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:s},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(i,{relevance:0})]}}return V_=n,V_}var z_,B1;function aKe(){if(B1)return z_;B1=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",s="["+t+"]["+t+"0-9/;:]*",r={$pattern:s,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",o={begin:s,relevance:0},a={className:"number",begin:i,relevance:0},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d=e.COMMENT(";","$",{relevance:0}),u={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},_={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},m={className:"comment",begin:"\\^"+s},h=e.COMMENT("\\^\\{","\\}"),f={className:"symbol",begin:"[:]{1,2}"+s},y={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:r,begin:s,starts:b},E=[y,c,m,h,d,f,_,a,u,o];return y.contains=[e.COMMENT("comment",""),g,b],b.contains=E,_.contains=E,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),y,c,m,h,d,f,_,a,u]}}return z_=n,z_}var H_,G1;function lKe(){if(G1)return H_;G1=1;function n(e){const t="\\[",s="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:s}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:s,contains:["self"]}]}}return H_=n,H_}var q_,V1;function cKe(){if(V1)return q_;V1=1;function n(e){const t=e.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[r,o,i,a,s,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,_=/'[^']*'/,m=t.either(d,u,_),h=t.concat(m,"(\\s*\\.\\s*",m,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,c,o,i,a,s]}}]}}return q_=n,q_}var Y_,z1;function dKe(){if(z1)return Y_;z1=1;function n(e){const t=e.regex,s={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,s]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}return Y_=n,Y_}var $_,H1;function uKe(){if(H1)return $_;H1=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",s="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Oe="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",$O="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",WO="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",KO="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",jO="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",QO=Oe+$O,XO=KO,ZO="null true false nil ",Uy={className:"number",begin:e.NUMBER_RE,relevance:0},By={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Gy={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},JO={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Gy]},eI={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Gy]},Vy={variants:[JO,eI]},Ec={$pattern:t,keyword:r,built_in:QO,class:XO,literal:ZO},Ap={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:Ec,relevance:0},zy={className:"type",begin:":[ \\t]*("+jO.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Hy={className:"variable",keywords:Ec,begin:t,relevance:0,contains:[zy,Ap]},qy=s+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:Ec,illegal:"\\$|\\?|%|,|;$|~|#|@|r(o,a,c-1))}function i(o){const a=o.regex,c="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",d=c+r("(?:<"+c+"~~~(?:\\s*,\\s*"+c+"~~~)*>)?",/~~~/g,2),f={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},y={className:"meta",begin:"@"+c,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[o.BACKSLASH_ESCAPE]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,c],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,c),/\s+/,c,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,c],className:{1:"keyword",3:"title.class"},contains:[b,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+d+"\\s+)",o.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[y,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,s,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},s,y]}}return W_=i,W_}var K_,Y1;function fKe(){if(Y1)return K_;Y1=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(i,s,r);function c(d){const u=d.regex,_=(Q,{after:fe})=>{const _e="",end:""},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,fe)=>{const _e=Q[0].length+Q.index,Ae=Q.input[_e];if(Ae==="<"||Ae===","){fe.ignoreMatch();return}Ae===">"&&(_(Q,{after:_e})||fe.ignoreMatch());let Ue;const te=Q.input.substring(_e);if(Ue=te.match(/^\s*=/)){fe.ignoreMatch();return}if((Ue=te.match(/^\s+extends\s+/))&&Ue.index===0){fe.ignoreMatch();return}}},b={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},g="[0-9](_?[0-9])*",E=`\\.(${g})`,v="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${v})((${E})|\\.)?|(${E}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},w={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},A={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,R]},G={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:m+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},V=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,w,A,I,C,{match:/\$\d+/},S];R.contains=V.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(V)});const ee=[].concat(G,R.contains),O=ee.concat([{begin:/(\s*)\(/,end:/\)/,keywords:b,contains:["self"].concat(ee)}]),H={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:O},q={variants:[{match:[/class/,/\s+/,m,/\s+/,/extends/,/\s+/,u.concat(m,"(",u.concat(/\./,m),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,m],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:u.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...r]}},W={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},se={variants:[{match:[/function/,/\s+/,m,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ye(Q){return u.concat("(?!",Q.join("|"),")")}const xe={match:u.concat(/\b/,ye([...i,"super","import"].map(Q=>`${Q}\\s*\\(`)),m,u.lookahead(/\s*\(/)),className:"title.function",relevance:0},ce={begin:u.concat(/\./,u.lookahead(u.concat(m,/(?![0-9A-Za-z$_(])/))),end:m,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ve={match:[/get|set/,/\s+/,m,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},Oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",De={match:[/const|var|let/,/\s+/,m,/\s*/,/=\s*/,/(async\s*)?/,u.lookahead(Oe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),W,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,w,A,I,C,G,{match:/\$\d+/},S,L,{className:"attr",begin:m+u.lookahead(":"),relevance:0},De,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[G,d.REGEXP_MODE,{className:"function",begin:Oe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:f},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,d.inherit(d.TITLE_MODE,{begin:m,className:"title.function"})]},{match:/\.\.\./,relevance:0},ce,{match:"\\$"+m,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},xe,oe,q,ve,{match:/\$[(.]/}]}}return K_=c,K_}var j_,$1;function _Ke(){if($1)return j_;$1=1;function n(e){const s={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},r={className:"function",begin:/:[\w\-.]+/,relevance:0},i={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},o={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,o,r,i,s]}}return j_=n,j_}var Q_,W1;function mKe(){if(W1)return Q_;W1=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},s={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,s,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Q_=n,Q_}var X_,K1;function hKe(){if(K1)return X_;K1=1;function n(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},a={keywords:o,illegal:/<\//},c={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},d={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},u={className:"subst",begin:/\$\(/,end:/\)/,keywords:o},_={className:"variable",begin:"\\$"+t},m={className:"string",contains:[e.BACKSLASH_ESCAPE,u,_],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},h={className:"string",contains:[e.BACKSLASH_ESCAPE,u,_],begin:"`",end:"`"},f={className:"meta",begin:"@"+t},y={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return a.name="Julia",a.contains=[c,d,m,h,f,y,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],u.contains=a.contains,a}return X_=n,X_}var Z_,j1;function gKe(){if(j1)return Z_;j1=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return Z_=n,Z_}var J_,Q1;function bKe(){if(Q1)return J_;Q1=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function r(i){const o={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"@"},d={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},u={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},_={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[u,d]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,u,d]}]};d.contains.push(_);const m={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(_,{className:"string"}),"self"]}]},f=s,y=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},g=b;return g.variants[1].contains=[b],b.variants[1].contains=[g],{name:"Kotlin",aliases:["kt","kts"],keywords:o,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,y,a,c,m,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:o,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,i.C_LINE_COMMENT_MODE,y],relevance:0},i.C_LINE_COMMENT_MODE,y,m,h,_,i.C_NUMBER_MODE]},y]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},m,h]},_,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},f]}}return J_=r,J_}var em,X1;function yKe(){if(X1)return em;X1=1;function n(e){const t="[a-zA-Z_][\\w.]*",s="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=e.COMMENT("",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},c={className:"meta",begin:"\\[/noprocess|"+s},d={className:"symbol",begin:"'"+t+"'"},u=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[d]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+s,returnEnd:!0,relevance:0,contains:[o]}},a,c,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+s,returnEnd:!0,contains:[o]}},a,c].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}return em=n,em}var tm,Z1;function EKe(){if(Z1)return tm;Z1=1;function n(e){const s=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(G=>G+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(G=>G+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:s},{endsParent:!0,begin:r},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:i}]},c={className:"params",relevance:0,begin:/#+\d?/},d={variants:o},u={className:"built_in",relevance:0,begin:/[$&^_]/},_={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},m=e.COMMENT("%","$",{relevance:0}),h=[a,c,d,u,_,m],f={begin:/\{/,end:/\}/,relevance:0,contains:["self",...h]},y=e.inherit(f,{relevance:0,endsParent:!0,contains:[f,...h]}),b={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[f,...h]},g={begin:/\s+/,relevance:0},E=[y],v=[b],S=function(G,V){return{contains:[g],starts:{relevance:0,contains:G,starts:V}}},R=function(G,V){return{begin:"\\\\"+G+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+G},relevance:0,contains:[g],starts:V}},w=function(G,V){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+G+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},S(E,V))},A=(G="string")=>e.END_SAME_AS_BEGIN({className:G,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),I=function(G){return{className:"string",end:"(?=\\\\end\\{"+G+"\\})"}},C=(G="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:G,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),M=[...["verb","lstinline"].map(G=>R(G,{contains:[A()]})),R("mint",S(E,{contains:[A()]})),R("mintinline",S(E,{contains:[C(),A()]})),R("url",{contains:[C("link"),C("link")]}),R("hyperref",{contains:[C("link")]}),R("href",S(v,{contains:[C("link")]})),...[].concat(...["","\\*"].map(G=>[w("verbatim"+G,I("verbatim"+G)),w("filecontents"+G,S(E,I("filecontents"+G))),...["","B","L"].map(V=>w(V+"Verbatim"+G,S(v,I(V+"Verbatim"+G))))])),w("minted",S(v,S(E,I("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...M,...h]}}return tm=n,tm}var nm,J1;function vKe(){if(J1)return nm;J1=1;function n(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return nm=n,nm}var sm,eT;function SKe(){if(eT)return sm;eT=1;function n(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,r={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[r]};return r.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[r]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return sm=n,sm}var rm,tT;function TKe(){if(tT)return rm;tT=1;const n=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse(),c=i.concat(o).sort().reverse();function d(u){const _=n(u),m=c,h="and or not only",f="[\\w-]+",y="("+f+"|@\\{"+f+"\\})",b=[],g=[],E=function(ee){return{className:"string",begin:"~?"+ee+".*?"+ee}},v=function(ee,O,H){return{className:ee,begin:O,relevance:H}},S={$pattern:/[a-z-]+/,keyword:h,attribute:r.join(" ")},R={begin:"\\(",end:"\\)",contains:g,keywords:S,relevance:0};g.push(u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,E("'"),E('"'),_.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},_.HEXCOLOR,R,v("variable","@@?"+f,10),v("variable","@\\{"+f+"\\}"),v("built_in","~?`[^`]*?`"),{className:"attribute",begin:f+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},_.IMPORTANT,{beginKeywords:"and not"},_.FUNCTION_DISPATCH);const w=g.concat({begin:/\{/,end:/\}/,contains:b}),A={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(g)},I={begin:y+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}]},C={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:S,returnEnd:!0,contains:g,relevance:0}},M={className:"variable",variants:[{begin:"@"+f+"\\s*:",relevance:15},{begin:"@"+f}],starts:{end:"[;}]",returnEnd:!0,contains:w}},G={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:y,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,A,v("keyword","all\\b"),v("variable","@\\{"+f+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},_.CSS_NUMBER_MODE,v("selector-tag",y,0),v("selector-id","#"+y),v("selector-class","\\."+y,0),v("selector-tag","&",0),_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:w},{begin:"!important"},_.FUNCTION_DISPATCH]},V={begin:f+`:(:)?(${m.join("|")})`,returnBegin:!0,contains:[G]};return b.push(u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,C,M,V,I,G,A,_.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:b}}return rm=d,rm}var im,nT;function xKe(){if(nT)return im;nT=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",s="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),c=e.COMMENT(";","$",{relevance:0}),d={begin:"\\*",end:"\\*"},u={className:"symbol",begin:"[:&]"+t},_={begin:t,relevance:0},m={begin:s},f={contains:[o,a,d,u,{begin:"\\(",end:"\\)",contains:["self",i,a,o,_]},_],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+s}]},y={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},b={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return b.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:s}]},g],g.contains=[f,y,b,i,o,a,c,d,u,m,_],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),i,a,c,f,y,b,_]}}return im=n,im}var om,sT;function CKe(){if(sT)return om;sT=1;function n(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},s=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(s),illegal:";$|^\\[|^=|&|\\{"}}return om=n,om}var am,rT;function wKe(){if(rT)return am;rT=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(r,t,s);function o(a){const c=["npm","print"],d=["yes","no","on","off","it","that","void"],u=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],_={keyword:n.concat(u),literal:e.concat(d),built_in:i.concat(c)},m="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",h=a.inherit(a.TITLE_MODE,{begin:m}),f={className:"subst",begin:/#\{/,end:/\}/,keywords:_},y={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:_},b=[a.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,f,y]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,f,y]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[f,a.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+m},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];f.contains=b;const g={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(b)}]},E={begin:"(#=>|=>|\\|>>|-?->|!->)"},v={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:_};return{name:"LiveScript",aliases:["ls"],keywords:_,illegal:/\/\*/,contains:b.concat([a.COMMENT("\\/\\*","\\*\\/"),a.HASH_COMMENT_MODE,E,{className:"function",contains:[h,g],returnBegin:!0,variants:[{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},v,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return am=o,am}var lm,iT;function RKe(){if(iT)return lm;iT=1;function n(e){const t=e.regex,s=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},c={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},d={className:"variable",variants:[{begin:t.concat(/%/,s)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:"title",variants:[{begin:t.concat(/@/,s)},{begin:/@\d+/},{begin:t.concat(/!/,s)},{begin:t.concat(/!\d+/,s)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},u,o,i,d,c,a]}}return lm=n,lm}var cm,oT;function AKe(){if(oT)return cm;oT=1;function n(e){const s={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},r={className:"number",relevance:0,begin:e.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},o={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[s,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},r,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},o,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return cm=n,cm}var dm,aT;function MKe(){if(aT)return dm;aT=1;function n(e){const t="\\[=*\\[",s="\\]=*\\]",r={begin:t,end:s,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,s,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:s,contains:[r],relevance:5}])}}return dm=n,dm}var um,lT;function NKe(){if(lT)return um;lT=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{y.has(A[0])||I.ignoreMatch()}},{className:"symbol",relevance:0,begin:f}]},g={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},E={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},v={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},S={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},R={className:"brace",relevance:0,begin:/[[\](){}]/},w={className:"message-name",relevance:0,begin:s.concat("::",f)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),v,S,w,b,g,t.QUOTE_STRING_MODE,h,E,R]}}return pm=e,pm}var fm,dT;function IKe(){if(dT)return fm;dT=1;function n(e){const t="('|\\.')+",s={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:s},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:s},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:s},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:s},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return fm=n,fm}var _m,uT;function kKe(){if(uT)return _m;uT=1;function n(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return _m=n,_m}var mm,pT;function DKe(){if(pT)return mm;pT=1;function n(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},s,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,o,{begin:/:-/},{begin:/\.$/}]}}return hm=n,hm}var gm,_T;function PKe(){if(_T)return gm;_T=1;function n(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return gm=n,gm}var bm,mT;function FKe(){if(mT)return bm;mT=1;function n(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return bm=n,bm}var ym,hT;function UKe(){if(hT)return ym;hT=1;function n(e){const t=e.regex,s=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:s.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},u={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},_=[e.BACKSLASH_ESCAPE,o,d],m=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(b,g,E="\\1")=>{const v=E==="\\1"?E:t.concat(E,g);return t.concat(t.concat("(?:",b,")"),g,/(?:\\.|[^\\\/])*?/,v,/(?:\\.|[^\\\/])*?/,E,r)},f=(b,g,E)=>t.concat(t.concat("(?:",b,")"),g,/(?:\\.|[^\\\/])*?/,E,r),y=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:_,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},u,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",t.either(...m,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",t.either(...m,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=y,a.contains=y,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:y}}return ym=n,ym}var Em,gT;function BKe(){if(gT)return Em;gT=1;function n(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return Em=n,Em}var vm,bT;function GKe(){if(bT)return vm;bT=1;function n(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},s={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),s,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}return vm=n,vm}var Sm,yT;function VKe(){if(yT)return Sm;yT=1;function n(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},s="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=i;const o=e.inherit(e.TITLE_MODE,{begin:s}),a="(\\(.*\\)\\s*)?\\B[-=]>",c={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+s+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,c]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[c]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return Sm=n,Sm}var Tm,ET;function zKe(){if(ET)return Tm;ET=1;function n(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return Tm=n,Tm}var xm,vT;function HKe(){if(vT)return xm;vT=1;function n(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},s={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,t,s]}}return xm=n,xm}var Cm,ST;function qKe(){if(ST)return Cm;ST=1;function n(e){const t=e.regex,s={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[s]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},s]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return Cm=n,Cm}var wm,TT;function YKe(){if(TT)return wm;TT=1;function n(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return wm=n,wm}var Rm,xT;function $Ke(){if(xT)return Rm;xT=1;function n(e){const t={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},s={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},r={className:"char.escape",begin:/''\$/},i={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[r,s],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,i];return s.contains=a,{name:"Nix",aliases:["nixos"],keywords:t,contains:a}}return Rm=n,Rm}var Am,CT;function WKe(){if(CT)return Am;CT=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Am=n,Am}var Mm,wT;function KKe(){if(wT)return Mm;wT=1;function n(e){const t=e.regex,s=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],o={className:"variable.constant",begin:t.concat(/\$/,t.either(...s))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},c={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},d={className:"variable",begin:/\$+\([\w^.:!-]+\)/},u={className:"params",begin:t.either(...r)},_={className:"keyword",begin:t.concat(/!/,t.either(...i))},m={className:"char.escape",begin:/\$(\\[nrt]|\$)/},h={className:"title.function",begin:/\w+::\w+/},f={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[m,o,a,c,d]},y=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],b=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],g={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},v={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:y,literal:b},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),v,g,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},f,_,a,c,d,u,h,e.NUMBER_MODE]}}return Mm=n,Mm}var Nm,RT;function jKe(){if(RT)return Nm;RT=1;function n(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:s,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return Nm=n,Nm}var Om,AT;function QKe(){if(AT)return Om;AT=1;function n(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return Om=n,Om}var Im,MT;function XKe(){if(MT)return Im;MT=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},s={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,t,s]},c={begin:"[*!#%]",relevance:0},d={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,o,i,t,c,d]}}return Im=n,Im}var km,NT;function ZKe(){if(NT)return km;NT=1;function n(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},s=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[i,o]},s,r]},c={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[s,r,e.C_LINE_COMMENT_MODE,i,o,e.NUMBER_MODE,a,c]}}return km=n,km}var Dm,OT;function JKe(){if(OT)return Dm;OT=1;function n(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return Dm=n,Dm}var Lm,IT;function eje(){if(IT)return Lm;IT=1;function n(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},s={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,s]}}return Lm=n,Lm}var Pm,kT;function tje(){if(kT)return Pm;kT=1;function n(e){const t=e.COMMENT("--","$"),s="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+s+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",c="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",d="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",u=d.trim().split(" ").map(function(b){return b.split("|")[0]}).join("|"),_="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",m="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",h="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",y="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(b){return b.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+c+a,built_in:_+m+h},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+y+")\\s*\\("},{begin:"\\.("+u+")\\b"},{begin:"\\b("+u+")\\s+PATH\\b",keywords:{keyword:"PATH",type:d.replace("PATH ","")}},{className:"type",begin:"\\b("+u+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}return Pm=n,Pm}var Fm,DT;function nje(){if(DT)return Fm;DT=1;function n(e){const t=e.regex,s=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),o={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(O,H)=>{H.data._beginMatch=O[1]||O[2]},"on:end":(O,H)=>{H.data._beginMatch!==O[1]&&H.ignoreMatch()}},m=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h=`[ -]`,f={scope:"string",variants:[u,d,_,m]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],g=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],S={keyword:g,literal:(O=>{const H=[];return O.forEach(q=>{H.push(q),q.toLowerCase()===q?H.push(q.toUpperCase()):H.push(q.toLowerCase())}),H})(b),built_in:E},R=O=>O.map(H=>H.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,t.concat(h,"+"),t.concat("(?!",R(E).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},A=t.concat(r,"\\b(?!\\()"),I={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),A],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),A],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},C={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[C,o,I,e.C_BLOCK_COMMENT_MODE,f,y,w]},G={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",R(g).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),r,t.concat(h,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push(G);const V=[C,I,e.C_BLOCK_COMMENT_MODE,f,y,w],ee={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...V]},...V,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:S,contains:[ee,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,G,I,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:S,contains:["self",o,I,e.C_BLOCK_COMMENT_MODE,f,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},f,y]}}return Fm=n,Fm}var Um,LT;function sje(){if(LT)return Um;LT=1;function n(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Um=n,Um}var Bm,PT;function rje(){if(PT)return Bm;PT=1;function n(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Bm=n,Bm}var Gm,FT;function ije(){if(FT)return Gm;FT=1;function n(e){const t={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},s={className:"string",begin:'"""',end:'"""',relevance:10},r={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},i={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:t,contains:[o,s,r,i,a,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return Gm=n,Gm}var Vm,UT;function oje(){if(UT)return Vm;UT=1;function n(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],s="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},c={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},d={className:"literal",begin:/\$(null|true|false)\b/},u={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,c,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},_={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},m={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[m]}),f={className:"built_in",variants:[{begin:"(".concat(s,")+(-)[\\w\\d]+")}]},y={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},b={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[c]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[u,_,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},E={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},v={className:"selector-tag",begin:/@\B/,relevance:0},S={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},R=[S,h,a,e.NUMBER_MODE,u,_,f,c,d,v],w={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",R,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return S.contains.unshift(w),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:R.concat(y,b,g,E,w)}}return Vm=n,Vm}var zm,BT;function aje(){if(BT)return zm;BT=1;function n(e){const t=e.regex,s=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],r=e.IDENT_RE,i={variants:[{match:t.concat(t.either(...s),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,r,t.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,r],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,r],className:{2:"property"}},c={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},d=["boolean","byte","char","color","double","float","int","long","short"],u=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...s,...u],type:d},contains:[c,o,i,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return zm=n,zm}var Hm,GT;function lje(){if(GT)return Hm;GT=1;function n(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return Hm=n,Hm}var qm,VT;function cje(){if(VT)return qm;VT=1;function n(e){const t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},s={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},c={className:"string",begin:/0'(\\'|.)/},d={className:"string",begin:/0'\\s/},_=[t,s,r,{begin:/:-/},i,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,c,d,e.C_NUMBER_MODE];return r.contains=_,i.contains=_,{name:"Prolog",contains:_.concat([{begin:/\.$/}])}}return qm=n,qm}var Ym,zT;function dje(){if(zT)return Ym;zT=1;function n(e){const t="[ \\t\\f]*",s="[ \\t\\f]+",r=t+"[:=]"+t,i=s,o="("+r+"|"+i+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",c={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+r},{begin:a+i}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:c},{className:"attr",begin:a+t+"$"}]}}return Ym=n,Ym}var $m,HT;function uje(){if(HT)return $m;HT=1;function n(e){const t=["package","import","option","optional","required","repeated","group","oneof"],s=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:t,type:s,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return $m=n,$m}var Wm,qT;function pje(){if(qT)return Wm;qT=1;function n(e){const t={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},s=e.COMMENT("#","$"),r="([A-Za-z_]|::)(\\w|::)*",i=e.inherit(e.TITLE_MODE,{begin:r}),o={className:"variable",begin:"\\$"+r},a={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[s,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[i,s]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[a,s,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}return Wm=n,Wm}var Km,YT;function fje(){if(YT)return Km;YT=1;function n(e){const t={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},s={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},t,s]}}return Km=n,Km}var jm,$T;function _je(){if($T)return jm;$T=1;function n(e){const t=e.regex,s=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},_={begin:/\{\{/,relevance:0},m={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,_,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,_,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,_,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,_,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",f=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,y=`\\b|${r.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${f}))[eE][+-]?(${h})[jJ]?(?=${y})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${y})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${y})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${y})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${y})`},{begin:`\\b(${h})[jJ](?=${y})`}]},g={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},E={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",d,b,m,e.HASH_COMMENT_MODE]}]};return u.contains=[m,b,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[d,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},m,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[E]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,E,m]}]}}return jm=n,jm}var Qm,WT;function mje(){if(WT)return Qm;WT=1;function n(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Qm=n,Qm}var Xm,KT;function hje(){if(KT)return Xm;KT=1;function n(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return Xm=n,Xm}var Zm,jT;function gje(){if(jT)return Zm;jT=1;function n(e){const t=e.regex,s={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},r="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:r,returnEnd:!1}},c={begin:r+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:r,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},d={begin:t.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:r})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:s,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},a,c,d],illegal:/#/}}return Zm=n,Zm}var Jm,QT;function bje(){if(QT)return Jm;QT=1;function n(e){const t=e.regex,s=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:s},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Jm=n,Jm}var eh,XT;function yje(){if(XT)return eh;XT=1;function n(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return eh=n,eh}var th,ZT;function Eje(){if(ZT)return th;ZT=1;function n(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},e.COMMENT("^#","$"),c,d,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[c,d,a,{className:"literal",begin:"\\b("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+r.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return sh=n,sh}var rh,tx;function Tje(){if(tx)return rh;tx=1;function n(e){const t=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],s=["matrix","float","color","point","normal","vector"],r=["while","for","if","do","return","else","break","extern","continue"],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:r,built_in:t,type:s},illegal:""},o]}}return oh=n,oh}var ah,rx;function wje(){if(rx)return ah;rx=1;function n(e){const t=e.regex,s=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],r=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],i=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:s},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+t.either(...i)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either(...r)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return ah=n,ah}var lh,ix;function Rje(){if(ix)return lh;ix=1;function n(e){const t=e.regex,s={className:"meta",begin:"@[A-Za-z]+"},r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[r],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},c={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a]},d={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[a]},u={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},_={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},m=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],h={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,o,d,c,e.C_NUMBER_MODE,u,_,...m,h,s]}}return lh=n,lh}var ch,ox;function Aje(){if(ox)return ch;ox=1;function n(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",s="(-|\\+)?\\d+([./]\\d+)?",r=s+"[+\\-]"+s+"i",i={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},a={className:"number",variants:[{begin:s,relevance:0},{begin:r,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},c=e.QUOTE_STRING_MODE,d=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],u={begin:t,relevance:0},_={className:"symbol",begin:"'"+t},m={endsWithParent:!0,relevance:0},h={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,c,a,u,_]}]},f={className:"name",relevance:0,begin:t,keywords:i},b={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[u]}]},f,m]};return m.contains=[o,a,c,u,_,h,b].concat(d),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),a,c,_,h,b].concat(d)}}return ch=n,ch}var dh,ax;function Mje(){if(ax)return dh;ax=1;function n(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}return dh=n,dh}var uh,lx;function Nje(){if(lx)return uh;lx=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=n(d),_=o,m=i,h="@[a-z-]+",f="and or not only",b={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,u.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+m.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+_.join("|")+")"},b,{begin:/\(/,end:/\)/,contains:[u.CSS_NUMBER_MODE]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[u.BLOCK_COMMENT,b,u.HEXCOLOR,u.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,u.IMPORTANT,u.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:h,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:r.join(" ")},contains:[{begin:h,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},b,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,u.HEXCOLOR,u.CSS_NUMBER_MODE]},u.FUNCTION_DISPATCH]}}return uh=c,uh}var ph,cx;function Oje(){if(cx)return ph;cx=1;function n(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return ph=n,ph}var fh,dx;function Ije(){if(dx)return fh;dx=1;function n(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],s=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],r=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+r.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+s.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: -]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return fh=n,fh}var _h,ux;function kje(){if(ux)return _h;ux=1;function n(e){const t="[a-z][a-zA-Z0-9_]*",s={className:"string",begin:"\\$.{1}"},r={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,r,s,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,s,e.C_NUMBER_MODE,r]}]}}return _h=n,_h}var mh,px;function Dje(){if(px)return mh;px=1;function n(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return mh=n,mh}var hh,fx;function Lje(){if(fx)return hh;fx=1;function n(e){const t={className:"variable",begin:/\b_+[a-zA-Z]\w*/},s={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],o=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],a=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:i,built_in:a,literal:o},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,s,r,c],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return hh=n,hh}var gh,_x;function Pje(){if(_x)return gh;_x=1;function n(e){const t=e.regex,s=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],_=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],m=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=_,y=[...u,...d].filter(S=>!_.includes(S)),b={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={begin:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function v(S,{exceptions:R,when:w}={}){const A=w;return R=R||[],S.map(I=>I.match(/\|\d+$/)||R.includes(I)?I:A(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(y,{when:S=>S.length<3}),literal:o,type:c,built_in:m},contains:[{begin:t.either(...h),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:y.concat(h),literal:o,type:c}},{className:"type",begin:t.either(...a)},E,b,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,s,g]}}return gh=n,gh}var bh,mx;function Fje(){if(mx)return bh;mx=1;function n(e){const t=e.regex,s=["functions","model","data","parameters","quantities","transformed","generated"],r=["for","in","if","else","while","break","continue","return"],i=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],o=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],c=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),d={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},u=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:s,type:i,keyword:r,built_in:o},contains:[e.C_LINE_COMMENT_MODE,d,e.HASH_COMMENT_MODE,c,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...u),/\s*=/),keywords:u},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:t.concat(/\w*/,t.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return bh=n,bh}var yh,hx;function Uje(){if(hx)return yh;hx=1;function n(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r -]*?"'`},{begin:`"[^\r -"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return yh=n,yh}var Eh,gx;function Bje(){if(gx)return Eh;gx=1;function n(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return Eh=n,Eh}var vh,bx;function Gje(){if(bx)return vh;bx=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...e,...t],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=n(d),_="and or not only",m={className:"variable",begin:"\\$"+d.IDENT_RE},h=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],f="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,u.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-id"},{begin:"\\b("+s.join("|")+")"+f,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+i.join("|")+")"+f},{className:"selector-pseudo",begin:"&?:(:)?("+o.join("|")+")"+f},u.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:r.join(" ")},contains:[u.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+h.join("|")+"))\\b"},m,u.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[u.HEXCOLOR,m,d.APOS_STRING_MODE,u.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE]}]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",starts:{end:/;|$/,contains:[u.HEXCOLOR,m,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,u.CSS_NUMBER_MODE,d.C_BLOCK_COMMENT_MODE,u.IMPORTANT,u.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},u.FUNCTION_DISPATCH]}}return vh=c,vh}var Sh,yx;function Vje(){if(yx)return Sh;yx=1;function n(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ -(multipart)?`,end:`\\] -`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Sh=n,Sh}var Th,Ex;function zje(){if(Ex)return Th;Ex=1;function n(I){return I?typeof I=="string"?I:I.source:null}function e(I){return t("(?=",I,")")}function t(...I){return I.map(M=>n(M)).join("")}function s(I){const C=I[I.length-1];return typeof C=="object"&&C.constructor===Object?(I.splice(I.length-1,1),C):{}}function r(...I){return"("+(s(I).capture?"":"?:")+I.map(G=>n(G)).join("|")+")"}const i=I=>t(/\b/,I,/\w$/.test(I)?/\b/:/\B/),o=["Protocol","Type"].map(i),a=["init","self"].map(i),c=["Any","Self"],d=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],u=["false","nil","true"],_=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],h=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],f=r(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),y=r(f,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(f,y,"*"),g=r(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),E=r(g,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),v=t(g,E,"*"),S=t(/[A-Z]/,E,"*"),R=["attached","autoclosure",t(/convention\(/,r("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,v,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],w=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function A(I){const C={match:/\s+/,relevance:0},M=I.COMMENT("/\\*","\\*/",{contains:["self"]}),G=[I.C_LINE_COMMENT_MODE,M],V={match:[/\./,r(...o,...a)],className:{2:"keyword"}},ee={match:t(/\./,r(...d)),relevance:0},O=d.filter(ze=>typeof ze=="string").concat(["_|0"]),H=d.filter(ze=>typeof ze!="string").concat(c).map(i),q={variants:[{className:"keyword",match:r(...H,...a)}]},L={$pattern:r(/\b\w+/,/#\w+/),keyword:O.concat(m),literal:u},W=[V,ee,q],se={match:t(/\./,r(...h)),relevance:0},oe={className:"built_in",match:t(/\b/,r(...h),/(?=\()/)},ye=[se,oe],xe={match:/->/,relevance:0},ce={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${y})+`}]},ve=[xe,ce],Oe="([0-9]_*)+",De="([0-9a-fA-F]_*)+",Q={className:"number",relevance:0,variants:[{match:`\\b(${Oe})(\\.(${Oe}))?([eE][+-]?(${Oe}))?\\b`},{match:`\\b0x(${De})(\\.(${De}))?([pP][+-]?(${Oe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},fe=(ze="")=>({className:"subst",variants:[{match:t(/\\/,ze,/[0\\tnr"']/)},{match:t(/\\/,ze,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_e=(ze="")=>({className:"subst",match:t(/\\/,ze,/[\t ]*(?:[\r\n]|\r\n)/)}),Ae=(ze="")=>({className:"subst",label:"interpol",begin:t(/\\/,ze,/\(/),end:/\)/}),Ue=(ze="")=>({begin:t(ze,/"""/),end:t(/"""/,ze),contains:[fe(ze),_e(ze),Ae(ze)]}),te=(ze="")=>({begin:t(ze,/"/),end:t(/"/,ze),contains:[fe(ze),Ae(ze)]}),U={className:"string",variants:[Ue(),Ue("#"),Ue("##"),Ue("###"),te(),te("#"),te("##"),te("###")]},P=[I.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[I.BACKSLASH_ESCAPE]}],Z={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:P},de=ze=>{const je=t(ze,/\//),_t=t(/\//,ze);return{begin:je,end:_t,contains:[...P,{scope:"comment",begin:`#(?!.*${_t})`,end:/$/}]}},pe={scope:"regexp",variants:[de("###"),de("##"),de("#"),Z]},he={match:t(/`/,v,/`/)},le={className:"variable",match:/\$\d+/},Me={className:"variable",match:`\\$${E}+`},Re=[he,le,Me],ge={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:w,contains:[...ve,Q,U]}]}},D={scope:"keyword",match:t(/@/,r(...R),e(r(/\(/,/\s+/)))},N={scope:"meta",match:t(/@/,v)},K=[ge,D,N],me={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,E,"+")},{className:"type",match:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:t(/\s+&\s+/,e(S)),relevance:0}]},j={begin://,keywords:L,contains:[...G,...W,...K,xe,me]};me.contains.push(j);const re={match:t(v,/\s*:/),keywords:"_|0",relevance:0},Ce={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",re,...G,pe,...W,...ye,...ve,Q,U,...Re,...K,me]},we={begin://,keywords:"repeat each",contains:[...G,me]},ke={begin:r(e(t(v,/\s*:/)),e(t(v,/\s+/,v,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:v}]},We={begin:/\(/,end:/\)/,keywords:L,contains:[ke,...G,...W,...ve,Q,U,...K,me,Ce],endsParent:!0,illegal:/["']/},lt={match:[/(func|macro)/,/\s+/,r(he.match,v,b)],className:{1:"keyword",3:"title.function"},contains:[we,We,C],illegal:[/\[/,/%/]},Pe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[we,We,C],illegal:/\[|%/},Mt={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},et={begin:[/precedencegroup/,/\s+/,S],className:{1:"keyword",3:"title"},contains:[me],keywords:[..._,...u],end:/}/},tt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,v,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:L,contains:[we,...W,{begin:/:/,end:/\{/,keywords:L,contains:[{scope:"title.class.inherited",match:S},...W],relevance:0}]};for(const ze of U.variants){const je=ze.contains.find(J=>J.label==="interpol");je.keywords=L;const _t=[...W,...ye,...ve,Q,U,...Re];je.contains=[..._t,{begin:/\(/,end:/\)/,contains:["self",..._t]}]}return{name:"Swift",keywords:L,contains:[...G,lt,Pe,tt,Mt,et,{beginKeywords:"import",end:/$/,contains:[...G],relevance:0},pe,...W,...ye,...ve,Q,U,...Re,...K,me,Ce]}}return Th=A,Th}var xh,vx;function Hje(){if(vx)return xh;vx=1;function n(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return xh=n,xh}var Ch,Sx;function qje(){if(Sx)return Ch;Sx=1;function n(e){const t="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},f={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},b=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},f,y,o],g=[...b];return g.pop(),g.push(a),h.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}return Ch=n,Ch}var wh,Tx;function Yje(){if(Tx)return wh;Tx=1;function n(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return wh=n,wh}var Rh,xx;function $je(){if(xx)return Rh;xx=1;function n(e){const t=e.regex,s=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:t.concat(/\$/,t.optional(/::/),s,"(::",s,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[r]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}return Rh=n,Rh}var Ah,Cx;function Wje(){if(Cx)return Ah;Cx=1;function n(e){const t=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...t,"set","list","map"]},end:">",contains:["self"]}]}}return Ah=n,Ah}var Mh,wx;function Kje(){if(wx)return Mh;wx=1;function n(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},s={className:"symbol",begin:":[^\\]]+"},r={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,s]},i={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,s]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[r,i,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return Mh=n,Mh}var Nh,Rx;function jje(){if(Rx)return Nh;Rx=1;function n(e){const t=e.regex,s=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],r=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let i=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];i=i.concat(i.map(y=>`end${y}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},c={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},d={beginKeywords:s.join(" "),keywords:{name:s},relevance:0,contains:[c]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},_=(y,{relevance:b})=>({beginScope:{1:"template-tag",3:"name"},relevance:b||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...y)],end:/%\}/,keywords:"in",contains:[u,d,o,a]}),m=/[a-z_]+/,h=_(i,{relevance:2}),f=_([m],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),h,f,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",u,d,o,a]}]}}return Nh=n,Nh}var Oh,Ax;function Qje(){if(Ax)return Oh;Ax=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(i,s,r);function c(u){const _=u.regex,m=(fe,{after:_e})=>{const Ae="",end:""},y=/<[A-Za-z0-9\\._:-]+\s*\/>/,b={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(fe,_e)=>{const Ae=fe[0].length+fe.index,Ue=fe.input[Ae];if(Ue==="<"||Ue===","){_e.ignoreMatch();return}Ue===">"&&(m(fe,{after:Ae})||_e.ignoreMatch());let te;const U=fe.input.substring(Ae);if(te=U.match(/^\s*=/)){_e.ignoreMatch();return}if((te=U.match(/^\s+extends\s+/))&&te.index===0){_e.ignoreMatch();return}}},g={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},E="[0-9](_?[0-9])*",v=`\\.(${E})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${S})((${v})|\\.)?|(${v}))[eE][+-]?(${E})\\b`},{begin:`\\b(${S})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},w={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},A={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"xml"}},I={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,w]},V={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},ee=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,A,I,C,M,{match:/\$\d+/},R];w.contains=ee.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(ee)});const O=[].concat(V,w.contains),H=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(O)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:H},L={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,_.concat(h,"(",_.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},W={relevance:0,match:_.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...r]}},se={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},oe={variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},ye={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function xe(fe){return _.concat("(?!",fe.join("|"),")")}const ce={match:_.concat(/\b/,xe([...i,"super","import"].map(fe=>`${fe}\\s*\\(`)),h,_.lookahead(/\s*\(/)),className:"title.function",relevance:0},ve={begin:_.concat(/\./,_.lookahead(_.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Oe={match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},De="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,_.lookahead(De)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:W},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),se,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,A,I,C,M,V,{match:/\$\d+/},R,W,{className:"attr",begin:h+_.lookahead(":"),relevance:0},Q,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[V,u.REGEXP_MODE,{className:"function",begin:De,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:y},{begin:b.begin,"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},oe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,u.inherit(u.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},ve,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},ce,ye,L,Oe,{match:/\$[(.]/}]}}function d(u){const _=c(u),m=n,h=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,u.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},y={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:h},contains:[_.exports.CLASS_REFERENCE]},b={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:n,keyword:e.concat(g),literal:t,built_in:a.concat(h),"variable.language":o},v={className:"meta",begin:"@"+m},S=(A,I,C)=>{const M=A.contains.findIndex(G=>G.label===I);if(M===-1)throw new Error("can not find mode to replace");A.contains.splice(M,1,C)};Object.assign(_.keywords,E),_.exports.PARAMS_CONTAINS.push(v);const R=_.contains.find(A=>A.className==="attr");_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,R]),_.contains=_.contains.concat([v,f,y]),S(_,"shebang",u.SHEBANG()),S(_,"use_strict",b);const w=_.contains.find(A=>A.label==="func.def");return w.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return Oh=d,Oh}var Ih,Mx;function Xje(){if(Mx)return Ih;Mx=1;function n(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return Ih=n,Ih}var kh,Nx;function Zje(){if(Nx)return kh;Nx=1;function n(e){const t=e.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,c),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},_={className:"label",begin:/^\w+:/},m=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[s,r,d,u,_,m,h,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[h]}]}}return kh=n,kh}var Dh,Ox;function Jje(){if(Ox)return Dh;Ox=1;function n(e){const t=e.regex,s=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],r=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],i={begin:t.concat(t.either(...s),"\\s*\\("),relevance:0,keywords:{built_in:s}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:r,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[i,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return Dh=n,Dh}var Lh,Ix;function eQe(){if(Ix)return Lh;Ix=1;function n(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return Lh=n,Lh}var Ph,kx;function tQe(){if(kx)return Ph;kx=1;function n(e){const t=e.regex,s={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},r=["__FILE__","__LINE__"],i=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:s,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:t.concat(/`/,t.either(...r))},{scope:"meta",begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}return Ph=n,Ph}var Fh,Dx;function nQe(){if(Dx)return Fh;Dx=1;function n(e){const t="\\d(_|\\d)*",s="[eE][-+]?"+t,r=t+"(\\."+t+")?("+s+")?",i="\\w+",a="\\b("+(t+"#"+i+"(\\."+i+")?#("+s+")?")+"|"+r+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:a,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return Fh=n,Fh}var Uh,Lx;function sQe(){if(Lx)return Uh;Lx=1;function n(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return Uh=n,Uh}var Bh,Px;function rQe(){if(Px)return Bh;Px=1;function n(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const s=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[s,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,d,u,c]}}return Bh=n,Bh}var Gh,Fx;function iQe(){if(Fx)return Gh;Fx=1;function n(e){const t=e.regex,s=/[a-zA-Z]\w*/,r=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],i=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],c=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],d={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,s,/(?=\s*[({])/),className:"title.function"},u={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,s),t.either(...c)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:s}]}]}},_={variants:[{match:[/class\s+/,s,/\s+is\s+/,s]},{match:[/class\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:r},m={relevance:0,match:t.either(...c),className:"operator"},h={className:"string",begin:/"""/,end:/"""/},f={className:"property",begin:t.concat(/\./,t.lookahead(s)),end:s,excludeBegin:!0,relevance:0},y={relevance:0,match:t.concat(/\b_/,s),scope:"variable"},b={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},g=e.C_NUMBER_MODE,E={match:[s,/\s*/,/=/,/\s*/,/\(/,s,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},v=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),S={scope:"subst",begin:/%\(/,end:/\)/,contains:[g,b,d,y,m]},R={scope:"string",begin:/"/,end:/"/,contains:[S,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};S.contains.push(R);const w=[...r,...o,...i],A={relevance:0,match:t.concat("\\b(?!",w.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:r,"variable.language":o,literal:i},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},g,R,h,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,_,E,u,d,m,y,f,A]}}return Gh=n,Gh}var Vh,Ux;function oQe(){if(Ux)return Vh;Ux=1;function n(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return Vh=n,Vh}var zh,Bx;function aQe(){if(Bx)return zh;Bx=1;function n(e){const t=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],s=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],r=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],o={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:t,literal:["true","false","nil"],built_in:s.concat(r)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},c={className:"string",begin:"'",end:"'",illegal:"\\n"},d={className:"string",begin:"<<",end:">>"},u={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},_={beginKeywords:"import",end:"$",keywords:o,contains:[a]},m={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:o}})]};return{name:"XL",aliases:["tao"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,c,d,m,_,u,e.NUMBER_MODE]}}return zh=n,zh}var Hh,Gx;function lQe(){if(Gx)return Hh;Gx=1;function n(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return Hh=n,Hh}var qh,Vx;function cQe(){if(Vx)return qh;Vx=1;function n(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},s=e.UNDERSCORE_TITLE_MODE,r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[s,{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:["self",e.C_BLOCK_COMMENT_MODE,t,r]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},s]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[s]},{beginKeywords:"use",end:/;/,contains:[s]},{begin:/=>/},t,r]}}return qh=n,qh}var X=k$e;X.registerLanguage("1c",D$e());X.registerLanguage("abnf",L$e());X.registerLanguage("accesslog",P$e());X.registerLanguage("actionscript",F$e());X.registerLanguage("ada",U$e());X.registerLanguage("angelscript",B$e());X.registerLanguage("apache",G$e());X.registerLanguage("applescript",V$e());X.registerLanguage("arcade",z$e());X.registerLanguage("arduino",H$e());X.registerLanguage("armasm",q$e());X.registerLanguage("xml",Y$e());X.registerLanguage("asciidoc",$$e());X.registerLanguage("aspectj",W$e());X.registerLanguage("autohotkey",K$e());X.registerLanguage("autoit",j$e());X.registerLanguage("avrasm",Q$e());X.registerLanguage("awk",X$e());X.registerLanguage("axapta",Z$e());X.registerLanguage("bash",J$e());X.registerLanguage("basic",eWe());X.registerLanguage("bnf",tWe());X.registerLanguage("brainfuck",nWe());X.registerLanguage("c",sWe());X.registerLanguage("cal",rWe());X.registerLanguage("capnproto",iWe());X.registerLanguage("ceylon",oWe());X.registerLanguage("clean",aWe());X.registerLanguage("clojure",lWe());X.registerLanguage("clojure-repl",cWe());X.registerLanguage("cmake",dWe());X.registerLanguage("coffeescript",uWe());X.registerLanguage("coq",pWe());X.registerLanguage("cos",fWe());X.registerLanguage("cpp",_We());X.registerLanguage("crmsh",mWe());X.registerLanguage("crystal",hWe());X.registerLanguage("csharp",gWe());X.registerLanguage("csp",bWe());X.registerLanguage("css",yWe());X.registerLanguage("d",EWe());X.registerLanguage("markdown",vWe());X.registerLanguage("dart",SWe());X.registerLanguage("delphi",TWe());X.registerLanguage("diff",xWe());X.registerLanguage("django",CWe());X.registerLanguage("dns",wWe());X.registerLanguage("dockerfile",RWe());X.registerLanguage("dos",AWe());X.registerLanguage("dsconfig",MWe());X.registerLanguage("dts",NWe());X.registerLanguage("dust",OWe());X.registerLanguage("ebnf",IWe());X.registerLanguage("elixir",kWe());X.registerLanguage("elm",DWe());X.registerLanguage("ruby",LWe());X.registerLanguage("erb",PWe());X.registerLanguage("erlang-repl",FWe());X.registerLanguage("erlang",UWe());X.registerLanguage("excel",BWe());X.registerLanguage("fix",GWe());X.registerLanguage("flix",VWe());X.registerLanguage("fortran",zWe());X.registerLanguage("fsharp",HWe());X.registerLanguage("gams",qWe());X.registerLanguage("gauss",YWe());X.registerLanguage("gcode",$We());X.registerLanguage("gherkin",WWe());X.registerLanguage("glsl",KWe());X.registerLanguage("gml",jWe());X.registerLanguage("go",QWe());X.registerLanguage("golo",XWe());X.registerLanguage("gradle",ZWe());X.registerLanguage("graphql",JWe());X.registerLanguage("groovy",eKe());X.registerLanguage("haml",tKe());X.registerLanguage("handlebars",nKe());X.registerLanguage("haskell",sKe());X.registerLanguage("haxe",rKe());X.registerLanguage("hsp",iKe());X.registerLanguage("http",oKe());X.registerLanguage("hy",aKe());X.registerLanguage("inform7",lKe());X.registerLanguage("ini",cKe());X.registerLanguage("irpf90",dKe());X.registerLanguage("isbl",uKe());X.registerLanguage("java",pKe());X.registerLanguage("javascript",fKe());X.registerLanguage("jboss-cli",_Ke());X.registerLanguage("json",mKe());X.registerLanguage("julia",hKe());X.registerLanguage("julia-repl",gKe());X.registerLanguage("kotlin",bKe());X.registerLanguage("lasso",yKe());X.registerLanguage("latex",EKe());X.registerLanguage("ldif",vKe());X.registerLanguage("leaf",SKe());X.registerLanguage("less",TKe());X.registerLanguage("lisp",xKe());X.registerLanguage("livecodeserver",CKe());X.registerLanguage("livescript",wKe());X.registerLanguage("llvm",RKe());X.registerLanguage("lsl",AKe());X.registerLanguage("lua",MKe());X.registerLanguage("makefile",NKe());X.registerLanguage("mathematica",OKe());X.registerLanguage("matlab",IKe());X.registerLanguage("maxima",kKe());X.registerLanguage("mel",DKe());X.registerLanguage("mercury",LKe());X.registerLanguage("mipsasm",PKe());X.registerLanguage("mizar",FKe());X.registerLanguage("perl",UKe());X.registerLanguage("mojolicious",BKe());X.registerLanguage("monkey",GKe());X.registerLanguage("moonscript",VKe());X.registerLanguage("n1ql",zKe());X.registerLanguage("nestedtext",HKe());X.registerLanguage("nginx",qKe());X.registerLanguage("nim",YKe());X.registerLanguage("nix",$Ke());X.registerLanguage("node-repl",WKe());X.registerLanguage("nsis",KKe());X.registerLanguage("objectivec",jKe());X.registerLanguage("ocaml",QKe());X.registerLanguage("openscad",XKe());X.registerLanguage("oxygene",ZKe());X.registerLanguage("parser3",JKe());X.registerLanguage("pf",eje());X.registerLanguage("pgsql",tje());X.registerLanguage("php",nje());X.registerLanguage("php-template",sje());X.registerLanguage("plaintext",rje());X.registerLanguage("pony",ije());X.registerLanguage("powershell",oje());X.registerLanguage("processing",aje());X.registerLanguage("profile",lje());X.registerLanguage("prolog",cje());X.registerLanguage("properties",dje());X.registerLanguage("protobuf",uje());X.registerLanguage("puppet",pje());X.registerLanguage("purebasic",fje());X.registerLanguage("python",_je());X.registerLanguage("python-repl",mje());X.registerLanguage("q",hje());X.registerLanguage("qml",gje());X.registerLanguage("r",bje());X.registerLanguage("reasonml",yje());X.registerLanguage("rib",Eje());X.registerLanguage("roboconf",vje());X.registerLanguage("routeros",Sje());X.registerLanguage("rsl",Tje());X.registerLanguage("ruleslanguage",xje());X.registerLanguage("rust",Cje());X.registerLanguage("sas",wje());X.registerLanguage("scala",Rje());X.registerLanguage("scheme",Aje());X.registerLanguage("scilab",Mje());X.registerLanguage("scss",Nje());X.registerLanguage("shell",Oje());X.registerLanguage("smali",Ije());X.registerLanguage("smalltalk",kje());X.registerLanguage("sml",Dje());X.registerLanguage("sqf",Lje());X.registerLanguage("sql",Pje());X.registerLanguage("stan",Fje());X.registerLanguage("stata",Uje());X.registerLanguage("step21",Bje());X.registerLanguage("stylus",Gje());X.registerLanguage("subunit",Vje());X.registerLanguage("swift",zje());X.registerLanguage("taggerscript",Hje());X.registerLanguage("yaml",qje());X.registerLanguage("tap",Yje());X.registerLanguage("tcl",$je());X.registerLanguage("thrift",Wje());X.registerLanguage("tp",Kje());X.registerLanguage("twig",jje());X.registerLanguage("typescript",Qje());X.registerLanguage("vala",Xje());X.registerLanguage("vbnet",Zje());X.registerLanguage("vbscript",Jje());X.registerLanguage("vbscript-html",eQe());X.registerLanguage("verilog",tQe());X.registerLanguage("vhdl",nQe());X.registerLanguage("vim",sQe());X.registerLanguage("wasm",rQe());X.registerLanguage("wren",iQe());X.registerLanguage("x86asm",oQe());X.registerLanguage("xl",aQe());X.registerLanguage("xquery",lQe());X.registerLanguage("zephir",cQe());X.HighlightJS=X;X.default=X;var dQe=X;const uo=Ri(dQe),uQe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.865%203.448l-6.583-3.167c-0.766-0.37-1.677-0.214-2.276%200.385l-12.609%2011.505-5.495-4.167c-0.51-0.391-1.229-0.359-1.703%200.073l-1.76%201.604c-0.583%200.526-0.583%201.443-0.005%201.969l4.766%204.349-4.766%204.349c-0.578%200.526-0.578%201.443%200.005%201.969l1.76%201.604c0.479%200.432%201.193%200.464%201.703%200.073l5.495-4.172%2012.615%2011.51c0.594%200.599%201.505%200.755%202.271%200.385l6.589-3.172c0.693-0.333%201.13-1.031%201.13-1.802v-21.495c0-0.766-0.443-1.469-1.135-1.802zM24.005%2023.266l-9.573-7.266%209.573-7.266z'/%3e%3c/svg%3e",pQe="data:image/svg+xml,%3csvg%20height='2455'%20viewBox='-11.9%20-2%201003.9%20995.6'%20width='2500'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12.1%20353.9s-24-17.3%204.8-40.4l67.1-60s19.2-20.2%2039.5-2.6l619.2%20468.8v224.8s-.3%2035.3-45.6%2031.4z'%20fill='%232489ca'/%3e%3cpath%20d='m171.7%20498.8-159.6%20145.1s-16.4%2012.2%200%2034l74.1%2067.4s17.6%2018.9%2043.6-2.6l169.2-128.3z'%20fill='%231070b3'/%3e%3cpath%20d='m451.9%20500%20292.7-223.5-1.9-223.6s-12.5-48.8-54.2-23.4l-389.5%20354.5z'%20fill='%230877b9'/%3e%3cpath%20d='m697.1%20976.2c17%2017.4%2037.6%2011.7%2037.6%2011.7l228.1-112.4c29.2-19.9%2025.1-44.6%2025.1-44.6v-671.2c0-29.5-30.2-39.7-30.2-39.7l-197.7-95.3c-43.2-26.7-71.5%204.8-71.5%204.8s36.4-26.2%2054.2%2023.4v887.5c0%206.1-1.3%2012.1-3.9%2017.5-5.2%2010.5-16.5%2020.3-43.6%2016.2z'%20fill='%233c99d4'/%3e%3c/svg%3e";uo.configure({languages:[]});uo.configure({languages:["bash"]});uo.highlightAll();const fQe={props:{host:{type:String,required:!1,default:"http://localhost:9600"},language:{type:String,required:!0},client_id:{type:String,required:!0},code:{type:String,required:!0},discussion_id:{type:[String,Number],required:!0},message_id:{type:[String,Number],required:!0}},data(){return{isExecuting:!1,isCopied:!1,executionOutput:""}},mounted(){Fe(()=>{Ve.replace()})},computed:{highlightedCode(){let n;this.language==="vue"||this.language==="vue.js"?n="javascript":this.language==="function"?n="json":n=uo.getLanguage(this.language)?this.language:"plaintext";const e=this.code.trim(),t=e.split(` -`),s=t.length.toString().length,r=t.map((d,u)=>(u+1).toString().padStart(s," ")),i=document.createElement("div");i.classList.add("line-numbers"),i.innerHTML=r.join("
");const o=document.createElement("div");o.classList.add("code-container");const a=document.createElement("pre"),c=document.createElement("code");return c.classList.add("code-content"),c.innerHTML=uo.highlight(e,{language:n,ignoreIllegals:!0}).value,a.appendChild(c),o.appendChild(i),o.appendChild(a),o.outerHTML}},methods:{copyCode(){this.isCopied=!0,console.log("Copying code");const n=document.createElement("textarea");n.value=this.code,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),Fe(()=>{Ve.replace()})},executeCode(){this.isExecuting=!0;const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id?this.discussion_id:0,message_id:this.message_id?this.message_id:0,language:this.language});console.log(n),fetch(`${this.host}/execute_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},executeCode_in_new_tab(){this.isExecuting=!0;const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id,language:this.language});console.log(n),fetch(`${this.host}/execute_code_in_new_tab`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},openFolderVsCode(){const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id});console.log(n),fetch(`${this.host}/open_discussion_folder_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openVsCode(){const n=JSON.stringify({client_id:this.client_id,discussion_id:typeof this.discussion_id=="string"?parseInt(this.discussion_id):this.discussion_id,message_id:this.message_id,code:this.code});console.log(n),fetch(`${this.host}/open_code_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openFolder(){const n=JSON.stringify({client_id:this.client_id,discussion_id:this.discussion_id});console.log(n),fetch(`${this.host}/open_discussion_folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})}}},_Qe={class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},mQe={class:"hljs p-1 rounded-md break-all grid grid-cols-1"},hQe={class:"code-container"},gQe=["innerHTML"],bQe={class:"flex flex-row bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},yQe={class:"text-2xl mr-2"},EQe=["title"],vQe={key:0,class:"text-2xl"},SQe={key:1,class:"hljs mt-0 p-1 rounded-md break-all grid grid-cols-1"},TQe={class:"container h-[200px] overflow-x-auto break-all 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"},xQe=["innerHTML"];function CQe(n,e,t,s,r,i){return T(),x("div",_Qe,[l("pre",mQe,[e[9]||(e[9]=Ze(" ")),l("div",hQe,[e[7]||(e[7]=Ze(` - `)),l("div",{class:"code-content overflow-x-auto break-all 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:i.highlightedCode,contenteditable:"true",onInput:e[0]||(e[0]=(...o)=>n.updateCode&&n.updateCode(...o))},null,40,gQe),e[8]||(e[8]=Ze(` - `))]),e[10]||(e[10]=Ze(` - - `))]),l("div",bQe,[l("span",yQe,Y(t.language.trim()),1),l("button",{onClick:e[1]||(e[1]=(...o)=>i.copyCode&&i.copyCode(...o)),title:r.isCopied?"Copied!":"Copy code",class:Le([r.isCopied?"bg-green-500":"","px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"])},e[11]||(e[11]=[l("i",{"data-feather":"copy"},null,-1)]),10,EQe),["function","python","sh","shell","bash","cmd","powershell","latex","mermaid","graphviz","dot","javascript","html","html5","svg","lilypond"].includes(t.language)?(T(),x("button",{key:0,ref:"btn_code_exec",onClick:e[2]||(e[2]=(...o)=>i.executeCode&&i.executeCode(...o)),title:"execute",class:Le(["px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200",r.isExecuting?"bg-green-500":""])},e[12]||(e[12]=[l("i",{"data-feather":"play-circle"},null,-1)]),2)):B("",!0),["airplay","mermaid","graphviz","dot","javascript","html","html5","svg","css"].includes(t.language.trim())?(T(),x("button",{key:1,ref:"btn_code_exec_in_new_tab",onClick:e[3]||(e[3]=(...o)=>i.executeCode_in_new_tab&&i.executeCode_in_new_tab(...o)),title:"execute",class:Le(["px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200",r.isExecuting?"bg-green-500":""])},e[13]||(e[13]=[l("i",{"data-feather":"airplay"},null,-1)]),2)):B("",!0),l("button",{onClick:e[4]||(e[4]=(...o)=>i.openFolder&&i.openFolder(...o)),title:"open code project folder",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[14]||(e[14]=[l("i",{"data-feather":"folder"},null,-1)])),["python","latex","html"].includes(t.language.trim())?(T(),x("button",{key:2,onClick:e[5]||(e[5]=(...o)=>i.openFolderVsCode&&i.openFolderVsCode(...o)),title:"open code project folder in vscode",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[15]||(e[15]=[l("img",{src:uQe,width:"25",height:"25"},null,-1)]))):B("",!0),["python","latex","html"].includes(t.language.trim())?(T(),x("button",{key:3,onClick:e[6]||(e[6]=(...o)=>i.openVsCode&&i.openVsCode(...o)),title:"open code in vscode",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[16]||(e[16]=[l("img",{src:pQe,width:"25",height:"25"},null,-1)]))):B("",!0)]),r.executionOutput?(T(),x("span",vQe,"Execution output")):B("",!0),r.executionOutput?(T(),x("pre",SQe,[e[19]||(e[19]=Ze(" ")),l("div",TQe,[e[17]||(e[17]=Ze(` - `)),l("div",{ref:"execution_output",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:r.executionOutput},null,8,xQe),e[18]||(e[18]=Ze(` - `))]),e[20]||(e[20]=Ze(` - `))])):B("",!0)])}const wQe=rt(fQe,[["render",CQe]]);var kM={exports:{}};(function(n,e){(function(t,s){n.exports=s()})(LA,function(){function t(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==92)return!1;var u=a.src.slice(++d).match(/^(?:\\\[|\\\(|begin\{([^}]*)\})/);if(!u)return!1;d+=u[0].length;var _,m,h;u[0]==="\\["?(_="display_math",m="\\\\]"):u[0]==="\\("?(_="inline_math",m="\\\\)"):u[1]&&(_="math",m="\\end{"+u[1]+"}",h=!0);var f=a.src.indexOf(m,d);if(f===-1)return!1;var y=f+m.length;if(!c){var b=a.push(_,"",0);b.content=h?a.src.slice(a.pos,y):a.src.slice(d,f)}return a.pos=y,!0}function s(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==36)return!1;var u="$",_=a.src.charCodeAt(++d);if(_===36){if(u="$$",a.src.charCodeAt(++d)===36)return!1}else if(_===32||_===9||_===10)return!1;var m=a.src.indexOf(u,d);if(m===-1||a.src.charCodeAt(m-1)===92)return!1;var h=m+u.length;if(u.length===1){var f=a.src.charCodeAt(m-1);if(f===32||f===9||f===10)return!1;var y=a.src.charCodeAt(h);if(y>=48&&y<58)return!1}if(!c){var b=a.push(u.length===1?"inline_math":"display_math","",0);b.content=a.src.slice(d,m)}return a.pos=h,!0}function r(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const NQe={name:"MarkdownRenderer",props:{host:{type:String,required:!1,default:"http://localhost:9600"},client_id:{type:String,required:!0},markdownText:{type:String,required:!0},discussion_id:{type:[String,Number],default:"0",required:!1},message_id:{value:"0",type:[String,Number],required:!1}},components:{CodeBlock:wQe},setup(n){const e=new mEe({html:!0,highlight:(i,o)=>{const a=o&&uo.getLanguage(o)?o:"plaintext";return uo.highlight(a,i).value},renderInline:!0,breaks:!0}).use(yYe).use(Wo).use(wYe,{figcaption:!0}).use(GYe).use(xYe,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:` -`}).use(AQe({inlineMath:[["$","$"],["\\(","\\)"]],blockMath:[["$$","$$"],["\\[","\\]"]]})),t=ot([]),s=()=>{if(n.markdownText){let i=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:MQe(i[a].info),code:i[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];Fe(()=>{Ve.replace()})},r=(i,o)=>{t.value[i].code=o};return Tn(()=>n.markdownText,s),cr(()=>{s(),Fe(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:t,updateCode:r}}},OQe={class:"break-all container w-full"},IQe={ref:"mdRender",class:"markdown-content"},kQe=["innerHTML"];function DQe(n,e,t,s,r,i){const o=nt("code-block");return T(),x("div",OQe,[l("div",IQe,[(T(!0),x(Be,null,Ke(s.markdownItems,(a,c)=>(T(),x("div",{key:c},[a.type==="code"?(T(),at(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id,client_id:t.client_id,onUpdateCode:d=>s.updateCode(c,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),x("div",{key:1,innerHTML:a.html},null,8,kQe))]))),128))],512)])}const cp=rt(NQe,[["render",DQe]]),LQe={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){Fe(()=>{Ve.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},PQe={class:"flex items-center space-x-2"},FQe=["value","type","placeholder"],UQe=["value","min","max"],BQe=["accept"];function GQe(n,e,t,s,r,i){return T(),x("div",PQe,[n.useSlider?(T(),x("input",{key:1,type:"range",value:parseInt(r.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>i.handleSliderInput&&i.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,UQe)):(T(),x("input",{key:0,value:r.inputValue,type:t.inputType,placeholder:r.placeholderText,onInput:e[0]||(e[0]=(...o)=>i.handleInput&&i.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>i.handlePaste&&i.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,FQe)),l("button",{onClick:e[3]||(e[3]=(...o)=>i.pasteFromClipboard&&i.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[6]||(e[6]=[l("i",{"data-feather":"clipboard"},null,-1)])),t.inputType==="file"?(T(),x("button",{key:2,onClick:e[4]||(e[4]=(...o)=>i.openFileInput&&i.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[7]||(e[7]=[l("i",{"data-feather":"upload"},null,-1)]))):B("",!0),t.inputType==="file"?(T(),x("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>i.handleFileInputChange&&i.handleFileInputChange(...o))},null,40,BQe)):B("",!0)])}const O0=rt(LQe,[["render",GQe]]),VQe={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},zQe={class:"w-full"},HQe={class:"break-words"},qQe={class:"break-words mt-2"},YQe={class:"mt-4"};function $Qe(n,e,t,s,r,i){return T(),x("div",zQe,[l("div",HQe,[(T(!0),x(Be,null,Ke(t.namedTokens,(o,a)=>(T(),x("span",{key:a},[l("span",{class:"inline-block whitespace-pre-wrap",style:Bt({backgroundColor:r.colors[a%r.colors.length]})},Y(o[0]),5)]))),128))]),l("div",qQe,[(T(!0),x(Be,null,Ke(t.namedTokens,(o,a)=>(T(),x("span",{key:a},[l("span",{class:"inline-block px-1 whitespace-pre-wrap",style:Bt({backgroundColor:r.colors[a%r.colors.length]})},Y(o[1]),5)]))),128))]),l("div",YQe,[l("strong",null,"Total Tokens: "+Y(t.namedTokens.length),1)])])}const WQe=rt(VQe,[["render",$Qe]]),KQe={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function jQe(n,e,t,s,r,i){return T(),x("button",CR({class:["p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",[t.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},n.$attrs,Ek(n.$listeners)),[on(n.$slots,"icon"),on(n.$slots,"default")],16)}const DM=rt(KQe,[["render",jQe]]),QQe={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},XQe={key:1,class:"flex flex-wrap"},ZQe={key:2,class:"mb-2"};function JQe(n,e,t,s,r,i){return T(),x("div",null,[r.isActive?(T(),x("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>i.toggleCard&&i.toggleCard(...o))})):B("",!0),k(l("div",{class:Le(["border-blue-300 rounded-lg shadow-lg p-2",i.cardWidthClass,"m-2",{subcard:t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&r.isHovered,active:r.isActive}]),onMouseenter:e[2]||(e[2]=o=>r.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>r.isHovered=!1),onClick:e[4]||(e[4]=$((...o)=>i.toggleCard&&i.toggleCard(...o),["self"])),style:Bt({cursor:this.disableFocus?"":"pointer"})},[t.title?(T(),x("div",{key:0,onClick:e[1]||(e[1]=o=>r.shrink=!0),class:Le([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},Y(t.title),3)):B("",!0),t.isHorizontal?(T(),x("div",XQe,[on(n.$slots,"default")])):(T(),x("div",ZQe,[on(n.$slots,"default")]))],38),[[ht,r.shrink===!1]]),t.is_subcard?k((T(),x("div",{key:1,onClick:e[5]||(e[5]=o=>r.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},Y(t.title),513)),[[ht,r.shrink===!0]]):k((T(),x("div",{key:2,onClick:e[6]||(e[6]=o=>r.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[ht,r.shrink===!0]])])}const dp=rt(QQe,[["render",JQe]]),LM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%203H4c-1.103%200-2%20.897-2%202v14c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V5c0-1.103-.897-2-2-2zM4%2019V7h16l.002%2012H4z'/%3e%3cpath%20d='M9.293%209.293%205.586%2013l3.707%203.707%201.414-1.414L8.414%2013l2.293-2.293zm5.414%200-1.414%201.414L15.586%2013l-2.293%202.293%201.414%201.414L18.414%2013z'/%3e%3c/svg%3e",PM="/assets/python_block-Bt12VGEE.png",FM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20630%20630'%20style='enable-background:new%200%200%20630%20630;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EDBF4A;}%20.st1{fill:%230C0C0C;}%20%3c/style%3e%3crect%20class='st0'%20width='630'%20height='630'/%3e%3cpath%20class='st1'%20d='M423.2,492.2c12.7,20.7,29.2,36,58.4,36c24.5,0,40.2-12.3,40.2-29.2c0-20.3-16.1-27.5-43.1-39.3l-14.8-6.4%20c-42.7-18.2-71.1-41-71.1-89.2c0-44.4,33.8-78.2,86.7-78.2c37.6,0,64.7,13.1,84.2,47.4l-46.1,29.6c-10.1-18.2-21.1-25.4-38.1-25.4%20c-17.3,0-28.3,11-28.3,25.4c0,17.8,11,25,36.4,36l14.8,6.3c50.3,21.6,78.7,43.6,78.7,93c0,53.3-41.9,82.5-98.1,82.5%20c-55,0-90.5-26.2-107.9-60.5L423.2,492.2z%20M214.1,497.3c9.3,16.5,17.8,30.5,38.1,30.5c19.5,0,31.7-7.6,31.7-37.2V289.3h59.2v202.1%20c0,61.3-35.9,89.2-88.4,89.2c-47.4,0-74.9-24.5-88.8-54.1L214.1,497.3z'/%3e%3c/svg%3e",UM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",BM="/assets/cpp_block-kkmuBJ_E.png",GM="/assets/html5_block-beC_-Wtz.png",VM="/assets/LaTeX_block-BNFNi2yr.png",zM="/assets/bash_block-DZNRrwlz.png",eXe="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",tXe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='red'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%20stroke='currentColor'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%20stroke='currentColor'%3e%3c/line%3e%3c/svg%3e",nXe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%3e%3c/line%3e%3c/svg%3e",sXe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20id='heartbeat'%20cx='25'%20cy='25'%20r='20'%20fill='red'%3e%3canimate%20attributeName='r'%20dur='1s'%20repeatCount='indefinite'%20keyTimes='0;0.25;0.5;0.75;1'%20values='20;24;20;22;20'/%3e%3c/circle%3e%3c/svg%3e",rXe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='red'/%3e%3c/svg%3e",HM="data:image/svg+xml,%3csvg%20viewBox='0%200%2050%2050'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(25,25)'%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23f00'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%230f0'%20transform='rotate(90)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.2s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%2300f'%20transform='rotate(180)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.4s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23ff0'%20transform='rotate(270)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.6s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",iXe={props:{icon:{type:String,required:!0},title:{type:String,required:!0}},computed:{iconPath(){return this.getIconPath()}},methods:{getIconPath(){switch(this.icon){case"x":return'';case"check":return'';case"code":return'';case"python":return'';case"js":return'JS';case"typescript":return'TS';case"braces":return'';case"cplusplus":case"c++":return'C++';case"csharp":return'C#';case"go":return'Go';case"r-project":return'R';case"rust":return'';case"swift":return'';case"kotlin":return'';case"java":return'';case"html5":return'';case"css3":return'';case"vuejs":return'';case"react":return'';case"angular":return'';case"xml":return'';case"json":return'';case"yaml":return'';case"markdown":return'';case"latex":return'TEX';case"bash":return'';case"powershell":return'';case"perl":return'';case"mermaid":return'';case"graphviz":return'';case"plantuml":return'';case"sql":return'';case"mongodb":return'';case"mathFunction":return'';case"terminal":return'';case"edit":return'';case"copy":return'';case"send":return'';case"globe":return'';case"fastForward":return'';case"sendSimple":return'';default:return""}}}},oXe=["title"],aXe={class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},lXe=["innerHTML"];function cXe(n,e,t,s,r,i){return T(),x("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:t.title,onClick:e[0]||(e[0]=o=>n.$emit("click"))},[(T(),x("svg",aXe,[l("g",{innerHTML:i.iconPath},null,8,lXe)]))],8,oXe)}const I0=rt(iXe,[["render",cXe]]);var Qn="top",As="bottom",Ms="right",Xn="left",k0="auto",cc=[Qn,As,Ms,Xn],ma="start",Kl="end",dXe="clippingParents",qM="viewport",sl="popper",uXe="reference",zx=cc.reduce(function(n,e){return n.concat([e+"-"+ma,e+"-"+Kl])},[]),YM=[].concat(cc,[k0]).reduce(function(n,e){return n.concat([e,e+"-"+ma,e+"-"+Kl])},[]),pXe="beforeRead",fXe="read",_Xe="afterRead",mXe="beforeMain",hXe="main",gXe="afterMain",bXe="beforeWrite",yXe="write",EXe="afterWrite",vXe=[pXe,fXe,_Xe,mXe,hXe,gXe,bXe,yXe,EXe];function lr(n){return n?(n.nodeName||"").toLowerCase():null}function ls(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function po(n){var e=ls(n).Element;return n instanceof e||n instanceof Element}function xs(n){var e=ls(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function D0(n){if(typeof ShadowRoot>"u")return!1;var e=ls(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function SXe(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var s=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!xs(i)||!lr(i)||(Object.assign(i.style,s),Object.keys(r).forEach(function(o){var a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function TXe(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(s){var r=e.elements[s],i=e.attributes[s]||{},o=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:t[s]),a=o.reduce(function(c,d){return c[d]="",c},{});!xs(r)||!lr(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const xXe={name:"applyStyles",enabled:!0,phase:"write",fn:SXe,effect:TXe,requires:["computeStyles"]};function ir(n){return n.split("-")[0]}var to=Math.max,nu=Math.min,ha=Math.round;function cb(){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 $M(){return!/^((?!chrome|android).)*safari/i.test(cb())}function ga(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var s=n.getBoundingClientRect(),r=1,i=1;e&&xs(n)&&(r=n.offsetWidth>0&&ha(s.width)/n.offsetWidth||1,i=n.offsetHeight>0&&ha(s.height)/n.offsetHeight||1);var o=po(n)?ls(n):window,a=o.visualViewport,c=!$M()&&t,d=(s.left+(c&&a?a.offsetLeft:0))/r,u=(s.top+(c&&a?a.offsetTop:0))/i,_=s.width/r,m=s.height/i;return{width:_,height:m,top:u,right:d+_,bottom:u+m,left:d,x:d,y:u}}function L0(n){var e=ga(n),t=n.offsetWidth,s=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:s}}function WM(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&D0(t)){var s=e;do{if(s&&n.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Pr(n){return ls(n).getComputedStyle(n)}function CXe(n){return["table","td","th"].indexOf(lr(n))>=0}function Mi(n){return((po(n)?n.ownerDocument:n.document)||window.document).documentElement}function up(n){return lr(n)==="html"?n:n.assignedSlot||n.parentNode||(D0(n)?n.host:null)||Mi(n)}function Hx(n){return!xs(n)||Pr(n).position==="fixed"?null:n.offsetParent}function wXe(n){var e=/firefox/i.test(cb()),t=/Trident/i.test(cb());if(t&&xs(n)){var s=Pr(n);if(s.position==="fixed")return null}var r=up(n);for(D0(r)&&(r=r.host);xs(r)&&["html","body"].indexOf(lr(r))<0;){var i=Pr(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function dc(n){for(var e=ls(n),t=Hx(n);t&&CXe(t)&&Pr(t).position==="static";)t=Hx(t);return t&&(lr(t)==="html"||lr(t)==="body"&&Pr(t).position==="static")?e:t||wXe(n)||e}function P0(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function wl(n,e,t){return to(n,nu(e,t))}function RXe(n,e,t){var s=wl(n,e,t);return s>t?t:s}function KM(){return{top:0,right:0,bottom:0,left:0}}function jM(n){return Object.assign({},KM(),n)}function QM(n,e){return e.reduce(function(t,s){return t[s]=n,t},{})}var AXe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,jM(typeof e!="number"?e:QM(e,cc))};function MXe(n){var e,t=n.state,s=n.name,r=n.options,i=t.elements.arrow,o=t.modifiersData.popperOffsets,a=ir(t.placement),c=P0(a),d=[Xn,Ms].indexOf(a)>=0,u=d?"height":"width";if(!(!i||!o)){var _=AXe(r.padding,t),m=L0(i),h=c==="y"?Qn:Xn,f=c==="y"?As:Ms,y=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],b=o[c]-t.rects.reference[c],g=dc(i),E=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,v=y/2-b/2,S=_[h],R=E-m[u]-_[f],w=E/2-m[u]/2+v,A=wl(S,w,R),I=c;t.modifiersData[s]=(e={},e[I]=A,e.centerOffset=A-w,e)}}function NXe(n){var e=n.state,t=n.options,s=t.element,r=s===void 0?"[data-popper-arrow]":s;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||WM(e.elements.popper,r)&&(e.elements.arrow=r))}const OXe={name:"arrow",enabled:!0,phase:"main",fn:MXe,effect:NXe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ba(n){return n.split("-")[1]}var IXe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kXe(n,e){var t=n.x,s=n.y,r=e.devicePixelRatio||1;return{x:ha(t*r)/r||0,y:ha(s*r)/r||0}}function qx(n){var e,t=n.popper,s=n.popperRect,r=n.placement,i=n.variation,o=n.offsets,a=n.position,c=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,_=n.isFixed,m=o.x,h=m===void 0?0:m,f=o.y,y=f===void 0?0:f,b=typeof u=="function"?u({x:h,y}):{x:h,y};h=b.x,y=b.y;var g=o.hasOwnProperty("x"),E=o.hasOwnProperty("y"),v=Xn,S=Qn,R=window;if(d){var w=dc(t),A="clientHeight",I="clientWidth";if(w===ls(t)&&(w=Mi(t),Pr(w).position!=="static"&&a==="absolute"&&(A="scrollHeight",I="scrollWidth")),w=w,r===Qn||(r===Xn||r===Ms)&&i===Kl){S=As;var C=_&&w===R&&R.visualViewport?R.visualViewport.height:w[A];y-=C-s.height,y*=c?1:-1}if(r===Xn||(r===Qn||r===As)&&i===Kl){v=Ms;var M=_&&w===R&&R.visualViewport?R.visualViewport.width:w[I];h-=M-s.width,h*=c?1:-1}}var G=Object.assign({position:a},d&&IXe),V=u===!0?kXe({x:h,y},ls(t)):{x:h,y};if(h=V.x,y=V.y,c){var ee;return Object.assign({},G,(ee={},ee[S]=E?"0":"",ee[v]=g?"0":"",ee.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",ee))}return Object.assign({},G,(e={},e[S]=E?y+"px":"",e[v]=g?h+"px":"",e.transform="",e))}function DXe(n){var e=n.state,t=n.options,s=t.gpuAcceleration,r=s===void 0?!0:s,i=t.adaptive,o=i===void 0?!0:i,a=t.roundOffsets,c=a===void 0?!0:a,d={placement:ir(e.placement),variation:ba(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qx(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qx(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const LXe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:DXe,data:{}};var Pc={passive:!0};function PXe(n){var e=n.state,t=n.instance,s=n.options,r=s.scroll,i=r===void 0?!0:r,o=s.resize,a=o===void 0?!0:o,c=ls(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",t.update,Pc)}),a&&c.addEventListener("resize",t.update,Pc),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",t.update,Pc)}),a&&c.removeEventListener("resize",t.update,Pc)}}const FXe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:PXe,data:{}};var UXe={left:"right",right:"left",bottom:"top",top:"bottom"};function Od(n){return n.replace(/left|right|bottom|top/g,function(e){return UXe[e]})}var BXe={start:"end",end:"start"};function Yx(n){return n.replace(/start|end/g,function(e){return BXe[e]})}function F0(n){var e=ls(n),t=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:t,scrollTop:s}}function U0(n){return ga(Mi(n)).left+F0(n).scrollLeft}function GXe(n,e){var t=ls(n),s=Mi(n),r=t.visualViewport,i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;var d=$M();(d||!d&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a+U0(n),y:c}}function VXe(n){var e,t=Mi(n),s=F0(n),r=(e=n.ownerDocument)==null?void 0:e.body,i=to(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=to(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-s.scrollLeft+U0(n),c=-s.scrollTop;return Pr(r||t).direction==="rtl"&&(a+=to(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:c}}function B0(n){var e=Pr(n),t=e.overflow,s=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+s)}function XM(n){return["html","body","#document"].indexOf(lr(n))>=0?n.ownerDocument.body:xs(n)&&B0(n)?n:XM(up(n))}function Rl(n,e){var t;e===void 0&&(e=[]);var s=XM(n),r=s===((t=n.ownerDocument)==null?void 0:t.body),i=ls(s),o=r?[i].concat(i.visualViewport||[],B0(s)?s:[]):s,a=e.concat(o);return r?a:a.concat(Rl(up(o)))}function db(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function zXe(n,e){var t=ga(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 $x(n,e,t){return e===qM?db(GXe(n,t)):po(e)?zXe(e,t):db(VXe(Mi(n)))}function HXe(n){var e=Rl(up(n)),t=["absolute","fixed"].indexOf(Pr(n).position)>=0,s=t&&xs(n)?dc(n):n;return po(s)?e.filter(function(r){return po(r)&&WM(r,s)&&lr(r)!=="body"}):[]}function qXe(n,e,t,s){var r=e==="clippingParents"?HXe(n):[].concat(e),i=[].concat(r,[t]),o=i[0],a=i.reduce(function(c,d){var u=$x(n,d,s);return c.top=to(u.top,c.top),c.right=nu(u.right,c.right),c.bottom=nu(u.bottom,c.bottom),c.left=to(u.left,c.left),c},$x(n,o,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ZM(n){var e=n.reference,t=n.element,s=n.placement,r=s?ir(s):null,i=s?ba(s):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(r){case Qn:c={x:o,y:e.y-t.height};break;case As:c={x:o,y:e.y+e.height};break;case Ms:c={x:e.x+e.width,y:a};break;case Xn:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var d=r?P0(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case ma:c[d]=c[d]-(e[u]/2-t[u]/2);break;case Kl:c[d]=c[d]+(e[u]/2-t[u]/2);break}}return c}function jl(n,e){e===void 0&&(e={});var t=e,s=t.placement,r=s===void 0?n.placement:s,i=t.strategy,o=i===void 0?n.strategy:i,a=t.boundary,c=a===void 0?dXe:a,d=t.rootBoundary,u=d===void 0?qM:d,_=t.elementContext,m=_===void 0?sl:_,h=t.altBoundary,f=h===void 0?!1:h,y=t.padding,b=y===void 0?0:y,g=jM(typeof b!="number"?b:QM(b,cc)),E=m===sl?uXe:sl,v=n.rects.popper,S=n.elements[f?E:m],R=qXe(po(S)?S:S.contextElement||Mi(n.elements.popper),c,u,o),w=ga(n.elements.reference),A=ZM({reference:w,element:v,strategy:"absolute",placement:r}),I=db(Object.assign({},v,A)),C=m===sl?I:w,M={top:R.top-C.top+g.top,bottom:C.bottom-R.bottom+g.bottom,left:R.left-C.left+g.left,right:C.right-R.right+g.right},G=n.modifiersData.offset;if(m===sl&&G){var V=G[r];Object.keys(M).forEach(function(ee){var O=[Ms,As].indexOf(ee)>=0?1:-1,H=[Qn,As].indexOf(ee)>=0?"y":"x";M[ee]+=V[H]*O})}return M}function YXe(n,e){e===void 0&&(e={});var t=e,s=t.placement,r=t.boundary,i=t.rootBoundary,o=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?YM:c,u=ba(s),_=u?a?zx:zx.filter(function(f){return ba(f)===u}):cc,m=_.filter(function(f){return d.indexOf(f)>=0});m.length===0&&(m=_);var h=m.reduce(function(f,y){return f[y]=jl(n,{placement:y,boundary:r,rootBoundary:i,padding:o})[ir(y)],f},{});return Object.keys(h).sort(function(f,y){return h[f]-h[y]})}function $Xe(n){if(ir(n)===k0)return[];var e=Od(n);return[Yx(n),e,Yx(e)]}function WXe(n){var e=n.state,t=n.options,s=n.name;if(!e.modifiersData[s]._skip){for(var r=t.mainAxis,i=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!0:o,c=t.fallbackPlacements,d=t.padding,u=t.boundary,_=t.rootBoundary,m=t.altBoundary,h=t.flipVariations,f=h===void 0?!0:h,y=t.allowedAutoPlacements,b=e.options.placement,g=ir(b),E=g===b,v=c||(E||!f?[Od(b)]:$Xe(b)),S=[b].concat(v).reduce(function(ve,Oe){return ve.concat(ir(Oe)===k0?YXe(e,{placement:Oe,boundary:u,rootBoundary:_,padding:d,flipVariations:f,allowedAutoPlacements:y}):Oe)},[]),R=e.rects.reference,w=e.rects.popper,A=new Map,I=!0,C=S[0],M=0;M=0,H=O?"width":"height",q=jl(e,{placement:G,boundary:u,rootBoundary:_,altBoundary:m,padding:d}),L=O?ee?Ms:Xn:ee?As:Qn;R[H]>w[H]&&(L=Od(L));var W=Od(L),se=[];if(i&&se.push(q[V]<=0),a&&se.push(q[L]<=0,q[W]<=0),se.every(function(ve){return ve})){C=G,I=!1;break}A.set(G,se)}if(I)for(var oe=f?3:1,ye=function(Oe){var De=S.find(function(Q){var fe=A.get(Q);if(fe)return fe.slice(0,Oe).every(function(_e){return _e})});if(De)return C=De,"break"},xe=oe;xe>0;xe--){var ce=ye(xe);if(ce==="break")break}e.placement!==C&&(e.modifiersData[s]._skip=!0,e.placement=C,e.reset=!0)}}const KXe={name:"flip",enabled:!0,phase:"main",fn:WXe,requiresIfExists:["offset"],data:{_skip:!1}};function Wx(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 Kx(n){return[Qn,Ms,As,Xn].some(function(e){return n[e]>=0})}function jXe(n){var e=n.state,t=n.name,s=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,o=jl(e,{elementContext:"reference"}),a=jl(e,{altBoundary:!0}),c=Wx(o,s),d=Wx(a,r,i),u=Kx(c),_=Kx(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":_})}const QXe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jXe};function XXe(n,e,t){var s=ir(n),r=[Xn,Qn].indexOf(s)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=i[0],a=i[1];return o=o||0,a=(a||0)*r,[Xn,Ms].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function ZXe(n){var e=n.state,t=n.options,s=n.name,r=t.offset,i=r===void 0?[0,0]:r,o=YM.reduce(function(u,_){return u[_]=XXe(_,e.rects,i),u},{}),a=o[e.placement],c=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[s]=o}const JXe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZXe};function eZe(n){var e=n.state,t=n.name;e.modifiersData[t]=ZM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const tZe={name:"popperOffsets",enabled:!0,phase:"read",fn:eZe,data:{}};function nZe(n){return n==="x"?"y":"x"}function sZe(n){var e=n.state,t=n.options,s=n.name,r=t.mainAxis,i=r===void 0?!0:r,o=t.altAxis,a=o===void 0?!1:o,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,_=t.padding,m=t.tether,h=m===void 0?!0:m,f=t.tetherOffset,y=f===void 0?0:f,b=jl(e,{boundary:c,rootBoundary:d,padding:_,altBoundary:u}),g=ir(e.placement),E=ba(e.placement),v=!E,S=P0(g),R=nZe(S),w=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,C=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,M=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),G=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(w){if(i){var ee,O=S==="y"?Qn:Xn,H=S==="y"?As:Ms,q=S==="y"?"height":"width",L=w[S],W=L+b[O],se=L-b[H],oe=h?-I[q]/2:0,ye=E===ma?A[q]:I[q],xe=E===ma?-I[q]:-A[q],ce=e.elements.arrow,ve=h&&ce?L0(ce):{width:0,height:0},Oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:KM(),De=Oe[O],Q=Oe[H],fe=wl(0,A[q],ve[q]),_e=v?A[q]/2-oe-fe-De-M.mainAxis:ye-fe-De-M.mainAxis,Ae=v?-A[q]/2+oe+fe+Q+M.mainAxis:xe+fe+Q+M.mainAxis,Ue=e.elements.arrow&&dc(e.elements.arrow),te=Ue?S==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,U=(ee=G==null?void 0:G[S])!=null?ee:0,P=L+_e-U-te,Z=L+Ae-U,de=wl(h?nu(W,P):W,L,h?to(se,Z):se);w[S]=de,V[S]=de-L}if(a){var pe,he=S==="x"?Qn:Xn,le=S==="x"?As:Ms,Me=w[R],Re=R==="y"?"height":"width",ge=Me+b[he],D=Me-b[le],N=[Qn,Xn].indexOf(g)!==-1,K=(pe=G==null?void 0:G[R])!=null?pe:0,me=N?ge:Me-A[Re]-I[Re]-K+M.altAxis,j=N?Me+A[Re]+I[Re]-K-M.altAxis:D,re=h&&N?RXe(me,Me,j):wl(h?me:ge,Me,h?j:D);w[R]=re,V[R]=re-Me}e.modifiersData[s]=V}}const rZe={name:"preventOverflow",enabled:!0,phase:"main",fn:sZe,requiresIfExists:["offset"]};function iZe(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function oZe(n){return n===ls(n)||!xs(n)?F0(n):iZe(n)}function aZe(n){var e=n.getBoundingClientRect(),t=ha(e.width)/n.offsetWidth||1,s=ha(e.height)/n.offsetHeight||1;return t!==1||s!==1}function lZe(n,e,t){t===void 0&&(t=!1);var s=xs(e),r=xs(e)&&aZe(e),i=Mi(e),o=ga(n,r,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!t)&&((lr(e)!=="body"||B0(i))&&(a=oZe(e)),xs(e)?(c=ga(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=U0(i))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function cZe(n){var e=new Map,t=new Set,s=[];n.forEach(function(i){e.set(i.name,i)});function r(i){t.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&r(c)}}),s.push(i)}return n.forEach(function(i){t.has(i.name)||r(i)}),s}function dZe(n){var e=cZe(n);return vXe.reduce(function(t,s){return t.concat(e.filter(function(r){return r.phase===s}))},[])}function uZe(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function pZe(n){var e=n.reduce(function(t,s){var r=t[s.name];return t[s.name]=r?Object.assign({},r,s,{options:Object.assign({},r.options,s.options),data:Object.assign({},r.data,s.data)}):s,t},{});return Object.keys(e).map(function(t){return e[t]})}var jx={placement:"bottom",modifiers:[],strategy:"absolute"};function Qx(){for(var n=arguments.length,e=new Array(n),t=0;t{this.createPopper()})},closeMenu(n){var e;!this.$el.contains(n.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(n.target))&&(this.isOpen=!1)},createPopper(){const n=this.$el.querySelector("button"),e=this.$refs.dropdown;n&&e&&(this.popperInstance=pp(n,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},hZe={class:"relative inline-block text-left"},gZe={key:0,ref:"dropdown",class:"z-50 w-56 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 dark:ring-white dark:ring-opacity-20 focus:outline-none dropdown-shadow text-gray-700 dark:text-white"},bZe={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function yZe(n,e,t,s,r,i){const o=nt("ToolbarButton");return T(),x("div",hZe,[l("div",null,[z(o,{onClick:$(i.toggleMenu,["stop"]),title:t.title,icon:"code"},null,8,["onClick","title"])]),(T(),at(ok,{to:"body"},[r.isOpen?(T(),x("div",gZe,[l("div",bZe,[on(n.$slots,"default",{},void 0,!0)])],512)):B("",!0)]))])}const JM=rt(mZe,[["render",yZe],["__scopeId","data-v-6c3ea3a5"]]);async function Xx(n,e="",t=[]){return new Promise((s,r)=>{const i=document.createElement("div");i.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?i.innerHTML=` -
-

${n}

- -
- - -
-
- `:i.innerHTML=` -
-

${n}

- -
- - -
-
- `,document.body.appendChild(i);const o=i.querySelector("#cancelButton"),a=i.querySelector("#okButton");o.addEventListener("click",()=>{document.body.removeChild(i),s(null)}),a.addEventListener("click",()=>{if(t.length===0){const d=i.querySelector("#replacementInput").value.trim();document.body.removeChild(i),s(d)}else{const d=i.querySelector("#options_selector").value.trim();document.body.removeChild(i),s(d)}})})}function EZe(n,e){console.log(n);let t={},s=/@<([^>]+)>@/g,r=[],i;for(;(i=s.exec(n))!==null;)r.push("@<"+i[1]+">@");console.log("matches"),console.log(r),r=[...new Set(r)];async function o(c){console.log(c);let d=c.toLowerCase().substring(2,c.length-2);if(d!=="generation_placeholder")if(d.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([b,g])=>{console.log(`Key: ${b}, Value: ${g}`);function E(R){return R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const v=E(b),S=new RegExp(v,"g");d=d.replace(S,g)});let _=d.split(":"),m=_[0],h=_[1]||"",f=[];_.length>2&&(f=_.slice(1));let y=await Xx(m,h,f);y!==null&&(t[c]=y)}else{let u=await Xx(d);u!==null&&(t[c]=u)}}let a=Promise.resolve();r.forEach(c=>{a=a.then(()=>o(c)).then(d=>{console.log(d)})}),a.then(()=>{Object.entries(t).forEach(([c,d])=>{console.log(`Key: ${c}, Value: ${d}`);function u(h){return h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _=u(c),m=new RegExp(_,"g");n=n.replace(m,d)}),e(n)})}const vZe={name:"PlayGroundView",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},showSettings:!1,pending:!1,is_recording:!1,is_deaf_transcribing:!1,cpp_block:BM,html5_block:GM,LaTeX_block:VM,javascript_block:FM,json_block:UM,code_block:LM,python_block:PM,bash_block:zM,tokenize_icon:eXe,deaf_off:nXe,deaf_on:tXe,rec_off:rXe,rec_on:sXe,loading_icon:HM,isSynthesizingVoice:!1,audio_url:null,mdRenderHeight:300,selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,namedTokens:[],text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:Xu,MarkdownRenderer:cp,ClipBoardTextInput:O0,TokensHilighter:WQe,ChatBarButton:DM,Card:dp,ToolbarButton:I0,DropdownMenu:JM},mounted(){ne.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}),Ye.on("text_chunk",n=>{this.appendToOutput(n.chunk)}),Ye.on("text_generated",n=>{this.generating=!1}),Ye.on("generation_error",n=>{console.log("generation_error:",n),this.$refs.toast.showToast(`Error: ${n}`,4,!1),this.generating=!1}),Ye.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),Ye.on("buzzy",n=>{console.error("Server is busy. Wait for your turn",n),this.$refs.toast.showToast(`Error: ${n.message}`,4,!1),this.generating=!1}),Ye.on("generation_canceled",n=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{Ve.replace()}),"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser.")},created(){},watch:{audio_url(n){n&&(console.log("Audio changed url to :",n),this.$refs.audio_player.src=n)}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{triggerFileUpload(){this.$refs.fileInput.click()},handleFileUpload(n){this.file=this.$refs.fileInput.files[0],this.buttonText=this.file.name,this.uploadFile()},uploadFile(){console.log("sending file");const n=new FormData;n.append("file",this.file),ne.post("/upload_voice/",n,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{console.log(e),this.buttonText="Upload a voice"}).catch(e=>{console.error(e)})},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.text[e-1]==` -`?(this.text=this.text.slice(0,e)+"```"+n+"\n\n```\n"+this.text.slice(e),e=e+4+n.length):(this.text=this.text.slice(0,e)+"\n```"+n+"\n\n```\n"+this.text.slice(e),e=e+3+n.length):speechSynthesis==0||this.text[e-1]==` -`?(this.text=this.text.slice(0,e)+"```"+n+` -`+this.text.slice(e,t)+"\n```\n"+this.text.slice(t),e=e+4+n.length):(this.text=this.text.slice(0,e)+"\n```"+n+` -`+this.text.slice(e,t)+"\n```\n"+this.text.slice(t),e=e+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},insertTab(n){const e=n.target,t=e.selectionStart,s=e.selectionEnd,r=e.value.substring(0,t),i=e.value.substring(s),o=r+" "+i;this.text=o,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4}),n.preventDefault()},mdTextarea_changed(){console.log("mdTextarea_changed"),this.cursorPosition=this.$refs.mdTextarea.selectionStart},mdTextarea_clicked(){console.log(`mdTextarea_clicked: ${this.$refs.mdTextarea.selectionStart}`),this.cursorPosition=this.$refs.mdTextarea.selectionStart},setModel(){this.selecting_model=!0,ne.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:this.selectedModel}).then(n=>{console.log(n),n.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(n=>{this.$refs.toast.showToast(`Error ${n}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){console.log("READING..."),this.isSynthesizingVoice=!0;let n=this.$refs.mdTextarea.selectionStart,e=this.$refs.mdTextarea.selectionEnd,t=this.text;n!=e&&(t=t.slice(n,e)),ne.post("./text2Wave",{client_id:this.$store.state.client_id,text:t}).then(s=>{console.log(s.data.url);let r=s.data.url;this.audio_url=r,this.isSynthesizingVoice=!1,Fe(()=>{Ve.replace()})}).catch(s=>{this.$refs.toast.showToast(`Error: ${s}`,4,!1),this.isSynthesizingVoice=!1,Fe(()=>{Ve.replace()})})},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(r=>r.name===this.$store.state.config.audio_out_voice)[0]);const t=r=>{let i=this.text.substring(r,r+e);const o=[".","!","?",` -`];let a=-1;return o.forEach(c=>{const d=i.lastIndexOf(c);d>a&&(a=d)}),a==-1&&(a=i.length),console.log(a),a+r+1},s=()=>{const r=t(n),i=this.text.substring(n,r);this.msg.text=i,n=r+1,this.msg.onend=o=>{n{s()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",r))},this.speechSynthesis.speak(this.msg)};s()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(n){this.pre_text+=n,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let n=this.text.indexOf("@@");if(n<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,n)+this.text.substring(n+26,this.text.length),this.pre_text=this.text.substring(0,n),this.post_text=this.text.substring(n,this.text.length);var e=this.text.substring(0,n);console.log(e),Ye.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const n=await ne.post("/lollms_tokenize",{prompt:this.text},{headers:this.posts_headers});console.log(n.data.named_tokens),this.namedTokens=n.data.named_tokens},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var n=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${n}`),Ye.emit("generate_text",{prompt:n,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){Ye.emit("cancel_text_generation",{})},exportText(){const n=this.text,e=document.createElement("a"),t=new Blob([n],{type:"text/plain"});e.href=URL.createObjectURL(t),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const n=document.getElementById("import-input");n&&(n.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const t=new FileReader;t.onload=()=>{this.text=t.result},t.readAsText(e.target.files[0])}else alert("Please select a file.")}),n.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=EZe(this.selectedPreset.content,n=>{console.log("Done"),console.log(n),this.text=n})},addPreset(){let n=prompt("Enter the title of the preset:");this.presets[n]={client_id:this.$store.state.client_id,name:n,content:this.text},ne.post("./add_preset",this.presets[n]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){ne.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?ne.post("/stop_recording",{client_id:this.$store.state.client_id}).then(n=>{this.is_recording=!1,this.pending=!1,console.log(n),this.text+=n.data,console.log("text"),console.log(this.text),console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):ne.post("/start_recording",{client_id:this.$store.state.client_id}).then(n=>{this.is_recording=!0,this.pending=!1,console.log(n.data)}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?ne.get("/stop_recording").then(n=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=n.data.text,this.read()}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):ne.get("/start_recording").then(n=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=n=>{this.generated="";for(let e=n.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},SZe={class:"container w-full background-color shadow-lg overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},TZe={class:"container flex flex-row m-2 w-full"},xZe={class:"flex-grow w-full m-2"},CZe={class:"flex panels-color gap-3 flex-1 items-center flex-grow flex-row rounded-md border-2 border-blue-300 m-2 p-4"},wZe={class:"flex items-center space-x-2"},RZe=["src"],AZe=["src"],MZe=["src"],NZe=["src"],OZe=["src"],IZe={key:1,class:"w-6 h-6"},kZe={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},DZe={key:0},LZe=["src"],PZe={key:2},FZe={key:0,class:"settings scrollbar bg-white dark:bg-gray-800 rounded-lg shadow-md p-6"},UZe=["value"],BZe={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},GZe=["value"],VZe={class:"slider-container ml-2 mr-2"},zZe={class:"slider-value text-gray-500"},HZe={class:"slider-container ml-2 mr-2"},qZe={class:"slider-value text-gray-500"},YZe={class:"slider-container ml-2 mr-2"},$Ze={class:"slider-value text-gray-500"},WZe={class:"slider-container ml-2 mr-2"},KZe={class:"slider-value text-gray-500"},jZe={class:"slider-container ml-2 mr-2"},QZe={class:"slider-value text-gray-500"},XZe={class:"slider-container ml-2 mr-2"},ZZe={class:"slider-value text-gray-500"},JZe={class:"slider-container ml-2 mr-2"},eJe={class:"slider-value text-gray-500"},tJe={class:"slider-container ml-2 mr-2"},nJe={class:"slider-value text-gray-500"};function sJe(n,e,t,s,r,i){const o=nt("ChatBarButton"),a=nt("ToolbarButton"),c=nt("DropdownSubmenu"),d=nt("DropdownMenu"),u=nt("tokens-hilighter"),_=nt("MarkdownRenderer"),m=nt("Card"),h=nt("Toast");return T(),x(Be,null,[l("div",SZe,[l("div",TZe,[l("div",xZe,[l("div",CZe,[l("div",wZe,[k(z(o,{onClick:i.generate,title:"Generate from the current cursor position"},{icon:Ie(()=>e[54]||(e[54]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)])),_:1},8,["onClick"]),[[ht,!r.generating]]),k(z(o,{onClick:i.generate_in_placeholder,title:"Generate from the next placeholder"},{icon:Ie(()=>e[55]||(e[55]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})],-1)])),_:1},8,["onClick"]),[[ht,!r.generating]]),k(z(o,{onClick:i.tokenize_text,title:"Tokenize the text"},{icon:Ie(()=>[l("img",{src:r.tokenize_icon,alt:"Tokenize",class:"h-5 w-5"},null,8,RZe)]),_:1},8,["onClick"]),[[ht,!r.generating]]),e[65]||(e[65]=l("span",{class:"w-80"},null,-1)),k(z(o,{onClick:i.stopGeneration,title:"Stop generation"},{icon:Ie(()=>e[56]||(e[56]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])),_:1},8,["onClick"]),[[ht,r.generating]]),z(o,{onClick:i.startSpeechRecognition,class:Le({"text-red-500":n.isListeningToVoice}),title:"Dictate (using your browser's transcription)"},{icon:Ie(()=>e[57]||(e[57]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),z(o,{onClick:i.speak,class:Le({"text-red-500":i.isTalking}),title:"Convert text to audio (not saved, uses your browser's TTS service)"},{icon:Ie(()=>e[58]||(e[58]=[Ze(" 🪶 ")])),_:1},8,["onClick","class"]),z(o,{onClick:i.triggerFileUpload,title:"Upload a voice"},{icon:Ie(()=>e[59]||(e[59]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.startRecordingAndTranscribing,class:Le({"text-green-500":r.isLesteningToVoice}),title:"Start audio to audio"},{icon:Ie(()=>[r.pending?(T(),x("img",{key:1,src:r.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,MZe)):(T(),x("img",{key:0,src:r.is_deaf_transcribing?r.deaf_on:r.deaf_off,alt:"Deaf",class:"h-5 w-5"},null,8,AZe))]),_:1},8,["onClick","class"]),z(o,{onClick:i.startRecording,class:Le({"text-green-500":r.isLesteningToVoice}),title:"Start audio recording"},{icon:Ie(()=>[r.pending?(T(),x("img",{key:1,src:r.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,OZe)):(T(),x("img",{key:0,src:r.is_recording?r.rec_on:r.rec_off,alt:"Record",class:"h-5 w-5"},null,8,NZe))]),_:1},8,["onClick","class"]),r.isSynthesizingVoice?(T(),x("div",IZe,e[61]||(e[61]=[l("svg",{class:"animate-spin h-5 w-5 text-secondary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))):(T(),at(o,{key:0,onClick:i.read,title:"Generate audio from text"},{icon:Ie(()=>e[60]||(e[60]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick"])),k(z(o,{onClick:i.exportText,title:"Export text"},{icon:Ie(()=>e[62]||(e[62]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1)])),_:1},8,["onClick"]),[[ht,!r.generating]]),k(z(o,{onClick:i.importText,title:"Import text"},{icon:Ie(()=>e[63]||(e[63]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),_:1},8,["onClick"]),[[ht,!r.generating]]),z(o,{onClick:e[0]||(e[0]=f=>r.showSettings=!r.showSettings),title:"Settings"},{icon:Ie(()=>e[64]||(e[64]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1})]),l("input",{type:"file",ref:"fileInput",onChange:e[1]||(e[1]=(...f)=>i.handleFileUpload&&i.handleFileUpload(...f)),style:{display:"none"},accept:".wav"},null,544),l("div",kZe,[l("button",{class:Le(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":r.tab_id=="source"}]),onClick:e[2]||(e[2]=f=>r.tab_id="source")}," Source ",2),l("button",{class:Le(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":r.tab_id=="render"}]),onClick:e[3]||(e[3]=f=>r.tab_id="render")}," Render ",2)]),e[66]||(e[66]=l("input",{type:"file",id:"import-input",class:"hidden"},null,-1))]),l("div",{class:Le(["flex-grow m-2 p-2 border panels-color border-blue-300 rounded-md",{"border-red-500":r.generating}])},[r.tab_id==="source"?(T(),x("div",DZe,[z(d,{title:"Add Block"},{default:Ie(()=>[z(c,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[z(a,{onClick:e[4]||(e[4]=$(f=>i.addBlock("python"),["stop"])),title:"Python",icon:"python"}),z(a,{onClick:e[5]||(e[5]=$(f=>i.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),z(a,{onClick:e[6]||(e[6]=$(f=>i.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),z(a,{onClick:e[7]||(e[7]=$(f=>i.addBlock("java"),["stop"])),title:"Java",icon:"java"}),z(a,{onClick:e[8]||(e[8]=$(f=>i.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),z(a,{onClick:e[9]||(e[9]=$(f=>i.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),z(a,{onClick:e[10]||(e[10]=$(f=>i.addBlock("go"),["stop"])),title:"Go",icon:"go"}),z(a,{onClick:e[11]||(e[11]=$(f=>i.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),z(a,{onClick:e[12]||(e[12]=$(f=>i.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),z(a,{onClick:e[13]||(e[13]=$(f=>i.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),z(a,{onClick:e[14]||(e[14]=$(f=>i.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),z(c,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[z(a,{onClick:e[15]||(e[15]=$(f=>i.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),z(a,{onClick:e[16]||(e[16]=$(f=>i.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),z(a,{onClick:e[17]||(e[17]=$(f=>i.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),z(a,{onClick:e[18]||(e[18]=$(f=>i.addBlock("react"),["stop"])),title:"React",icon:"react"}),z(a,{onClick:e[19]||(e[19]=$(f=>i.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),z(c,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[z(a,{onClick:e[20]||(e[20]=$(f=>i.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),z(a,{onClick:e[21]||(e[21]=$(f=>i.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),z(a,{onClick:e[22]||(e[22]=$(f=>i.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),z(a,{onClick:e[23]||(e[23]=$(f=>i.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),z(a,{onClick:e[24]||(e[24]=$(f=>i.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),z(c,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[z(a,{onClick:e[25]||(e[25]=$(f=>i.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),z(a,{onClick:e[26]||(e[26]=$(f=>i.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),z(a,{onClick:e[27]||(e[27]=$(f=>i.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),z(c,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[z(a,{onClick:e[28]||(e[28]=$(f=>i.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),z(a,{onClick:e[29]||(e[29]=$(f=>i.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),z(a,{onClick:e[30]||(e[30]=$(f=>i.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),z(c,{title:"Database",icon:"database"},{default:Ie(()=>[z(a,{onClick:e[31]||(e[31]=$(f=>i.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),z(a,{onClick:e[32]||(e[32]=$(f=>i.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),z(a,{onClick:e[33]||(e[33]=$(f=>i.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1}),z(a,{onClick:e[34]||(e[34]=$(f=>n.copyContentToClipboard(),["stop"])),title:"Copy message to clipboard",icon:"copy"}),k(l("textarea",{ref:"mdTextarea",onKeydown:e[35]||(e[35]=ws($((...f)=>i.insertTab&&i.insertTab(...f),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,style:Bt({minHeight:r.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[36]||(e[36]=f=>r.text=f),onClick:e[37]||(e[37]=$((...f)=>i.mdTextarea_clicked&&i.mdTextarea_clicked(...f),["prevent"])),onChange:e[38]||(e[38]=$((...f)=>i.mdTextarea_changed&&i.mdTextarea_changed(...f),["prevent"]))}," ",36),[[ae,r.text]]),l("span",null,"Cursor position "+Y(r.cursorPosition),1)])):B("",!0),r.audio_url!=null?(T(),x("audio",{controls:"",key:r.audio_url},[l("source",{src:r.audio_url,type:"audio/wav",ref:"audio_player"},null,8,LZe),e[67]||(e[67]=Ze(" Your browser does not support the audio element. "))])):B("",!0),z(u,{namedTokens:r.namedTokens},null,8,["namedTokens"]),r.tab_id==="render"?(T(),x("div",PZe,[z(_,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":r.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):B("",!0)],2)]),r.showSettings?(T(),x("div",FZe,[e[82]||(e[82]=l("h2",{class:"text-2xl font-bold text-gray-900 dark:text-white mb-4"},"Settings",-1)),z(m,{title:"Model",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[k(l("select",{"onUpdate:modelValue":e[39]||(e[39]=f=>this.$store.state.selectedModel=f),onChange:e[40]||(e[40]=(...f)=>i.setModel&&i.setModel(...f)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),x(Be,null,Ke(i.models,f=>(T(),x("option",{key:f,value:f},Y(f),9,UZe))),128))],544),[[Ot,this.$store.state.selectedModel]]),r.selecting_model?(T(),x("div",BZe,e[68]||(e[68]=[l("div",{role:"status"},[l("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"},[l("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"}),l("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"})]),l("span",{class:"sr-only"},"Selecting model...")],-1)]))):B("",!0)]),_:1}),z(m,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[k(l("select",{"onUpdate:modelValue":e[41]||(e[41]=f=>r.selectedPreset=f),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(T(!0),x(Be,null,Ke(r.presets,f=>(T(),x("option",{key:f,value:f},Y(f.name),9,GZe))),128))],512),[[Ot,r.selectedPreset]]),e[73]||(e[73]=l("br",null,null,-1)),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[42]||(e[42]=(...f)=>i.setPreset&&i.setPreset(...f)),title:"Use preset"},e[69]||(e[69]=[l("i",{"data-feather":"check"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[43]||(e[43]=(...f)=>i.addPreset&&i.addPreset(...f)),title:"Add this text as a preset"},e[70]||(e[70]=[l("i",{"data-feather":"plus"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[44]||(e[44]=(...f)=>i.removePreset&&i.removePreset(...f)),title:"Remove preset"},e[71]||(e[71]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[45]||(e[45]=(...f)=>i.reloadPresets&&i.reloadPresets(...f)),title:"Reload presets list"},e[72]||(e[72]=[l("i",{"data-feather":"refresh-ccw"},null,-1)]))]),_:1}),z(m,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[l("div",VZe,[e[74]||(e[74]=l("h3",{class:"text-gray-600"},"Temperature",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[46]||(e[46]=f=>r.temperature=f),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[ae,r.temperature]]),l("span",zZe,"Current value: "+Y(r.temperature),1)]),l("div",HZe,[e[75]||(e[75]=l("h3",{class:"text-gray-600"},"Top K",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[47]||(e[47]=f=>r.top_k=f),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[ae,r.top_k]]),l("span",qZe,"Current value: "+Y(r.top_k),1)]),l("div",YZe,[e[76]||(e[76]=l("h3",{class:"text-gray-600"},"Top P",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[48]||(e[48]=f=>r.top_p=f),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[ae,r.top_p]]),l("span",$Ze,"Current value: "+Y(r.top_p),1)]),l("div",WZe,[e[77]||(e[77]=l("h3",{class:"text-gray-600"},"Repeat Penalty",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[49]||(e[49]=f=>r.repeat_penalty=f),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ae,r.repeat_penalty]]),l("span",KZe,"Current value: "+Y(r.repeat_penalty),1)]),l("div",jZe,[e[78]||(e[78]=l("h3",{class:"text-gray-600"},"Repeat Last N",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[50]||(e[50]=f=>r.repeat_last_n=f),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ae,r.repeat_last_n]]),l("span",QZe,"Current value: "+Y(r.repeat_last_n),1)]),l("div",XZe,[e[79]||(e[79]=l("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[51]||(e[51]=f=>r.n_crop=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ae,r.n_crop]]),l("span",ZZe,"Current value: "+Y(r.n_crop),1)]),l("div",JZe,[e[80]||(e[80]=l("h3",{class:"text-gray-600"},"Number of tokens to generate",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[52]||(e[52]=f=>r.n_predicts=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ae,r.n_predicts]]),l("span",eJe,"Current value: "+Y(r.n_predicts),1)]),l("div",tJe,[e[81]||(e[81]=l("h3",{class:"text-gray-600"},"Seed",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[53]||(e[53]=f=>r.seed=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ae,r.seed]]),l("span",nJe,"Current value: "+Y(r.seed),1)])]),_:1})])):B("",!0)])]),z(h,{ref:"toast"},null,512)],64)}const rJe=rt(vZe,[["render",sJe]]),iJe={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(YO(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(n){this.activeExtension=n}}},oJe={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},aJe={key:0},lJe=["onClick"],cJe={key:0},dJe=["src"],uJe={key:1};function pJe(n,e,t,s,r,i){return T(),x("div",oJe,[i.activeExtensions.length>0?(T(),x("div",aJe,[(T(!0),x(Be,null,Ke(i.activeExtensions,o=>(T(),x("div",{key:o.name,onClick:a=>i.showExtensionPage(o)},[l("div",{class:Le({"active-tab":o===r.activeExtension})},Y(o.name),3)],8,lJe))),128)),r.activeExtension?(T(),x("div",cJe,[l("iframe",{src:r.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,dJe)])):B("",!0)])):(T(),x("div",uJe,e[0]||(e[0]=[l("p",null,"No extension is active. Please install and activate an extension.",-1)])))])}const fJe=rt(iJe,[["render",pJe]]);function G0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Eo=G0();function eN(n){Eo=n}const tN=/[&<>"']/,_Je=new RegExp(tN.source,"g"),nN=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,mJe=new RegExp(nN.source,"g"),hJe={"&":"&","<":"<",">":">",'"':""","'":"'"},Zx=n=>hJe[n];function ss(n,e){if(e){if(tN.test(n))return n.replace(_Je,Zx)}else if(nN.test(n))return n.replace(mJe,Zx);return n}const gJe=/(^|[^\[])\^/g;function Ht(n,e){let t=typeof n=="string"?n:n.source;e=e||"";const s={replace:(r,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(gJe,"$1"),t=t.replace(r,o),s},getRegex:()=>new RegExp(t,e)};return s}function Jx(n){try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const Al={exec:()=>null};function eC(n,e){const t=n.replace(/\|/g,(i,o,a)=>{let c=!1,d=o;for(;--d>=0&&a[d]==="\\";)c=!c;return c?"|":" |"}),s=t.split(/ \|/);let r=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length{const i=r.match(/^\s+/);if(i===null)return r;const[o]=i;return o.length>=s.length?r.slice(s.length):r}).join(` -`)}class su{constructor(e){Yt(this,"options");Yt(this,"rules");Yt(this,"lexer");this.options=e||Eo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const s=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?s:rl(s,` -`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const s=t[0],r=yJe(s,t[3]||"");return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(/#$/.test(s)){const r=rl(s,"#");(this.options.pedantic||!r||/ $/.test(r))&&(s=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:rl(t[0],` -`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let s=rl(t[0],` -`).split(` -`),r="",i="";const o=[];for(;s.length>0;){let a=!1;const c=[];let d;for(d=0;d/.test(s[d]))c.push(s[d]),a=!0;else if(!a)c.push(s[d]);else break;s=s.slice(d);const u=c.join(` -`),_=u.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` - $1`).replace(/^ {0,3}>[ \t]?/gm,"");r=r?`${r} -${u}`:u,i=i?`${i} -${_}`:_;const m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_,o,!0),this.lexer.state.top=m,s.length===0)break;const h=o[o.length-1];if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){const f=h,y=f.raw+` -`+s.join(` -`),b=this.blockquote(y);o[o.length-1]=b,r=r.substring(0,r.length-f.raw.length)+b.raw,i=i.substring(0,i.length-f.text.length)+b.text;break}else if((h==null?void 0:h.type)==="list"){const f=h,y=f.raw+` -`+s.join(` -`),b=this.list(y);o[o.length-1]=b,r=r.substring(0,r.length-h.raw.length)+b.raw,i=i.substring(0,i.length-f.raw.length)+b.raw,s=y.substring(o[o.length-1].raw.length).split(` -`);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim();const r=s.length>1,i={type:"list",raw:"",ordered:r,start:r?+s.slice(0,-1):"",loose:!1,items:[]};s=r?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=r?s:"[*+-]");const o=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;e;){let c=!1,d="",u="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let _=t[2].split(` -`,1)[0].replace(/^\t+/,g=>" ".repeat(3*g.length)),m=e.split(` -`,1)[0],h=!_.trim(),f=0;if(this.options.pedantic?(f=2,u=_.trimStart()):h?f=t[1].length+1:(f=t[2].search(/[^ ]/),f=f>4?1:f,u=_.slice(f),f+=t[1].length),h&&/^[ \t]*$/.test(m)&&(d+=m+` -`,e=e.substring(m.length+1),c=!0),!c){const g=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),E=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),v=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),S=new RegExp(`^ {0,${Math.min(3,f-1)}}#`),R=new RegExp(`^ {0,${Math.min(3,f-1)}}<[a-z].*>`,"i");for(;e;){const w=e.split(` -`,1)[0];let A;if(m=w,this.options.pedantic?(m=m.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),A=m):A=m.replace(/\t/g," "),v.test(m)||S.test(m)||R.test(m)||g.test(m)||E.test(m))break;if(A.search(/[^ ]/)>=f||!m.trim())u+=` -`+A.slice(f);else{if(h||_.replace(/\t/g," ").search(/[^ ]/)>=4||v.test(_)||S.test(_)||E.test(_))break;u+=` -`+m}!h&&!m.trim()&&(h=!0),d+=w+` -`,e=e.substring(w.length+1),_=A.slice(f)}}i.loose||(a?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(d)&&(a=!0));let y=null,b;this.options.gfm&&(y=/^\[[ xX]\] /.exec(u),y&&(b=y[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:d,task:!!y,checked:b,loose:!1,text:u,tokens:[]}),i.raw+=d}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let c=0;c_.type==="space"),u=d.length>0&&d.some(_=>/\n.*\n/.test(_.raw));i.loose=u}if(i.loose)for(let c=0;c$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:t[0],href:r,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const s=eC(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` -`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(s.length===r.length){for(const a of r)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a({text:c,tokens:this.lexer.inline(c),header:!1,align:o.align[d]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const s=t[1].charAt(t[1].length-1)===` -`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ss(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const s=t[2].trim();if(!this.options.pedantic&&/^$/.test(s))return;const o=rl(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{const o=bJe(t[2],"()");if(o>-1){const c=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);o&&(r=o[1],i=o[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(s)?r=r.slice(1):r=r.slice(1,-1)),tC(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){const r=(s[2]||s[1]).replace(/\s+/g," "),i=t[r.toLowerCase()];if(!i){const o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return tC(s,i,s[0],this.lexer)}}emStrong(e,t,s=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const o=[...r[0]].length-1;let a,c,d=o,u=0;const _=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_.lastIndex=0,t=t.slice(-1*e.length+o);(r=_.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(c=[...a].length,r[3]||r[4]){d+=c;continue}else if((r[5]||r[6])&&o%3&&!((o+c)%3)){u+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+u);const m=[...r[0]][0].length,h=e.slice(0,o+r.index+m+c);if(Math.min(o,c)%2){const y=h.slice(1,-1);return{type:"em",raw:h,text:y,tokens:this.lexer.inlineTokens(y)}}const f=h.slice(2,-2);return{type:"strong",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(/\n/g," ");const r=/[^ ]/.test(s),i=/^ /.test(s)&&/ $/.test(s);return r&&i&&(s=s.substring(1,s.length-1)),s=ss(s,!0),{type:"codespan",raw:t[0],text:s}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let s,r;return t[2]==="@"?(s=ss(t[1]),r="mailto:"+s):(s=ss(t[1]),r=s),{type:"link",raw:t[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}url(e){var s;let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=ss(t[0]),i="mailto:"+r;else{let o;do o=t[0],t[0]=((s=this.rules.inline._backpedal.exec(t[0]))==null?void 0:s[0])??"";while(o!==t[0]);r=ss(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let s;return this.lexer.state.inRawBlock?s=t[0]:s=ss(t[0]),{type:"text",raw:t[0],text:s}}}}const EJe=/^(?:[ \t]*(?:\n|$))+/,vJe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,SJe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,uc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,TJe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sN=/(?:[*+-]|\d{1,9}[.)])/,rN=Ht(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,sN).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),V0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xJe=/^[^\n]+/,z0=/(?!\s*\])(?:\\.|[^\[\]\\])+/,CJe=Ht(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",z0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),wJe=Ht(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sN).getRegex(),fp="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",H0=/|$))/,RJe=Ht("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",H0).replace("tag",fp).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),iN=Ht(V0).replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",fp).getRegex(),AJe=Ht(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",iN).getRegex(),q0={blockquote:AJe,code:vJe,def:CJe,fences:SJe,heading:TJe,hr:uc,html:RJe,lheading:rN,list:wJe,newline:EJe,paragraph:iN,table:Al,text:xJe},nC=Ht("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",fp).getRegex(),MJe={...q0,table:nC,paragraph:Ht(V0).replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nC).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",fp).getRegex()},NJe={...q0,html:Ht(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",H0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Al,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ht(V0).replace("hr",uc).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",rN).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},oN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,OJe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,aN=/^( {2,}|\\)\n(?!\s*$)/,IJe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,LJe=Ht(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,pc).getRegex(),PJe=Ht("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,pc).getRegex(),FJe=Ht("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,pc).getRegex(),UJe=Ht(/\\([punct])/,"gu").replace(/punct/g,pc).getRegex(),BJe=Ht(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),GJe=Ht(H0).replace("(?:-->|$)","-->").getRegex(),VJe=Ht("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",GJe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ru=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,zJe=Ht(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ru).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lN=Ht(/^!?\[(label)\]\[(ref)\]/).replace("label",ru).replace("ref",z0).getRegex(),cN=Ht(/^!?\[(ref)\](?:\[\])?/).replace("ref",z0).getRegex(),HJe=Ht("reflink|nolink(?!\\()","g").replace("reflink",lN).replace("nolink",cN).getRegex(),Y0={_backpedal:Al,anyPunctuation:UJe,autolink:BJe,blockSkip:DJe,br:aN,code:OJe,del:Al,emStrongLDelim:LJe,emStrongRDelimAst:PJe,emStrongRDelimUnd:FJe,escape:oN,link:zJe,nolink:cN,punctuation:kJe,reflink:lN,reflinkSearch:HJe,tag:VJe,text:IJe,url:Al},qJe={...Y0,link:Ht(/^!?\[(label)\]\((.*?)\)/).replace("label",ru).getRegex(),reflink:Ht(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ru).getRegex()},ub={...Y0,escape:Ht(oN).replace("])","~|])").getRegex(),url:Ht(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\(r=a.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=` -`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` -`+r.raw,i.text+=` -`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` -`+r.raw,i.text+=` -`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=e.slice(1);let d;this.options.extensions.startBlock.forEach(u=>{d=u.call({lexer:this},c),typeof d=="number"&&d>=0&&(a=Math.min(a,d))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){i=t[t.length-1],s&&(i==null?void 0:i.type)==="paragraph"?(i.raw+=` -`+r.raw,i.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),s=o.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=` -`+r.raw,i.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let s,r,i,o=e,a,c,d;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(s=u.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))){if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),r=t[t.length-1],r&&s.type==="text"&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length),r=t[t.length-1],r&&s.type==="text"&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,o,d)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const _=e.slice(1);let m;this.options.extensions.startInline.forEach(h=>{m=h.call({lexer:this},_),typeof m=="number"&&m>=0&&(u=Math.min(u,m))}),u<1/0&&u>=0&&(i=e.substring(0,u+1))}if(s=this.tokenizer.inlineText(i)){e=e.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(d=s.raw.slice(-1)),c=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):t.push(s);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class iu{constructor(e){Yt(this,"options");Yt(this,"parser");this.options=e||Eo}space(e){return""}code({text:e,lang:t,escaped:s}){var o;const r=(o=(t||"").match(/^\S*/))==null?void 0:o[0],i=e.replace(/\n$/,"")+` -`;return r?'
'+(s?i:ss(i,!0))+`
-`:"
"+(s?i:ss(i,!0))+`
-`}blockquote({tokens:e}){return`
-${this.parser.parse(e)}
-`}html({text:e}){return e}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} -`}hr(e){return`
-`}list(e){const t=e.ordered,s=e.start;let r="";for(let a=0;a -`+r+" -`}listitem(e){let t="";if(e.task){const s=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=s+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=s+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:s+" ",text:s+" "}):t+=s+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • -`}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

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

    An error occurred:

    "+ss(s.message+"",!0)+"
    ";return t?Promise.resolve(r):r}if(t)return Promise.reject(s);throw s}}}const fo=new $Je;function Pt(n,e){return fo.parse(n,e)}Pt.options=Pt.setOptions=function(n){return fo.setOptions(n),Pt.defaults=fo.defaults,eN(Pt.defaults),Pt};Pt.getDefaults=G0;Pt.defaults=Eo;Pt.use=function(...n){return fo.use(...n),Pt.defaults=fo.defaults,eN(Pt.defaults),Pt};Pt.walkTokens=function(n,e){return fo.walkTokens(n,e)};Pt.parseInline=fo.parseInline;Pt.Parser=vs;Pt.parser=vs.parse;Pt.Renderer=iu;Pt.TextRenderer=$0;Pt.Lexer=Es;Pt.lexer=Es.lex;Pt.Tokenizer=su;Pt.Hooks=Ml;Pt.parse=Pt;Pt.options;Pt.setOptions;Pt.use;Pt.walkTokens;Pt.parseInline;vs.parse;Es.lex;const WJe={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(n){this.helpSections[n].isOpen=!this.helpSections[n].isOpen},async loadMarkdownFile(n){try{const t=await(await fetch(`/help/${n}`)).text();return Pt(t)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const n=[{title:"About LoLLMs",file:"lollms-context.md"},{title:"Getting Started",file:"getting-started.md"},{title:"Uploading Files",file:"uploading-files.md"},{title:"Sending Images",file:"sending-images.md"},{title:"Using Code Interpreter",file:"code-interpreter.md"},{title:"Internet Search",file:"internet-search.md"}];for(const e of n){const t=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:t,isOpen:!1})}}},mounted(){this.loadHelpSections()}},KJe={class:"help-view background-color p-6 w-full"},jJe={class:"big-card w-full"},QJe={class:"help-sections-container"},XJe={class:"help-sections space-y-4"},ZJe=["onClick"],JJe={class:"toggle-icon"},eet={key:0,class:"help-content mt-4"},tet=["innerHTML"];function net(n,e,t,s,r,i){return T(),x("div",KJe,[l("div",jJe,[e[0]||(e[0]=l("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),l("div",QJe,[l("div",XJe,[(T(!0),x(Be,null,Ke(r.helpSections,(o,a)=>(T(),x("div",{key:a,class:"help-section message"},[l("h2",{onClick:c=>i.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[Ze(Y(o.title)+" ",1),l("span",JJe,Y(o.isOpen?"▼":"▶"),1)],8,ZJe),o.isOpen?(T(),x("div",eet,[l("div",{innerHTML:o.content,class:"prose dark:prose-invert"},null,8,tet)])):B("",!0)]))),128))])])])])}const set=rt(WJe,[["render",net],["__scopeId","data-v-8c1798f3"]]);function sr(n,e=!0,t=1){const s=e?1e3:1024;if(Math.abs(n)=s&&i{Ve.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected",n),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Fe(()=>{Ve.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},iet={class:"menu-container"},oet=["title"],aet=["src"],cet=["data-feather"],det={key:2,class:"w-5 h-5"},uet={key:3,"data-feather":"menu"},pet={class:"flex-grow menu-ul"},fet=["onClick"],_et={key:0,"data-feather":"check"},met=["src","alt"],het=["data-feather"],get={key:3,class:"menu-icon"};function bet(n,e,t,s,r,i){return T(),x("div",iet,[l("button",{onClick:e[0]||(e[0]=$((...o)=>i.toggleMenu&&i.toggleMenu(...o),["prevent"])),title:t.title,class:Le([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(T(),x("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,aet)):t.icon&&t.icon.includes("feather")?(T(),x("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,cet)):t.icon&&t.icon.includes("#")?(T(),x("p",det,Y(t.icon.split("#")[1]),1)):(T(),x("i",uet))],10,oet),z(Or,{name:"slide"},{default:Ie(()=>[r.isMenuOpen?(T(),x("div",{key:0,class:"menu-list flex-grow",style:Bt(r.menuPosition),ref:"menu"},[l("ul",pet,[(T(!0),x(Be,null,Ke(t.commands,(o,a)=>(T(),x("li",{key:a,onClick:$(c=>i.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(T(),x("i",_et)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),x("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,met)):B("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),x("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,het)):(T(),x("span",get)),l("span",null,Y(o.name),1)],8,fet))),128))])],4)):B("",!0)]),_:1})])}const W0=rt(ret,[["render",bet]]),yet={components:{InteractiveMenu:W0},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){Fe(()=>{Ve.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return sr(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?$n:this.model.icon},defaultImg(n){n.target.src=$n},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n){if(console.log("event.target.tagName.toLowerCase()"),console.log(n.target.tagName.toLowerCase()),n.target.tagName.toLowerCase()==="button"||n.target.tagName.toLowerCase()==="svg"){n.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Fe(()=>{Ve.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&n.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return sr(this.speed)},total_size_computed(){return sr(this.total_size)},downloaded_size_computed(){return sr(this.downloaded_size)}},watch:{linkNotValid(){Fe(()=>{Ve.replace()})}}},Eet=["title"],vet={key:0,class:"flex flex-row"},Tet={class:"max-w-[300px] overflow-x-auto"},xet={class:"flex gap-3 items-center grow"},Cet=["href"],wet=["src"],Ret={class:"flex-1 overflow-hidden"},Aet={class:"font-bold font-large text-lg truncate"},Met={key:1,class:"flex items-center flex-row gap-2 my-1"},Net={class:"flex grow items-center"},Oet={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},Iet={class:"relative flex flex-col items-center justify-center flex-grow h-full"},ket={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Det={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Let={class:"flex justify-between mb-1"},Pet={class:"text-sm font-medium text-blue-700 dark:text-white"},Fet={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Uet={class:"flex justify-between mb-1"},Bet={class:"text-base font-medium text-blue-700 dark:text-white"},Get={class:"text-sm font-medium text-blue-700 dark:text-white"},Vet={class:"flex flex-grow"},zet={class:"flex flex-row flex-grow gap-3"},Het={class:"p-2 text-center grow"},qet={key:3},Yet={class:"flex flex-row items-center gap-3"},$et=["src"],Wet={class:"font-bold font-large text-lg truncate"},Ket={class:"flex items-center flex-row-reverse gap-2 my-1"},jet={class:"flex flex-row items-center"},Qet={key:0,class:"text-base text-red-600 flex items-center mt-1"},Xet=["title"],Zet={class:""},Jet={class:"flex flex-row items-center"},ett=["href","title"],ttt={class:"flex items-center"},ntt={class:"flex items-center"},stt={key:0,class:"flex items-center"},rtt=["href"],itt={class:"flex items-center"},ott=["href"],att={class:"flex items-center"},ltt={class:"flex items-center"},ctt=["href"];function dtt(n,e,t,s,r,i){const o=nt("InteractiveMenu");return T(),x("div",{class:Le(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",i.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=$(a=>i.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(T(),x("div",vet,[l("div",Tet,[l("div",xet,[l("a",{href:t.model.model_creator_link,target:"_blank"},[l("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,wet)],8,Cet),l("div",Ret,[l("h3",Aet,Y(t.model.name),1)])])])])):B("",!0),t.model.isCustomModel?(T(),x("div",Met,[l("div",Net,[l("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=$(()=>{},["stop"]))},e[11]||(e[11]=[l("i",{"data-feather":"box",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=Ze(" Custom model "))]),l("div",null,[t.model.isInstalled?(T(),x("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=$((...a)=>i.uninstall&&i.uninstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"Remove",-1)]))):B("",!0)])])):B("",!0),r.installing?(T(),x("div",Oet,[l("div",Iet,[e[15]||(e[15]=l("div",{role:"status",class:"justify-center"},[l("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("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"}),l("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"})]),l("span",{class:"sr-only"},"Loading...")],-1)),l("div",ket,[l("div",Det,[l("div",Let,[e[14]||(e[14]=l("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),l("span",Pet,Y(Math.floor(r.progress))+"%",1)]),l("div",Fet,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt({width:r.progress+"%"})},null,4)]),l("div",Uet,[l("span",Bet,"Download speed: "+Y(i.speed_computed)+"/s",1),l("span",Get,Y(i.downloaded_size_computed)+"/"+Y(i.total_size_computed),1)])])]),l("div",Vet,[l("div",zet,[l("div",Het,[l("button",{onClick:e[3]||(e[3]=$((...a)=>i.toggleCancelInstall&&i.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):B("",!0),t.model.isCustomModel?B("",!0):(T(),x("div",qet,[l("div",Yet,[l("img",{ref:"imgElement",src:i.getImgUrl(),onError:e[4]||(e[4]=a=>i.defaultImg(a)),class:Le(["w-10 h-10 rounded-lg object-fill",r.linkNotValid?"grayscale":""])},null,42,$et),l("h3",Wet,Y(t.model.name),1),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),z(o,{commands:i.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),l("div",Ket,[l("div",jet,[r.linkNotValid?(T(),x("div",Qet,e[17]||(e[17]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),Ze(" Link is not valid ")]))):B("",!0)])]),l("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[l("div",Zet,[l("div",Jet,[e[19]||(e[19]=l("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=l("b",null,"Card: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=$(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:r.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,ett),e[21]||(e[21]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[6]||(e[6]=$(a=>i.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",ttt,[l("div",{class:Le(["flex flex-shrink-0 items-center",r.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=l("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=l("b",null,"File size: ",-1)),Ze(" "+Y(i.fileSize),1)],2)]),l("div",ntt,[e[24]||(e[24]=l("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=l("b",null,"License: ",-1)),Ze(" "+Y(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(T(),x("div",stt,[e[26]||(e[26]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=l("b",null,"quantizer: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.quantizer),9,rtt)])):B("",!0),l("div",itt,[e[28]||(e[28]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=l("b",null,"Model creator: ",-1)),l("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.model_creator),9,ott)]),l("div",att,[e[30]||(e[30]=l("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=l("b",null,"Release date: ",-1)),Ze(" "+Y(t.model.last_commit_time),1)]),l("div",ltt,[e[32]||(e[32]=l("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=l("b",null,"Category: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=$(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},Y(t.model.category),9,ctt)])])],8,Xet)]))],10,Eet)}const utt=rt(yet,[["render",dtt]]),ptt={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},ftt={class:"p-4"},_tt={class:"flex items-center mb-4"},mtt=["src"],htt={class:"text-lg font-semibold"},gtt={key:0};function btt(n,e,t,s,r,i){return T(),x("div",ftt,[l("div",_tt,[l("img",{src:r.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,mtt),l("h2",htt,Y(r.personalityName),1)]),l("p",null,[e[2]||(e[2]=l("strong",null,"Author:",-1)),Ze(" "+Y(r.personalityAuthor),1)]),l("p",null,[e[3]||(e[3]=l("strong",null,"Description:",-1)),Ze(" "+Y(r.personalityDescription),1)]),l("p",null,[e[4]||(e[4]=l("strong",null,"Category:",-1)),Ze(" "+Y(r.personalityCategory),1)]),r.disclaimer?(T(),x("p",gtt,[e[5]||(e[5]=l("strong",null,"Disclaimer:",-1)),Ze(" "+Y(r.disclaimer),1)])):B("",!0),l("p",null,[e[6]||(e[6]=l("strong",null,"Conditioning Text:",-1)),Ze(" "+Y(r.conditioningText),1)]),l("p",null,[e[7]||(e[7]=l("strong",null,"AI Prefix:",-1)),Ze(" "+Y(r.aiPrefix),1)]),l("p",null,[e[8]||(e[8]=l("strong",null,"User Prefix:",-1)),Ze(" "+Y(r.userPrefix),1)]),l("div",null,[e[9]||(e[9]=l("strong",null,"Antiprompts:",-1)),l("ul",null,[(T(!0),x(Be,null,Ke(r.antipromptsList,o=>(T(),x("li",{key:o.id},Y(o.text),1))),128))])]),l("button",{onClick:e[0]||(e[0]=o=>r.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),r.editMode?(T(),x("button",{key:1,onClick:e[1]||(e[1]=(...o)=>i.commitChanges&&i.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):B("",!0)])}const ytt=rt(ptt,[["render",btt]]),K0="/assets/logo-CQZwS0X1.svg",Ett="/",vtt={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function,onToggleFavorite:Function},components:{InteractiveMenu:W0},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?n.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):n.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,Fe(()=>{Ve.replace()})},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return Ett+this.personality.avatar},defaultImg(n){n.target.src=K0},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){Fe(()=>{Ve.replace()})}}},Stt=["title"],Ttt={class:"flex-grow"},xtt={class:"flex items-center mb-4"},Ctt=["src"],wtt={class:"text-sm text-gray-600"},Rtt={class:"text-sm text-gray-600"},Att={class:"text-sm text-gray-600"},Mtt={key:0,class:"text-sm text-gray-600"},Ntt={key:1,class:"text-sm text-gray-600"},Ott={class:"mb-4"},Itt=["innerHTML"],ktt={class:"mt-auto pt-4 border-t"},Dtt={class:"flex justify-between items-center flex-wrap"},Ltt=["title"],Ptt=["fill"],Ftt=["src"];function Utt(n,e,t,s,r,i){const o=nt("InteractiveMenu");return T(),x("div",{class:Le(["personality-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full",i.selected_computed?"border-primary-light":"border-transparent",r.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:t.personality.installed?"":"Not installed"},[l("div",Ttt,[l("div",xtt,[l("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),alt:"Personality Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onClick:e[1]||(e[1]=(...a)=>i.toggleSelected&&i.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>i.showThumbnail&&i.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>i.updateThumbnailPosition&&i.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>i.hideThumbnail&&i.hideThumbnail(...a))},null,40,Ctt),l("div",null,[l("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>i.toggleSelected&&i.toggleSelected(...a))},Y(t.personality.name),1),l("p",wtt,"Author: "+Y(t.personality.author),1),l("p",Rtt,"Version: "+Y(t.personality.version),1),l("p",Att,"Category: "+Y(t.personality.category),1),t.personality.creation_date?(T(),x("p",Mtt,"Creation Date: "+Y(i.formatDate(t.personality.creation_date)),1)):B("",!0),t.personality.last_update_date?(T(),x("p",Ntt,"Last update Date: "+Y(i.formatDate(t.personality.last_update_date)),1)):B("",!0)])]),l("div",Ott,[e[10]||(e[10]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:t.personality.description},null,8,Itt)])]),l("div",ktt,[l("div",Dtt,[l("button",{onClick:e[6]||(e[6]=(...a)=>i.toggleFavorite&&i.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),x("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:n.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[11]||(e[11]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,Ptt))],8,Ltt),r.isMounted?(T(),x("button",{key:0,onClick:e[7]||(e[7]=(...a)=>i.toggleSelected&&i.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[12]||(e[12]=[l("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):B("",!0),r.isMounted?(T(),x("button",{key:1,onClick:e[8]||(e[8]=(...a)=>i.toggleTalk&&i.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[13]||(e[13]=[l("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):B("",!0),l("button",{onClick:e[9]||(e[9]=(...a)=>i.showFolder&&i.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[14]||(e[14]=[l("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),z(o,{commands:i.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),r.thumbnailVisible?(T(),x("div",{key:0,style:Bt({top:r.thumbnailPosition.y+"px",left:r.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[l("img",{src:i.getImgUrl(),class:"w-full h-full object-fill"},null,8,Ftt)],4)):B("",!0)],10,Stt)}const dN=rt(vtt,[["render",Utt]]),Btt={name:"DynamicUIRenderer",props:{ui:{type:String,required:!0},instanceId:{type:String,required:!0}},data(){return{containerId:`dynamic-ui-${this.instanceId}`}},watch:{ui:{immediate:!0,handler(n){console.log(`UI prop changed for instance ${this.instanceId}:`,n),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const n=this.$refs.container,t=new DOMParser().parseFromString(this.ui,"text/html"),s=t.getElementsByTagName("style");Array.from(s).forEach(i=>{const o=document.createElement("style");o.textContent=this.scopeCSS(i.textContent),document.head.appendChild(o)}),n.innerHTML=t.body.innerHTML;const r=t.getElementsByTagName("script");Array.from(r).forEach(i=>{const o=document.createElement("script");o.textContent=i.textContent,n.appendChild(o)})},scopeCSS(n){return n.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},Gtt=["id"];function Vtt(n,e,t,s,r,i){return T(),x("div",{id:r.containerId,ref:"container"},null,8,Gtt)}const uN=rt(Btt,[["render",Vtt]]),ztt="/",Htt={components:{DynamicUIRenderer:uN},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Fe(()=>{Ve.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return ztt+this.binding.icon},defaultImg(n){n.target.src=K0},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){Fe(()=>{Ve.replace()})}}},qtt=["title"],Ytt={class:"flex flex-row items-center gap-3"},$tt=["src"],Wtt={class:"font-bold font-large text-lg truncate"},Ktt={class:"flex-none gap-1"},jtt={class:"flex items-center flex-row-reverse gap-2 my-1"},Qtt={class:""},Xtt={class:""},Ztt={class:"flex items-center"},Jtt={class:"flex items-center"},ent={class:"flex items-center"},tnt={class:"flex items-center"},nnt=["href"],snt=["title","innerHTML"];function rnt(n,e,t,s,r,i){const o=nt("DynamicUIRenderer");return T(),x("div",{class:Le(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=$((...a)=>i.toggleSelected&&i.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[l("div",null,[l("div",Ytt,[l("img",{ref:"imgElement",src:i.getImgUrl(),onError:e[0]||(e[0]=a=>i.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,$tt),l("h3",Wtt,Y(t.binding.name),1),e[10]||(e[10]=l("div",{class:"grow"},null,-1)),l("div",Ktt,[t.selected?(T(),x("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>i.toggleReloadBinding&&i.toggleReloadBinding(...a)),e[2]||(e[2]=$(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},e[9]||(e[9]=[l("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Help",-1)]))):B("",!0)])]),l("div",jtt,[t.binding.installed?B("",!0):(T(),x("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=$((...a)=>i.toggleInstall&&i.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[11]||(e[11]=[Ze(" Install "),l("span",{class:"sr-only"},"Click to install",-1)]))),t.binding.installed?(T(),x("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=$((...a)=>i.toggleReinstall&&i.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},e[12]||(e[12]=[Ze(" Reinstall "),l("span",{class:"sr-only"},"Reinstall",-1)]))):B("",!0),t.binding.installed?(T(),x("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=$((...a)=>i.toggleUnInstall&&i.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"UnInstall",-1)]))):B("",!0),t.selected?(T(),x("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=$((...a)=>i.toggleSettings&&i.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[14]||(e[14]=[Ze(" Settings "),l("span",{class:"sr-only"},"Settings",-1)]))):B("",!0)]),t.binding.ui?(T(),at(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):B("",!0),l("div",Qtt,[l("div",Xtt,[l("div",Ztt,[e[15]||(e[15]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=l("b",null,"Author: ",-1)),Ze(" "+Y(t.binding.author),1)]),l("div",Jtt,[e[18]||(e[18]=l("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=l("b",null,"Folder: ",-1)),Ze(" "+Y(t.binding.folder)+" ",1),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[7]||(e[7]=$(a=>i.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",ent,[e[21]||(e[21]=l("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=l("b",null,"Version: ",-1)),Ze(" "+Y(t.binding.version),1)]),l("div",tnt,[e[23]||(e[23]=l("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=l("b",null,"Link: ",-1)),l("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},Y(t.binding.link),9,nnt)])]),e[25]||(e[25]=l("div",{class:"flex items-center"},[l("i",{"data-feather":"info",class:"w-5 m-1"}),l("b",null,"Description: "),l("br")],-1)),l("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,snt)])])],10,qtt)}const int=rt(Htt,[["render",rnt]]),Bs="/assets/logo-PeTRk_ya.png",ont={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},ant={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},lnt={class:"relative w-full max-w-md max-h-full"},cnt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},dnt={class:"p-4 text-center"},unt={class:"p-4 text-center mx-auto mb-4"};function pnt(n,e,t,s,r,i){return r.show?(T(),x("div",ant,[l("div",lnt,[l("div",cnt,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[4]||(e[4]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("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),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",dnt,[e[6]||(e[6]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("div",unt,[e[5]||(e[5]=l("label",{class:"mr-2"},"Model path",-1)),k(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>r.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[ae,r.model_path]])]),l("button",{onClick:e[2]||(e[2]=o=>i.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),l("button",{onClick:e[3]||(e[3]=o=>i.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):B("",!0)}const fnt=rt(ont,[["render",pnt]]),_nt={props:{show:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){const e=["bytes","KB","MB","GB"];let t=0;for(;n>=1024&&t[t.show?(T(),x("div",mnt,[l("div",hnt,[l("h2",gnt,[e[5]||(e[5]=l("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),Ze(" "+Y(t.title),1)]),l("div",bnt,[l("ul",null,[(T(!0),x(Be,null,Ke(t.choices,(o,a)=>(T(),x("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[l("div",ynt,[l("div",Ent,[o.isEditing?k((T(),x("input",{key:1,"onUpdate:modelValue":c=>o.editName=c,onBlur:c=>i.finishEditing(o),onKeyup:ws(c=>i.finishEditing(o),["enter"]),class:"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded px-2 py-1 text-sm",autofocus:""},null,40,Snt)),[[ae,o.editName]]):(T(),x("span",{key:0,onClick:c=>i.selectChoice(o),class:Le([{"font-semibold":o===r.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},Y(i.displayName(o)),11,vnt)),o.size?(T(),x("span",Tnt,Y(i.formatSize(o.size)),1)):B("",!0)]),l("div",xnt,[l("button",{onClick:c=>i.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)]),8,Cnt),t.can_remove?(T(),x("button",{key:0,onClick:c=>i.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]),8,wnt)):B("",!0)])])]))),128))])]),r.showInput?(T(),x("div",Rnt,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>r.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 dark:border-gray-600 p-2 rounded-lg w-full mb-2 bg-white dark:bg-gray-700 text-gray-800 dark:text-white"},null,512),[[ae,r.newFilename]]),l("button",{onClick:e[1]||(e[1]=(...o)=>i.addNewFilename&&i.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):B("",!0),l("div",Ant,[l("button",{onClick:e[2]||(e[2]=(...o)=>i.closeDialog&&i.closeDialog(...o)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),l("button",{onClick:e[3]||(e[3]=(...o)=>i.validateChoice&&i.validateChoice(...o)),disabled:!r.selectedChoice,class:Le([{"bg-blue-500 hover:bg-blue-600":r.selectedChoice,"bg-gray-400 cursor-not-allowed":!r.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,Mnt),l("button",{onClick:e[4]||(e[4]=(...o)=>i.toggleInput&&i.toggleInput(...o)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):B("",!0)]),_:1})}const j0=rt(_nt,[["render",Nnt],["__scopeId","data-v-f43216be"]]),Ont={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const n=this.radioOptions.find(e=>e.value===this.selectedValue);return n?n.label:""}},watch:{selectedValue(n,e){this.$emit("radio-selected",n)}},methods:{handleRadioChange(){}}},Int={class:"flex space-x-4"},knt=["value","aria-checked"],Dnt={class:"text-gray-700"};function Lnt(n,e,t,s,r,i){return T(),x("div",Int,[(T(!0),x(Be,null,Ke(t.radioOptions,(o,a)=>(T(),x("label",{key:o.value,class:"flex items-center space-x-2"},[k(l("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=c=>r.selectedValue=c),onChange:e[1]||(e[1]=(...c)=>i.handleRadioChange&&i.handleRadioChange(...c)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":r.selectedValue===o.value.toString(),role:"radio"},null,40,knt),[[DD,r.selectedValue]]),l("span",Dnt,Y(o.label),1)]))),128))])}const Pnt=rt(Ont,[["render",Lnt]]),Fnt="/assets/gpu-BWVOYg-D.svg",Unt={name:"StringListManager",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Enter an item"}},emits:["update:modelValue","change"],data(){return{newItem:"",draggingIndex:null}},methods:{addItem(){if(this.newItem.trim()){const n=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",n),this.$emit("change"),this.newItem=""}},removeItem(n){const e=this.modelValue.filter((t,s)=>s!==n);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(n){this.draggingIndex=n},dragItem(n){if(this.draggingIndex!==null){const e=[...this.modelValue],t=e.splice(this.draggingIndex,1)[0];e.splice(n,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(n){if(n>0){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n-1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(n){if(nr.newItem=o),placeholder:t.placeholder,onKeyup:e[1]||(e[1]=ws((...o)=>i.addItem&&i.addItem(...o),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,Gnt),[[ae,r.newItem]]),l("button",{onClick:e[2]||(e[2]=(...o)=>i.addItem&&i.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),t.modelValue.length>0?(T(),x("ul",Vnt,[(T(!0),x(Be,null,Ke(t.modelValue,(o,a)=>(T(),x("li",{key:a,class:Le(["flex items-center mb-2 relative",{"bg-gray-200":r.draggingIndex===a}])},[l("span",znt,Y(o),1),l("div",Hnt,[l("button",{onClick:c=>i.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,qnt),a>0?(T(),x("button",{key:0,onClick:c=>i.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,Ynt)):B("",!0),ai.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,$nt)):B("",!0)]),r.draggingIndex===a?(T(),x("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:c=>i.startDragging(a),onMousemove:c=>i.dragItem(a),onMouseup:e[3]||(e[3]=(...c)=>i.stopDragging&&i.stopDragging(...c))},null,40,Wnt)):B("",!0)],2))),128))])):B("",!0),t.modelValue.length>0?(T(),x("div",Knt,[l("button",{onClick:e[4]||(e[4]=(...o)=>i.removeAll&&i.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):B("",!0)])}const Qnt=rt(Unt,[["render",jnt]]),Xnt="/";ne.defaults.baseURL="/";const Znt={components:{AddModelDialog:fnt,ModelEntry:utt,PersonalityViewer:ytt,PersonalityEntry:dN,BindingEntry:int,ChoiceDialog:j0,Card:dp,StringListManager:Qnt,RadioOptions:Pnt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:$n,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Bs,binding_changed:!1,SVGGPU:Fnt,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],comfyui_models:[],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,mainconf_collapsed:!0,smartrouterconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:Xnt,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){try{this.$store.state.loading_infos="Getting Hardware usage",await this.refreshHardwareUsage(this.$store)}catch(n){console.log("Error cought:",n)}Ye.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(n=>n.json()).then(n=>{this.voices=n.voices}).catch(n=>console.error("Error fetching voices:",n))},async refreshHardwareUsage(n){await n.dispatch("refreshDiskUsage"),await n.dispatch("refreshRamUsage"),await n.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(n){this.$store.state.config.rag_databases.splice(n,1),this.settingsChanged=!0},async vectorize_folder(n){await ne.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[n]},this.posts_headers)},async select_folder(n){try{Ye.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[n]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await ne.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(n){console.log("handleTemplateSelection");const e=n.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` -`,this.configFile.start_user_header_id_template="!@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="!@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="lollms_simplified"?(console.log("Using lollms template"),this.configFile.start_header_id_template="@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` -`,this.configFile.start_user_header_id_template="@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="bare"?(console.log("Using lollms template"),this.configFile.start_header_id_template="",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` -`,this.configFile.start_user_header_id_template="",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="llama3"?(console.log("Using llama3 template"),this.configFile.start_header_id_template="<|start_header_id|>",this.configFile.system_message_template="system",this.configFile.end_header_id_template="<|end_header_id|>",this.configFile.separator_template="<|eot_id|>",this.configFile.start_user_header_id_template="<|start_header_id|>",this.configFile.end_user_header_id_template="<|end_header_id|>",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="<|start_header_id|>",this.configFile.end_ai_header_id_template="<|end_header_id|>",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="mistral"?(console.log("Using mistral template"),this.configFile.start_header_id_template="[INST]",this.configFile.system_message_template=" Using this information",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` -`,this.configFile.start_user_header_id_template="[INST]",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="[/INST]",this.configFile.start_ai_header_id_template="[INST]",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="[/INST]",this.settingsChanged=!0):e==="deepseek"&&(console.log("Using deepseek template"),this.configFile.start_header_id_template="",this.configFile.system_message_template=" Using this information",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` -`,this.configFile.start_user_header_id_template="",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0)},install_model(){},reinstallDiffusersService(){ne.post("/install_diffusers",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},upgradeDiffusersService(){ne.post("install_diffusers",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},reinstallXTTSService(){ne.post("install_xtts",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},reinstallWhisperService(){ne.post("install_whisper",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},reinstallSDService(){ne.post("/install_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},upgradeSDService(){ne.post("upgrade_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},startSDService(){ne.post("start_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},showSD(){ne.post("show_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},reinstallComfyUIService(){ne.post("install_comfyui",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},upgradeComfyUIService(){ne.post("upgrade_comfyui",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},startComfyUIService(){ne.post("start_comfyui",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},showComfyui(){ne.post("show_comfyui",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},reinstallvLLMService(){ne.post("install_vllm",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},startvLLMService(){ne.post("start_vllm",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},startollamaService(){ne.post("start_ollama",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},reinstallPetalsService(){ne.post("install_petals",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},reinstallOLLAMAService(){ne.post("install_ollama",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},reinstallElasticSearchService(){ne.post("install_vllm",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},getSeviceVoices(){ne.get("list_voices").then(n=>{this.voices=n.data.voices}).catch(n=>{console.error(n)})},load_more_models(){this.models_zoo_initialLoadCount+10{Ve.replace()}),this.binding_changed&&!this.mzc_collapsed&&(this.modelsZoo==null||this.modelsZoo.length==0)&&(console.log("Refreshing models"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.refreshModelsZoo(),this.binding_changed=!1)},async selectSortOption(n){this.$store.state.sort_type=n,this.updateModelsZoo(),console.log(`Selected sorting:${n}`),console.log(`models:${this.models_zoo}`)},handleRadioSelected(n){this.isLoading=!0,this.selectSortOption(n).then(()=>{this.isLoading=!1})},filter_installed(n){return console.log("filtering"),n.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(console.log("voice synthesis"),this.audioVoices=speechSynthesis.getVoices(),console.log("Voices:"+this.audioVoices),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let n=await this.api_get_req("check_update");this.has_updates=n.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(n){this.selected_variant=n},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(n){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$store.state.toast.showToast("Link is not valid, file does not exist",4,!1);return}let t="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:t},console.log("installing...",this.addModel);const s=r=>{if(console.log("received something"),r.status&&r.progress<=100){if(this.addModel=r,console.log("Progress",r),e.progress=r.progress,e.speed=r.speed,e.total_size=r.total_size,e.downloaded_size=r.downloaded_size,e.start_time=r.start_time,e.installing=!0,e.progress==100){const i=this.models_zoo.findIndex(o=>o.name===e.model.name);this.models_zoo[i].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),Ye.off("install_progress",s),console.log("Installed successfully"),this.$store.state.toast.showToast(`Model: -`+e.model.name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else Ye.off("install_progress",s),console.log("Install failed"),e.installing=!1,this.showProgress=!1,console.error("Installation failed:",r.error),this.$store.state.toast.showToast(`Model: -`+e.model.name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage");console.log("Here")};Ye.on("install_progress",s),Ye.emit("install_model",{path:t,name:e.model.name,variant_name:this.selected_variant.name,type:e.model.type}),console.log("Started installation, please wait")},resetLogo(){this.configFile.app_custom_logo="",this.settingsChanged=!0},resetAvatar(){this.configFile.user_avatar="",this.settingsChanged=!0},uploadLogo(n){const e=n.target.files[0],t=new FormData;t.append("logo",e),console.log("Uploading logo"),ne.post("/upload_logo",t).then(s=>{console.log("Logo uploaded successfully"),this.$store.state.toast.showToast("Avatar uploaded successfully!",4,!0);const r=s.data.fileName;console.log("response",s),this.app_custom_logo=r,this.$store.state.config.app_custom_logo=r,this.settingsChanged=!0}).catch(s=>{console.error("Error uploading avatar:",s)})},uploadAvatar(n){const e=n.target.files[0],t=new FormData;t.append("avatar",e),console.log("Uploading avatar"),ne.post("/upload_avatar",t).then(s=>{console.log("Avatar uploaded successfully"),this.$store.state.toast.showToast("Avatar uploaded successfully!",4,!0);const r=s.data.fileName;console.log("response",s),this.user_avatar=r,this.$store.state.config.user_avatar=r,this.settingsChanged=!0}).catch(s=>{console.error("Error uploading avatar:",s)})},async update_software(){console.log("Posting");const n=await this.api_post_req("update_software");console.log("Posting done"),n.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Failure!",4,!1)},async restart_software(){console.log("Posting");const n=await this.api_post_req("restart_program");console.log("Posting done"),n.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Failure!",4,!1)},on_loading_text(n){console.log("Loading text",n),this.loading_text=n},async load_everything(){for(this.isLoading=!0,Fe(()=>{Ve.replace()});this.isReady===!1;)await new Promise(n=>setTimeout(n,100));this.refresh(),console.log("Ready"),this.configFile.model_name&&(this.isModelSelected=!0),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities?category="+this.configFile.personality_category),console.log("category"),this.personality_category=this.configFile.personality_category,this.personalitiesFiltered=this.$store.state.personalities.filter(n=>n.category===this.configFile.personality_category),this.modelsFiltered=[],this.updateModelsZoo(),this.isLoading=!1,this.isMounted=!0,console.log("READY Stuff")},async open_mzl(){this.mzl_collapsed=!this.mzl_collapsed,console.log("Fetching models")},async getVramUsage(){await this.api_get_req("vram_usage")},async progressListener(n){if(console.log("received something"),n.status==="progress"){if(this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(s=>s.model.name==n.model_name&&this.configFile.binding_name==n.binding_folder),t=this.models_zoo[e];t&&(console.log("model entry",t),t.installing=!0,t.progress=n.progress,console.log(`Progress = ${n.progress}`),n.progress>=100?(t.installing=!1,t.isInstalled=!0):(t.installing=!0,t.isInstalled=!0))}}else if(n.status==="succeeded"){if(console.log("Received succeeded"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(s=>s.model.name==n.model_name&&this.configFile.binding_name==n.binding_folder),t=this.models_zoo[e];n.progress>=100&&(t.installing=!1,t.isInstalled=!0)}if(console.log("Installed successfully"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(s=>s.model.name==n.model_name&&this.configFile.binding_name==n.binding_folder),t=this.models_zoo[e];t&&(t.installing=!1,t.isInstalled=!0)}this.$store.state.toast.showToast(`Model: -`+model_object.name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}else if(n.status==="failed"&&(console.log("Install failed"),this.$refs.modelZoo)){const e=this.$refs.modelZoo.findIndex(s=>s.model.name==n.model_name&&this.configFile.binding_name==n.binding_folder),t=this.models_zoo[e];t&&(t.installing=!1,t.isInstalled=!1),console.error("Installation failed:",n.error),this.$store.state.toast.showToast(`Model: -`+model_object.name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage")}},showAddModelDialog(){this.$refs.addmodeldialog.showDialog("").then(()=>{console.log(this.$refs.addmodeldialog.model_path);const n=this.$refs.addmodeldialog.model_path;Ye.emit("install_model",{path:n,type:this.models_zoo[0].type},e=>{console.log("Model installation successful:",e)}),console.log(this.$refs.addmodeldialog.model_path)})},closeAddModelDialog(){this.addModelDialogVisibility=!1},collapseAll(n){this.servers_conf_collapsed=n,this.mainconf_collapsed=n,this.bec_collapsed=n,this.mzc_collapsed=n,this.pzc_collapsed=n,this.bzc_collapsed=n,this.pc_collapsed=n,this.mc_collapsed=n,this.sc_collapsed=n,this.mzdc_collapsed=n},fetchPersonalities(){this.api_get_req("list_personalities_categories").then(n=>{this.persCatgArr=n,this.persCatgArr.sort()}),this.api_get_req("list_personalities").then(n=>{this.persArr=n,this.persArr.sort(),console.log(`Listed personalities: -${n}`)})},fetchHardwareInfos(){this.$store.dispatch("refreshDiskUsage"),this.$store.dispatch("refreshRamUsage")},async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: -`+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: -`+n.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(n);Fe(()=>{Ve.replace()})}},onModelSelected(n){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}n&&(n.isInstalled?this.update_model(n.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=n.model.name,e.status?(this.$store.state.toast.showToast(`Selected model: -`+n.name,4,!0),Fe(()=>{Ve.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(t=>{this.$store.commit("setIsModelOk",t)})):(this.$store.state.toast.showToast(`Couldn't select model: -`+n.name,4,!1),Fe(()=>{Ve.replace()})),this.settingsChanged=!0,this.isModelSelected=!0}):this.$store.state.toast.showToast(`Model: -`+n.model.name+` -is not installed`,4,!1),Fe(()=>{Ve.replace()}))},onCopy(n){let e;n.model.isCustomModel?e=`Model name: ${n.name} -File size: ${n.fileSize} -Manually downloaded model `:e=`Model name: ${n.name} -File size: ${n.fileSize} -Download: ${"https://huggingface.co/"+n.quantizer+"/"+n.name} -License: ${n.license} -Owner: ${n.quantizer} -Website: ${"https://huggingface.co/"+n.quantizer} -Description: ${n.description}`,this.$store.state.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onCopyLink(n){this.$store.state.toast.showToast("Copied link to clipboard!",4,!0),navigator.clipboard.writeText(n.model.name)},onCopyPersonalityName(n){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(n.name)},async onCopyToCustom(n){await ne.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:n.personality.category,name:n.personality.name})},async handleOpenFolder(n){await ne.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:n.personality.category/n.personality.folder})},onCancelInstall(){const n=this.addModel;console.log("cancel install",n),this.modelDownlaodInProgress=!1,this.addModel={},Ye.emit("cancel_install",{model_name:n.model_name,binding_folder:n.binding_folder,model_url:n.model_url,patreon:n.patreon?n.patreon:"None"}),this.$store.state.toast.showToast("Model installation aborted",4,!1)},onInstall(n){this.variant_choices=n.model.variants,this.currenModelToInstall=n,console.log("variant_choices"),console.log(this.variant_choices),console.log(n),this.variantSelectionDialogVisible=!0},onCreateReference(){ne.post("/add_reference_to_local_model",{path:this.reference_path}).then(n=>{n.status?(this.$store.state.toast.showToast("Reference created",4,!0),this.is_loading_zoo=!0,this.refreshModelsZoo().then(()=>{this.updateModelsZoo(),this.is_loading_zoofalse})):this.$store.state.toast.showToast("Couldn't create reference",4,!1)})},onInstallAddModel(){if(!this.addModel.url){this.$store.state.toast.showToast("Link is empty",4,!1);return}let n=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=t=>{console.log("received something"),t.status&&t.progress<=100?(console.log("Progress",t),this.addModel=t,this.addModel.url=n,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),Ye.off("install_progress",e),console.log("Installed successfully"),this.addModel={},this.$store.state.toast.showToast(`Model: -`+this.addModel.model_name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(Ye.off("install_progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",t.error),this.$store.state.toast.showToast(`Model: -`+this.addModel.model_name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ye.on("install_progress",e),Ye.emit("install_model",{path:n,type:this.models_zoo[0].type}),console.log("Started installation, please wait")},uploadLocalModel(){if(this.uploadData.length==0){this.$store.state.toast.showToast("No files to upload",4,!1);return}let n=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=t=>{console.log("received something"),t.status&&t.progress<=100?(console.log("Progress",t),this.addModel=t,this.addModel.url=n,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),Ye.off("progress",e),console.log("Installed successfully"),this.addModel={},this.$store.state.toast.showToast(`Model: -`+this.addModel.model_name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(Ye.off("progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",t.error),this.$store.state.toast.showToast(`Model: -`+this.addModel.model_name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ye.on("progress",e),console.log("Started installation, please wait")},setFileList(n){this.uploadData=n.target.files,console.log("set file list",this.uploadData)},onUninstall(n){this.$store.state.yesNoDialog.askQuestion(`Are you sure you want to delete this model? - [`+n.name+"]","Yes","Cancel").then(e=>{if(e){console.log("uninstalling model...");const t=s=>{console.log("uninstalling res",s),s.status?(console.log("uninstalling success",s),n.uninstalling=!1,Ye.off("install_progress",t),this.showProgress=!1,this.is_loading_zoo=!0,this.refreshModelsZoo().then(()=>{this.updateModelsZoo(),this.is_loading_zoo=!1}),this.modelsFiltered=this.models_zoo,this.$store.state.toast.showToast(`Model: -`+n.model.name+` -was uninstalled!`,4,!0),this.$store.dispatch("refreshDiskUsage")):(console.log("uninstalling failed",s),n.uninstalling=!1,this.showProgress=!1,Ye.off("uninstall_progress",t),console.error("Uninstallation failed:",s.error),this.$store.state.toast.showToast(`Model: -`+n.model.name+` -failed to uninstall!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ye.on("uninstall_progress",t),this.selected_variant!=null?Ye.emit("uninstall_model",{path:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name+"/resolve/main/"+this.selected_variant.name,type:n.model.type}):Ye.emit("uninstall_model",{path:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,type:n.model.type})}})},onBindingSelected(n){if(console.log("Binding selected"),!n.binding.installed){this.$store.state.toast.showToast(`Binding is not installed: -`+n.binding.name,4,!1);return}this.mzc_collapsed=!0,this.configFile.binding_name!=n.binding.folder&&(this.update_binding(n.binding.folder),this.binding_changed=!0),this.api_get_req("get_model_status").then(e=>{this.$store.commit("setIsModelOk",e)})},onInstallBinding(n){this.configFile.binding_name!=n.binding.folder?(this.isLoading=!0,n.disclaimer&&this.$store.state.yesNoDialog.askQuestion(n.disclaimer,"Proceed","Cancel"),ne.post("/install_binding",{name:n.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("install_binding",e),e.data.status?(this.$store.state.toast.showToast("Binding installed successfully!",4,!0),this.$store.state.messageBox.showMessage(`It is advised to reboot the application after installing a binding. -Page will refresh in 5s.`),setTimeout(()=>{window.location.href="/"},5e3)):this.$store.state.toast.showToast("Could not reinstall binding",4,!1),this.isLoading=!1,e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall binding -`+e.message,4,!1),{status:!1}))):this.update_binding(n.binding.folder)},onUnInstallBinding(n){this.isLoading=!0,ne.post("/unInstall_binding",{name:n.binding.folder}).then(e=>{if(e){if(this.isLoading=!1,console.log("unInstall_binding",e),e.data.status){const t=this.bindingsZoo.findIndex(r=>r.folder==n.binding.folder),s=this.bindingsZoo[t];s?s.installed=!0:s.installed=!1,this.settingsChanged=!0,this.binding_changed=!0,this.$store.state.toast.showToast("Binding uninstalled successfully!",4,!0)}else this.$store.state.toast.showToast("Could not uninstall binding",4,!1);return e.data}this.isLoading=!1,n.isInstalled=False}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not uninstall binding -`+e.message,4,!1),{status:!1}))},onReinstallBinding(n){this.isLoading=!0,ne.post("/reinstall_binding",{name:n.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_binding",e),e.data.status?(this.$store.state.toast.showToast("Binding reinstalled successfully!",4,!0),this.$store.state.messageBox.showMessage("It is advised to reboot the application after installing a binding")):this.$store.state.toast.showToast("Could not reinstall binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall binding -`+e.message,4,!1),{status:!1}))},onSettingsBinding(n){try{this.isLoading=!0,ne.get("/get_active_binding_settings").then(e=>{console.log(e),this.isLoading=!1,e&&(console.log("binding setting",e),e.data&&Object.keys(e.data).length>0?this.$store.state.universalForm.showForm(e.data,"Binding settings - "+n.binding.name,"Save changes","Cancel").then(t=>{try{ne.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:t},{headers:this.posts_headers}).then(s=>{s&&s.data?(console.log("binding set with new settings",s.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0),ne.post("/update_binding_settings",{client_id:this.$store.state.client_id}).then(r=>{this.$store.state.toast.showToast("Binding settings committed successfully!",4,!0),window.location.href="/"})):(this.$store.state.toast.showToast(`Did not get binding settings responses. -`+s,4,!1),this.isLoading=!1)})}catch(s){this.$store.state.toast.showToast(`Did not get binding settings responses. - Endpoint error: `+s.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(e){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+e.message,4,!1)}},onReloadBinding(n){console.log("Reloading binding"),this.isLoading=!0,ne.post("/reload_binding",{name:n.binding.folder},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reload_binding",e),e.data.status?this.$store.state.toast.showToast("Binding reloaded successfully!",4,!0):this.$store.state.toast.showToast("Could not reload binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reload binding -`+e.message,4,!1),{status:!1}))},onSettingsPersonality(n){try{this.isLoading=!0,ne.get("/get_active_personality_settings").then(e=>{this.isLoading=!1,e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$store.state.universalForm.showForm(e.data,"Personality settings - "+n.personality.name,"Save changes","Cancel").then(t=>{try{ne.post("/set_active_personality_settings",t).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get Personality settings responses. -`+s,4,!1),this.isLoading=!1)})}catch(s){this.$store.state.toast.showToast(`Did not get Personality settings responses. - Endpoint error: `+s.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Personality has no settings",4,!1),this.isLoading=!1))})}catch(e){this.isLoading=!1,this.$store.state.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},onMessageBoxOk(){console.log("OK button clicked")},update_personality_category(n,e){this.personality_category=n,e()},refresh(){console.log("Refreshing"),this.$store.dispatch("refreshConfig").then(()=>{console.log(this.personality_category),this.api_get_req("list_personalities_categories").then(n=>{console.log("cats",n),this.persCatgArr=n,this.personalitiesFiltered=this.$store.state.personalities.filter(e=>e.category===this.personality_category),this.personalitiesFiltered.sort()})})},toggleAccordion(){this.showAccordion=!this.showAccordion},async update_setting(n,e,t){this.isLoading=!0;const s={client_id:this.$store.state.client_id,setting_name:n,setting_value:e};console.log("Updating setting",n,":",e);let r=await ne.post("/update_setting",s,{headers:this.posts_headers});if(r)return this.isLoading=!1,console.log("update_setting",r),r.status?this.$store.state.toast.showToast(`Setting updated successfully. -`,4,!0):this.$store.state.toast.showToast(`Setting update failed. -Please view the console for more details.`,4,!1),t!==void 0&&t(r),r.data;this.isLoading=!1},async refreshModelsZoo(){this.models_zoo=[],console.log("refreshing models"),this.is_loading_zoo=!0,await this.$store.dispatch("refreshModelsZoo"),console.log("ModelsZoo refreshed"),await this.$store.dispatch("refreshModels"),console.log("Models refreshed"),this.updateModelsZoo(),console.log("Models updated"),this.is_loading_zoo=!1},async updateModelsZoo(){let n=this.$store.state.modelsZoo;if(n.length!=0){console.log(`REFRESHING models using sorting ${this.sort_type}`),n.length>1?(this.sort_type==0?(n.sort((e,t)=>{const s=new Date(e.last_commit_time);return new Date(t.last_commit_time)-s}),console.log("Sorted")):this.sort_type==1?n.sort((e,t)=>t.rank-e.rank):this.sort_type==2?n.sort((e,t)=>e.name.localeCompare(t.name)):this.sort_type==3&&n.sort((e,t)=>e.name.localeCompare(t.name)),console.log("Sorted")):console.log("No sorting needed"),n.forEach(e=>{e.name==this.$store.state.config.model_name?e.selected=!0:e.selected=!1}),console.log("Selected models");for(let e=0;er.name==t);if(s==-1)for(let r=0;ro.name==t),s!=-1)){s=r,console.log(`Found ${t} at index ${s}`);break}}if(s==-1){let r={};r.name=t,r.icon=this.imgBinding,r.isCustomModel=!0,r.isInstalled=!0,n.push(r)}else n[s].isInstalled=!0}console.log("Determined models"),n.sort((e,t)=>e.isInstalled&&!t.isInstalled?-1:!e.isInstalled&&t.isInstalled?1:0),console.log("Done"),this.models_zoo=this.$store.state.modelsZoo}},update_binding(n){this.isLoading=!0,this.$store.state.modelsZoo=[],this.configFile.model_name=null,this.$store.state.config.model_name=null,console.log("updating binding_name"),this.update_setting("binding_name",n,async e=>{console.log("updated binding_name"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.mzc_collapsed=!0;const t=this.bindingsZoo.findIndex(r=>r.folder==n),s=this.bindingsZoo[t];s?s.installed=!0:s.installed=!1,this.settingsChanged=!0,this.isLoading=!1,Fe(()=>{Ve.replace()}),console.log("updating model"),this.update_model(null).then(()=>{}),Fe(()=>{Ve.replace()})}),Fe(()=>{Ve.replace()})},async update_model(n){n||(this.isModelSelected=!1),this.isLoading=!0;let e=await this.update_setting("model_name",n);return this.isLoading=!1,Fe(()=>{Ve.replace()}),e},async cancelConfiguration(){await this.$store.dispatch("refreshConfig"),this.settingsChanged=!1},applyConfiguration(){this.isLoading=!0,ne.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.configFile},{headers:this.posts_headers}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Fe(()=>{Ve.replace()})})},save_configuration(){this.showConfirmation=!1,ne.post("/save_settings",{},{headers:this.posts_headers}).then(n=>{if(n)return n.status||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}))},reset_configuration(){this.$store.state.yesNoDialog.askQuestion(`Are you sure? -This will delete all your configurations and get back to default configuration.`).then(n=>{n&&ne.post("/reset_settings",{},{headers:this.posts_headers}).then(e=>{if(e)return e.status?this.$store.state.messageBox.showMessage("Settings have been reset correctly"):this.$store.state.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e.message,"reset_configuration"),this.$store.state.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(n){try{const e=await ne.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - settings");return}},async api_post_req(n){try{const e=await ne.post("/"+n,{client_id:this.$store.state.client_id});if(e)return e.data}catch(e){console.log(e.message,"api_post_req - settings");return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.$store.state.personalities=[];const n=await this.api_get_req("get_all_personalities"),e=this.$store.state.config;console.log("recovering all_personalities");const t=Object.keys(n);for(let s=0;s{const c=e.personalities.includes(r+"/"+a.folder);let d={};return d=a,d.category=r,d.language="",d.full_path=r+"/"+a.folder,d.isMounted=c,d});this.$store.state.personalities.length==0?this.$store.state.personalities=o:this.$store.state.personalities=this.$store.state.personalities.concat(o)}this.$store.state.personalities.sort((s,r)=>s.name.localeCompare(r.name)),this.personalitiesFiltered=this.$store.state.personalities.filter(s=>s.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),console.log("per filtered",this.personalitiesFiltered),this.isLoading=!1},async filterPersonalities(){if(!this.searchPersonality){this.personalitiesFiltered=this.$store.state.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),this.searchPersonalityInProgress=!1;return}const n=this.searchPersonality.toLowerCase(),e=this.$store.state.personalities.filter(t=>{if(t.name&&t.name.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n)||t.full_path&&t.full_path.toLowerCase().includes(n))return t});e.length>0?this.personalitiesFiltered=e.sort():(this.personalitiesFiltered=this.$store.state.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort()),this.searchPersonalityInProgress=!1},async filterModels(){const n=this.searchModel.toLowerCase();this.is_loading_zoo=!0,console.log("filtering models"),console.log(this.models_zoo);const e=this.models_zoo.filter(t=>{if(t.name&&t.name.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n)||t.category&&t.category.toLowerCase().includes(n))return t});this.is_loading_zoo=!1,e.length>0?this.modelsFiltered=e:this.modelsFiltered=[],this.searchModelInProgress=!1},computedFileSize(n){return sr(n)},async mount_personality(n){if(!n)return{status:!1,error:"no personality - mount_personality"};try{const e={client_id:this.$store.state.client_id,language:n.language?n.language:"",category:n.category?n.category:"",folder:n.folder?n.folder:""},t=await ne.post("/mount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(e){console.log(e.message,"mount_personality - settings");return}},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 ne.post("/unmount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};let e=n.language==null?n.full_path:n.full_path+":"+n.language;console.log("pth",e);const t=this.configFile.personalities.findIndex(r=>r===e),s={client_id:this.$store.state.client_id,id:t};try{const r=await ne.post("/select_personality",s,{headers:this.posts_headers});if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},async mountPersonality(n){if(this.isLoading=!0,console.log("mount pers",n),n.personality.disclaimer!=""&&this.$store.state.messageBox.showMessage(n.personality.disclaimer),!n)return;if(this.configFile.personalities.includes(n.personality.full_path)){this.isLoading=!1,this.$store.state.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(n.personality);console.log("mount_personality res",e),e&&e.status&&e.active_personality_id>-1&&e.personalities.includes(n.personality.full_path)?(this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality mounted",4,!0),n.isMounted=!0,(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: -`+n.personality.name,4,!0),this.$store.dispatch("refreshMountedPersonalities")):(n.isMounted=!1,this.$store.state.toast.showToast(`Could not mount personality -Error: `+e.error+` -Response: -`+e,4,!1)),this.isLoading=!1},async unmountAll(){await ne.post("/unmount_all_personalities",{client_id:this.$store.state.client_id},{headers:this.posts_headers}),this.$store.dispatch("refreshMountedPersonalities"),this.$store.dispatch("refreshConfig"),this.$store.state.toast.showToast("All personas unmounted",4,!0)},async unmountPersonality(n){if(this.isLoading=!0,!n)return;const e=await this.unmount_personality(n.personality||n);if(e.status){this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality unmounted",4,!0);const t=this.$store.state.personalities.findIndex(a=>a.full_path==n.full_path),s=this.personalitiesFiltered.findIndex(a=>a.full_path==n.full_path),r=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==n.full_path);console.log("ppp",this.$store.state.personalities[t]),this.$store.state.personalities[t].isMounted=!1,s>-1&&(this.personalitiesFiltered[s].isMounted=!1),r>-1&&(this.$refs.personalitiesZoo[r].isMounted=!1),this.$store.dispatch("refreshMountedPersonalities");const i=this.mountedPersArr[this.mountedPersArr.length-1];console.log(i,this.mountedPersArr.length),(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: -`+i.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality -Error: `+e.error,4,!1);this.isLoading=!1},editPersonality(n){n=n.personality,ne.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)})},copyToCustom(n){n=n.personality,ne.post("/copy_to_custom_personas",{category:n.category,name:n.folder}).then(e=>{e.status?(this.$store.state.messageBox.showMessage(`Personality copied to the custom personalities folder: -Now it's up to you to modify it, enhance it, and maybe even share it. -Feel free to add your name as an author, but please remember to keep the original creator's name as well. -You have the freedom to give, sell, or keep the personas you create for yourself. -The possibilities are endless, they are now yours to mold and customize as you see fit.`),this.$store.dispatch("refreshPersonalitiesZoo")):this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: -Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: -`,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),ne.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=Bs},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 ne.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 ne.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")}try{if(console.log("Getting comfyui models"),this.configFile.activate_lollms_tti_server&&this.configFile.active_tti_service=="comfyui"){const n=await ne.get("/list_comfyui_models");n.data.status&&(this.comfyui_models=n.data.models)}}catch{console.log("Couldin't list output devices")}this.fetchElevenLabsVoices()},activated(){},computed:{full_template:{get(){return(this.configFile.start_header_id_template+this.configFile.system_message_template+this.configFile.end_header_id_template+" system message"+this.configFile.separator_template+this.configFile.start_user_header_id_template+"user name"+this.configFile.end_user_header_id_template+" User prompt"+this.configFile.separator_template+this.configFile.end_user_message_id_template+this.configFile.separator_template+this.configFile.start_ai_header_id_template+"ai personality"+this.configFile.end_ai_header_id_template+"ai response"+this.configFile.end_ai_message_id_template).replace(` -`,"
    ")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(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 $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},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):$n}catch{console.log("error")}if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},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:Bs},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_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 null;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return n>-1?this.bindingsZoo[n].name:null},active_pesonality(){if(!this.isMounted)return null;const n=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return n>-1?this.$store.state.personalities[n].name:null},speed_computed(){return sr(this.addModel.speed)},total_size_computed(){return sr(this.addModel.total_size)},downloaded_size_computed(){return sr(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Fe(()=>{Ve.replace()})},pc_collapsed(){Fe(()=>{Ve.replace()})},mc_collapsed(){Fe(()=>{Ve.replace()})},sc_collapsed(){Fe(()=>{Ve.replace()})},showConfirmation(){Fe(()=>{Ve.replace()})},mzl_collapsed(){Fe(()=>{Ve.replace()})},pzl_collapsed(){Fe(()=>{Ve.replace()})},ezl_collapsed(){Fe(()=>{Ve.replace()})},bzl_collapsed(){Fe(()=>{Ve.replace()})},all_collapsed(n){this.collapseAll(n),Fe(()=>{Ve.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Fe(()=>{Ve.replace()})},isLoading(){Fe(()=>{Ve.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Fe(()=>{Ve.replace()})}},async beforeRouteLeave(n){await this.$router.isReady()}},Jnt={class:"container pt-12 flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full background-color scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},est={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},tst={key:0,class:"flex gap-3 flex-1 items-center duration-75"},nst={key:1,class:"flex gap-3 flex-1 items-center"},sst={class:"flex gap-3 flex-1 items-center justify-end"},rst={class:"flex gap-3 items-center"},ist={key:0,class:"flex gap-3 items-center"},ost={key:1,role:"status"},ast={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},lst={class:"flex flex-row p-3"},cst={class:"text-base font-semibold cursor-pointer select-none items-center"},dst={class:"flex gap-2 items-center"},ust={key:0},pst=["src"],fst={class:"font-bold font-large text-lg"},_st={key:1},mst={class:"flex gap-2 items-center"},hst=["src"],gst={class:"font-bold font-large text-lg"},bst={class:"font-bold font-large text-lg"},yst={class:"font-bold font-large text-lg"},Est={class:"mb-2"},vst={class:"flex flex-col mx-2"},Sst={class:"p-2"},Tst={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},xst={class:"mb-2"},Cst={class:"flex flex-col mx-2"},wst={class:"p-2"},Rst={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Ast={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Mst=["src"],Nst={class:"flex flex-col mx-2"},Ost={class:"p-2"},Ist={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},kst={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Dst={class:"flex flex-row p-3"},Lst={class:"flex flex-col mb-2 px-3 pb-2"},Pst={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"},Fst={style:{width:"100%"}},Ust={style:{width:"100%"}},Bst={style:{width:"100%"}},Gst={style:{width:"100%"}},Vst={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},zst={class:"flex flex-row p-3"},Hst={class:"flex flex-col mb-2 px-3 pb-2"},qst={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"},Yst={for:"logo-upload"},$st=["src"],Wst={style:{width:"10%"}},Kst={class:"text-center items-center"},jst={class:"flex flex-row"},Qst={style:{width:"100%"}},Xst={class:"flex flex-row"},Zst={class:"flex flex-row"},Jst={class:"flex flex-row"},ert={class:"flex flex-row"},trt={class:"flex flex-row"},nrt={class:"flex flex-row"},srt={class:"flex flex-row"},rrt={class:"flex flex-row"},irt={class:"flex flex-row"},ort={class:"flex flex-row"},art={class:"flex flex-row"},lrt={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"},crt=["innerHTML"],drt={style:{width:"100%"}},urt={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"},prt={style:{width:"100%"}},frt={style:{width:"100%"}},_rt={style:{width:"100%"}},mrt={style:{width:"100%"}},hrt={for:"avatar-upload"},grt=["src"],brt={style:{width:"10%"}},yrt={class:"flex flex-row"},Ert={style:{width:"100%"}},vrt={style:{width:"100%"}},Srt={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"},Trt={style:{width:"100%"}},xrt={style:{width:"100%"}},Crt={style:{width:"100%"}},wrt={style:{width:"100%"}},Rrt={style:{width:"100%"}},Art={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"},Mrt={class:"flex flex-row"},Nrt={style:{width:"100%"}},Ort={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"},Irt={class:"flex flex-row"},krt={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"},Drt={class:"flex flex-row"},Lrt={class:"flex flex-row"},Prt={class:"flex flex-row"},Frt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Urt={class:"flex flex-row p-3"},Brt={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"},Grt={style:{width:"100%"}},Vrt=["onUpdate:modelValue"],zrt=["onClick"],Hrt=["onClick"],qrt=["onClick"],Yrt=["disabled"],$rt={key:0,value:"sentence-transformers/bert-base-nli-mean-tokens"},Wrt={key:1,value:"bert-base-uncased"},Krt={key:2,value:"bert-base-multilingual-uncased"},jrt={key:3,value:"bert-large-uncased"},Qrt={key:4,value:"bert-large-uncased-whole-word-masking-finetuned-squad"},Xrt={key:5,value:"distilbert-base-uncased"},Zrt={key:6,value:"roberta-base"},Jrt={key:7,value:"roberta-large"},eit={key:8,value:"xlm-roberta-base"},tit={key:9,value:"xlm-roberta-large"},nit={key:10,value:"albert-base-v2"},sit={key:11,value:"albert-large-v2"},rit={key:12,value:"albert-xlarge-v2"},iit={key:13,value:"albert-xxlarge-v2"},oit={key:14,value:"sentence-transformers/all-MiniLM-L6-v2"},ait={key:15,value:"sentence-transformers/all-MiniLM-L12-v2"},lit={key:16,value:"sentence-transformers/all-distilroberta-v1"},cit={key:17,value:"sentence-transformers/all-mpnet-base-v2"},dit={key:18,value:"text-embedding-ada-002"},uit={key:19,value:"text-embedding-babbage-001"},pit={key:20,value:"text-embedding-curie-001"},fit={key:21,value:"text-embedding-davinci-001"},_it={key:22,disabled:""},mit={class:"flex flex-row"},hit={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"},git={class:"flex flex-row"},bit={class:"flex flex-row"},yit={class:"flex flex-row"},Eit={class:"flex flex-row"},vit={class:"flex flex-row"},Sit={style:{width:"100%"}},Tit={class:"flex flex-row"},xit={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Cit={class:"flex flex-row p-3"},wit={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"},Rit={class:"flex flex-row"},Ait={class:"flex flex-row"},Mit={class:"flex flex-row"},Nit={class:"flex flex-row"},Oit={class:"flex flex-col"},Iit={class:"flex flex-col"},kit={class:"flex flex-col"},Dit={class:"flex flex-col"},Lit={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Pit={class:"flex flex-row p-3"},Fit={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"},Uit={style:{width:"100%"}},Bit={style:{width:"100%"}},Git={style:{width:"100%"}},Vit={style:{width:"100%"}},zit={style:{width:"100%"}},Hit={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"},qit={class:"flex flex-row"},Yit={class:"flex flex-row"},$it={class:"flex flex-row"},Wit={class:"flex flex-row"},Kit={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"},jit={style:{width:"100%"}},Qit={style:{width:"100%"}},Xit={style:{width:"100%"}},Zit={style:{width:"100%"}},Jit={style:{width:"100%"}},eot={style:{width:"100%"}},tot={style:{width:"100%"}},not={class:"flex flex-row"},sot={class:"flex flex-row"},rot={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"},iot={style:{width:"100%"}},oot=["value"],aot={style:{width:"100%"}},lot=["value"],cot={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"},dot={style:{width:"100%"}},uot={style:{width:"100%"}},pot={style:{width:"100%"}},fot={style:{width:"100%"}},_ot={style:{width:"100%"}},mot={style:{width:"100%"}},hot={style:{width:"100%"}},got={style:{width:"100%"}},bot={style:{width:"100%"}},yot={style:{width:"100%"}},Eot={style:{width:"100%"}},vot={style:{width:"100%"}},Sot={style:{width:"100%"}},Tot={style:{width:"100%"}},xot={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"},Cot={class:"flex flex-row"},wot={class:"flex flex-row"},Rot=["value"],Aot={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"},Mot={class:"flex flex-row"},Not={class:"flex flex-row"},Oot=["value"],Iot={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"},kot={class:"flex flex-row"},Dot={class:"flex flex-row"},Lot=["value"],Pot={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"},Fot={class:"flex flex-row"},Uot=["value"],Bot={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"},Got={class:"flex flex-row"},Vot=["value"],zot={class:"flex flex-row"},Hot=["value"],qot={class:"flex flex-row"},Yot={class:"flex flex-row"},$ot={class:"flex flex-row"},Wot={class:"flex flex-row"},Kot={class:"flex flex-row"},jot={class:"flex flex-row"},Qot={class:"flex flex-row"},Xot={class:"flex flex-row"},Zot={class:"flex flex-row"},Jot={class:"flex flex-row"},eat={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"},tat={class:"flex flex-row"},nat={class:"flex flex-row"},sat={class:"flex flex-row"},rat={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"},iat={class:"flex flex-row"},oat={class:"flex flex-row"},aat={class:"flex flex-row"},lat={class:"flex flex-row"},cat={class:"flex flex-row"},dat=["value"],uat={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"},pat={class:"flex flex-row"},fat={class:"flex flex-row"},_at={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"},mat={class:"flex flex-row"},hat={class:"flex flex-row"},gat={class:"flex flex-row"},bat={class:"flex flex-row"},yat={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"},Eat={class:"flex flex-row"},vat={class:"flex flex-row"},Sat={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"},Tat={class:"flex flex-row"},xat={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"},Cat={class:"flex flex-row"},wat={class:"flex flex-row"},Rat={class:"flex flex-row"},Aat={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"},Mat={class:"flex flex-row"},Nat={class:"flex flex-row"},Oat={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"},Iat={class:"flex flex-row"},kat={class:"flex flex-row"},Dat=["value"],Lat={class:"flex flex-row"},Pat={class:"flex flex-row"},Fat={class:"flex flex-row"},Uat={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"},Bat={class:"flex flex-row"},Gat={class:"flex flex-row"},Vat={class:"flex flex-row"},zat={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"},Hat={class:"flex flex-row"},qat={class:"flex flex-row"},Yat={class:"flex flex-row"},$at={class:"flex flex-col align-bottom"},Wat={class:"relative"},Kat={class:"absolute right-0"},jat={class:"flex flex-row"},Qat={class:"flex flex-row"},Xat={class:"flex flex-row"},Zat={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"},Jat={class:"flex flex-row"},elt={class:"flex flex-row"},tlt={class:"flex flex-row"},nlt={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"},slt={class:"flex flex-row"},rlt={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"},ilt={class:"flex flex-row"},olt={class:"flex flex-row"},alt={class:"flex flex-row"},llt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},clt={class:"flex flex-row p-3"},dlt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},ult={key:1,class:"mr-2"},plt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},flt={class:"flex gap-1 items-center"},_lt=["src"],mlt={class:"font-bold font-large text-lg line-clamp-1"},hlt={key:0,class:"mb-2"},glt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},blt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},ylt={class:"flex flex-row p-3"},Elt={class:"flex flex-row items-center"},vlt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Slt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Tlt={key:2,class:"mr-2"},xlt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Clt={class:"flex gap-1 items-center"},wlt=["src"],Rlt={class:"font-bold font-large text-lg line-clamp-1"},Alt={class:"mx-2 mb-4"},Mlt={class:"relative"},Nlt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Olt={key:0},Ilt={key:1},klt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Dlt={key:1,class:"mb-2"},Llt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Plt={class:"mb-2"},Flt={class:"p-2"},Ult={class:"mb-3"},Blt={key:0},Glt={class:"mb-3"},Vlt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},zlt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Hlt={class:"w-full p-2"},qlt={class:"flex justify-between mb-1"},Ylt={class:"text-sm font-medium text-blue-700 dark:text-white"},$lt=["title"],Wlt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Klt={class:"flex justify-between mb-1"},jlt={class:"text-base font-medium text-blue-700 dark:text-white"},Qlt={class:"text-sm font-medium text-blue-700 dark:text-white"},Xlt={class:"flex flex-grow"},Zlt={class:"flex flex-row flex-grow gap-3"},Jlt={class:"p-2 text-center grow"},ect={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},tct={class:"flex flex-row p-3 items-center"},nct={key:0,class:"mr-2"},sct={class:"mr-2 font-bold font-large text-lg line-clamp-1"},rct={key:1,class:"mr-2"},ict={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},oct={key:0,class:"flex -space-x-4 items-center"},act={class:"group items-center flex flex-row"},lct=["onClick"],cct=["src","title"],dct=["onClick"],uct={class:"mx-2 mb-4"},pct={class:"relative"},fct={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},_ct={key:0},mct={key:1},hct={key:0,class:"mx-2 mb-4"},gct={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},bct=["selected"],yct={key:0,class:"mb-2"},Ect={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},vct={class:"flex flex-col mb-2 p-3 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Sct={class:"flex flex-row"},Tct={class:"m-2"},xct={class:"flex flex-row gap-2 items-center"},Cct={class:"m-2"},wct={class:"m-2"},Rct={class:"flex flex-col align-bottom"},Act={class:"relative"},Mct={class:"absolute right-0"},Nct={class:"m-2"},Oct={class:"flex flex-col align-bottom"},Ict={class:"relative"},kct={class:"absolute right-0"},Dct={class:"m-2"},Lct={class:"flex flex-col align-bottom"},Pct={class:"relative"},Fct={class:"absolute right-0"},Uct={class:"m-2"},Bct={class:"flex flex-col align-bottom"},Gct={class:"relative"},Vct={class:"absolute right-0"},zct={class:"m-2"},Hct={class:"flex flex-col align-bottom"},qct={class:"relative"},Yct={class:"absolute right-0"},$ct={class:"m-2"},Wct={class:"flex flex-col align-bottom"},Kct={class:"relative"},jct={class:"absolute right-0"};function Qct(n,e,t,s,r,i){const o=nt("StringListManager"),a=nt("Card"),c=nt("BindingEntry"),d=nt("RadioOptions"),u=nt("model-entry"),_=nt("personality-entry"),m=nt("AddModelDialog"),h=nt("ChoiceDialog");return T(),x(Be,null,[l("div",Jnt,[l("div",est,[r.showConfirmation?(T(),x("div",tst,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=$(f=>r.showConfirmation=!1,["stop"]))},e[471]||(e[471]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=$(f=>i.save_configuration(),["stop"]))},e[472]||(e[472]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),r.showConfirmation?B("",!0):(T(),x("div",nst,[l("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=f=>i.reset_configuration())},e[473]||(e[473]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=$(f=>r.all_collapsed=!r.all_collapsed,["stop"]))},e[474]||(e[474]=[l("i",{"data-feather":"list"},null,-1)]))])),l("div",sst,[l("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=f=>i.api_get_req("clear_uploads").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[475]||(e[475]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=f=>i.api_post_req("restart_program").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[476]||(e[476]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),r.has_updates?(T(),x("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=f=>i.api_post_req("update_software").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},e[477]||(e[477]=[l("i",{"data-feather":"arrow-up-circle"},null,-1),l("i",{"data-feather":"alert-circle"},null,-1)]))):B("",!0),l("div",rst,[r.settingsChanged?(T(),x("div",ist,[r.isLoading?B("",!0):(T(),x("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=$(f=>i.applyConfiguration(),["stop"]))},e[478]||(e[478]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),l("i",{"data-feather":"check"})],-1)]))),r.isLoading?B("",!0):(T(),x("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=$(f=>i.cancelConfiguration(),["stop"]))},e[479]||(e[479]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),l("i",{"data-feather":"x"})],-1)])))])):B("",!0),r.isLoading?(T(),x("div",ost,[l("p",null,Y(r.loading_text),1),e[480]||(e[480]=l("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"},[l("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"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),e[481]||(e[481]=l("span",{class:"sr-only"},"Loading...",-1))])):B("",!0)])])]),l("div",{class:Le(r.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[l("div",ast,[l("div",lst,[l("button",{onClick:e[9]||(e[9]=$(f=>r.sc_collapsed=!r.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[482]||(e[482]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.sc_collapsed]]),k(l("div",null,e[483]||(e[483]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.sc_collapsed]]),e[486]||(e[486]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),e[487]||(e[487]=l("div",{class:"mr-2"},"|",-1)),l("div",cst,[l("div",dst,[l("div",null,[i.vramUsage&&i.vramUsage.gpus&&i.vramUsage.gpus.length==1?(T(),x("div",ust,[(T(!0),x(Be,null,Ke(i.vramUsage.gpus,f=>(T(),x("div",{class:"flex gap-2 items-center",key:f},[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,pst),l("p",fst,[l("div",null,Y(i.computedFileSize(f.used_vram))+" / "+Y(i.computedFileSize(f.total_vram))+" ("+Y(f.percentage)+"%) ",1)])]))),128))])):B("",!0),i.vramUsage&&i.vramUsage.gpus&&i.vramUsage.gpus.length>1?(T(),x("div",_st,[l("div",mst,[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,hst),l("p",gst,[l("div",null,Y(i.vramUsage.gpus.length)+"x ",1)])])])):B("",!0)]),e[484]||(e[484]=l("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",bst,[l("div",null,Y(i.ram_usage)+" / "+Y(i.ram_total_space)+" ("+Y(i.ram_percent_usage)+"%)",1)]),e[485]||(e[485]=l("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",yst,[l("div",null,Y(i.disk_binding_models_usage)+" / "+Y(i.disk_total_space)+" ("+Y(i.disk_percent_usage)+"%)",1)])])])])]),l("div",{class:Le([{hidden:r.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Est,[e[490]||(e[490]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[l("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"})]),Ze(" CPU Ram usage: ")],-1)),l("div",vst,[l("div",null,[e[488]||(e[488]=l("b",null,"Avaliable ram: ",-1)),Ze(Y(i.ram_available_space),1)]),l("div",null,[e[489]||(e[489]=l("b",null,"Ram usage: ",-1)),Ze(" "+Y(i.ram_usage)+" / "+Y(i.ram_total_space)+" ("+Y(i.ram_percent_usage)+")% ",1)])]),l("div",Sst,[l("div",Tst,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+i.ram_percent_usage+"%;")},null,4)])])]),l("div",xst,[e[493]||(e[493]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),Ze(" Disk usage: ")],-1)),l("div",Cst,[l("div",null,[e[491]||(e[491]=l("b",null,"Avaliable disk space: ",-1)),Ze(Y(i.disk_available_space),1)]),l("div",null,[e[492]||(e[492]=l("b",null,"Disk usage: ",-1)),Ze(" "+Y(i.disk_binding_models_usage)+" / "+Y(i.disk_total_space)+" ("+Y(i.disk_percent_usage)+"%)",1)])]),l("div",wst,[l("div",Rst,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+i.disk_percent_usage+"%;")},null,4)])])]),(T(!0),x(Be,null,Ke(i.vramUsage.gpus,f=>(T(),x("div",{class:"mb-2",key:f},[l("label",Ast,[l("img",{src:r.SVGGPU,width:"25",height:"25"},null,8,Mst),e[494]||(e[494]=Ze(" GPU usage: "))]),l("div",Nst,[l("div",null,[e[495]||(e[495]=l("b",null,"Model: ",-1)),Ze(Y(f.gpu_model),1)]),l("div",null,[e[496]||(e[496]=l("b",null,"Avaliable vram: ",-1)),Ze(Y(this.computedFileSize(f.available_space)),1)]),l("div",null,[e[497]||(e[497]=l("b",null,"GPU usage: ",-1)),Ze(" "+Y(this.computedFileSize(f.used_vram))+" / "+Y(this.computedFileSize(f.total_vram))+" ("+Y(f.percentage)+"%)",1)])]),l("div",Ost,[l("div",Ist,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt("width: "+f.percentage+"%;")},null,4)])])]))),128))],2)]),l("div",kst,[l("div",Dst,[l("button",{onClick:e[10]||(e[10]=$(f=>r.smartrouterconf_collapsed=!r.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[498]||(e[498]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.smartrouterconf_collapsed]]),k(l("div",null,e[499]||(e[499]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.smartrouterconf_collapsed]]),e[500]||(e[500]=l("div",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1))])]),l("div",{class:Le([{hidden:r.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Lst,[z(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Pst,[l("tr",null,[e[501]||(e[501]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use Smart Routing:")],-1)),l("td",Fst,[k(l("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=f=>i.configFile.use_smart_routing=f),onChange:e[12]||(e[12]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_smart_routing]])])]),l("tr",null,[e[502]||(e[502]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Restore model after smart routing:")],-1)),l("td",Ust,[k(l("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=f=>i.configFile.restore_model_after_smart_routing=f),onChange:e[14]||(e[14]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.restore_model_after_smart_routing]])])]),l("tr",null,[e[503]||(e[503]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_router_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Router Model:")],-1)),l("td",Bst,[k(l("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=f=>i.configFile.smart_routing_router_model=f),onChange:e[16]||(e[16]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.smart_routing_router_model]])])]),l("tr",null,[e[504]||(e[504]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_models_by_power",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Models by Power:")],-1)),l("td",Gst,[z(o,{modelValue:i.configFile.smart_routing_models_by_power,"onUpdate:modelValue":e[17]||(e[17]=f=>i.configFile.smart_routing_models_by_power=f),onChange:e[18]||(e[18]=f=>r.settingsChanged=!0),placeholder:"Enter model name"},null,8,["modelValue"])])])])]),_:1})])],2)]),l("div",Vst,[l("div",zst,[l("button",{onClick:e[19]||(e[19]=$(f=>r.mainconf_collapsed=!r.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[505]||(e[505]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.mainconf_collapsed]]),k(l("div",null,e[506]||(e[506]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.mainconf_collapsed]]),e[507]||(e[507]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1))])]),l("div",{class:Le([{hidden:r.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Hst,[z(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",qst,[l("tr",null,[e[509]||(e[509]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),l("td",null,[l("label",Yst,[l("img",{src:i.configFile.app_custom_logo!=null&&i.configFile.app_custom_logo!=""?"/user_infos/"+i.configFile.app_custom_logo:r.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,$st)]),l("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[20]||(e[20]=(...f)=>i.uploadLogo&&i.uploadLogo(...f))},null,32)]),l("td",Wst,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[21]||(e[21]=$(f=>i.resetLogo(),["stop"]))},e[508]||(e[508]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[511]||(e[511]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),l("td",Kst,[l("div",jst,[k(l("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[22]||(e[22]=f=>i.configFile.hardware_mode=f),onChange:e[23]||(e[23]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[510]||(e[510]=[l("option",{value:"cpu"},"CPU",-1),l("option",{value:"cpu-noavx"},"CPU (No AVX)",-1),l("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1),l("option",{value:"nvidia"},"NVIDIA",-1),l("option",{value:"amd-noavx"},"AMD (No AVX)",-1),l("option",{value:"amd"},"AMD",-1),l("option",{value:"apple-intel"},"Apple Intel",-1),l("option",{value:"apple-silicon"},"Apple Silicon",-1)]),544),[[Ot,i.configFile.hardware_mode]])])])]),l("tr",null,[e[512]||(e[512]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),l("td",Qst,[k(l("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[24]||(e[24]=f=>i.configFile.discussion_db_name=f),onChange:e[25]||(e[25]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.discussion_db_name]])])]),l("tr",null,[e[513]||(e[513]=l("td",{style:{"min-width":"200px"}},[l("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)),l("td",null,[l("div",Xst,[k(l("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[26]||(e[26]=f=>i.configFile.copy_to_clipboard_add_all_details=f),onChange:e[27]||(e[27]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.copy_to_clipboard_add_all_details]])])])]),l("tr",null,[e[514]||(e[514]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),l("td",null,[l("div",Zst,[k(l("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[28]||(e[28]=f=>i.configFile.auto_show_browser=f),onChange:e[29]||(e[29]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_show_browser]])])])]),l("tr",null,[e[515]||(e[515]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),l("td",null,[l("div",Jst,[k(l("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[30]||(e[30]=f=>i.configFile.debug=f),onChange:e[31]||(e[31]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug]])])])]),l("tr",null,[e[516]||(e[516]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate showing the full prompt in console (for debug):")],-1)),l("td",null,[l("div",ert,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[32]||(e[32]=f=>i.configFile.debug_show_final_full_prompt=f),onChange:e[33]||(e[33]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[517]||(e[517]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show final full prompt in console:")],-1)),l("td",null,[l("div",trt,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[34]||(e[34]=f=>i.configFile.debug_show_final_full_prompt=f),onChange:e[35]||(e[35]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[518]||(e[518]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show chunks in console:")],-1)),l("td",null,[l("div",nrt,[k(l("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[36]||(e[36]=f=>i.configFile.debug_show_chunks=f),onChange:e[37]||(e[37]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.debug_show_chunks]])])])]),l("tr",null,[e[519]||(e[519]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),l("td",null,[l("div",srt,[k(l("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[38]||(e[38]=f=>i.configFile.debug_log_file_path=f),onChange:e[39]||(e[39]=f=>r.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.debug_log_file_path]])])])]),l("tr",null,[e[520]||(e[520]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"show_news_panel",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show news panel:")],-1)),l("td",null,[l("div",rrt,[k(l("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[40]||(e[40]=f=>i.configFile.show_news_panel=f),onChange:e[41]||(e[41]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.show_news_panel]])])])]),l("tr",null,[e[521]||(e[521]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),l("td",null,[l("div",irt,[k(l("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[42]||(e[42]=f=>i.configFile.auto_save=f),onChange:e[43]||(e[43]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_save]])])])]),l("tr",null,[e[522]||(e[522]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),l("td",null,[l("div",ort,[k(l("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[44]||(e[44]=f=>i.configFile.auto_update=f),onChange:e[45]||(e[45]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_update]])])])]),l("tr",null,[e[523]||(e[523]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),l("td",null,[l("div",art,[k(l("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[46]||(e[46]=f=>i.configFile.auto_title=f),onChange:e[47]||(e[47]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_title]])])])])])]),_:1}),z(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",lrt,[l("tr",null,[e[525]||(e[525]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[l("select",{onChange:e[48]||(e[48]=(...f)=>i.handleTemplateSelection&&i.handleTemplateSelection(...f))},e[524]||(e[524]=[l("option",{value:"lollms"},"Lollms communication template",-1),l("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1),l("option",{value:"bare"},"Bare, useful when in chat mode",-1),l("option",{value:"llama3"},"LLama3 communication template",-1),l("option",{value:"mistral"},"Mistral communication template",-1),l("option",{value:"deepseek"},"DeepSeek communication template",-1)]),32)])]),l("tr",null,[e[526]||(e[526]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[49]||(e[49]=f=>i.configFile.start_header_id_template=f),onChange:e[50]||(e[50]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_header_id_template]])])]),l("tr",null,[e[527]||(e[527]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[51]||(e[51]=f=>i.configFile.end_header_id_template=f),onChange:e[52]||(e[52]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_header_id_template]])])]),l("tr",null,[e[528]||(e[528]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[53]||(e[53]=f=>i.configFile.start_user_header_id_template=f),onChange:e[54]||(e[54]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_user_header_id_template]])])]),l("tr",null,[e[529]||(e[529]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[55]||(e[55]=f=>i.configFile.end_user_header_id_template=f),onChange:e[56]||(e[56]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_user_header_id_template]])])]),l("tr",null,[e[530]||(e[530]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[57]||(e[57]=f=>i.configFile.end_user_message_id_template=f),onChange:e[58]||(e[58]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_user_message_id_template]])])]),l("tr",null,[e[531]||(e[531]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[59]||(e[59]=f=>i.configFile.start_ai_header_id_template=f),onChange:e[60]||(e[60]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.start_ai_header_id_template]])])]),l("tr",null,[e[532]||(e[532]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[61]||(e[61]=f=>i.configFile.end_ai_header_id_template=f),onChange:e[62]||(e[62]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_ai_header_id_template]])])]),l("tr",null,[e[533]||(e[533]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[63]||(e[63]=f=>i.configFile.end_ai_message_id_template=f),onChange:e[64]||(e[64]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.end_ai_message_id_template]])])]),l("tr",null,[e[534]||(e[534]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),l("td",null,[k(l("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[65]||(e[65]=f=>i.configFile.separator_template=f),onChange:e[66]||(e[66]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.separator_template]])])]),l("tr",null,[e[535]||(e[535]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[67]||(e[67]=f=>i.configFile.system_message_template=f),onChange:e[68]||(e[68]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.system_message_template]])])]),l("tr",null,[e[536]||(e[536]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),l("td",null,[l("div",{innerHTML:i.full_template},null,8,crt)])]),l("tr",null,[e[537]||(e[537]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_continue_message",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"useful for chat models and repote models but can be less useful for instruct ones"},"Use continue message:")],-1)),l("td",drt,[k(l("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[69]||(e[69]=f=>i.configFile.use_continue_message=f),onChange:e[70]||(e[70]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_continue_message]])])])])]),_:1}),z(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",urt,[l("tr",null,[e[538]||(e[538]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),l("td",prt,[k(l("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[71]||(e[71]=f=>i.configFile.user_name=f),onChange:e[72]||(e[72]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.user_name]])])]),l("tr",null,[e[539]||(e[539]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),l("td",frt,[k(l("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[73]||(e[73]=f=>i.configFile.user_description=f),onChange:e[74]||(e[74]=f=>r.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),[[ae,i.configFile.user_description]])])]),l("tr",null,[e[540]||(e[540]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_informations_in_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),l("td",_rt,[k(l("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[75]||(e[75]=f=>i.configFile.use_user_informations_in_discussion=f),onChange:e[76]||(e[76]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_user_informations_in_discussion]])])]),l("tr",null,[e[541]||(e[541]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_model_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use model name in discussion:")],-1)),l("td",mrt,[k(l("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[77]||(e[77]=f=>i.configFile.use_model_name_in_discussions=f),onChange:e[78]||(e[78]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_model_name_in_discussions]])])]),l("tr",null,[e[543]||(e[543]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),l("td",null,[l("label",hrt,[l("img",{src:i.configFile.user_avatar!=null&&i.configFile.user_avatar!=""?"/user_infos/"+i.configFile.user_avatar:r.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,grt)]),l("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[79]||(e[79]=(...f)=>i.uploadAvatar&&i.uploadAvatar(...f))},null,32)]),l("td",brt,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[80]||(e[80]=$(f=>i.resetAvatar(),["stop"]))},e[542]||(e[542]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[544]||(e[544]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),l("td",null,[l("div",yrt,[k(l("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[81]||(e[81]=f=>i.configFile.use_user_name_in_discussions=f),onChange:e[82]||(e[82]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_user_name_in_discussions]])])])]),l("tr",null,[e[545]||(e[545]=l("td",{style:{"min-width":"200px"}},[l("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)),l("td",Ert,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[83]||(e[83]=f=>i.configFile.max_n_predict=f),onChange:e[84]||(e[84]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.max_n_predict]])])]),l("tr",null,[e[546]||(e[546]=l("td",{style:{"min-width":"200px"}},[l("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)),l("td",vrt,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[85]||(e[85]=f=>i.configFile.max_n_predict=f),onChange:e[86]||(e[86]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.max_n_predict]])])])])]),_:1}),z(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Srt,[l("tr",null,[e[547]||(e[547]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_execution",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code execution:")],-1)),l("td",Trt,[k(l("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[87]||(e[87]=f=>i.configFile.turn_on_code_execution=f),onChange:e[88]||(e[88]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_code_execution]])])]),l("tr",null,[e[548]||(e[548]=l("td",{style:{"min-width":"200px"}},[l("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)),l("td",xrt,[k(l("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[89]||(e[89]=f=>i.configFile.turn_on_code_validation=f),onChange:e[90]||(e[90]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_code_validation]])])]),l("tr",null,[e[549]||(e[549]=l("td",{style:{"min-width":"200px"}},[l("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)),l("td",Crt,[k(l("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[91]||(e[91]=f=>i.configFile.turn_on_setting_update_validation=f),onChange:e[92]||(e[92]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_setting_update_validation]])])]),l("tr",null,[e[550]||(e[550]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_open_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on open file/folder validation:")],-1)),l("td",wrt,[k(l("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[93]||(e[93]=f=>i.configFile.turn_on_open_file_validation=f),onChange:e[94]||(e[94]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_open_file_validation]])])]),l("tr",null,[e[551]||(e[551]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_send_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on send file validation:")],-1)),l("td",Rrt,[k(l("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[95]||(e[95]=f=>i.configFile.turn_on_send_file_validation=f),onChange:e[96]||(e[96]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.turn_on_send_file_validation]])])])])]),_:1}),z(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Art,[l("tr",null,[e[552]||(e[552]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_skills_lib",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Skills library:")],-1)),l("td",null,[l("div",Mrt,[k(l("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[97]||(e[97]=f=>i.configFile.activate_skills_lib=f),onChange:e[98]||(e[98]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_skills_lib]])])])]),l("tr",null,[e[553]||(e[553]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Skills library database name:")],-1)),l("td",Nrt,[k(l("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[99]||(e[99]=f=>i.configFile.skills_lib_database_name=f),onChange:e[100]||(e[100]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.skills_lib_database_name]])])])])]),_:1}),z(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Ort,[l("tr",null,[e[554]||(e[554]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),l("td",null,[l("div",Irt,[k(l("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[101]||(e[101]=f=>i.configFile.pdf_latex_path=f),onChange:e[102]||(e[102]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.pdf_latex_path]])])])])])]),_:1}),z(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",krt,[l("tr",null,[e[555]||(e[555]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),l("td",null,[l("div",Drt,[k(l("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[103]||(e[103]=f=>i.configFile.positive_boost=f),onChange:e[104]||(e[104]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.positive_boost]])])])]),l("tr",null,[e[556]||(e[556]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),l("td",null,[l("div",Lrt,[k(l("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[105]||(e[105]=f=>i.configFile.negative_boost=f),onChange:e[106]||(e[106]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.negative_boost]])])])]),l("tr",null,[e[557]||(e[557]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),l("td",null,[l("div",Prt,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[107]||(e[107]=f=>i.configFile.fun_mode=f),onChange:e[108]||(e[108]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.fun_mode]])])])])])]),_:1})])],2)]),l("div",Frt,[l("div",Urt,[l("button",{onClick:e[109]||(e[109]=$(f=>r.data_conf_collapsed=!r.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[558]||(e[558]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.data_conf_collapsed]]),k(l("div",null,e[559]||(e[559]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.data_conf_collapsed]]),e[560]||(e[560]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1))])]),l("div",{class:Le([{hidden:r.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Brt,[l("tr",null,[e[561]||(e[561]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),l("td",Grt,[(T(!0),x(Be,null,Ke(i.configFile.rag_databases,(f,y)=>(T(),x("div",{key:y,class:"flex items-center mb-2"},[k(l("input",{type:"text","onUpdate:modelValue":b=>i.configFile.rag_databases[y]=b,onChange:e[110]||(e[110]=b=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,Vrt),[[ae,i.configFile.rag_databases[y]]]),l("button",{onClick:b=>i.vectorize_folder(y),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,zrt),l("button",{onClick:b=>i.select_folder(y),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,Hrt),l("button",{onClick:b=>i.removeDataSource(y),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,qrt)]))),128)),l("button",{onClick:e[111]||(e[111]=(...f)=>i.addDataSource&&i.addDataSource(...f)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),l("tr",null,[e[563]||(e[563]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[112]||(e[112]=f=>i.configFile.rag_vectorizer=f),onChange:e[113]||(e[113]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[562]||(e[562]=[l("option",{value:"semantic"},"Semantic Vectorizer",-1),l("option",{value:"tfidf"},"TFIDF Vectorizer",-1),l("option",{value:"openai"},"OpenAI Vectorizer",-1)]),544),[[Ot,i.configFile.rag_vectorizer]])])]),l("tr",null,[e[564]||(e[564]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer model:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[114]||(e[114]=f=>i.configFile.rag_vectorizer_model=f),onChange:e[115]||(e[115]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:i.configFile.rag_vectorizer==="tfidf"},[i.configFile.rag_vectorizer==="semantic"?(T(),x("option",$rt,"sentence-transformers/bert-base-nli-mean-tokens")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Wrt,"bert-base-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Krt,"bert-base-multilingual-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",jrt,"bert-large-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Qrt,"bert-large-uncased-whole-word-masking-finetuned-squad")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Xrt,"distilbert-base-uncased")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Zrt,"roberta-base")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",Jrt,"roberta-large")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",eit,"xlm-roberta-base")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",tit,"xlm-roberta-large")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",nit,"albert-base-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",sit,"albert-large-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",rit,"albert-xlarge-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",iit,"albert-xxlarge-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",oit,"sentence-transformers/all-MiniLM-L6-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",ait,"sentence-transformers/all-MiniLM-L12-v2")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",lit,"sentence-transformers/all-distilroberta-v1")):B("",!0),i.configFile.rag_vectorizer==="semantic"?(T(),x("option",cit,"sentence-transformers/all-mpnet-base-v2")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",dit,"text-embedding-ada-002")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",uit,"text-embedding-babbage-001")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",pit,"text-embedding-curie-001")):B("",!0),i.configFile.rag_vectorizer==="openai"?(T(),x("option",fit,"text-embedding-davinci-001")):B("",!0),i.configFile.rag_vectorizer==="tfidf"?(T(),x("option",_it,"No models available for TFIDF")):B("",!0)],40,Yrt),[[Ot,i.configFile.rag_vectorizer_model]])])]),l("tr",null,[e[565]||(e[565]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_openai_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key for open ai embedding method (if not provided I'll use OPENAI_API_KEY environment variable):")],-1)),l("td",null,[l("div",mit,[k(l("input",{type:"text",id:"rag_vectorizer_openai_key",required:"","onUpdate:modelValue":e[116]||(e[116]=f=>i.configFile.rag_vectorizer_openai_key=f),onChange:e[117]||(e[117]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_vectorizer_openai_key]])])])]),l("tr",null,[e[566]||(e[566]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG chunk size:")],-1)),l("td",null,[k(l("input",{id:"rag_chunk_size","onUpdate:modelValue":e[118]||(e[118]=f=>i.configFile.rag_chunk_size=f),onChange:e[119]||(e[119]=f=>r.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),[[ae,i.configFile.rag_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[120]||(e[120]=f=>i.configFile.rag_chunk_size=f),type:"number",onChange:e[121]||(e[121]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_chunk_size]])])]),l("tr",null,[e[567]||(e[567]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),l("td",null,[k(l("input",{id:"rag_overlap","onUpdate:modelValue":e[122]||(e[122]=f=>i.configFile.rag_overlap=f),onChange:e[123]||(e[123]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.rag_overlap]]),k(l("input",{"onUpdate:modelValue":e[124]||(e[124]=f=>i.configFile.rag_overlap=f),type:"number",onChange:e[125]||(e[125]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_overlap]])])]),l("tr",null,[e[568]||(e[568]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_n_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG number of chunks:")],-1)),l("td",null,[k(l("input",{id:"rag_n_chunks","onUpdate:modelValue":e[126]||(e[126]=f=>i.configFile.rag_n_chunks=f),onChange:e[127]||(e[127]=f=>r.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),[[ae,i.configFile.rag_n_chunks]]),k(l("input",{"onUpdate:modelValue":e[128]||(e[128]=f=>i.configFile.rag_n_chunks=f),type:"number",onChange:e[129]||(e[129]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.rag_n_chunks]])])]),l("tr",null,[e[569]||(e[569]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[130]||(e[130]=f=>i.configFile.rag_clean_chunks=f),type:"checkbox",onChange:e[131]||(e[131]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_clean_chunks]])])]),l("tr",null,[e[570]||(e[570]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[132]||(e[132]=f=>i.configFile.rag_follow_subfolders=f),type:"checkbox",onChange:e[133]||(e[133]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_follow_subfolders]])])]),l("tr",null,[e[571]||(e[571]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_check_new_files_at_startup",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Check for new files at startup:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[134]||(e[134]=f=>i.configFile.rag_check_new_files_at_startup=f),type:"checkbox",onChange:e[135]||(e[135]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_check_new_files_at_startup]])])]),l("tr",null,[e[572]||(e[572]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[136]||(e[136]=f=>i.configFile.rag_preprocess_chunks=f),type:"checkbox",onChange:e[137]||(e[137]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_preprocess_chunks]])])]),l("tr",null,[e[573]||(e[573]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_activate_multi_hops",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate multi hops RAG:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[138]||(e[138]=f=>i.configFile.rag_activate_multi_hops=f),type:"checkbox",onChange:e[139]||(e[139]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_activate_multi_hops]])])]),l("tr",null,[e[574]||(e[574]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"contextual_summary",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use contextual summary instead of rag (consumes alot of tokens and may be very slow but efficient, useful for summary and global questions that RAG can't do):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[140]||(e[140]=f=>i.configFile.contextual_summary=f),type:"checkbox",onChange:e[141]||(e[141]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.contextual_summary]])])]),l("tr",null,[e[575]||(e[575]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_deactivate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Useful for very big contexts and global tasks that require the whole document"},"Use all the document content (No split):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[142]||(e[142]=f=>i.configFile.rag_deactivate=f),type:"checkbox",onChange:e[143]||(e[143]=f=>r.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.rag_deactivate]])])])])]),_:1}),z(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",hit,[l("tr",null,[e[576]||(e[576]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save vectorized database:")],-1)),l("td",null,[l("div",git,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[144]||(e[144]=f=>i.configFile.data_vectorization_save_db=f),onChange:e[145]||(e[145]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[577]||(e[577]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),l("td",null,[l("div",bit,[k(l("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[146]||(e[146]=f=>i.configFile.data_vectorization_visualize_on_vectorization=f),onChange:e[147]||(e[147]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_visualize_on_vectorization]])])])]),l("tr",null,[e[578]||(e[578]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reformulate prompt before querying database (advised):")],-1)),l("td",null,[l("div",yit,[k(l("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[148]||(e[148]=f=>i.configFile.data_vectorization_build_keys_words=f),onChange:e[149]||(e[149]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_build_keys_words]])])])]),l("tr",null,[e[579]||(e[579]=l("td",{style:{"min-width":"200px"}},[l("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)),l("td",null,[l("div",Eit,[k(l("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[150]||(e[150]=f=>i.configFile.data_vectorization_force_first_chunk=f),onChange:e[151]||(e[151]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_force_first_chunk]])])])]),l("tr",null,[e[580]||(e[580]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_put_chunk_informations_into_context",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Put Chunk Information Into Context:")],-1)),l("td",null,[l("div",vit,[k(l("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[152]||(e[152]=f=>i.configFile.data_vectorization_put_chunk_informations_into_context=f),onChange:e[153]||(e[153]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),l("tr",null,[e[582]||(e[582]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),l("td",null,[k(l("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[154]||(e[154]=f=>i.configFile.data_vectorization_method=f),onChange:e[155]||(e[155]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[581]||(e[581]=[l("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1),l("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1),l("option",{value:"model_embedding"},"Model Embedding",-1),l("option",{value:"sentense_transformer"},"Sentense Transformer",-1)]),544),[[Ot,i.configFile.data_vectorization_method]])])]),l("tr",null,[e[583]||(e[583]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_sentense_transformer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization model (for Sentense Transformer):")],-1)),l("td",Sit,[k(l("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[156]||(e[156]=f=>i.configFile.data_vectorization_sentense_transformer_model=f),onChange:e[157]||(e[157]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_sentense_transformer_model]])])]),l("tr",null,[e[585]||(e[585]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),l("td",null,[k(l("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[158]||(e[158]=f=>i.configFile.data_visualization_method=f),onChange:e[159]||(e[159]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[584]||(e[584]=[l("option",{value:"PCA"},"PCA",-1),l("option",{value:"TSNE"},"TSNE",-1)]),544),[[Ot,i.configFile.data_visualization_method]])])]),l("tr",null,[e[586]||(e[586]=l("td",{style:{"min-width":"200px"}},[l("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)),l("td",null,[l("div",Tit,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[160]||(e[160]=f=>i.configFile.data_vectorization_save_db=f),onChange:e[161]||(e[161]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[587]||(e[587]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[162]||(e[162]=f=>i.configFile.data_vectorization_chunk_size=f),onChange:e[163]||(e[163]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[164]||(e[164]=f=>i.configFile.data_vectorization_chunk_size=f),type:"number",onChange:e[165]||(e[165]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_chunk_size]])])]),l("tr",null,[e[588]||(e[588]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[166]||(e[166]=f=>i.configFile.data_vectorization_overlap_size=f),onChange:e[167]||(e[167]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[168]||(e[168]=f=>i.configFile.data_vectorization_overlap_size=f),type:"number",onChange:e[169]||(e[169]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_overlap_size]])])]),l("tr",null,[e[589]||(e[589]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[170]||(e[170]=f=>i.configFile.data_vectorization_nb_chunks=f),onChange:e[171]||(e[171]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.data_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[172]||(e[172]=f=>i.configFile.data_vectorization_nb_chunks=f),type:"number",onChange:e[173]||(e[173]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),l("div",xit,[l("div",Cit,[l("button",{onClick:e[174]||(e[174]=$(f=>r.internet_conf_collapsed=!r.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[590]||(e[590]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.internet_conf_collapsed]]),k(l("div",null,e[591]||(e[591]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.internet_conf_collapsed]]),e[592]||(e[592]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1))])]),l("div",{class:Le([{hidden:r.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",wit,[l("tr",null,[e[593]||(e[593]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate automatic internet search (for every prompt):")],-1)),l("td",null,[l("div",Rit,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[175]||(e[175]=f=>i.configFile.activate_internet_search=f),onChange:e[176]||(e[176]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_internet_search]])])])]),l("tr",null,[e[594]||(e[594]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet pages judgement:")],-1)),l("td",null,[l("div",Ait,[k(l("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[177]||(e[177]=f=>i.configFile.activate_internet_pages_judgement=f),onChange:e[178]||(e[178]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_internet_pages_judgement]])])])]),l("tr",null,[e[595]||(e[595]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_quick_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate quick search:")],-1)),l("td",null,[l("div",Mit,[k(l("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[179]||(e[179]=f=>i.configFile.internet_quick_search=f),onChange:e[180]||(e[180]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.internet_quick_search]])])])]),l("tr",null,[e[596]||(e[596]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_activate_search_decision",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate search decision:")],-1)),l("td",null,[l("div",Nit,[k(l("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[181]||(e[181]=f=>i.configFile.internet_activate_search_decision=f),onChange:e[182]||(e[182]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.internet_activate_search_decision]])])])]),l("tr",null,[e[597]||(e[597]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization chunk size:")],-1)),l("td",null,[l("div",Oit,[k(l("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[183]||(e[183]=f=>i.configFile.internet_vectorization_chunk_size=f),onChange:e[184]||(e[184]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[185]||(e[185]=f=>i.configFile.internet_vectorization_chunk_size=f),type:"number",onChange:e[186]||(e[186]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_chunk_size]])])])]),l("tr",null,[e[598]||(e[598]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization overlap size:")],-1)),l("td",null,[l("div",Iit,[k(l("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[187]||(e[187]=f=>i.configFile.internet_vectorization_overlap_size=f),onChange:e[188]||(e[188]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.internet_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[189]||(e[189]=f=>i.configFile.internet_vectorization_overlap_size=f),type:"number",onChange:e[190]||(e[190]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_overlap_size]])])])]),l("tr",null,[e[599]||(e[599]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization number of chunks:")],-1)),l("td",null,[l("div",kit,[k(l("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[191]||(e[191]=f=>i.configFile.internet_vectorization_nb_chunks=f),onChange:e[192]||(e[192]=f=>r.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),[[ae,i.configFile.internet_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[193]||(e[193]=f=>i.configFile.internet_vectorization_nb_chunks=f),type:"number",onChange:e[194]||(e[194]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_vectorization_nb_chunks]])])])]),l("tr",null,[e[600]||(e[600]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_nb_search_pages",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet number of search pages:")],-1)),l("td",null,[l("div",Dit,[k(l("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[195]||(e[195]=f=>i.configFile.internet_nb_search_pages=f),onChange:e[196]||(e[196]=f=>r.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),[[ae,i.configFile.internet_nb_search_pages]]),k(l("input",{"onUpdate:modelValue":e[197]||(e[197]=f=>i.configFile.internet_nb_search_pages=f),type:"number",onChange:e[198]||(e[198]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),l("div",Lit,[l("div",Pit,[l("button",{onClick:e[199]||(e[199]=$(f=>r.servers_conf_collapsed=!r.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[601]||(e[601]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.servers_conf_collapsed]]),k(l("div",null,e[602]||(e[602]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.servers_conf_collapsed]]),e[603]||(e[603]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1))])]),l("div",{class:Le([{hidden:r.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Fit,[l("tr",null,[e[605]||(e[605]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTS Service:")],-1)),l("td",Uit,[k(l("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[200]||(e[200]=f=>i.configFile.active_tts_service=f),onChange:e[201]||(e[201]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[604]||(e[604]=[l("option",{value:"None"},"None",-1),l("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1),l("option",{value:"xtts"},"XTTS",-1),l("option",{value:"parler-tts"},"Parler-TTS",-1),l("option",{value:"openai_tts"},"Open AI TTS",-1),l("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1),l("option",{value:"fish_tts"},"Fish TTS",-1)]),544),[[Ot,i.configFile.active_tts_service]])])]),l("tr",null,[e[607]||(e[607]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_stt_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Speach to Text engine"},"Active STT Service:")],-1)),l("td",Bit,[k(l("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[202]||(e[202]=f=>i.configFile.active_stt_service=f),onChange:e[203]||(e[203]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[606]||(e[606]=[l("option",{value:"None"},"None",-1),l("option",{value:"whisper"},"Whisper",-1),l("option",{value:"openai_whisper"},"Open AI Whisper",-1)]),544),[[Ot,i.configFile.active_stt_service]])])]),e[614]||(e[614]=l("tr",null,null,-1)),l("tr",null,[e[609]||(e[609]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tti_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to image engine"},"Active TTI Service:")],-1)),l("td",Git,[k(l("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[204]||(e[204]=f=>i.configFile.active_tti_service=f),onChange:e[205]||(e[205]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[608]||(e[608]=[l("option",{value:"None"},"None",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"diffusers_client"},"Diffusers Client",-1),l("option",{value:"autosd"},"AUTO1111's SD",-1),l("option",{value:"dall-e"},"Open AI DALL-E",-1),l("option",{value:"midjourney"},"Midjourney",-1),l("option",{value:"comfyui"},"Comfyui",-1),l("option",{value:"fooocus"},"Fooocus",-1)]),544),[[Ot,i.configFile.active_tti_service]])])]),l("tr",null,[e[611]||(e[611]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to Music engine"},"Active TTM Service:")],-1)),l("td",Vit,[k(l("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[206]||(e[206]=f=>i.configFile.active_ttm_service=f),onChange:e[207]||(e[207]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[610]||(e[610]=[l("option",{value:"None"},"None",-1),l("option",{value:"musicgen"},"Music Gen",-1)]),544),[[Ot,i.configFile.active_ttm_service]])])]),l("tr",null,[e[613]||(e[613]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttv_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTV Service:")],-1)),l("td",zit,[k(l("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[208]||(e[208]=f=>i.configFile.active_ttv_service=f),onChange:e[209]||(e[209]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[612]||(e[612]=[l("option",{value:"None"},"None",-1),l("option",{value:"cog_video_x"},"Cog Video X",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"lumalab"},"Lumalab",-1)]),544),[[Ot,i.configFile.active_ttv_service]])])])])]),_:1}),z(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Hit,[l("tr",null,[e[615]||(e[615]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use negative prompt:")],-1)),l("td",null,[l("div",qit,[k(l("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[210]||(e[210]=f=>i.configFile.use_negative_prompt=f),onChange:e[211]||(e[211]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_negative_prompt]])])])]),l("tr",null,[e[616]||(e[616]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use AI generated negative prompt:")],-1)),l("td",null,[l("div",Yit,[k(l("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[212]||(e[212]=f=>i.configFile.use_ai_generated_negative_prompt=f),onChange:e[213]||(e[213]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.use_ai_generated_negative_prompt]])])])]),l("tr",null,[e[617]||(e[617]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative prompt generation prompt:")],-1)),l("td",null,[l("div",$it,[k(l("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[214]||(e[214]=f=>i.configFile.negative_prompt_generation_prompt=f),onChange:e[215]||(e[215]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.negative_prompt_generation_prompt]])])])]),l("tr",null,[e[618]||(e[618]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"default_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Default negative prompt:")],-1)),l("td",null,[l("div",Wit,[k(l("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[216]||(e[216]=f=>i.configFile.default_negative_prompt=f),onChange:e[217]||(e[217]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.default_negative_prompt]])])])])])]),_:1}),z(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Kit,[l("tr",null,[e[619]||(e[619]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_listening_threshold",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Listening threshold"},"Listening threshold:")],-1)),l("td",jit,[k(l("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[218]||(e[218]=f=>i.configFile.stt_listening_threshold=f),onChange:e[219]||(e[219]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_listening_threshold]])])]),l("tr",null,[e[620]||(e[620]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_silence_duration",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Scilence duration"},"Silence duration (s):")],-1)),l("td",Qit,[k(l("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[220]||(e[220]=f=>i.configFile.stt_silence_duration=f),onChange:e[221]||(e[221]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_silence_duration]])])]),l("tr",null,[e[621]||(e[621]=l("td",{style:{"min-width":"200px"}},[l("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)),l("td",Xit,[k(l("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[222]||(e[222]=f=>i.configFile.stt_sound_threshold_percentage=f),onChange:e[223]||(e[223]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_sound_threshold_percentage]])])]),l("tr",null,[e[622]||(e[622]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_gain",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"STT Gain"},"Volume amplification:")],-1)),l("td",Zit,[k(l("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[224]||(e[224]=f=>i.configFile.stt_gain=f),onChange:e[225]||(e[225]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_gain]])])]),l("tr",null,[e[623]||(e[623]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_rate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Audio Rate"},"audio rate:")],-1)),l("td",Jit,[k(l("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[226]||(e[226]=f=>i.configFile.stt_rate=f),onChange:e[227]||(e[227]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_rate]])])]),l("tr",null,[e[624]||(e[624]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_channels",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"number of channels"},"number of channels:")],-1)),l("td",eot,[k(l("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[228]||(e[228]=f=>i.configFile.stt_channels=f),onChange:e[229]||(e[229]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_channels]])])]),l("tr",null,[e[625]||(e[625]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_buffer_size",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Buffer size"},"Buffer size:")],-1)),l("td",tot,[k(l("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[230]||(e[230]=f=>i.configFile.stt_buffer_size=f),onChange:e[231]||(e[231]=f=>r.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_buffer_size]])])]),l("tr",null,[e[626]||(e[626]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_activate_word_detection",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate word detection:")],-1)),l("td",null,[l("div",not,[k(l("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[232]||(e[232]=f=>i.configFile.stt_activate_word_detection=f),onChange:e[233]||(e[233]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.stt_activate_word_detection]])])])]),l("tr",null,[e[627]||(e[627]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_word_detection_file",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Word detection wav file:")],-1)),l("td",null,[l("div",sot,[k(l("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[234]||(e[234]=f=>i.configFile.stt_word_detection_file=f),onChange:e[235]||(e[235]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.stt_word_detection_file]])])])])])]),_:1}),z(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rot,[l("tr",null,[e[628]||(e[628]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_input_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Input device:")],-1)),l("td",iot,[k(l("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[236]||(e[236]=f=>i.configFile.stt_input_device=f),onChange:e[237]||(e[237]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Be,null,Ke(r.snd_input_devices,(f,y)=>(T(),x("option",{key:f,value:r.snd_input_devices_indexes[y]},Y(f),9,oot))),128))],544),[[Ot,i.configFile.stt_input_device]])])]),l("tr",null,[e[629]||(e[629]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"tts_output_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Output device:")],-1)),l("td",aot,[k(l("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[238]||(e[238]=f=>i.configFile.tts_output_device=f),onChange:e[239]||(e[239]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Be,null,Ke(r.snd_output_devices,(f,y)=>(T(),x("option",{key:f,value:r.snd_output_devices_indexes[y]},Y(f),9,lot))),128))],544),[[Ot,i.configFile.tts_output_device]])])])])]),_:1}),z(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",cot,[l("tr",null,[e[630]||(e[630]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),l("td",dot,[k(l("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[240]||(e[240]=f=>i.configFile.host=f),onChange:e[241]||(e[241]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.host]])])]),l("tr",null,[e[631]||(e[631]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys:")],-1)),l("td",uot,[z(o,{modelValue:i.configFile.lollms_access_keys,"onUpdate:modelValue":e[242]||(e[242]=f=>i.configFile.lollms_access_keys=f),onChange:e[243]||(e[243]=f=>r.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])])]),l("tr",null,[e[632]||(e[632]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"port",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),l("td",pot,[k(l("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[244]||(e[244]=f=>i.configFile.port=f),onChange:e[245]||(e[245]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.port]])])]),l("tr",null,[e[633]||(e[633]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"headless_server_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode:")],-1)),l("td",fot,[k(l("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[246]||(e[246]=f=>i.configFile.headless_server_mode=f),onChange:e[247]||(e[247]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.headless_server_mode]])])]),l("tr",null,[e[634]||(e[634]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms server:")],-1)),l("td",_ot,[k(l("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[248]||(e[248]=f=>i.configFile.activate_lollms_server=f),onChange:e[249]||(e[249]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_server]])])]),l("tr",null,[e[635]||(e[635]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_rag_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms RAG server:")],-1)),l("td",mot,[k(l("input",{type:"checkbox",id:"activate_lollms_rag_server",required:"","onUpdate:modelValue":e[250]||(e[250]=f=>i.configFile.activate_lollms_rag_server=f),onChange:e[251]||(e[251]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_rag_server]])])]),l("tr",null,[e[636]||(e[636]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tts_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTS server:")],-1)),l("td",hot,[k(l("input",{type:"checkbox",id:"activate_lollms_tts_server",required:"","onUpdate:modelValue":e[252]||(e[252]=f=>i.configFile.activate_lollms_tts_server=f),onChange:e[253]||(e[253]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_tts_server]])])]),l("tr",null,[e[637]||(e[637]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_stt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms STT server:")],-1)),l("td",got,[k(l("input",{type:"checkbox",id:"activate_lollms_stt_server",required:"","onUpdate:modelValue":e[254]||(e[254]=f=>i.configFile.activate_lollms_stt_server=f),onChange:e[255]||(e[255]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_stt_server]])])]),l("tr",null,[e[638]||(e[638]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tti_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTI server:")],-1)),l("td",bot,[k(l("input",{type:"checkbox",id:"activate_lollms_tti_server",required:"","onUpdate:modelValue":e[256]||(e[256]=f=>i.configFile.activate_lollms_tti_server=f),onChange:e[257]||(e[257]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_tti_server]])])]),l("tr",null,[e[639]||(e[639]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_itt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms ITT server:")],-1)),l("td",yot,[k(l("input",{type:"checkbox",id:"activate_lollms_itt_server",required:"","onUpdate:modelValue":e[258]||(e[258]=f=>i.configFile.activate_lollms_itt_server=f),onChange:e[259]||(e[259]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_itt_server]])])]),l("tr",null,[e[640]||(e[640]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_ttm_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTM server:")],-1)),l("td",Eot,[k(l("input",{type:"checkbox",id:"activate_lollms_ttm_server",required:"","onUpdate:modelValue":e[260]||(e[260]=f=>i.configFile.activate_lollms_ttm_server=f),onChange:e[261]||(e[261]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_lollms_ttm_server]])])]),l("tr",null,[e[641]||(e[641]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_ollama_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate ollama server emulator:")],-1)),l("td",vot,[k(l("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[262]||(e[262]=f=>i.configFile.activate_ollama_emulator=f),onChange:e[263]||(e[263]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_ollama_emulator]])])]),l("tr",null,[e[642]||(e[642]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_openai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate openai server emulator:")],-1)),l("td",Sot,[k(l("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[264]||(e[264]=f=>i.configFile.activate_openai_emulator=f),onChange:e[265]||(e[265]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_openai_emulator]])])]),l("tr",null,[e[643]||(e[643]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_mistralai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate mistral ai server emulator:")],-1)),l("td",Tot,[k(l("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[266]||(e[266]=f=>i.configFile.activate_mistralai_emulator=f),onChange:e[267]||(e[267]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_mistralai_emulator]])])])])]),_:1}),z(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",xot,[l("tr",null,[e[644]||(e[644]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),l("td",null,[l("div",Cot,[k(l("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[268]||(e[268]=f=>i.configFile.activate_audio_infos=f),onChange:e[269]||(e[269]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.activate_audio_infos]])])])]),l("tr",null,[e[645]||(e[645]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),l("td",null,[l("div",wot,[k(l("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[270]||(e[270]=f=>i.configFile.audio_auto_send_input=f),onChange:e[271]||(e[271]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.audio_auto_send_input]])])])]),l("tr",null,[e[646]||(e[646]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),l("td",null,[k(l("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[272]||(e[272]=f=>i.configFile.audio_silenceTimer=f),onChange:e[273]||(e[273]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.audio_silenceTimer]]),k(l("input",{"onUpdate:modelValue":e[274]||(e[274]=f=>i.configFile.audio_silenceTimer=f),onChange:e[275]||(e[275]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.audio_silenceTimer]])])]),l("tr",null,[e[647]||(e[647]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),l("td",null,[k(l("select",{id:"audio_in_language","onUpdate:modelValue":e[276]||(e[276]=f=>i.configFile.audio_in_language=f),onChange:e[277]||(e[277]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Be,null,Ke(i.audioLanguages,f=>(T(),x("option",{key:f.code,value:f.code},Y(f.name),9,Rot))),128))],544),[[Ot,i.configFile.audio_in_language]])])])])]),_:1}),z(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Aot,[l("tr",null,[e[648]||(e[648]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Whisper at startup:")],-1)),l("td",null,[l("div",Mot,[k(l("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[278]||(e[278]=f=>i.configFile.whisper_activate=f),onChange:e[279]||(e[279]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.whisper_activate]])])])]),l("tr",null,[e[649]||(e[649]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}})],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[280]||(e[280]=(...f)=>i.reinstallWhisperService&&i.reinstallWhisperService(...f))},"install whisper")])]),l("tr",null,[e[650]||(e[650]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),l("td",null,[l("div",Not,[k(l("select",{id:"whisper_model","onUpdate:modelValue":e[281]||(e[281]=f=>i.configFile.whisper_model=f),onChange:e[282]||(e[282]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Be,null,Ke(i.whisperModels,f=>(T(),x("option",{key:f,value:f},Y(f),9,Oot))),128))],544),[[Ot,i.configFile.whisper_model]])])])])])]),_:1}),z(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Iot,[l("tr",null,[e[651]||(e[651]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),l("td",null,[l("div",kot,[k(l("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[283]||(e[283]=f=>i.configFile.openai_whisper_key=f),onChange:e[284]||(e[284]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.openai_whisper_key]])])])]),l("tr",null,[e[652]||(e[652]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),l("td",null,[l("div",Dot,[k(l("select",{id:"openai_whisper_model","onUpdate:modelValue":e[285]||(e[285]=f=>i.configFile.openai_whisper_model=f),onChange:e[286]||(e[286]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Be,null,Ke(i.openaiWhisperModels,f=>(T(),x("option",{key:f,value:f},Y(f),9,Lot))),128))],544),[[Ot,i.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),z(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Pot,[l("tr",null,[e[653]||(e[653]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),l("td",null,[l("div",Fot,[k(l("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[287]||(e[287]=f=>i.configFile.auto_speak=f),onChange:e[288]||(e[288]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_speak]])])])]),l("tr",null,[e[654]||(e[654]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),l("td",null,[k(l("input",{id:"audio_pitch","onUpdate:modelValue":e[289]||(e[289]=f=>i.configFile.audio_pitch=f),onChange:e[290]||(e[290]=f=>r.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.audio_pitch]]),k(l("input",{"onUpdate:modelValue":e[291]||(e[291]=f=>i.configFile.audio_pitch=f),onChange:e[292]||(e[292]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.audio_pitch]])])]),l("tr",null,[e[655]||(e[655]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),l("td",null,[k(l("select",{id:"audio_out_voice","onUpdate:modelValue":e[293]||(e[293]=f=>i.configFile.audio_out_voice=f),onChange:e[294]||(e[294]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Be,null,Ke(r.audioVoices,f=>(T(),x("option",{key:f.name,value:f.name},Y(f.name),9,Uot))),128))],544),[[Ot,i.configFile.audio_out_voice]])])])])]),_:1}),z(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Bot,[l("tr",null,[e[656]||(e[656]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[295]||(e[295]=(...f)=>i.reinstallXTTSService&&i.reinstallXTTSService(...f))},"install xtts service")])]),l("tr",null,[e[657]||(e[657]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("div",Got,[k(l("select",{"onUpdate:modelValue":e[296]||(e[296]=f=>i.xtts_current_language=f),onChange:e[297]||(e[297]=f=>r.settingsChanged=!0)},[(T(!0),x(Be,null,Ke(r.voice_languages,(f,y)=>(T(),x("option",{key:y,value:f},Y(y),9,Vot))),128))],544),[[Ot,i.xtts_current_language]])])])]),l("tr",null,[e[658]||(e[658]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),l("td",null,[l("div",zot,[k(l("select",{"onUpdate:modelValue":e[298]||(e[298]=f=>i.xtts_current_voice=f),onChange:e[299]||(e[299]=f=>r.settingsChanged=!0)},[(T(!0),x(Be,null,Ke(r.voices,f=>(T(),x("option",{key:f,value:f},Y(f),9,Hot))),128))],544),[[Ot,i.xtts_current_voice]])])])]),l("tr",null,[e[659]||(e[659]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_freq",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Frequency (controls the tone):")],-1)),l("td",null,[l("div",qot,[k(l("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[300]||(e[300]=f=>i.configFile.xtts_freq=f),onChange:e[301]||(e[301]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ae,i.configFile.xtts_freq,void 0,{number:!0}]])])])]),l("tr",null,[e[660]||(e[660]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),l("td",null,[l("div",Yot,[k(l("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[302]||(e[302]=f=>i.configFile.auto_read=f),onChange:e[303]||(e[303]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.auto_read]])])])]),l("tr",null,[e[661]||(e[661]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),l("td",null,[l("div",$ot,[k(l("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[304]||(e[304]=f=>i.configFile.xtts_stream_chunk_size=f),onChange:e[305]||(e[305]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_stream_chunk_size]])])])]),l("tr",null,[e[662]||(e[662]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),l("td",null,[l("div",Wot,[k(l("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[306]||(e[306]=f=>i.configFile.xtts_temperature=f),onChange:e[307]||(e[307]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ae,i.configFile.xtts_temperature,void 0,{number:!0}]])])])]),l("tr",null,[e[663]||(e[663]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),l("td",null,[l("div",Kot,[k(l("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[308]||(e[308]=f=>i.configFile.xtts_length_penalty=f),onChange:e[309]||(e[309]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[664]||(e[664]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),l("td",null,[l("div",jot,[k(l("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[310]||(e[310]=f=>i.configFile.xtts_repetition_penalty=f),onChange:e[311]||(e[311]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[665]||(e[665]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),l("td",null,[l("div",Qot,[k(l("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[312]||(e[312]=f=>i.configFile.xtts_top_k=f),onChange:e[313]||(e[313]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_top_k,void 0,{number:!0}]])])])]),l("tr",null,[e[666]||(e[666]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),l("td",null,[l("div",Xot,[k(l("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[314]||(e[314]=f=>i.configFile.xtts_top_p=f),onChange:e[315]||(e[315]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.xtts_top_p,void 0,{number:!0}]])])])]),l("tr",null,[e[667]||(e[667]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),l("td",null,[l("div",Zot,[k(l("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[316]||(e[316]=f=>i.configFile.xtts_speed=f),onChange:e[317]||(e[317]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ae,i.configFile.xtts_speed,void 0,{number:!0}]])])])]),l("tr",null,[e[668]||(e[668]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),l("td",null,[l("div",Jot,[k(l("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[318]||(e[318]=f=>i.configFile.enable_text_splitting=f),onChange:e[319]||(e[319]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_text_splitting]])])])])])]),_:1}),z(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",eat,[l("tr",null,[e[669]||(e[669]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),l("td",null,[l("div",tat,[k(l("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[320]||(e[320]=f=>i.configFile.openai_tts_key=f),onChange:e[321]||(e[321]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.openai_tts_key]])])])]),l("tr",null,[e[671]||(e[671]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),l("td",null,[l("div",nat,[k(l("select",{"onUpdate:modelValue":e[322]||(e[322]=f=>i.configFile.openai_tts_model=f),onChange:e[323]||(e[323]=f=>r.settingsChanged=!0)},e[670]||(e[670]=[l("option",null," tts-1 ",-1),l("option",null," tts-2 ",-1)]),544),[[Ot,i.configFile.openai_tts_model]])])])]),l("tr",null,[e[673]||(e[673]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),l("td",null,[l("div",sat,[k(l("select",{"onUpdate:modelValue":e[324]||(e[324]=f=>i.configFile.openai_tts_voice=f),onChange:e[325]||(e[325]=f=>r.settingsChanged=!0)},e[672]||(e[672]=[l("option",null," alloy ",-1),l("option",null," echo ",-1),l("option",null," fable ",-1),l("option",null," nova ",-1),l("option",null," shimmer ",-1)]),544),[[Ot,i.configFile.openai_tts_voice]])])])])])]),_:1}),z(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rat,[l("tr",null,[e[674]||(e[674]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs key:")],-1)),l("td",null,[l("div",iat,[k(l("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[326]||(e[326]=f=>i.configFile.elevenlabs_tts_key=f),onChange:e[327]||(e[327]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.elevenlabs_tts_key]])])])]),l("tr",null,[e[675]||(e[675]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_model_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs TTS model ID:")],-1)),l("td",null,[l("div",oat,[k(l("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[328]||(e[328]=f=>i.configFile.elevenlabs_tts_model_id=f),onChange:e[329]||(e[329]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.elevenlabs_tts_model_id]])])])]),l("tr",null,[e[676]||(e[676]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_stability",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Stability:")],-1)),l("td",null,[l("div",aat,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[330]||(e[330]=f=>i.configFile.elevenlabs_tts_voice_stability=f),onChange:e[331]||(e[331]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ae,i.configFile.elevenlabs_tts_voice_stability]])])])]),l("tr",null,[e[677]||(e[677]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Boost:")],-1)),l("td",null,[l("div",lat,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[332]||(e[332]=f=>i.configFile.elevenlabs_tts_voice_boost=f),onChange:e[333]||(e[333]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ae,i.configFile.elevenlabs_tts_voice_boost]])])])]),l("tr",null,[e[678]||(e[678]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice ID:")],-1)),l("td",null,[l("div",cat,[k(l("select",{"onUpdate:modelValue":e[334]||(e[334]=f=>i.configFile.elevenlabs_tts_voice_id=f),onChange:e[335]||(e[335]=f=>r.settingsChanged=!0)},[(T(!0),x(Be,null,Ke(r.voices,f=>(T(),x("option",{key:f.voice_id,value:f.voice_id},Y(f.name),9,dat))),128))],544),[[Ot,i.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1}),z(a,{title:"Fish TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",uat,[l("tr",null,[e[679]||(e[679]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS key:")],-1)),l("td",null,[l("div",pat,[k(l("input",{type:"text",id:"fish_tts_key",required:"","onUpdate:modelValue":e[336]||(e[336]=f=>i.configFile.fish_tts_key=f),onChange:e[337]||(e[337]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.fish_tts_key]])])])]),l("tr",null,[e[680]||(e[680]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS voice:")],-1)),l("td",null,[l("div",fat,[k(l("input",{type:"text",id:"fish_tts_voice",required:"","onUpdate:modelValue":e[338]||(e[338]=f=>i.configFile.fish_tts_voice=f),onChange:e[339]||(e[339]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.fish_tts_voice]])])])])])]),_:1})]),_:1}),z(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",_at,[l("tr",null,[e[682]||(e[682]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),l("td",null,[l("div",mat,[k(l("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[340]||(e[340]=f=>i.configFile.enable_sd_service=f),onChange:e[341]||(e[341]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_sd_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[342]||(e[342]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[681]||(e[681]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[684]||(e[684]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),l("td",null,[l("div",hat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[343]||(e[343]=(...f)=>i.reinstallSDService&&i.reinstallSDService(...f))},"install sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[344]||(e[344]=(...f)=>i.upgradeSDService&&i.upgradeSDService(...f))},"upgrade sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[345]||(e[345]=(...f)=>i.startSDService&&i.startSDService(...f))},"start sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[346]||(e[346]=(...f)=>i.showSD&&i.showSD(...f))},"show sd ui"),e[683]||(e[683]=l("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))])]),l("td",null,[l("div",gat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[347]||(e[347]=(...f)=>i.reinstallSDService&&i.reinstallSDService(...f))},"install sd service")])])]),l("tr",null,[e[685]||(e[685]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),l("td",null,[l("div",bat,[k(l("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[348]||(e[348]=f=>i.configFile.sd_base_url=f),onChange:e[349]||(e[349]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.sd_base_url]])])])])])]),_:1}),z(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",yat,[l("tr",null,[e[687]||(e[687]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),l("td",null,[l("div",Eat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[350]||(e[350]=(...f)=>i.reinstallDiffusersService&&i.reinstallDiffusersService(...f))},"install diffusers service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[351]||(e[351]=(...f)=>i.upgradeDiffusersService&&i.upgradeDiffusersService(...f))},"upgrade diffusers service"),e[686]||(e[686]=l("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))])])]),l("tr",null,[e[688]||(e[688]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),l("td",null,[l("div",vat,[k(l("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[352]||(e[352]=f=>i.configFile.diffusers_model=f),onChange:e[353]||(e[353]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.diffusers_model]])])]),e[689]||(e[689]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Diffusers client service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Sat,[l("tr",null,[e[690]||(e[690]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_client_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers client base url:")],-1)),l("td",null,[l("div",Tat,[k(l("input",{type:"text",id:"diffusers_client_base_url",required:"","onUpdate:modelValue":e[354]||(e[354]=f=>i.configFile.diffusers_client_base_url=f),onChange:e[355]||(e[355]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.diffusers_client_base_url]])])]),e[691]||(e[691]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",xat,[l("tr",null,[e[692]||(e[692]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),l("td",null,[l("div",Cat,[k(l("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[356]||(e[356]=f=>i.configFile.midjourney_key=f),onChange:e[357]||(e[357]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_key]])])])]),l("tr",null,[e[693]||(e[693]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),l("td",null,[l("div",wat,[k(l("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[358]||(e[358]=f=>i.configFile.midjourney_timeout=f),onChange:e[359]||(e[359]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_timeout]])])])]),l("tr",null,[e[694]||(e[694]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),l("td",null,[l("div",Rat,[k(l("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[360]||(e[360]=f=>i.configFile.midjourney_retries=f),onChange:e[361]||(e[361]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.midjourney_retries]])])])])])]),_:1}),z(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Aat,[l("tr",null,[e[695]||(e[695]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),l("td",null,[l("div",Mat,[k(l("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[362]||(e[362]=f=>i.configFile.dall_e_key=f),onChange:e[363]||(e[363]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.dall_e_key]])])])]),l("tr",null,[e[697]||(e[697]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),l("td",null,[l("div",Nat,[k(l("select",{"onUpdate:modelValue":e[364]||(e[364]=f=>i.configFile.dall_e_generation_engine=f),onChange:e[365]||(e[365]=f=>r.settingsChanged=!0)},e[696]||(e[696]=[l("option",null," dall-e-2 ",-1),l("option",null," dall-e-3 ",-1)]),544),[[Ot,i.configFile.dall_e_generation_engine]])])])])])]),_:1}),z(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Oat,[l("tr",null,[e[699]||(e[699]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),l("td",null,[l("div",Iat,[k(l("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[366]||(e[366]=f=>i.configFile.enable_comfyui_service=f),onChange:e[367]||(e[367]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_comfyui_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[368]||(e[368]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[698]||(e[698]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[700]||(e[700]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Available models (only if local):")],-1)),l("td",null,[l("div",kat,[k(l("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[369]||(e[369]=f=>i.configFile.comfyui_model=f),onChange:e[370]||(e[370]=f=>r.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),x(Be,null,Ke(r.comfyui_models,(f,y)=>(T(),x("option",{key:f,value:f},Y(f),9,Dat))),128))],544),[[Ot,i.configFile.comfyui_model]])])])]),l("tr",null,[e[702]||(e[702]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),l("td",null,[l("div",Lat,[k(l("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[371]||(e[371]=f=>i.configFile.comfyui_model=f),onChange:e[372]||(e[372]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.comfyui_model]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[373]||(e[373]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[701]||(e[701]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[704]||(e[704]=l("td",{style:{"min-width":"200px"}},null,-1)),l("td",null,[l("div",Pat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[374]||(e[374]=(...f)=>i.reinstallComfyUIService&&i.reinstallComfyUIService(...f))},"install comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[375]||(e[375]=(...f)=>i.upgradeComfyUIService&&i.upgradeComfyUIService(...f))},"upgrade comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[376]||(e[376]=(...f)=>i.startComfyUIService&&i.startComfyUIService(...f))},"start comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[377]||(e[377]=(...f)=>i.showComfyui&&i.showComfyui(...f))},"show comfyui"),e[703]||(e[703]=l("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))])])]),l("tr",null,[e[705]||(e[705]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),l("td",null,[l("div",Fat,[k(l("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[378]||(e[378]=f=>i.configFile.comfyui_base_url=f),onChange:e[379]||(e[379]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),z(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Uat,[l("tr",null,[e[707]||(e[707]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),l("td",null,[l("div",Bat,[k(l("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[380]||(e[380]=f=>i.configFile.enable_ollama_service=f),onChange:e[381]||(e[381]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_ollama_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[382]||(e[382]=f=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. -If you are using windows, this uses wsl which requires you to have it installed or at least activated. -If You are using windows, this will install wsl so you need to activate it. -
    Here is how you can do that`))},e[706]||(e[706]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[708]||(e[708]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),l("td",null,[l("div",Gat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[383]||(e[383]=(...f)=>i.reinstallOLLAMAService&&i.reinstallOLLAMAService(...f))},"install ollama service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[384]||(e[384]=(...f)=>i.startollamaService&&i.startollamaService(...f))},"start ollama service")])])]),l("tr",null,[e[709]||(e[709]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),l("td",null,[l("div",Vat,[k(l("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[385]||(e[385]=f=>i.configFile.ollama_base_url=f),onChange:e[386]||(e[386]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.ollama_base_url]])])])])])]),_:1}),z(a,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zat,[l("tr",null,[e[711]||(e[711]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),l("td",null,[l("div",Hat,[k(l("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[387]||(e[387]=f=>i.configFile.enable_vllm_service=f),onChange:e[388]||(e[388]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_vllm_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[389]||(e[389]=f=>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`))},e[710]||(e[710]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[712]||(e[712]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),l("td",null,[l("div",qat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[390]||(e[390]=(...f)=>i.reinstallvLLMService&&i.reinstallvLLMService(...f))},"install vLLM service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[391]||(e[391]=(...f)=>i.startvLLMService&&i.startvLLMService(...f))},"start vllm service")])])]),l("tr",null,[e[713]||(e[713]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),l("td",null,[l("div",Yat,[k(l("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[392]||(e[392]=f=>i.configFile.vllm_url=f),onChange:e[393]||(e[393]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.vllm_url]])])])]),l("tr",null,[e[715]||(e[715]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),l("td",null,[l("div",$at,[l("div",Wat,[e[714]||(e[714]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),l("p",Kat,[k(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[394]||(e[394]=f=>i.configFile.vllm_gpu_memory_utilization=f),onChange:e[395]||(e[395]=f=>r.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.vllm_gpu_memory_utilization]])])]),k(l("input",{id:"vllm_gpu_memory_utilization",onChange:e[396]||(e[396]=f=>r.settingsChanged=!0),type:"range","onUpdate:modelValue":e[397]||(e[397]=f=>i.configFile.vllm_gpu_memory_utilization=f),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),[[ae,i.configFile.vllm_gpu_memory_utilization]])])])]),l("tr",null,[e[716]||(e[716]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),l("td",null,[l("div",jat,[k(l("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[398]||(e[398]=f=>i.configFile.vllm_max_num_seqs=f),onChange:e[399]||(e[399]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.vllm_max_num_seqs]])])])]),l("tr",null,[e[717]||(e[717]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),l("td",null,[l("div",Qat,[k(l("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[400]||(e[400]=f=>i.configFile.vllm_max_model_len=f),onChange:e[401]||(e[401]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.vllm_max_model_len]])])])]),l("tr",null,[e[718]||(e[718]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),l("td",null,[l("div",Xat,[k(l("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[402]||(e[402]=f=>i.configFile.vllm_model_path=f),onChange:e[403]||(e[403]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.vllm_model_path]])])])])])]),_:1}),z(a,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Zat,[l("tr",null,[e[720]||(e[720]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),l("td",null,[l("div",Jat,[k(l("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[404]||(e[404]=f=>i.configFile.enable_petals_service=f),onChange:e[405]||(e[405]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.enable_petals_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[406]||(e[406]=f=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network. -If You are using windows, this will install wsl so you need to activate it. -Here is how you can do that`))},e[719]||(e[719]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[721]||(e[721]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),l("td",null,[l("div",elt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[407]||(e[407]=(...f)=>i.reinstallPetalsService&&i.reinstallPetalsService(...f))},"install petals service")])])]),l("tr",null,[e[722]||(e[722]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),l("td",null,[l("div",tlt,[k(l("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[408]||(e[408]=f=>i.configFile.petals_base_url=f),onChange:e[409]||(e[409]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),z(a,{title:"TTV settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",nlt,[l("tr",null,[e[723]||(e[723]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"lumalabs_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Lumalabs key:")],-1)),l("td",null,[l("div",slt,[k(l("input",{type:"text",id:"lumalabs_key",required:"","onUpdate:modelValue":e[410]||(e[410]=f=>i.configFile.lumalabs_key=f),onChange:e[411]||(e[411]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.lumalabs_key]])])])])])]),_:1}),z(a,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rlt,[l("tr",null,[e[724]||(e[724]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),l("td",null,[l("div",ilt,[k(l("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[412]||(e[412]=f=>i.configFile.elastic_search_service=f),onChange:e[413]||(e[413]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,i.configFile.elastic_search_service]])])])]),l("tr",null,[e[725]||(e[725]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),l("td",null,[l("div",olt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[414]||(e[414]=(...f)=>i.reinstallElasticSearchService&&i.reinstallElasticSearchService(...f))},"install ElasticSearch service")])])]),l("tr",null,[e[726]||(e[726]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),l("td",null,[l("div",alt,[k(l("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[415]||(e[415]=f=>i.configFile.elastic_search_url=f),onChange:e[416]||(e[416]=f=>r.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ae,i.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),l("div",llt,[l("div",clt,[l("button",{onClick:e[417]||(e[417]=$(f=>r.bzc_collapsed=!r.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[727]||(e[727]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.bzc_collapsed]]),k(l("div",null,e[728]||(e[728]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.bzc_collapsed]]),e[730]||(e[730]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),i.configFile.binding_name?B("",!0):(T(),x("div",dlt,e[729]||(e[729]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" No binding selected! ")]))),i.configFile.binding_name?(T(),x("div",ult,"|")):B("",!0),i.configFile.binding_name?(T(),x("div",plt,[l("div",flt,[l("img",{src:i.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,_lt),l("p",mlt,Y(i.binding_name),1)])])):B("",!0)])]),l("div",{class:Le([{hidden:r.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[i.bindingsZoo&&i.bindingsZoo.length>0?(T(),x("div",hlt,[l("label",glt," Bindings: ("+Y(i.bindingsZoo.length)+") ",1),l("div",{class:Le(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",r.bzl_collapsed?"":"max-h-96"])},[z(Ir,{name:"list"},{default:Ie(()=>[(T(!0),x(Be,null,Ke(i.bindingsZoo,(f,y)=>(T(),at(c,{ref_for:!0,ref:"bindingZoo",key:"index-"+y+"-"+f.folder,binding:f,"on-selected":i.onBindingSelected,"on-reinstall":i.onReinstallBinding,"on-unInstall":i.onUnInstallBinding,"on-install":i.onInstallBinding,"on-settings":i.onSettingsBinding,"on-reload-binding":i.onReloadBinding,selected:f.folder===i.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):B("",!0),r.bzl_collapsed?(T(),x("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[418]||(e[418]=f=>r.bzl_collapsed=!r.bzl_collapsed)},e[731]||(e[731]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),x("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[419]||(e[419]=f=>r.bzl_collapsed=!r.bzl_collapsed)},e[732]||(e[732]=[l("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),l("div",blt,[l("div",ylt,[l("button",{onClick:e[420]||(e[420]=$(f=>i.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[k(l("div",null,e[733]||(e[733]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.mzc_collapsed]]),k(l("div",null,e[734]||(e[734]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.mzc_collapsed]]),e[737]||(e[737]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),l("div",Elt,[i.configFile.binding_name?B("",!0):(T(),x("div",vlt,e[735]||(e[735]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" Select binding first! ")]))),!i.configFile.model_name&&i.configFile.binding_name?(T(),x("div",Slt,e[736]||(e[736]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" No model selected! ")]))):B("",!0),i.configFile.model_name?(T(),x("div",Tlt,"|")):B("",!0),i.configFile.model_name?(T(),x("div",xlt,[l("div",Clt,[l("img",{src:i.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,wlt),l("p",Rlt,Y(i.configFile.model_name),1)])])):B("",!0)])])]),l("div",{class:Le([{hidden:r.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Alt,[l("div",Mlt,[l("div",Nlt,[r.searchModelInProgress?(T(),x("div",Olt,e[738]||(e[738]=[l("div",{role:"status"},[l("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"},[l("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"}),l("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"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),r.searchModelInProgress?B("",!0):(T(),x("div",Ilt,e[739]||(e[739]=[l("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"},[l("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)])))]),k(l("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[421]||(e[421]=f=>r.searchModel=f),onKeyup:e[422]||(e[422]=ws((...f)=>i.searchModel_func&&i.searchModel_func(...f),["enter"]))},null,544),[[ae,r.searchModel]]),r.searchModel?(T(),x("button",{key:0,onClick:e[423]||(e[423]=$(f=>r.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):B("",!0)])]),l("div",null,[k(l("input",{"onUpdate:modelValue":e[424]||(e[424]=f=>r.show_only_installed_models=f),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[He,r.show_only_installed_models]]),e[740]||(e[740]=l("label",{for:"only_installed"},"Show only installed models",-1))]),l("div",null,[z(d,{radioOptions:r.sortOptions,onRadioSelected:i.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),e[748]||(e[748]=l("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)),r.is_loading_zoo?(T(),x("div",klt,e[741]||(e[741]=[l("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"},[l("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"}),l("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),l("p",{class:"heartbeat-text"},"Loading models Zoo",-1)]))):B("",!0),r.models_zoo&&r.models_zoo.length>0?(T(),x("div",Dlt,[l("label",Llt," Models: ("+Y(r.models_zoo.length)+") ",1),l("div",{class:Le(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",r.mzl_collapsed?"":"max-h-96"])},[z(Ir,{name:"list"},{default:Ie(()=>[(T(!0),x(Be,null,Ke(i.rendered_models_zoo,(f,y)=>(T(),at(u,{ref_for:!0,ref:"modelZoo",key:"index-"+y+"-"+f.name,model:f,"is-installed":f.isInstalled,"on-install":i.onInstall,"on-uninstall":i.onUninstall,"on-selected":i.onModelSelected,selected:f.name===i.configFile.model_name,model_type:f.model_type,"on-copy":i.onCopy,"on-copy-link":i.onCopyLink,"on-cancel-install":i.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),l("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[425]||(e[425]=(...f)=>i.load_more_models&&i.load_more_models(...f))},"Load more models",512)]),_:1})],2)])):B("",!0),r.mzl_collapsed?(T(),x("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[426]||(e[426]=(...f)=>i.open_mzl&&i.open_mzl(...f))},e[742]||(e[742]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),x("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[427]||(e[427]=(...f)=>i.open_mzl&&i.open_mzl(...f))},e[743]||(e[743]=[l("i",{"data-feather":"chevron-down"},null,-1)]))),l("div",Plt,[l("div",Flt,[l("div",null,[l("div",Ult,[e[744]||(e[744]=l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),k(l("input",{type:"text","onUpdate:modelValue":e[428]||(e[428]=f=>r.reference_path=f),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),[[ae,r.reference_path]])]),l("button",{type:"button",onClick:e[429]||(e[429]=$(f=>i.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),r.modelDownlaodInProgress?B("",!0):(T(),x("div",Blt,[l("div",Glt,[e[745]||(e[745]=l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),k(l("input",{type:"text","onUpdate:modelValue":e[430]||(e[430]=f=>r.addModel.url=f),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),[[ae,r.addModel.url]])]),l("button",{type:"button",onClick:e[431]||(e[431]=$(f=>i.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),r.modelDownlaodInProgress?(T(),x("div",Vlt,[e[747]||(e[747]=l("div",{role:"status",class:"justify-center"},null,-1)),l("div",zlt,[l("div",Hlt,[l("div",qlt,[e[746]||(e[746]=mi(' Downloading Loading...',1)),l("span",Ylt,Y(Math.floor(r.addModel.progress))+"%",1)]),l("div",{class:"mx-1 opacity-80 line-clamp-1",title:r.addModel.url},Y(r.addModel.url),9,$lt),l("div",Wlt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Bt({width:r.addModel.progress+"%"})},null,4)]),l("div",Klt,[l("span",jlt,"Download speed: "+Y(i.speed_computed)+"/s",1),l("span",Qlt,Y(i.downloaded_size_computed)+"/"+Y(i.total_size_computed),1)])])]),l("div",Xlt,[l("div",Zlt,[l("div",Jlt,[l("button",{onClick:e[432]||(e[432]=$((...f)=>i.onCancelInstall&&i.onCancelInstall(...f),["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 ")])])])])):B("",!0)])])],2)]),l("div",ect,[l("div",tct,[l("button",{onClick:e[435]||(e[435]=$(f=>r.pzc_collapsed=!r.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[k(l("div",null,e[749]||(e[749]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.pzc_collapsed]]),k(l("div",null,e[750]||(e[750]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.pzc_collapsed]]),e[753]||(e[753]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),i.configFile.personalities?(T(),x("div",nct,"|")):B("",!0),l("div",sct,Y(i.active_pesonality),1),i.configFile.personalities?(T(),x("div",rct,"|")):B("",!0),i.configFile.personalities?(T(),x("div",ict,[i.mountedPersArr.length>0?(T(),x("div",oct,[(T(!0),x(Be,null,Ke(i.mountedPersArr,(f,y)=>(T(),x("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:y+"-"+f.name,ref_for:!0,ref:"mountedPersonalities"},[l("div",act,[l("button",{onClick:$(b=>i.onPersonalitySelected(f),["stop"])},[l("img",{src:r.bUrl+f.avatar,onError:e[433]||(e[433]=(...b)=>i.personalityImgPlacehodler&&i.personalityImgPlacehodler(...b)),class:Le(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",i.configFile.active_personality_id==i.configFile.personalities.indexOf(f.full_path)?"border-secondary":"border-transparent z-0"]),title:f.name},null,42,cct)],8,lct),l("button",{onClick:$(b=>i.unmountPersonality(f),["stop"])},e[751]||(e[751]=[l("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"},[l("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"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)]),8,dct)])]))),128))])):B("",!0)])):B("",!0),l("button",{onClick:e[434]||(e[434]=$(f=>i.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},e[752]||(e[752]=[l("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"},[l("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)]))])]),l("div",{class:Le([{hidden:r.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",uct,[e[756]||(e[756]=l("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),l("div",pct,[l("div",fct,[r.searchPersonalityInProgress?(T(),x("div",_ct,e[754]||(e[754]=[l("div",{role:"status"},[l("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"},[l("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"}),l("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"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),r.searchPersonalityInProgress?B("",!0):(T(),x("div",mct,e[755]||(e[755]=[l("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"},[l("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)])))]),k(l("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[436]||(e[436]=f=>r.searchPersonality=f),onKeyup:e[437]||(e[437]=$((...f)=>i.searchPersonality_func&&i.searchPersonality_func(...f),["stop"]))},null,544),[[ae,r.searchPersonality]]),r.searchPersonality?(T(),x("button",{key:0,onClick:e[438]||(e[438]=$(f=>r.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):B("",!0)])]),r.searchPersonality?B("",!0):(T(),x("div",hct,[l("label",gct," Personalities Category: ("+Y(r.persCatgArr.length)+") ",1),l("select",{id:"persCat",onChange:e[439]||(e[439]=f=>i.update_personality_category(f.target.value,i.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"},[(T(!0),x(Be,null,Ke(r.persCatgArr,(f,y)=>(T(),x("option",{key:y,selected:f==this.configFile.personality_category},Y(f),9,bct))),128))],32)])),l("div",null,[r.personalitiesFiltered.length>0?(T(),x("div",yct,[l("label",Ect,Y(r.searchPersonality?"Search results":"Personalities")+": ("+Y(r.personalitiesFiltered.length)+") ",1),l("div",{class:Le(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",r.pzl_collapsed?"":"max-h-96"])},[z(Ir,{name:"bounce"},{default:Ie(()=>[(T(!0),x(Be,null,Ke(r.personalitiesFiltered,(f,y)=>(T(),at(_,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+y+"-"+f.name,personality:f,select_language:!0,full_path:f.full_path,selected:i.configFile.active_personality_id==i.configFile.personalities.findIndex(b=>b===f.full_path||b===f.full_path+":"+f.language),"on-selected":i.onPersonalitySelected,"on-mount":i.mountPersonality,"on-un-mount":i.unmountPersonality,"on-remount":i.remountPersonality,"on-edit":i.editPersonality,"on-copy-to-custom":i.copyToCustom,"on-reinstall":i.onPersonalityReinstall,"on-settings":i.onSettingsPersonality,"on-copy-personality-name":i.onCopyPersonalityName,"on-copy-to_custom":i.onCopyToCustom,"on-open-folder":i.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)])):B("",!0)]),r.pzl_collapsed?(T(),x("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[440]||(e[440]=f=>r.pzl_collapsed=!r.pzl_collapsed)},e[757]||(e[757]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),x("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[441]||(e[441]=f=>r.pzl_collapsed=!r.pzl_collapsed)},e[758]||(e[758]=[l("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),l("div",vct,[l("div",Sct,[l("button",{onClick:e[442]||(e[442]=$(f=>r.mc_collapsed=!r.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[k(l("div",null,e[759]||(e[759]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[ht,r.mc_collapsed]]),k(l("div",null,e[760]||(e[760]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[ht,!r.mc_collapsed]]),e[761]||(e[761]=l("p",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1))])]),l("div",{class:Le([{hidden:r.mc_collapsed},"flex flex-col mb-2 p-2"])},[l("div",Tct,[l("div",xct,[k(l("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[443]||(e[443]=$(()=>{},["stop"])),"onUpdate:modelValue":e[444]||(e[444]=f=>i.configFile.override_personality_model_parameters=f),onChange:e[445]||(e[445]=f=>i.update_setting("override_personality_model_parameters",i.configFile.override_personality_model_parameters))},null,544),[[He,i.configFile.override_personality_model_parameters]]),e[762]||(e[762]=l("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1))])]),l("div",{class:Le(i.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[l("div",Cct,[e[763]||(e[763]=l("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),k(l("input",{type:"text",id:"seed","onUpdate:modelValue":e[446]||(e[446]=f=>i.configFile.seed=f),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),[[ae,i.configFile.seed]])]),l("div",wct,[l("div",Rct,[l("div",Act,[e[764]||(e[764]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),l("p",Mct,[k(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[447]||(e[447]=f=>i.configFile.temperature=f),onChange:e[448]||(e[448]=f=>r.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.temperature]])])]),k(l("input",{id:"temperature",onChange:e[449]||(e[449]=f=>r.settingsChanged=!0),type:"range","onUpdate:modelValue":e[450]||(e[450]=f=>i.configFile.temperature=f),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),[[ae,i.configFile.temperature]])])]),l("div",Nct,[l("div",Oct,[l("div",Ict,[e[765]||(e[765]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),l("p",kct,[k(l("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[451]||(e[451]=f=>i.configFile.n_predict=f),onChange:e[452]||(e[452]=f=>r.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.n_predict]])])]),k(l("input",{id:"predict",type:"range",onChange:e[453]||(e[453]=f=>r.settingsChanged=!0),"onUpdate:modelValue":e[454]||(e[454]=f=>i.configFile.n_predict=f),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),[[ae,i.configFile.n_predict]])])]),l("div",Dct,[l("div",Lct,[l("div",Pct,[e[766]||(e[766]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),l("p",Fct,[k(l("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[455]||(e[455]=f=>i.configFile.top_k=f),onChange:e[456]||(e[456]=f=>r.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.top_k]])])]),k(l("input",{id:"top_k",type:"range",onChange:e[457]||(e[457]=f=>r.settingsChanged=!0),"onUpdate:modelValue":e[458]||(e[458]=f=>i.configFile.top_k=f),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),[[ae,i.configFile.top_k]])])]),l("div",Uct,[l("div",Bct,[l("div",Gct,[e[767]||(e[767]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),l("p",Vct,[k(l("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[459]||(e[459]=f=>i.configFile.top_p=f),onChange:e[460]||(e[460]=f=>r.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.top_p]])])]),k(l("input",{id:"top_p",type:"range","onUpdate:modelValue":e[461]||(e[461]=f=>i.configFile.top_p=f),min:"0",max:"1",step:"0.01",onChange:e[462]||(e[462]=f=>r.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.top_p]])])]),l("div",zct,[l("div",Hct,[l("div",qct,[e[768]||(e[768]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),l("p",Yct,[k(l("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[463]||(e[463]=f=>i.configFile.repeat_penalty=f),onChange:e[464]||(e[464]=f=>r.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.repeat_penalty]])])]),k(l("input",{id:"repeat_penalty",onChange:e[465]||(e[465]=f=>r.settingsChanged=!0),type:"range","onUpdate:modelValue":e[466]||(e[466]=f=>i.configFile.repeat_penalty=f),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),[[ae,i.configFile.repeat_penalty]])])]),l("div",$ct,[l("div",Wct,[l("div",Kct,[e[769]||(e[769]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),l("p",jct,[k(l("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[467]||(e[467]=f=>i.configFile.repeat_last_n=f),onChange:e[468]||(e[468]=f=>r.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.repeat_last_n]])])]),k(l("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[469]||(e[469]=f=>i.configFile.repeat_last_n=f),min:"0",max:"100",step:"1",onChange:e[470]||(e[470]=f=>r.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ae,i.configFile.repeat_last_n]])])])],2)],2)])],2)]),z(m,{ref:"addmodeldialog"},null,512),z(h,{class:"z-20",show:r.variantSelectionDialogVisible,choices:r.variant_choices,onChoiceSelected:i.onVariantChoiceSelected,onCloseDialog:i.oncloseVariantChoiceDialog,onChoiceValidated:i.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const Xct=rt(Znt,[["render",Qct],["__scopeId","data-v-f29485cf"]]),Zct={components:{ClipBoardTextInput:O0,Card:dp},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};ne.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}}},Jct={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"},edt={class:"mb-4"},tdt=["value"],ndt={class:"mb-4"},sdt={class:"mb-4"},rdt={class:"mb-4"},idt={class:"mb-4"},odt={class:"mb-4"},adt={class:"mb-4"},ldt={key:1};function cdt(n,e,t,s,r,i){const o=nt("Card"),a=nt("ClipBoardTextInput");return i.selectedModel!==null&&i.selectedModel.toLowerCase().includes("gptq")?(T(),x("div",Jct,[l("form",{onSubmit:e[2]||(e[2]=$((...c)=>i.submitForm&&i.submitForm(...c),["prevent"])),class:""},[z(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[z(o,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",edt,[e[3]||(e[3]=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),k(l("select",{"onUpdate:modelValue":e[0]||(e[0]=c=>i.selectedModel=c),onChange:e[1]||(e[1]=(...c)=>n.setModel&&n.setModel(...c)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),x(Be,null,Ke(i.models,c=>(T(),x("option",{key:c,value:c},Y(c),9,tdt))),128))],544),[[Ot,i.selectedModel]])])]),_:1}),z(o,{title:"Data",isHorizontal:!1},{default:Ie(()=>[l("div",ndt,[e[4]||(e[4]=l("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1)),z(a,{id:"model_path",inputType:"file",value:r.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),z(o,{title:"Training",isHorizontal:!1},{default:Ie(()=>[l("div",sdt,[e[5]||(e[5]=l("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1)),z(a,{id:"model_path",inputType:"integer",value:r.lr},null,8,["value"])]),l("div",rdt,[e[6]||(e[6]=l("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1)),z(a,{id:"model_path",inputType:"integer",value:r.num_epochs},null,8,["value"])]),l("div",idt,[e[7]||(e[7]=l("label",{for:"max_length",class:"text-sm"},"Max Length:",-1)),z(a,{id:"model_path",inputType:"integer",value:r.max_length},null,8,["value"])]),l("div",odt,[e[8]||(e[8]=l("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1)),z(a,{id:"model_path",inputType:"integer",value:r.batch_size},null,8,["value"])])]),_:1}),z(o,{title:"Output",isHorizontal:!1},{default:Ie(()=>[l("div",adt,[e[9]||(e[9]=l("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1)),z(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),z(o,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>e[10]||(e[10]=[l("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1)])),_:1})],32)])):(T(),x("div",ldt,[z(o,{title:"Info",class:"",isHorizontal:!1},{default:Ie(()=>e[11]||(e[11]=[Ze(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")])),_:1})]))}const ddt=rt(Zct,[["render",cdt]]),udt={components:{ClipBoardTextInput:O0,Card:dp},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)}}},pdt={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"},fdt={class:"mb-4"},_dt={class:"mb-4"};function mdt(n,e,t,s,r,i){const o=nt("ClipBoardTextInput"),a=nt("Card");return T(),x("div",pdt,[l("form",{onSubmit:e[0]||(e[0]=$((...c)=>i.submitForm&&i.submitForm(...c),["prevent"])),class:"max-w-md mx-auto"},[z(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[z(a,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",fdt,[e[1]||(e[1]=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),z(o,{id:"model_path",inputType:"text",value:r.model_name},null,8,["value"])]),l("div",_dt,[e[2]||(e[2]=l("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1)),z(o,{id:"model_path",inputType:"text",value:r.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),z(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>e[3]||(e[3]=[l("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1)])),_:1})],32)])}const hdt=rt(udt,[["render",mdt]]),gdt={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,Fe(()=>{Ve.replace()})},watch:{showConfirmation(){Fe(()=>{Ve.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&Fe(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&Fe(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},bdt=["id"],ydt={class:"flex flex-row items-center gap-2"},Edt={key:0},vdt={class:"flex flex-row items-center w-full"},Sdt=["title"],Tdt=["value"],xdt={class:"absolute top-0 right-0 h-full flex items-center group"},Cdt={class:"flex gap-2 items-center bg-white dark:bg-gray-800 p-2 rounded-l-md shadow-md transform translate-x-full group-hover:translate-x-0 transition-transform duration-300"},wdt={key:0,class:"flex gap-2 items-center"},Rdt={key:1,class:"flex gap-2 items-center"};function Adt(n,e,t,s,r,i){return T(),x("div",{class:Le([t.selected?"discussion-hilighted min-w-[14rem] max-w-[14rem]":"discussion min-w-[14rem] max-w-[14rem]","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink-0 items-center rounded-md duration-75 cursor-pointer relative"]),id:"dis-"+t.id,onClick:e[13]||(e[13]=$(o=>i.selectEvent(),["stop"]))},[l("div",ydt,[t.isCheckbox?(T(),x("div",Edt,[k(l("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]=$(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>r.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>i.checkedChangeEvent(o,t.id))},null,544),[[He,r.checkBoxValue_local]])])):B("",!0),t.selected?(T(),x("div",{key:1,class:Le(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent":"bg-secondary"])},null,2)):B("",!0),t.selected?B("",!0):(T(),x("div",{key:2,class:Le(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent":""])},null,2))]),l("div",vdt,[r.editTitle?B("",!0):(T(),x("p",{key:0,title:t.title,class:"line-clamp-1 w-full ml-1 -mx-5 text-xs"},Y(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,Sdt)),r.editTitle?(T(),x("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]=ws($(o=>i.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=ws($(o=>r.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>i.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=$(()=>{},["stop"]))},null,40,Tdt)):B("",!0)]),l("div",xdt,[l("div",Cdt,[r.showConfirmation?(T(),x("div",wdt,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=$(o=>i.cancel(),["stop"]))},e[14]||(e[14]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=$(o=>r.editTitleMode?i.editTitleEvent():r.deleteMode?i.deleteEvent():i.makeTitleEvent(),["stop"]))},e[15]||(e[15]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),r.showConfirmation?B("",!0):(T(),x("div",Rdt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=$(o=>i.openFolderEvent(),["stop"]))},e[16]||(e[16]=[l("i",{"data-feather":"folder"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=$(o=>r.makeTitleMode=!0,["stop"]))},e[17]||(e[17]=[l("i",{"data-feather":"type"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=$(o=>r.editTitleMode=!0,["stop"]))},e[18]||(e[18]=[l("i",{"data-feather":"edit-2"},null,-1)])),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=$(o=>r.deleteMode=!0,["stop"]))},e[19]||(e[19]=[l("i",{"data-feather":"trash"},null,-1)]))]))])])],10,bdt)}const Q0=rt(gdt,[["render",Adt],["__scopeId","data-v-5bb76742"]]),Mdt={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}}},Ndt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},Odt={class:"bg-white p-8 rounded"},Idt={class:"text-xl font-bold mb-4"};function kdt(n,e,t,s,r,i){return T(),x("div",null,[r.show?(T(),x("div",Ndt,[l("div",Odt,[l("h2",Idt,Y(t.promptText),1),k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>r.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[ae,r.inputText]]),l("button",{onClick:e[1]||(e[1]=(...o)=>i.ok&&i.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),l("button",{onClick:e[2]||(e[2]=(...o)=>i.cancel&&i.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):B("",!0)])}const pN=rt(Mdt,[["render",kdt]]),Ddt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:Q0,MarkdownRenderer:cp},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){ne.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"),ne.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){ne.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),ne.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:n}).then(()=>{this.fetchTitles()})},editTitle(n){ne.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(){}}},Ldt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},Pdt={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"},Fdt={class:"search p-4"},Udt={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"},Bdt={class:"z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"};function Gdt(n,e,t,s,r,i){const o=nt("Discussion"),a=nt("MarkdownRenderer");return T(),x("div",{class:Le([{hidden:!r.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"])},[l("div",Ldt,[l("div",Pdt,[l("div",Fdt,[k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=c=>r.searchQuery=c),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[ae,r.searchQuery]]),l("button",{onClick:e[1]||(e[1]=(...c)=>i.searchSkills&&i.searchSkills(...c)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),l("div",Udt,[e[3]||(e[3]=l("h2",{class:"text-xl font-bold m-4"},"Titles",-1)),r.titles.length>0?(T(),at(Ir,{key:0,name:"list"},{default:Ie(()=>[(T(!0),x(Be,null,Ke(r.titles,c=>(T(),at(o,{key:c.id,id:c.id,title:c.title,selected:i.fetchContent(c.id),loading:r.loading,isCheckbox:r.isCheckbox,checkBoxValue:!1,onSelect:d=>i.fetchContent(c.id),onDelete:d=>i.deleteSkill(c.id),onEditTitle:i.editTitle,onMakeTitle:i.makeTitle,onChecked:i.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):B("",!0)])]),l("div",Bdt,[e[4]||(e[4]=l("h2",{class:"text-xl font-bold m-4"},"Content",-1)),z(a,{host:t.host,"markdown-text":r.content,message_id:r.id,discussion_id:r.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),l("button",{onClick:e[2]||(e[2]=(...c)=>i.closeComponent&&i.closeComponent(...c)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const fN=rt(Ddt,[["render",Gdt]]),Vdt={props:{htmlContent:{type:String,required:!0}}},zdt=["innerHTML"];function Hdt(n,e,t,s,r,i){return T(),x("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,zdt)}const qdt=rt(Vdt,[["render",Hdt]]),Ydt={name:"JsonTreeView",props:{data:{type:[Object,Array],required:!0},depth:{type:Number,default:0}},data(){return{collapsedKeys:new Set}},methods:{isObject(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)},isArray(n){return Array.isArray(n)},toggleCollapse(n){this.collapsedKeys.has(n)?this.collapsedKeys.delete(n):this.collapsedKeys.add(n)},isCollapsed(n){return this.collapsedKeys.has(n)},getValueType(n){return typeof n=="string"?"string":typeof n=="number"?"number":typeof n=="boolean"?"boolean":n===null?"null":""},formatValue(n){return typeof n=="string"?`"${n}"`:String(n)}}},$dt={class:"json-tree-view"},Wdt=["onClick"],Kdt={key:0,class:"toggle-icon"},jdt={class:"key"},Qdt={key:0,class:"json-nested"};function Xdt(n,e,t,s,r,i){const o=nt("json-tree-view",!0);return T(),x("div",$dt,[(T(!0),x(Be,null,Ke(t.data,(a,c)=>(T(),x("div",{key:c,class:"json-item"},[l("div",{class:"json-key",onClick:d=>i.toggleCollapse(c)},[i.isObject(a)||i.isArray(a)?(T(),x("span",Kdt,[l("i",{class:Le(i.isCollapsed(c)?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)])):B("",!0),l("span",jdt,Y(c)+":",1),!i.isObject(a)&&!i.isArray(a)?(T(),x("span",{key:1,class:Le(["value",i.getValueType(a)])},Y(i.formatValue(a)),3)):B("",!0)],8,Wdt),(i.isObject(a)||i.isArray(a))&&!i.isCollapsed(c)?(T(),x("div",Qdt,[z(o,{data:a,depth:t.depth+1},null,8,["data","depth"])])):B("",!0)]))),128))])}const Zdt=rt(Ydt,[["render",Xdt],["__scopeId","data-v-40406ec6"]]),Jdt={components:{JsonTreeView:Zdt},props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Viewer"}},data(){return{collapsed:!0}},computed:{isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")},parsedJsonData(){if(typeof this.jsonData=="string")try{return JSON.parse(this.jsonData)}catch(n){return console.error("Error parsing JSON string:",n),{error:"Invalid JSON string"}}return this.jsonData}},methods:{toggleCollapsible(){this.collapsed=!this.collapsed}}},eut={key:0,class:"json-viewer"},tut={class:"toggle-icon"},nut={class:"json-content panels-color"};function sut(n,e,t,s,r,i){const o=nt("json-tree-view");return i.isContentPresent?(T(),x("div",eut,[l("div",{class:"collapsible-section",onClick:e[0]||(e[0]=(...a)=>i.toggleCollapsible&&i.toggleCollapsible(...a))},[l("span",tut,[l("i",{class:Le(r.collapsed?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)]),Ze(" "+Y(t.jsonFormText),1)]),k(l("div",nut,[z(o,{data:i.parsedJsonData,depth:0},null,8,["data"])],512),[[ht,!r.collapsed]])])):B("",!0)}const rut=rt(Jdt,[["render",sut],["__scopeId","data-v-83fc9727"]]),iut={props:{done:{type:Boolean,default:!1},text:{type:String,default:""},status:{type:Boolean,default:!1},step_type:{type:String,default:"start_end"},description:{type:String,default:""}},mounted(){this.amounted()},methods:{amounted(){console.log("Component mounted with the following properties:"),console.log("done:",this.done),console.log("text:",this.text),console.log("status:",this.status),console.log("step_type:",this.step_type),console.log("description:",this.description)}},watch:{done(n){typeof n!="boolean"&&console.error("Invalid type for done. Expected Boolean.")},status(n){typeof n!="boolean"&&console.error("Invalid type for status. Expected Boolean."),this.done&&!n&&console.error("Task completed with errors.")}}},out={class:"step-container"},aut={class:"step-icon"},lut={key:0},cut={key:0},dut={key:1},uut={key:2},put={key:1},fut={class:"step-content"},_ut={key:0,class:"step-description"};function mut(n,e,t,s,r,i){return T(),x("div",out,[l("div",{class:Le(["step-wrapper transition-all duration-300 ease-in-out",{"bg-green-100 dark:bg-green-900":t.done&&t.status,"bg-red-100 dark:bg-red-900":t.done&&!t.status,"bg-gray-100 dark:bg-gray-800":!t.done}])},[l("div",aut,[t.step_type==="start_end"?(T(),x("div",lut,[t.done?t.done&&t.status?(T(),x("div",dut,e[1]||(e[1]=[l("i",{"data-feather":"check-circle",class:"feather-icon text-green-600 dark:text-green-400"},null,-1)]))):(T(),x("div",uut,e[2]||(e[2]=[l("i",{"data-feather":"x-circle",class:"feather-icon text-red-600 dark:text-red-400"},null,-1)]))):(T(),x("div",cut,e[0]||(e[0]=[l("i",{"data-feather":"circle",class:"feather-icon text-gray-600 dark:text-gray-300"},null,-1)])))])):B("",!0),t.done?B("",!0):(T(),x("div",put,e[3]||(e[3]=[l("div",{class:"spinner"},null,-1)])))]),l("div",fut,[l("h3",{class:Le(["step-text",{"text-green-600 dark:text-green-400":t.done&&t.status,"text-red-600 dark:text-red-400":t.done&&!t.status,"text-gray-800 dark:text-gray-200":!t.done}])},Y(t.text||"No text provided"),3),t.description?(T(),x("p",_ut,Y(t.description||"No description provided"),1)):B("",!0)])],2)])}const hut=rt(iut,[["render",mut],["__scopeId","data-v-78f415f6"]]),gut="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20480%20480'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M240,0C107.664,0,0,107.664,0,240s107.664,240,240,240s240-107.664,240-240S372.336,0,240,0z%20M240,460%20c-121.309,0-220-98.691-220-220S118.691,20,240,20s220,98.691,220,220S361.309,460,240,460z'/%3e%3cpath%20d='M410,194.999h-27.058c-2.643-8.44-6-16.56-10.03-24.271l19.158-19.158c3.776-3.775,5.854-8.79,5.854-14.121%20c0-5.332-2.08-10.347-5.854-14.121l-35.399-35.399c-3.775-3.775-8.79-5.854-14.122-5.854c-5.331,0-10.346,2.079-14.121,5.854%20l-19.158,19.158c-7.711-4.03-15.832-7.386-24.271-10.03V70c0-11.028-8.972-20-20-20h-50c-11.028,0-20,8.972-20,20v27.058%20c-8.44,2.643-16.56,6-24.271,10.03L151.57,87.93c-3.775-3.776-8.79-5.854-14.121-5.854c-5.332,0-10.347,2.08-14.121,5.854%20l-35.399,35.399c-3.775,3.775-5.854,8.79-5.854,14.122c0,5.331,2.079,10.346,5.854,14.121l19.158,19.158%20c-4.03,7.711-7.386,15.832-10.03,24.271H70c-11.028,0-20,8.972-20,20v50c0,11.028,8.972,20,20,20h27.057%20c2.643,8.44,6,16.56,10.03,24.271L87.929,328.43c-3.776,3.775-5.854,8.79-5.854,14.121c0,5.332,2.08,10.347,5.854,14.121%20l35.399,35.399c3.775,3.775,8.79,5.854,14.122,5.854c5.331,0,10.346-2.079,14.121-5.854l19.158-19.158%20c7.711,4.03,15.832,7.386,24.271,10.03V410c0,11.028,8.972,20,20,20h50c11.028,0,20-8.972,20.001-20v-27.058%20c8.44-2.643,16.56-6,24.271-10.03l19.158,19.158c3.775,3.776,8.79,5.854,14.121,5.854c5.332,0,10.347-2.08,14.121-5.854%20l35.399-35.399c3.775-3.775,5.854-8.79,5.854-14.122c0-5.331-2.079-10.346-5.854-14.121l-19.158-19.158%20c4.03-7.711,7.386-15.832,10.03-24.271H410c11.028,0,20-8.972,20-20v-50C430,203.971,421.028,194.999,410,194.999z%20M410,264.998%20h-34.598c-4.562,0-8.544,3.086-9.684,7.503c-3.069,11.901-7.716,23.133-13.813,33.387c-2.337,3.931-1.71,8.948,1.524,12.182%20l24.5,24.457l-35.357,35.4l-24.5-24.5c-3.236-3.235-8.253-3.86-12.182-1.524c-10.254,6.097-21.487,10.745-33.387,13.813%20c-4.417,1.14-7.503,5.122-7.503,9.684V410h-50v-34.599c0-4.562-3.086-8.544-7.503-9.684%20c-11.901-3.069-23.133-7.716-33.387-13.813c-1.587-0.944-3.353-1.404-5.107-1.404c-2.586,0-5.147,1.002-7.073,2.931l-24.457,24.5%20l-35.4-35.357l24.5-24.5c3.234-3.235,3.861-8.251,1.524-12.182c-6.097-10.254-10.745-21.487-13.813-33.387%20c-1.14-4.417-5.122-7.503-9.684-7.503H70v-50h34.596c4.562,0,8.544-3.086,9.684-7.503c3.069-11.901,7.716-23.133,13.813-33.387%20c2.337-3.931,1.71-8.948-1.524-12.182l-24.5-24.457l35.357-35.4l24.5,24.5c3.236,3.235,8.253,3.861,12.182,1.524%20c10.254-6.097,21.487-10.745,33.387-13.813c4.417-1.14,7.503-5.122,7.503-9.684V70h50v34.596c0,4.562,3.086,8.544,7.503,9.684%20c11.901,3.069,23.133,7.716,33.387,13.813c3.929,2.337,8.947,1.709,12.182-1.524l24.457-24.5l35.4,35.357l-24.5,24.5%20c-3.234,3.235-3.861,8.251-1.524,12.182c6.097,10.254,10.745,21.487,13.813,33.387c1.14,4.417,5.122,7.503,9.684,7.503H410%20V264.998z'/%3e%3cpath%20d='M331.585,292.475l-40-35l-13.17,15.051L298.386,290H240c-27.57,0-50-22.43-50-50h-20c0,38.598,31.402,70,70,70h58.386%20l-19.971,17.475l13.17,15.051l40-35c2.17-1.898,3.415-4.642,3.415-7.525S333.755,294.373,331.585,292.475z'/%3e%3cpath%20d='M201.585,207.473L181.614,190H240c27.57,0,50,22.43,50,50h20c0-38.598-31.402-70-70-70h-58.386l19.971-17.475%20l-13.17-15.051l-40,35c-2.17,1.898-3.415,4.642-3.415,7.525s1.245,5.627,3.415,7.525l40,35L201.585,207.473z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20from='0%20240%20240'%20to='360%20240%20240'%20dur='10s'%20repeatCount='indefinite'%20/%3e%3c/svg%3e",but="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cpath%20d='M25%200C11.6%200%200%2011.6%200%2025s11.6%2025%2025%2025%2025-11.6%2025-25S40.4%200%2025%200zm0%2048C12.8%2048%202%2039.2%202%2025S12.8%202%2025%202s24%2010.8%2024%2024-10.8%2024-24%2024zm-4-33l-8%208%2018%2018%2030-30-8-8-22%2022L22%2016'%20fill='green'/%3e%3c/svg%3e",yut="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012%2019%206.41z'%20fill='red'/%3e%3c/svg%3e",_N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20width='256'%20height='256'%20viewBox='0%200%20256%20256'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%20style='stroke:%20white;%20stroke-width:%202px;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20none;%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='translate(1.4065934065934016%201.4065934065934016)%20scale(2.81%202.81)'%20%3e%3cpath%20d='M%2089.999%203.075%20C%2090%203.02%2090%202.967%2089.999%202.912%20c%20-0.004%20-0.134%20-0.017%20-0.266%20-0.038%20-0.398%20c%20-0.007%20-0.041%20-0.009%20-0.081%20-0.018%20-0.122%20c%20-0.034%20-0.165%20-0.082%20-0.327%20-0.144%20-0.484%20c%20-0.018%20-0.046%20-0.041%20-0.089%20-0.061%20-0.134%20c%20-0.053%20-0.119%20-0.113%20-0.234%20-0.182%20-0.346%20C%2089.528%201.382%2089.5%201.336%2089.469%201.29%20c%20-0.102%20-0.147%20-0.212%20-0.288%20-0.341%20-0.417%20c%20-0.13%20-0.13%20-0.273%20-0.241%20-0.421%20-0.344%20c%20-0.042%20-0.029%20-0.085%20-0.056%20-0.129%20-0.082%20c%20-0.118%20-0.073%20-0.239%20-0.136%20-0.364%20-0.191%20c%20-0.039%20-0.017%20-0.076%20-0.037%20-0.116%20-0.053%20c%20-0.161%20-0.063%20-0.327%20-0.113%20-0.497%20-0.147%20c%20-0.031%20-0.006%20-0.063%20-0.008%20-0.094%20-0.014%20c%20-0.142%20-0.024%20-0.285%20-0.038%20-0.429%20-0.041%20C%2087.03%200%2086.983%200%2086.936%200.001%20c%20-0.141%200.003%20-0.282%200.017%20-0.423%200.041%20c%20-0.035%200.006%20-0.069%200.008%20-0.104%200.015%20c%20-0.154%200.031%20-0.306%200.073%20-0.456%200.129%20L%201.946%2031.709%20c%20-1.124%200.422%20-1.888%201.473%20-1.943%202.673%20c%20-0.054%201.199%200.612%202.316%201.693%202.838%20l%2034.455%2016.628%20l%2016.627%2034.455%20C%2053.281%2089.344%2054.334%2090%2055.481%2090%20c%200.046%200%200.091%20-0.001%200.137%20-0.003%20c%201.199%20-0.055%202.251%20-0.819%202.673%20-1.943%20L%2089.815%204.048%20c%200.056%20-0.149%200.097%20-0.3%200.128%20-0.453%20c%200.008%20-0.041%200.011%20-0.081%200.017%20-0.122%20C%2089.982%203.341%2089.995%203.208%2089.999%203.075%20z%20M%2075.086%2010.672%20L%2037.785%2047.973%20L%2010.619%2034.864%20L%2075.086%2010.672%20z%20M%2055.136%2079.381%20L%2042.027%2052.216%20l%2037.302%20-37.302%20L%2055.136%2079.381%20z'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'%20stroke-linecap='round'%20/%3e%3ccircle%20cx='75'%20cy='75'%20r='15'%20fill='%23008000'/%3e%3cpath%20d='M75,60%20A15,15%200%200,1%2090,75%20A15,15%200%200,1%2075,90%20A15,15%200%200,1%2060,75%20A15,15%200%200,1%2075,60%20Z'%20stroke='%23FFFFFF'%20stroke-width='2'%20fill='none'/%3e%3cpath%20d='M81,75%20A6,6%200%200,1%2075,81%20A6,6%200%200,1%2069,75%20A6,6%200%200,1%2075,69%20A6,6%200%200,1%2081,75%20Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3c/svg%3e",Eut="/",vut={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:cp,Step:hut,RenderHTMLJS:qdt,JsonViewer:rut,DynamicUIRenderer:uN,ToolbarButton:I0,DropdownMenu:JM},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:BM,html5_block:GM,LaTeX_block:VM,json_block:UM,javascript_block:FM,process_svg:gut,ok_svg:but,failed_svg:yut,loading_svg:HM,sendGlobe:_N,code_block:LM,python_block:PM,bash_block:zM,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."),Fe(()=>{Ve.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 s=Math.floor(t/(1e3*60*60));t-=s*(1e3*60*60);const r=Math.floor(t/(1e3*60));t-=r*(1e3*60);const i=Math.floor(t/1e3);return t-=i*1e3,[s,r,i]},insertTab(n){const e=n.target,t=e.selectionStart,s=e.selectionEnd,r=n.shiftKey;if(t===s)if(r){if(e.value.substring(t-4,t)==" "){const i=e.value.substring(0,t-4),o=e.value.substring(s),a=i+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const i=e.value.substring(0,t),o=e.value.substring(s),a=i+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,s).split(` -`).map(u=>u.trim()===""?u:r?u.startsWith(" ")?u.substring(4):u:" "+u),a=e.value.substring(0,t),c=e.value.substring(s),d=a+o.join(` -`)+c;this.message.content=d,this.$nextTick(()=>{e.selectionStart=t,e.selectionEnd=s+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,ne.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 s of this.message.metadata)Object.prototype.hasOwnProperty.call(s,"audio_url")&&(s.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}))},async speak(){if(this.$store.state.config.active_tts_service!="browser"&&this.$store.state.config.active_tts_service!="None")this.isSpeaking?(this.isSpeaking=!0,ne.post("./stop",{text:this.message.content}).then(n=>{this.isSpeaking=!1}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSpeaking=!1})):(this.isSpeaking=!0,ne.post("./text2Audio",{client_id:this.$store.state.client_id,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(r=>r.name===this.$store.state.config.audio_out_voice)[0]);const t=r=>{let i=this.message.content.substring(r,r+e);const o=[".","!","?",` -`];let a=-1;return o.forEach(c=>{const d=i.lastIndexOf(c);d>a&&(a=d)}),a==-1&&(a=i.length),console.log(a),a+r+1},s=()=>{if(this.message.status_message=="Done"||this.message.content.includes(".")||this.message.content.includes("?")||this.message.content.includes("!")){const r=t(n),i=this.message.content.substring(n,r);this.msg.text=i,n=r+1,this.msg.onend=o=>{n{s()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",r))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{s()},1)};console.log("Speaking chunk"),s()}},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?Eut+this.avatar:(console.log("No avatar found"),Bs)},defaultImg(n){n.target.src=Bs},parseDate(n){let e=new Date(Date.parse(n)),s=Math.floor((new Date-e)/1e3);return s<=1?"just now":s<20?s+" seconds ago":s<40?"half a minute ago":s<60?"less than a minute ago":s<=90?"one minute ago":s<=3540?Math.round(s/60)+" minutes ago":s<=5400?"1 hour ago":s<=86400?Math.round(s/3600)+" hours ago":s<=129600?"1 day ago":s<604800?Math.round(s/86400)+" days ago":s<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,s=Math.floor(t/86400);if(!(isNaN(s)||s<0||s>=31))return s==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")||s==1&&"Yesterday"||s<7&&s+" days ago"||s<31&&Math.ceil(s/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed to",n),this.ui_componentKey++},showConfirmation(){Fe(()=>{Ve.replace()})},deleteMsgMode(){Fe(()=>{Ve.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,Fe(()=>{Ve.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[s,r,i]=this.computeTimeDiff(n,e);function o(c){return c<10&&(c="0"+c),c}return o(s)+"h:"+o(r)+"m:"+o(i)+"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 s,r,i;[s,r,i]=this.computeTimeDiff(n,e);function o(c){return c<10&&(c="0"+c),c}return o(s)+"h:"+o(r)+"m:"+o(i)+"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 r=e.getTime()-n.getTime();const i=Math.floor(r/1e3),o=t/i;return Math.round(o)+" t/s"}}},Sut={class:"relative message w-full group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},Tut={class:"flex flex-row gap-2"},xut={class:"flex-shrink-0"},Cut={class:"group/avatar"},wut=["src","data-popover-target"],Rut={class:"flex flex-col w-full flex-grow-0"},Aut={class:"flex flex-row flex-grow items-start"},Mut={class:"flex flex-col mb-2"},Nut={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},Out=["title"],Iut={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"},kut={key:1},Dut=["src"],Lut={class:"message-details"},Put={key:0,class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full transition-all duration-300 ease-in-out"},Fut={class:"grid min-w-80 select-none grid-cols-[50px,1fr] items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-all duration-300"},Uut={class:"relative grid aspect-square place-content-center overflow-hidden rounded-full bg-gradient-to-br from-blue-400 to-purple-500 transform transition-transform duration-300 hover:scale-105"},But={class:"leading-5"},Gut={class:"flex items-center gap-1 truncate whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"},Vut={class:"px-5 pb-5 pt-4 transition-all duration-300 ease-in-out"},zut={class:"list-none"},Hut={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"},qut={class:"flex-row justify-end mx-2"},Yut={class:"invisible group-hover:visible flex flex-row"},$ut={key:0},Wut={key:1},Kut={key:2},jut={key:3},Qut={key:4,class:"flex items-center duration-75"},Xut={class:"flex flex-row items-center"},Zut={class:"flex flex-row items-center"},Jut={key:6,class:"flex flex-row items-center"},ept=["src"],tpt={class:"text-sm text-gray-400 mt-2"},npt={class:"flex flex-row items-center gap-2"},spt={key:0},rpt={class:"font-thin"},ipt={key:1},opt={class:"font-thin"},apt={key:2},lpt={class:"font-thin"},cpt={key:3},dpt=["title"],upt={key:4},ppt=["title"],fpt={key:5},_pt=["title"],mpt={key:6},hpt=["title"];function gpt(n,e,t,s,r,i){var b;const o=nt("MarkdownRenderer"),a=nt("JsonViewer"),c=nt("DynamicUIRenderer"),d=nt("StatusIcon"),u=nt("StatusIndicator"),_=nt("Step"),m=nt("RenderHTMLJS"),h=nt("ToolbarButton"),f=nt("DropdownSubmenu"),y=nt("DropdownMenu");return T(),x("div",Sut,[l("div",Tut,[l("div",xut,[l("div",Cut,[l("img",{src:i.getImgUrl(),onError:e[0]||(e[0]=g=>i.defaultImg(g)),"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,wut)])]),l("div",Rut,[l("div",Aut,[l("div",Mut,[l("div",Nut,Y(t.message.sender),1),t.message.created_at?(T(),x("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+i.created_at_parsed},Y(i.created_at),9,Out)):B("",!0)]),e[45]||(e[45]=l("div",{class:"flex-grow"},null,-1))]),l("div",Iut,[i.editMsgMode?B("",!0):(T(),at(o,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),l("div",null,[t.message.open?k((T(),x("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=ws($((...g)=>i.insertTab&&i.insertTab(...g),["prevent"]),["tab"])),class:"block min-h-[500px] p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[2]||(e[2]=g=>t.message.content=g)}," ",544)),[[ae,t.message.content]]):B("",!0)]),t.message.metadata!==null?(T(),x("div",kut,[(T(!0),x(Be,null,Ke(((b=t.message.metadata)==null?void 0:b.filter(g=>g!=null&&g.hasOwnProperty("title")&&g.hasOwnProperty("content")))||[],(g,E)=>(T(),x("div",{key:"json-"+t.message.id+"-"+E,class:"json font-bold"},[(T(),at(a,{jsonFormText:g.title,jsonData:g.content,key:"msgjson-"+t.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):B("",!0),t.message.ui?(T(),at(c,{ref:"ui",class:"w-full",ui:t.message.ui,key:"msgui-"+t.message.id},null,8,["ui"])):B("",!0),r.audio_url!=null?(T(),x("audio",{controls:"",key:r.audio_url},[l("source",{src:r.audio_url,type:"audio/wav",ref:"audio_player"},null,8,Dut),e[46]||(e[46]=Ze(" Your browser does not support the audio element. "))])):B("",!0),l("div",Lut,[t.message&&t.message.steps&&t.message.steps.length>0?(T(),x("details",Put,[l("summary",Fut,[l("div",Uut,[z(d,{status:t.message.status_message},null,8,["status"])]),l("dl",But,[e[47]||(e[47]=l("dd",{class:"text-lg font-semibold text-gray-800 dark:text-gray-200"},"Processing Info",-1)),l("dt",Gut,[z(u,{status:t.message.status_message},null,8,["status"]),Ze(" "+Y(t.message.status_message),1)])])]),l("div",Vut,[l("ol",zut,[(T(!0),x(Be,null,Ke(t.message.steps,(g,E)=>(T(),x("li",{key:`step-${t.message.id}-${E}`,class:Le(["group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800 transition-all duration-300 ease-in-out",{"bg-transparent":g.done}]),style:Bt({animationDelay:`${E*100}ms`})},[z(_,{done:g.done,text:g.text,status:g.status,step_type:g.step_type},null,8,["done","text","status","step_type"])],6))),128))])])])):B("",!0),l("div",Hut,[(T(!0),x(Be,null,Ke(t.message.html_js_s,(g,E)=>(T(),x("div",{key:`htmljs-${t.message.id}-${E}`,class:"font-bold animate-fadeIn",style:Bt({animationDelay:`${E*200}ms`})},[z(m,{htmlContent:g},null,8,["htmlContent"])],4))),128))])])]),l("div",qut,[l("div",Yut,[i.editMsgMode?(T(),x("div",$ut,[z(h,{onClick:e[3]||(e[3]=$(g=>i.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),z(h,{onClick:$(i.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),z(y,{title:"Add Block"},{default:Ie(()=>[z(f,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[z(h,{onClick:e[4]||(e[4]=$(g=>i.addBlock("python"),["stop"])),title:"Python",icon:"python"}),z(h,{onClick:e[5]||(e[5]=$(g=>i.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),z(h,{onClick:e[6]||(e[6]=$(g=>i.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),z(h,{onClick:e[7]||(e[7]=$(g=>i.addBlock("java"),["stop"])),title:"Java",icon:"java"}),z(h,{onClick:e[8]||(e[8]=$(g=>i.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),z(h,{onClick:e[9]||(e[9]=$(g=>i.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),z(h,{onClick:e[10]||(e[10]=$(g=>i.addBlock("go"),["stop"])),title:"Go",icon:"go"}),z(h,{onClick:e[11]||(e[11]=$(g=>i.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),z(h,{onClick:e[12]||(e[12]=$(g=>i.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),z(h,{onClick:e[13]||(e[13]=$(g=>i.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),z(h,{onClick:e[14]||(e[14]=$(g=>i.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),z(f,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[z(h,{onClick:e[15]||(e[15]=$(g=>i.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),z(h,{onClick:e[16]||(e[16]=$(g=>i.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),z(h,{onClick:e[17]||(e[17]=$(g=>i.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),z(h,{onClick:e[18]||(e[18]=$(g=>i.addBlock("react"),["stop"])),title:"React",icon:"react"}),z(h,{onClick:e[19]||(e[19]=$(g=>i.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),z(f,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[z(h,{onClick:e[20]||(e[20]=$(g=>i.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),z(h,{onClick:e[21]||(e[21]=$(g=>i.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),z(h,{onClick:e[22]||(e[22]=$(g=>i.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),z(h,{onClick:e[23]||(e[23]=$(g=>i.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),z(h,{onClick:e[24]||(e[24]=$(g=>i.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),z(f,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[z(h,{onClick:e[25]||(e[25]=$(g=>i.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),z(h,{onClick:e[26]||(e[26]=$(g=>i.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),z(h,{onClick:e[27]||(e[27]=$(g=>i.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),z(f,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[z(h,{onClick:e[28]||(e[28]=$(g=>i.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),z(h,{onClick:e[29]||(e[29]=$(g=>i.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),z(h,{onClick:e[30]||(e[30]=$(g=>i.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),z(f,{title:"Database",icon:"database"},{default:Ie(()=>[z(h,{onClick:e[31]||(e[31]=$(g=>i.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),z(h,{onClick:e[32]||(e[32]=$(g=>i.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),z(h,{onClick:e[33]||(e[33]=$(g=>i.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(T(),x("div",Wut,[z(h,{onClick:e[34]||(e[34]=$(g=>i.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),z(h,{onClick:i.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!i.editMsgMode&&t.message.sender!==n.$store.state.mountedPers.name?(T(),x("div",Kut,[z(h,{onClick:e[35]||(e[35]=$(g=>i.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),z(h,{onClick:e[36]||(e[36]=$(g=>i.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),z(h,{onClick:e[37]||(e[37]=$(g=>i.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):B("",!0),!i.editMsgMode&&t.message.sender===n.$store.state.mountedPers.name?(T(),x("div",jut,[z(h,{onClick:i.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):B("",!0),r.deleteMsgMode?(T(),x("div",Qut,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[38]||(e[38]=$(g=>r.deleteMsgMode=!1,["stop"]))},e[48]||(e[48]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[39]||(e[39]=$(g=>i.deleteMsg(),["stop"]))},e[49]||(e[49]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),!i.editMsgMode&&!r.deleteMsgMode?(T(),x("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[40]||(e[40]=g=>r.deleteMsgMode=!0)},e[50]||(e[50]=[l("i",{"data-feather":"trash"},null,-1)]))):B("",!0),l("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[41]||(e[41]=$(g=>i.rankUp(),["stop"]))},e[51]||(e[51]=[l("i",{"data-feather":"thumbs-up"},null,-1)])),l("div",Xut,[l("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[42]||(e[42]=$(g=>i.rankDown(),["stop"]))},e[52]||(e[52]=[l("i",{"data-feather":"thumbs-down"},null,-1)])),t.message.rank!=0?(T(),x("div",{key:0,class:Le(["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"},Y(t.message.rank),3)):B("",!0)]),l("div",Zut,[this.$store.state.config.active_tts_service!="None"?(T(),x("div",{key:0,class:Le(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":i.isTalking}]),title:"speak",onClick:e[43]||(e[43]=$(g=>i.speak(),["stop"]))},e[53]||(e[53]=[l("i",{"data-feather":"volume-2"},null,-1)]),2)):B("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(T(),x("div",Jut,[r.isSynthesizingVoice?(T(),x("img",{key:1,src:r.loading_svg},null,8,ept)):(T(),x("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[44]||(e[44]=$(g=>i.read(),["stop"]))},e[54]||(e[54]=[l("i",{"data-feather":"voicemail"},null,-1)])))])):B("",!0)])]),l("div",tpt,[l("div",npt,[t.message.binding?(T(),x("p",spt,[e[55]||(e[55]=Ze("Binding: ")),l("span",rpt,Y(t.message.binding),1)])):B("",!0),t.message.model?(T(),x("p",ipt,[e[56]||(e[56]=Ze("Model: ")),l("span",opt,Y(t.message.model),1)])):B("",!0),t.message.seed?(T(),x("p",apt,[e[57]||(e[57]=Ze("Seed: ")),l("span",lpt,Y(t.message.seed),1)])):B("",!0),t.message.nb_tokens?(T(),x("p",cpt,[e[58]||(e[58]=Ze("Number of tokens: ")),l("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},Y(t.message.nb_tokens),9,dpt)])):B("",!0),i.warmup_duration?(T(),x("p",upt,[e[59]||(e[59]=Ze("Warmup duration: ")),l("span",{class:"font-thin",title:"Warmup duration: "+i.warmup_duration},Y(i.warmup_duration),9,ppt)])):B("",!0),i.time_spent?(T(),x("p",fpt,[e[60]||(e[60]=Ze("Generation duration: ")),l("span",{class:"font-thin",title:"Finished generating: "+i.time_spent},Y(i.time_spent),9,_pt)])):B("",!0),i.generation_rate?(T(),x("p",mpt,[e[61]||(e[61]=Ze("Rate: ")),l("span",{class:"font-thin",title:"Generation rate: "+i.generation_rate},Y(i.generation_rate),9,hpt)])):B("",!0)])])])])])}const mN=rt(vut,[["render",gpt]]),bpt={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Fe(()=>{Ve.replace()})},methods:{btn_clicked(n){console.log(n)},hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,s){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=s||this.DenyButtonText;for(let r=0;r{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=r,console.log("show form",this.controls_array)})},openFileDialog(n){const e=document.createElement("input");e.type="file",n.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),n.accept&&(e.accept=n.accept),e.onchange=t=>{t.target.files.length>0&&(n.value=t.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Fe(()=>{Ve.replace()})}}},ypt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4 overflow-hidden"},Ept={class:"relative w-full max-w-md max-h-[80vh]"},vpt={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},Spt={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},Tpt={class:"grow flex items-center"},xpt={class:"text-lg font-semibold select-none"},Cpt={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},wpt={class:"space-y-2"},Rpt={key:0},Apt={key:0},Mpt={class:"text-base font-semibold"},Npt={key:0,class:"relative inline-flex"},Opt=["onUpdate:modelValue"],Ipt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},kpt=["onUpdate:modelValue"],Dpt={key:1},Lpt={class:"text-base font-semibold"},Ppt={key:0,class:"relative inline-flex"},Fpt=["onUpdate:modelValue"],Upt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Bpt=["onUpdate:modelValue"],Gpt=["value","selected"],Vpt={key:1},zpt={class:"",onclick:"btn_clicked(item)"},Hpt={key:2},qpt={key:0},Ypt={class:"text-base font-semibold"},$pt={key:0,class:"relative inline-flex"},Wpt=["onUpdate:modelValue"],Kpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},jpt=["onUpdate:modelValue"],Qpt={key:1},Xpt={class:"text-base font-semibold"},Zpt={key:0,class:"relative inline-flex"},Jpt=["onUpdate:modelValue"],eft={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},tft=["onUpdate:modelValue"],nft=["value","selected"],sft={key:3},rft={class:"text-base font-semibold"},ift={key:0,class:"relative inline-flex"},oft=["onUpdate:modelValue"],aft={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},lft=["onUpdate:modelValue"],cft=["onUpdate:modelValue","min","max"],dft={key:4},uft={class:"text-base font-semibold"},pft={key:0,class:"relative inline-flex"},fft=["onUpdate:modelValue"],_ft={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},mft=["onUpdate:modelValue"],hft=["onUpdate:modelValue","min","max"],gft={key:5},bft={class:"mb-2 relative flex items-center gap-2"},yft={for:"default-checkbox",class:"text-base font-semibold"},Eft=["onUpdate:modelValue"],vft={key:0,class:"relative inline-flex"},Sft=["onUpdate:modelValue"],Tft={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},xft={key:6},Cft={class:"text-base font-semibold"},wft={key:0,class:"relative inline-flex"},Rft=["onUpdate:modelValue"],Aft={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Mft=["onUpdate:modelValue"],Nft={key:7,class:"space-y-2"},Oft={class:"flex items-center gap-2"},Ift={class:"text-base font-semibold"},kft={key:0,class:"relative inline-flex"},Dft=["onUpdate:modelValue"],Lft={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},Pft={class:"flex gap-2"},Fft=["onUpdate:modelValue","placeholder"],Uft=["onClick"],Bft={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},Gft={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function Vft(n,e,t,s,r,i){return r.show?(T(),x("div",ypt,[l("div",Ept,[l("div",vpt,[l("div",Spt,[l("div",Tpt,[e[3]||(e[3]=l("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),l("h3",xpt,Y(r.title),1)]),l("button",{onClick:e[0]||(e[0]=$(o=>i.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[l("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})],-1)]))]),l("div",Cpt,[l("div",wpt,[(T(!0),x(Be,null,Ke(r.controls_array,(o,a)=>(T(),x("div",{key:a,class:"p-1"},[o.type=="str"||o.type=="string"?(T(),x("div",Rpt,[o.options?B("",!0):(T(),x("div",Apt,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Mpt,Y(o.name)+": ",1),o.help?(T(),x("label",Npt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Opt),[[He,o.isHelp]]),e[5]||(e[5]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Ipt,Y(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,kpt),[[ae,o.value]])])),o.options?(T(),x("div",Dpt,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Lpt,Y(o.name)+": ",1),o.help?(T(),x("label",Ppt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Fpt),[[He,o.isHelp]]),e[6]||(e[6]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Upt,Y(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),x(Be,null,Ke(o.options,c=>(T(),x("option",{value:c,selected:o.value===c},Y(c),9,Gpt))),256))],8,Bpt),[[Ot,o.value]])])):B("",!0)])):B("",!0),o.type=="btn"?(T(),x("div",Vpt,[l("button",zpt,Y(o.name),1)])):B("",!0),o.type=="text"?(T(),x("div",Hpt,[o.options?B("",!0):(T(),x("div",qpt,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Ypt,Y(o.name)+": ",1),o.help?(T(),x("label",$pt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Wpt),[[He,o.isHelp]]),e[7]||(e[7]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Kpt,Y(o.help),1)):B("",!0),k(l("textarea",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,jpt),[[ae,o.value]])])),o.options?(T(),x("div",Qpt,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Xpt,Y(o.name)+": ",1),o.help?(T(),x("label",Zpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Jpt),[[He,o.isHelp]]),e[8]||(e[8]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",eft,Y(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),x(Be,null,Ke(o.options,c=>(T(),x("option",{value:c,selected:o.value===c},Y(c),9,nft))),256))],8,tft),[[Ot,o.value]])])):B("",!0)])):B("",!0),o.type=="int"?(T(),x("div",sft,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",rft,Y(o.name)+": ",1),o.help?(T(),x("label",ift,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,oft),[[He,o.isHelp]]),e[9]||(e[9]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",aft,Y(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,step:"1",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,lft),[[ae,o.value]]),o.min!=null&&o.max!=null?k((T(),x("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,cft)),[[ae,o.value]]):B("",!0)])):B("",!0),o.type=="float"?(T(),x("div",dft,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",uft,Y(o.name)+": ",1),o.help?(T(),x("label",pft,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,fft),[[He,o.isHelp]]),e[10]||(e[10]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",_ft,Y(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,mft),[[ae,o.value]]),o.min!=null&&o.max!=null?k((T(),x("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,hft)),[[ae,o.value]]):B("",!0)])):B("",!0),o.type=="bool"?(T(),x("div",gft,[l("div",bft,[l("label",yft,Y(o.name)+": ",1),k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.value=c,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,Eft),[[He,o.value]]),o.help?(T(),x("label",vft,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Sft),[[He,o.isHelp]]),e[11]||(e[11]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),x("p",Tft,Y(o.help),1)):B("",!0)])):B("",!0),o.type=="list"?(T(),x("div",xft,[l("label",{class:Le(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Cft,Y(o.name)+": ",1),o.help?(T(),x("label",wft,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Rft),[[He,o.isHelp]]),e[12]||(e[12]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),x("p",Aft,Y(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,Mft),[[ae,o.value]])])):B("",!0),o.type==="file"||o.type==="folder"?(T(),x("div",Nft,[l("label",Oft,[l("span",Ift,Y(o.name)+":",1),o.help?(T(),x("label",kft,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Dft),[[He,o.isHelp]]),e[13]||(e[13]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),x("p",Lft,Y(o.help),1)):B("",!0),l("div",Pft,[k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,readonly:"",class:"flex-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:o.type==="file"?"Select file...":"Select folder..."},null,8,Fft),[[ae,o.value]]),l("button",{onClick:c=>i.openFileDialog(o),class:"px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600"}," ... ",8,Uft)])])):B("",!0),ai.hide(!0),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-white bg-blue-700 rounded-lg hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700"},Y(r.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=$(o=>i.hide(!1),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-600"},Y(r.DenyButtonText),1)])])])])):B("",!0)}const X0=rt(bpt,[["render",Vft],["__scopeId","data-v-8a34bb65"]]);ne.defaults.baseURL="/";const zft={components:{InteractiveMenu:W0},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),Fe(()=>{Ve.replace()})},methods:{isHTML(n){const t=new DOMParser().parseFromString(n,"text/html");return Array.from(t.body.childNodes).some(s=>s.nodeType===Node.ELEMENT_NODE)},selectFile(n,e){const t=document.createElement("input");t.type="file",t.accept=n,t.onchange=s=>{this.selectedFile=s.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};Ye.on("file_received",s=>{s.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file -`+s.error,4,!1),this.loading=!1,Ye.off("file_received")}),Ye.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){Fe(()=>{Ve.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)}},Hft={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function qft(n,e,t,s,r,i){const o=nt("InteractiveMenu");return r.loading?(T(),x("div",Hft,e[0]||(e[0]=[l("div",{role:"status"},[l("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"},[l("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"}),l("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"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):(T(),at(o,{key:1,commands:t.commandsList,execute_cmd:i.execute_cmd},null,8,["commands","execute_cmd"]))}const Yft=rt(zft,[["render",qft],["__scopeId","data-v-1a32c141"]]),$ft="data:image/svg+xml,%3csvg%20aria-hidden='true'%20class='w-6%20h-6%20animate-spin%20fill-secondary'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='currentColor'%20/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.9121%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='currentFill'%20/%3e%3c/svg%3e",Wft="/",Kft={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:Yft,ChatBarButton:DM},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:$ft,sendGlobe:_N,bUrl:Wft,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{leftPanelCollapsed(){return this.$store.state.leftPanelCollapsed},rightPanelCollapsed(){return this.$store.state.rightPanelCollapsed},isCompactMode(){return this.$store.state.view_mode==="compact"},isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const r=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",r),{name:t[0],value:t[0]||"default_value",icon:r,help:"mounts the database"}});return console.log("formatted data sources",n),n}},methods:{showSendMenu(){clearTimeout(this.hideSendMenuTimeout),this.isSendMenuVisible=!0},hideSendMenu(){this.hideSendMenuTimeout=setTimeout(()=>{this.isSendMenuVisible=!1},300)},toggleLeftPanel(){console.log(this.leftPanelCollapsed),this.$store.commit("setLeftPanelCollapsed",!this.leftPanelCollapsed)},async toggleRightPanel(){console.log(this.rightPanelCollapsed),this.$store.commit("setRightPanelCollapsed",!this.rightPanelCollapsed),this.rightPanelCollapsed&&(this.$store.commit("setleftPanelCollapsed",!0),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let s of e)if(s.type.indexOf("image")!==-1){const r=s.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([r],o,{type:r.type});this.addFiles([a])}else if(s.kind==="file"){const r=s.getAsFile();t.push(r)}t.length>0&&this.addFiles(t)},emitloaded(){this.$emit("loaded")},download_files(){ne.get("/download_files")},remove_file(n){ne.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){ne.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,s=24*1024;let r=0,i=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,c=r+a.byteLength>=n.size;Ye.emit("send_file_chunk",{filename:n.name,chunk:a,offset:r,isLastChunk:c,chunkIndex:i}),r+=a.byteLength,i++,c?(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(r,r+s);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),Ye.emit("start_bidirectional_audio_stream"),Fe(()=>{Ve.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),Ye.emit("stop_bidirectional_audio_stream"),Fe(()=>{Ve.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},computedFileSize(n){return Fe(()=>{Ve.replace()}),sr(n)},removeItem(n){console.log("Removing ",n.name),ne.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 ne.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(){Ye.emit("take_picture"),Ye.on("picture_taken",()=>{ne.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 s=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const r=e[t];this.filesList.push(r),this.isFileSentList.push(!1),this.send_file(r,()=>{t++,s()})};s()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Fe(()=>{Ve.replace()})},loading(n,e){Fe(()=>{Ve.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let s=0;s{Ve.replace()}),console.log("Chatbar mounted"),Ye.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(){Fe(()=>{Ve.replace()})}},jft={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},Qft={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},Xft={class:"flex"},Zft=["title"],Jft={key:0},e_t={class:"flex flex-col max-h-64"},t_t=["title"],n_t={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"},s_t={key:0,filesList:"",role:"status"},r_t={class:"flex flex-row items-center"},i_t={class:"whitespace-nowrap"},o_t=["onClick"],a_t={key:1,class:"flex mx-1 w-500"},l_t={class:"whitespace-nowrap flex flex-row gap-2"},c_t={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},d_t={role:"status"},u_t=["src"],p_t={class:"flex w-fit relative grow w-full"},f_t={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 chatbox-color p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},__t={key:0,title:"Waiting for reply"},m_t=["src"],h_t={class:"w-fit"},g_t={class:"w-fit"},b_t={class:"relative grow m-0 p-0"},y_t={class:"m-0 p-0"},E_t={class:"flex items-center space-x-3"},v_t={class:"relative inline-block"},S_t={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},T_t={class:"flex flex-col gap-2"};function x_t(n,e,t,s,r,i){const o=nt("ChatBarButton"),a=nt("PersonalitiesCommands");return T(),x("div",jft,[r.filesList.length>0?(T(),x("div",Qft,[l("div",Xft,[l("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:r.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=$(c=>r.showfilesList=!r.showfilesList,["stop"]))},e[12]||(e[12]=[l("i",{"data-feather":"list"},null,-1)]),8,Zft)]),r.filesList.length>0&&r.showfilesList==!0?(T(),x("div",Jft,[l("div",e_t,[z(Ir,{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:Ie(()=>[(T(!0),x(Be,null,Ke(r.filesList,(c,d)=>(T(),x("div",{key:d+"-"+c.name},[l("div",{class:"m-1",title:c.name},[l("div",n_t,[r.isFileSentList[d]?B("",!0):(T(),x("div",s_t,e[13]||(e[13]=[l("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"},[l("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"}),l("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),l("span",{class:"sr-only"},"Loading...",-1)]))),e[15]||(e[15]=l("div",null,[l("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),l("div",{class:Le(["line-clamp-1 w-3/5",r.isFileSentList[d]?"text-green-500":"text-red-200"])},Y(c.name),3),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),l("div",r_t,[l("p",i_t,Y(i.computedFileSize(c.size)),1),l("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:u=>i.removeItem(c)},e[14]||(e[14]=[l("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,o_t)])])],8,t_t)]))),128))]),_:1})])])):B("",!0),r.filesList.length>0?(T(),x("div",a_t,[l("div",l_t,[e[17]||(e[17]=l("p",{class:"font-bold"}," Total size: ",-1)),Ze(" "+Y(r.totalSize)+" ("+Y(r.filesList.length)+") ",1)]),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("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]=(...c)=>i.clear_files&&i.clear_files(...c))},e[18]||(e[18]=[l("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),l("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]=(...c)=>i.download_files&&i.download_files(...c))},e[19]||(e[19]=[l("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):B("",!0)])):B("",!0),r.selecting_model||r.selecting_binding?(T(),x("div",c_t,[l("div",d_t,[l("img",{src:r.loader_v0,class:"w-50 h-50"},null,8,u_t),e[21]||(e[21]=l("span",{class:"sr-only"},"Selecting model...",-1))])])):B("",!0),l("div",p_t,[l("div",f_t,[t.loading?(T(),x("div",__t,[l("img",{src:r.loader_v0},null,8,m_t),e[22]||(e[22]=l("div",{role:"status"},[l("span",{class:"sr-only"},"Loading...")],-1))])):B("",!0),z(o,{onClick:i.toggleLeftPanel,class:Le({"text-red-500":i.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Ie(()=>[k(l("div",null,e[23]||(e[23]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[ht,i.leftPanelCollapsed]]),k(l("div",null,e[24]||(e[24]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[ht,!i.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),l("div",h_t,[this.$store.state.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),at(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:i.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",g_t,[i.isDataSourceNamesValid?(T(),at(a,{key:0,icon:"feather:book",commandsList:i.dataSourceNames,sendCommand:i.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",b_t,[l("form",y_t,[k(l("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=c=>r.message=c),onPaste:e[4]||(e[4]=(...c)=>i.handlePaste&&i.handlePaste(...c)),onKeydown:e[5]||(e[5]=ws($(c=>i.submitOnEnter(c),["exact"]),["enter"])),class:"w-full p-2 text-sm text-gray-900 dark:text-white bg-gray-100 dark:bg-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Send message..."},null,544),[[ae,r.message]])])]),l("div",E_t,[t.loading?(T(),at(o,{key:0,onClick:i.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ie(()=>e[25]||(e[25]=[l("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])),default:Ie(()=>[e[26]||(e[26]=l("span",null,"Stop",-1))]),_:1},8,["onClick"])):(T(),at(o,{key:1,onClick:i.submit,title:"Send"},{icon:Ie(()=>e[27]||(e[27]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})],-1)])),_:1},8,["onClick"])),z(o,{onClick:i.submitWithInternetSearch,title:"Send with internet search"},{icon:Ie(()=>e[28]||(e[28]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.startSpeechRecognition,class:Le({"text-red-500":r.isListeningToVoice}),title:"Voice input"},{icon:Ie(()=>e[29]||(e[29]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),n.$store.state.config.active_tts_service!="None"&&n.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),at(o,{key:2,onClick:e[6]||(e[6]=c=>r.is_rt?i.stopRTCom:i.startRTCom),class:Le(r.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ie(()=>e[30]||(e[30]=[Ze(" 🌟 ")])),_:1},8,["class"])):B("",!0),t.loading?B("",!0):(T(),x("div",{key:3,class:"relative",onMouseleave:e[10]||(e[10]=(...c)=>i.hideSendMenu&&i.hideSendMenu(...c))},[l("div",v_t,[k(l("div",{onMouseenter:e[7]||(e[7]=(...c)=>i.showSendMenu&&i.showSendMenu(...c)),class:"absolute m-0 p-0 z-10 bottom-full left-1/2 transform -translate-x-1/2 w-25 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",S_t,[l("div",T_t,[z(o,{onClick:i.add_file,title:"Send file"},{icon:Ie(()=>e[31]||(e[31]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.takePicture,title:"Take picture"},{icon:Ie(()=>e[32]||(e[32]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.addWebLink,title:"Add web link"},{icon:Ie(()=>e[33]||(e[33]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)])),_:1},8,["onClick"])])])],544),[[ht,r.isSendMenuVisible]]),l("div",{onMouseenter:e[9]||(e[9]=(...c)=>i.showSendMenu&&i.showSendMenu(...c))},[l("button",{onClick:e[8]||(e[8]=$((...c)=>n.toggleSendMenu&&n.toggleSendMenu(...c),["prevent"])),class:"p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[34]||(e[34]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"black"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))],32)])],32)),z(o,{onClick:i.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ie(()=>e[35]||(e[35]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ie(()=>e[36]||(e[36]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:i.toggleRightPanel,class:Le({"text-red-500":!i.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Ie(()=>[k(l("div",null,e[37]||(e[37]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[ht,i.rightPanelCollapsed]]),k(l("div",null,e[38]||(e[38]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[ht,!i.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),l("input",{type:"file",ref:"fileDialog",onChange:e[11]||(e[11]=(...c)=>i.addFiles&&i.addFiles(...c)),multiple:"",style:{display:"none"}},null,544)]),e[39]||(e[39]=l("div",{class:"ml-auto gap-2"},null,-1))])])}const hN=rt(Kft,[["render",x_t],["__scopeId","data-v-e3d676fa"]]),C_t={name:"WelcomeComponent",setup(){const n=XD();return{logoSrc:Je(()=>n.state.config&&n.state.config.app_custom_logo?`/user_infos/${n.state.config.app_custom_logo}`:Bs)}}},w_t={class:"flex flex-col items-center justify-center w-full h-full min-h-screen p-8"},R_t={class:"text-center max-w-4xl"},A_t={class:"flex items-center justify-center gap-8 mb-12"},M_t={class:"relative w-24 h-24"},N_t=["src"];function O_t(n,e,t,s,r,i){return T(),x("div",w_t,[l("div",R_t,[l("div",A_t,[l("div",M_t,[l("img",{src:s.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,N_t)]),e[0]||(e[0]=l("div",{class:"flex flex-col items-start"},[l("h1",{class:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-400 dark:to-purple-400"}," L🌟LLMS "),l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ")],-1))]),e[1]||(e[1]=mi('

    Welcome to L🌟LLMS WebUI

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

    Discover the capabilities of L🌟LLMS:

    • Engage in natural language conversations
    • Generate creative content and ideas
    • Analyze complex data and provide insights
    • Assist with coding and technical tasks
    • Process and understand multimodal inputs
    ',1))])])}const gN=rt(C_t,[["render",O_t],["__scopeId","data-v-1756add6"]]);var I_t=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}(),ou=function(){return ou=Object.assign||function(n){for(var e,t=1,s=arguments.length;ti.hide&&i.hide(...a)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")):B("",!0),r.has_button?B("",!0):(T(),x("svg",G_t,e[1]||(e[1]=[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])))])])])):B("",!0)}const MN=rt(D_t,[["render",V_t]]),z_t={props:{progress:{type:Number,required:!0}}},H_t={class:"progress-bar-container"};function q_t(n,e,t,s,r,i){return T(),x("div",H_t,[l("div",{class:"progress-bar",style:Bt({width:`${t.progress}%`})},null,4)])}const mu=rt(z_t,[["render",q_t]]),Y_t={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(s=>{this.message=n,this.show=!0,this.resolve=s})}}},$_t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},W_t={class:"relative w-full max-w-md max-h-full"},K_t={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},j_t={class:"p-4 text-center"},Q_t={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function X_t(n,e,t,s,r,i){return r.show?(T(),x("div",$_t,[l("div",W_t,[l("div",K_t,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[3]||(e[3]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("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),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",j_t,[e[4]||(e[4]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("h3",Q_t,Y(r.message),1),l("button",{onClick:e[1]||(e[1]=o=>i.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},Y(r.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=o=>i.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},Y(r.DenyButtonText),1)])])])])):B("",!0)}const NN=rt(Y_t,[["render",X_t]]),Z_t={props:{personality:{type:Object,required:!0},config:{type:Object,required:!0}},data(){return{show:!1,title:"Add AI Agent",iconUrl:"",file:null,tempConfig:{}}},methods:{showForm(){this.showDialog=!0},hideForm(){this.showDialog=!1},selectIcon(n){n.target.files&&(this.file=n.target.files[0],this.iconUrl=URL.createObjectURL(this.file))},showPanel(){this.show=!0},hide(){this.show=!1},submitForm(){ne.post("/set_personality_config",{client_id:this.$store.state.client_id,category:this.personality.category,name:this.personality.folder,config:this.config}).then(n=>{const e=n.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(n=>{console.error(n)})}}},J_t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},emt={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},tmt={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},nmt={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},smt={class:"w-full flex flex-row mt-4 text-center justify-center"},rmt={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},imt={class:"mb-4 w-full"},omt={class:"w-full bg-bg-light dark:bg-bg-dark"};function amt(n,e,t,s,r,i){return r.show?(T(),x("div",J_t,[l("div",emt,[l("div",tmt,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>i.hide()),class:"absolute top-1 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[17]||(e[17]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("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),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",nmt,[l("div",smt,[l("button",{type:"submit",onClick:e[1]||(e[1]=$((...o)=>i.submitForm&&i.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),l("button",{onClick:e[2]||(e[2]=$(o=>i.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),l("div",rmt,[l("form",imt,[l("table",omt,[l("tr",null,[e[18]||(e[18]=l("td",null,[l("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>t.config.personality_conditioning=o)},null,512),[[ae,t.config.personality_conditioning]])])]),l("tr",null,[e[19]||(e[19]=l("td",null,[l("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>t.config.user_message_prefix=o)},null,512),[[ae,t.config.user_message_prefix]])])]),l("tr",null,[e[20]||(e[20]=l("td",null,[l("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>t.config.ai_message_prefix=o)},null,512),[[ae,t.config.ai_message_prefix]])])]),l("tr",null,[e[21]||(e[21]=l("td",null,[l("label",{for:"linkText"},"Link Text:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>t.config.link_text=o)},null,512),[[ae,t.config.link_text]])])]),l("tr",null,[e[22]||(e[22]=l("td",null,[l("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>t.config.welcome_message=o)},null,512),[[ae,t.config.welcome_message]])])]),l("tr",null,[e[23]||(e[23]=l("td",null,[l("label",{for:"modelTemperature"},"Model Temperature:")],-1)),l("td",null,[k(l("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[ae,t.config.model_temperature]])])]),l("tr",null,[e[24]||(e[24]=l("td",null,[l("label",{for:"modelTopK"},"Model Top K:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>t.config.model_top_k=o)},null,512),[[ae,t.config.model_top_k]])])]),l("tr",null,[e[25]||(e[25]=l("td",null,[l("label",{for:"modelTopP"},"Model Top P:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>t.config.model_top_p=o)},null,512),[[ae,t.config.model_top_p]])])]),l("tr",null,[e[26]||(e[26]=l("td",null,[l("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>t.config.model_repeat_penalty=o)},null,512),[[ae,t.config.model_repeat_penalty]])])]),l("tr",null,[e[27]||(e[27]=l("td",null,[l("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>t.config.model_repeat_last_n=o)},null,512),[[ae,t.config.model_repeat_last_n]])])]),l("tr",null,[e[28]||(e[28]=l("td",null,[l("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>t.config.recommended_binding=o)},null,512),[[ae,t.config.recommended_binding]])])]),l("tr",null,[e[29]||(e[29]=l("td",null,[l("label",{for:"recommendedModel"},"Recommended Model:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>t.config.recommended_model=o)},null,512),[[ae,t.config.recommended_model]])])]),l("tr",null,[e[30]||(e[30]=l("td",null,[l("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>t.config.dependencies=o)},null,512),[[ae,t.config.dependencies]])])]),l("tr",null,[e[31]||(e[31]=l("td",null,[l("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>t.config.anti_prompts=o)},null,512),[[ae,t.config.anti_prompts]])])])])])])])])])])):B("",!0)}const ON=rt(Z_t,[["render",amt]]),lmt={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){ne.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},cmt={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},dmt={class:"popup-container"},umt=["src"],pmt={class:"checkbox-container"};function fmt(n,e,t,s,r,i){return T(),at(Or,{name:"fade"},{default:Ie(()=>[r.showPopup?(T(),x("div",cmt,[l("div",dmt,[l("button",{onClick:e[0]||(e[0]=(...o)=>i.hide&&i.hide(...o)),class:"close-button"}," X "),l("iframe",{src:r.webpageUrl,class:"iframe-content"},null,8,umt),l("div",pmt,[k(l("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>i.save_configuration&&i.save_configuration(...o))},null,544),[[He,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=l("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):B("",!0)]),_:1})}const IN=rt(lmt,[["render",fmt],["__scopeId","data-v-d504dfc9"]]),_mt="/assets/fastapi-BQj-rjUJ.png",mmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20127.14%2096.36'%3e%3cg%20id='图层_2'%20data-name='图层%202'%3e%3cg%20id='Discord_Logos'%20data-name='Discord%20Logos'%3e%3cg%20id='Discord_Logo_-_Large_-_White'%20data-name='Discord%20Logo%20-%20Large%20-%20White'%3e%3cpath%20d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",hmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3c/circle%3e%3c/svg%3e",gmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3canimate%20attributeName='y1'%20values='30;25;30'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3canimate%20attributeName='y2'%20values='15;20;15'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3canimate%20attributeName='cy'%20values='35;30;35'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e",bmt="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='Layer%205'%20id='Layer_5'%3e%3cpath%20d='M47,33H17a1,1,0,0,0-1,1c0,9.93,7.18,18,16,18s16-8.07,16-18A1,1,0,0,0,47,33ZM18,35H46a18,18,0,0,1-.67,4H18.71A18,18,0,0,1,18,35ZM26.7,48.8a6.42,6.42,0,0,1,10.6,0,12.3,12.3,0,0,1-10.6,0Zm12.34-1A8.81,8.81,0,0,0,32,44a8.81,8.81,0,0,0-7,3.81A15.56,15.56,0,0,1,19.43,41H44.57A15.56,15.56,0,0,1,39,47.81ZM36,22a1.1,1.1,0,0,1,0-.18,1.17,1.17,0,0,1,.06-.2s0-.05,0-.07a.28.28,0,0,1,.07-.09.71.71,0,0,1,.28-.28s.06-.06.09-.07l10-5a1,1,0,1,1,.9,1.78L39.24,22l8.21,4.11a1,1,0,0,1,.44,1.34A1,1,0,0,1,47,28a.93.93,0,0,1-.45-.11l-10-5h0a1.18,1.18,0,0,1-.28-.22l0-.06a.65.65,0,0,1-.1-.15s0-.05,0-.07a1.17,1.17,0,0,1-.06-.2A1.1,1.1,0,0,1,36,22ZM16.55,26.11,24.76,22l-8.21-4.11a1,1,0,1,1,.9-1.78l10,5s.06.05.09.07a.71.71,0,0,1,.28.28.28.28,0,0,1,.07.09s0,.05,0,.07a1.17,1.17,0,0,1,.06.2.82.82,0,0,1,0,.36,1.17,1.17,0,0,1-.06.2s0,.05,0,.07a.65.65,0,0,1-.1.15.21.21,0,0,0,0,.06,1.18,1.18,0,0,1-.28.22h0l-10,5A.93.93,0,0,1,17,28a1,1,0,0,1-.89-.55A1,1,0,0,1,16.55,26.11ZM60.66,36.45A29.69,29.69,0,0,0,61,32,29,29,0,0,0,3,32a29.69,29.69,0,0,0,.34,4.45,4.65,4.65,0,0,0,2.39,7.82,29,29,0,0,0,52.54,0,4.65,4.65,0,0,0,2.39-7.82ZM4.78,41.58a2.91,2.91,0,0,1-.24-.27A2.62,2.62,0,0,1,4,39.71a.61.61,0,0,1,0-.14,2.58,2.58,0,0,1,.77-1.73,4.38,4.38,0,0,1,.74-.55C7,36.38,10,34.9,12.69,33.67c-1.52,3.3-3.42,7.17-4.17,7.91a2.59,2.59,0,0,1-1.47.72A2.66,2.66,0,0,1,4.78,41.58ZM32,59A27,27,0,0,1,7.92,44.18a4.56,4.56,0,0,0,2-1.18c1.48-1.49,5-9.36,5.66-10.92a1,1,0,0,0-1.32-1.32c-.78.34-3.14,1.39-5.49,2.53-1.29.63-2.58,1.29-3.6,1.88A25.58,25.58,0,0,1,5,32a27,27,0,0,1,54,0,25.58,25.58,0,0,1-.19,3.17c-2.88-1.66-7.88-3.88-9.09-4.41a1,1,0,0,0-1.32,1.32c.69,1.56,4.18,9.43,5.66,10.92a4.56,4.56,0,0,0,2,1.18A27,27,0,0,1,32,59ZM59.46,41.31a2.91,2.91,0,0,1-.24.27A2.66,2.66,0,0,1,57,42.3a2.59,2.59,0,0,1-1.47-.72c-.75-.74-2.65-4.61-4.17-7.91,1.65.76,3.44,1.61,4.91,2.37.91.47,1.7.9,2.26,1.25a4.38,4.38,0,0,1,.74.55A2.58,2.58,0,0,1,60,39.57a.61.61,0,0,1,0,.14A2.62,2.62,0,0,1,59.46,41.31Z'/%3e%3c/g%3e%3c/svg%3e",ymt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512.001%20512.001'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M256.001,0C114.841,0,0,114.841,0,256.001s114.841,256.001,256.001,256.001S512.001,397.16,512.001,256.001%20S397.16,0,256.001,0z%20M256.001,493.701c-131.069,0-237.702-106.631-237.702-237.7S124.932,18.299,256.001,18.299%20s237.702,106.632,237.702,237.702S387.068,493.701,256.001,493.701z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M371.284,296.658H138.275c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h233.008c5.054,0,9.15-4.097,9.15-9.15%20C380.433,300.754,376.337,296.658,371.284,296.658z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M297.481,330.816h-85.403c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h85.403c5.054,0,9.15-4.097,9.15-9.15%20S302.534,330.816,297.481,330.816z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M146.725,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20c18.666,0,33.852-15.186,33.852-33.852C180.577,208.168,165.391,192.982,146.725,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M365.275,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20s33.852-15.186,33.852-33.852C399.128,208.168,383.942,192.982,365.275,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cg%3e%3ccircle%20cx='155.969'%20cy='219.735'%20r='9.15'/%3e%3ccircle%20cx='374.338'%20cy='219.735'%20r='9.15'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Emt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20299.92%20299.92'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M293.4,65.2H6.52C2.914,65.2,0,68.114,0,71.72v117.36c0,3.606,2.914,6.52,6.52,6.52h6.52v32.6%20c0,3.606,2.914,6.52,6.52,6.52h260.8c3.606,0,6.52-2.914,6.52-6.52v-32.6h6.52c3.606,0,6.52-2.914,6.52-6.52V71.72%20C299.92,68.114,297.006,65.2,293.4,65.2z%20M273.84,221.68h-19.56H228.2h-26.08h-26.08h-26.08h-26.08H97.8H71.72H45.64H26.08V195.6%20h19.56h26.08H97.8h26.08h26.08h26.08h26.08h26.08h26.08h19.56V221.68z%20M286.88,182.56h-6.52H19.56h-6.52V78.24h273.84V182.56z'/%3e%3cpath%20d='M32.6,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H32.6c-3.606,0-6.52,2.914-6.52,6.52%20V163C26.08,166.606,28.994,169.52,32.6,169.52z%20M39.12,104.32H65.2v52.16H39.12V104.32z'/%3e%3cpath%20d='M97.8,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H97.8c-3.606,0-6.52,2.914-6.52,6.52%20V163C91.28,166.606,94.194,169.52,97.8,169.52z%20M104.32,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M163,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H163c-3.606,0-6.52,2.914-6.52,6.52%20V163C156.48,166.606,159.394,169.52,163,169.52z%20M169.52,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M228.2,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H228.2%20c-3.606,0-6.52,2.914-6.52,6.52V163C221.68,166.606,224.594,169.52,228.2,169.52z%20M234.72,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M52.16,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C49.246,221.68,52.16,218.766,52.16,215.16z'/%3e%3cpath%20d='M78.24,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C75.326,221.68,78.24,218.766,78.24,215.16z'/%3e%3cpath%20d='M104.32,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C101.406,221.68,104.32,218.766,104.32,215.16z'/%3e%3cpath%20d='M130.4,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C127.486,221.68,130.4,218.766,130.4,215.16z'/%3e%3cpath%20d='M156.48,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52s-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20S156.48,218.766,156.48,215.16z'/%3e%3cpath%20d='M182.56,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C179.646,221.68,182.56,218.766,182.56,215.16z'/%3e%3cpath%20d='M208.64,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C205.726,221.68,208.64,218.766,208.64,215.16z'/%3e%3cpath%20d='M234.72,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C231.806,221.68,234.72,218.766,234.72,215.16z'/%3e%3cpath%20d='M260.8,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C257.886,221.68,260.8,218.766,260.8,215.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",vmt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='green'%20stroke-width='4'%20fill='green'%20/%3e%3cpath%20stroke='white'%20stroke-width='4'%20d='M40%2050%20l10%2010%2020%20-20'%20fill='none'%20/%3e%3c/svg%3e",Smt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='red'%20stroke-width='4'%20fill='red'%20/%3e%3cline%20x1='35'%20y1='35'%20x2='65'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3cline%20x1='65'%20y1='35'%20x2='35'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3c/svg%3e",Tmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='800px'%20height='800px'%20viewBox='0%200%20461.759%20461.759'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M0,301.058h147.916v147.919H0V301.058z%20M194.432,448.977H342.35V301.058H194.432V448.977z%20M2.802,257.347h147.916V109.434%20H2.802V257.347z%20M325.476,92.219l-51.603-79.437l-79.441,51.601l51.604,79.437L325.476,92.219z%20M219.337,213.733l71.045,62.663%20l62.66-71.039l-71.044-62.669L219.337,213.733z%20M412.107,57.967l-80.668,49.656l49.652,80.666l80.668-49.65L412.107,57.967z'/%3e%3c/g%3e%3c/svg%3e",xmt="/assets/robot-CQPaMbxU.svg",Cmt="/";ne.defaults.baseURL="/";const wmt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Xu,UniversalForm:X0},data(){return{bUrl:Cmt,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 ne.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(r=>r===n.full_path),s={client_id:this.$store.state.client_id,id:t};e=await ne.post("/select_personality",s),console.log("Generating message from ",e.data.status),Ye.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 ne.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{ne.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{ne.post("/set_active_personality_settings",t).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. -`+s,4,!1)})}catch(s){this.$refs.toast.showToast(`Did not get Personality settings responses. - Endpoint error: `+s.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async constructor(){for(Fe(()=>{Ve.replace()});this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));this.onReady()},async api_get_req(n){try{const e=await ne.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=K0}}},Rmt={class:"relative group/item"},Amt=["src","alt"],Mmt={class:"absolute bottom-6 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 p-1"},Nmt={class:"p-1 bg-gray-500 rounded-full text-white hover:bg-gray-600 focus:outline-none ml-1",title:"Show more"},Omt={class:"text-xs font-bold"};function Imt(n,e,t,s,r,i){const o=nt("UniversalForm");return T(),x(Be,null,[l("div",Rmt,[l("button",{onClick:e[1]||(e[1]=$((...a)=>i.onSettingsPersonality&&i.onSettingsPersonality(...a),["prevent"])),class:"w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:r.bUrl+i.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>i.personalityImgPlacehodler&&i.personalityImgPlacehodler(...a)),alt:i.mountedPers.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":n.isActive}])},null,42,Amt)]),l("div",Mmt,[l("button",{onClick:e[2]||(e[2]=$(a=>i.remount_personality(),["prevent"])),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},e[4]||(e[4]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)])),l("button",{onClick:e[3]||(e[3]=$(a=>i.handleOnTalk(),["prevent"])),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none ml-1",title:"Talk"},e[5]||(e[5]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)])),l("button",Nmt,[l("span",Omt,"+"+Y(i.mountedPersArr.length-1),1)])])]),z(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const kN=rt(wmt,[["render",Imt]]),kmt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center overflow-hidden"},Dmt={class:"absolute inset-0 pointer-events-none overflow-hidden"},Lmt={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},Pmt={class:"mb-8 w-full"},Fmt={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},Umt={class:"text-lg text-gray-700 dark:text-gray-300"},Bmt=["innerHTML"],Gmt={class:"animated-progressbar-bg"},Vmt={class:"w-full max-w-2xl"},zmt={role:"status",class:"w-full"},Hmt={class:"text-xl text-gray-700 dark:text-gray-300"},qmt={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},Ymt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[15rem] max-w-[15rem]"},$mt={class:"logo-container"},Wmt=["src"],Kmt={class:"toolbar discussion"},jmt={class:"toolbar-container"},Qmt={class:"p-4 flex flex-wrap gap-2 items-center"},Xmt={class:"relative"},Zmt={class:"relative"},Jmt={key:4,title:"Loading..",class:"flex justify-center"},eht={key:5,class:"flex justify-center space-x-4"},tht={key:6,class:"flex flex-col space-y-2"},nht={class:"relative inline-block"},sht={class:"p-2 border-b border-gray-200 dark:border-gray-700"},rht={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},iht={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},oht=["onClick","title"],aht=["src","alt"],lht=["title"],cht={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},dht=["onClick"],uht={class:"flex space-x-1"},pht=["onClick"],fht=["src","title"],_ht={class:"relative inline-block"},mht={class:"p-2 border-b border-gray-200 dark:border-gray-700"},hht={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},ght={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},bht=["onClick","title"],yht=["src","alt"],Eht=["title"],vht={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},Sht=["onClick"],Tht={class:"flex space-x-1"},xht=["onClick"],Cht=["src","title"],wht={class:"relative inline-block"},Rht={class:"p-2 border-b border-gray-200 dark:border-gray-700"},Aht={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},Mht={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Nht=["onClick","title"],Oht=["src","alt"],Iht=["title"],kht={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},Dht=["onClick"],Lht={class:"flex space-x-1"},Pht=["onClick"],Fht=["onClick"],Uht=["onClick"],Bht={class:"w-auto max-w-md mx-auto p-2"},Ght={class:"flex items-center"},Vht={class:"relative flex-grow"},zht={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},Hht={class:"flex flex-col space-y-2"},qht={key:0},Yht={key:1,class:"flex space-x-2"},$ht={key:1,class:"flex space-x-2"},Wht={class:"flex space-x-2"},Kht={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},jht={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"},Qht={class:"flex flex-row panels-color"},Xht={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},Zht={key:0,class:"relative flex flex-col flex-grow"},Jht={class:"container pt-4 pb-50 mb-50 w-full"},egt={key:0,class:"w-full rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col overflow-hidden p-4 pb-2"},tgt={class:"overflow-x-auto flex-grow scrollbar-thin scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-600 scrollbar-track-gray-200 dark:scrollbar-track-gray-800 scrollbar-thumb-rounded-full scrollbar-track-rounded-full"},ngt={class:"flex flex-nowrap gap-6 p-4 min-w-full"},sgt=["title","onClick"],rgt={class:"space-y-3"},igt=["title"],ogt=["title"],agt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},lgt={class:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col"},cgt={class:"flex-1 flex flex-col min-h-0"},dgt={class:"mb-4 p-4 bg-gray-100 dark:bg-gray-700 rounded-lg"},ugt={class:"flex-1 h-[200px] overflow-y-auto scrollbar scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-500 scrollbar-track-gray-200 dark:scrollbar-track-gray-700 scrollbar-thin rounded-md"},pgt={class:"text-base whitespace-pre-wrap"},fgt={class:"flex-1 overflow-y-auto"},_gt={class:"space-y-4"},mgt=["for"],hgt=["id","onUpdate:modelValue","placeholder"],ggt=["id","onUpdate:modelValue"],bgt=["id","onUpdate:modelValue"],ygt=["id","onUpdate:modelValue"],Egt={key:4,class:"border rounded-md overflow-hidden"},vgt={class:"bg-gray-200 dark:bg-gray-900 p-2 text-sm"},Sgt=["id","onUpdate:modelValue"],Tgt=["id","onUpdate:modelValue"],xgt=["value"],Cgt={class:"mt-6 flex justify-end space-x-4"},wgt={key:0,class:"flex flex-row items-center justify-center h-10"},Rgt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-1/2 bg-bg-light-tone dark:bg-bg-dark-tone h-full"},Agt={ref:"isolatedContent",class:"h-full"},Mgt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},Ngt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},Ogt={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"},Igt={class:"text-2xl animate-pulse mt-2 text-white"},kgt={id:"app"},Dgt=n=>{const e=n.replace("[","").replace("]","").split("::"),t=e[0];if(e.length===1)return{label:t,type:"text",fullText:n};const s=e[1],r={label:t,type:s,fullText:n};switch(s){case"int":case"float":case"multiline":break;case"code":r.language=e[2]||"plaintext";break;case"options":r.options=e[2]?e[2].split(",").map(i=>i.trim()):[];break;default:r.type="text"}return r},Lgt="/",Pgt={setup(){},data(){return{interestingFacts:["Saïph, the new version of LoLLMs, is named after a star in Orion's constellation (Kappa Orionis), representing bright guidance in AI!","Did you know? The first computer programmer was a woman - Ada Lovelace!","Large Language Models (LLMs) have evolved from having millions of parameters to hundreds of billions in just a few years.","LoLLMs (Lord of Large Language Multimodal Systems) is an open-source AI assistant platform created by ParisNeo.","Saïph (κ Orionis) is a blue-white supergiant star approximately 650 light-years away from Earth.","Neural networks were first proposed in 1943 by Warren McCulloch and Walter Pitts.","Modern LLMs like GPT-4 can understand and generate multiple languages, code, and even analyze images.","LoLLMs supports multiple AI models and can perform tasks like code interpretation, image analysis, and internet searches.","The term 'transformer' in AI, which powers most modern LLMs, was introduced in the 'Attention is All You Need' paper in 2017.","LoLLMs can generate various types of diagrams, including SVG, Graphviz, and Mermaid diagrams.","The Python programming language was named after Monty Python.","LoLLMs features a built-in code interpreter that can execute multiple programming languages.","Quantum computers can perform calculations in minutes that would take classical computers thousands of years.","LoLLMs supports multimodal interactions, allowing users to work with both text and images.","The name Saïph in Arabic (سيف) means 'sword', symbolizing cutting-edge AI technology.",'
    ',"LoLLMs' version naming often contains clever easter eggs and references to AI advancements.","The 'Strawberry' version of LoLLMs was a playful nod to ChatGPT's internal codename for one of its versions.","The 'Saïph' version name was an intentional reference to Orion, anticipating OpenAI's rumored AGI-capable model codenamed 'Orion'.","LoLLMs' evolution can be traced through its version names: Warp, Starship, Robot, Brainwave, Strawberry, and Saïph.","Each LoLLMs version name reflects either technological advancement or pays homage to significant developments in AI.","'Warp' and 'Starship' versions symbolized the quantum leap in AI capabilities and speed improvements.","'Robot' represented the system's growing autonomy and ability to perform complex tasks.","'Brainwave' highlighted the neural network aspects and cognitive capabilities of the system.","LoLLMs' version naming shows ParisNeo's keen awareness of industry trends and playful approach to development.","LoLLMs can generate and visualize mathematical equations using LaTeX, making it a powerful tool for scientific documentation.","The system's multimodel capabilities allow it to analyze medical images, architectural blueprints, and technical diagrams.","LoLLMs includes a unique feature called 'personality system' that allows it to adapt its communication style and expertise.","Did you know? LoLLMs can process and generate music notation using ABC notation or LilyPond formats.","LoLLMs supports over 40 different AI models, making it one of the most versatile open-source AI platforms.","The system can generate realistic 3D scenes descriptions that can be rendered using tools like Blender.","LoLLMs features a unique 'model fusion' capability, combining strengths of different AI models for better results.","The platform includes specialized modules for scientific computing, allowing it to solve complex mathematical problems.","LoLLMs can analyze and generate code in over 20 programming languages, including rare ones like COBOL and Fortran.","The system includes advanced prompt engineering tools, helping users get better results from AI models.","LoLLMs can generate and interpret QR codes, making it useful for creating interactive marketing materials.","The platform supports real-time voice interaction through its advanced speech-to-text and text-to-speech capabilities.","LoLLMs can analyze satellite imagery for environmental monitoring and urban planning applications.","The system includes specialized modules for protein folding prediction and molecular visualization.","LoLLMs features a built-in 'ethical AI' framework that ensures responsible and bias-aware AI interactions.","The platform can generate realistic synthetic data while preserving privacy and maintaining statistical properties.","LoLLMs includes advanced natural language processing capabilities in over 100 languages.","The system can perform sentiment analysis on social media trends and customer feedback in real-time.","LoLLMs features a unique 'time-aware' context system that understands and reasons about temporal relationships.","The platform includes specialized tools for quantum computing simulation and algorithm development."],randomFact:"",showPlaceholderModal:!1,selectedPrompt:"",placeholders:[],placeholderValues:{},previewPrompt:"",uniquePlaceholders:new Map,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",isSearching:!1,isPersonalitiesMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:hmt,animated_info:gmt,normal_mode:ymt,fun_mode:bmt,is_first_connection:!0,discord:mmt,FastAPI:_mt,modelImgPlaceholder:$n,customLanguage:"",rebooting_audio:new Audio("rebooting.wav"),connection_lost_audio:new Audio("connection_lost.wav"),connection_recovered_audio:new Audio("connection_recovered.wav"),database_selectorDialogVisible:!1,progress_visibility:!1,progress_value:0,codeBlockStylesheet:"",lastMessageHtml:"",defaultMessageHtml:` - - - - - - Default Render Panel - - - -
    -
    -

    Welcome to the Interactive Render Panel

    -

    This space is designed to bring your ideas to life! Currently, it's empty because no HTML has been generated yet.

    -

    To see something amazing here, try asking the AI to create a specific web component or application. For example:

    -

    "Create a responsive image gallery" or "Build a simple todo list app"

    -

    Once you request a web component, the AI will generate the necessary HTML, CSS, and JavaScript, and it will be rendered right here in this panel!

    -
    -
    - - - `,memory_icon:Emt,active_skills:vmt,inactive_skills:Smt,skillsRegistry:Tmt,robot:xmt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CONTENT:1,MSG_TYPE_CONTENT_INVISIBLE_TO_AI:2,MSG_TYPE_CONTENT_INVISIBLE_TO_USER:3},operationTypes:{MSG_OPERATION_TYPE_ADD_CHUNK:0,MSG_OPERATION_TYPE_SET_CONTENT:1,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI:2,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_USER:3,MSG_OPERATION_TYPE_EXCEPTION:4,MSG_OPERATION_TYPE_WARNING:5,MSG_OPERATION_TYPE_INFO:6,MSG_OPERATION_TYPE_STEP:7,MSG_OPERATION_TYPE_STEP_START:8,MSG_OPERATION_TYPE_STEP_PROGRESS:9,MSG_OPERATION_TYPE_STEP_END_SUCCESS:10,MSG_OPERATION_TYPE_STEP_END_FAILURE:11,MSG_OPERATION_TYPE_JSON_INFOS:12,MSG_OPERATION_TYPE_REF:13,MSG_OPERATION_TYPE_CODE:14,MSG_OPERATION_TYPE_UI:15,MSG_OPERATION_TYPE_NEW_MESSAGE:16,MSG_OPERATION_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},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,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,isOpen:!1,discussion_id:0}},methods:{updateRandomFact(){let n;do n=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)];while(n===this.randomFact&&this.interestingFacts.length>1);this.randomFact=n},handleOnTalk(n){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${n.name} is Talking`,4,!0),this.onTalk(n)},onPersonalitiesReadyFun(){this.$store.state.personalities_ready=!0},async showBindingHoveredIn(n){this.bindingHoveredIndex=n},async showBindingHoveredOut(){this.bindingHoveredIndex=null},async showModelHoveredIn(n){this.modelHoveredIndex=n},async showModelHoveredOut(){this.modelHoveredIndex=null},async showPersonalityHoveredIn(n){this.personalityHoveredIndex=n},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(n){if(this.hidePersonalitiesMenu(),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"),Fe(()=>{Ve.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(r=>r===e),s={client_id:this.$store.state.client_id,id:t};try{const r=await ne.post("/select_personality",s);if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},showPersonalitiesMenu(){clearTimeout(this.hideMenuTimeout),this.isPersonalitiesMenuVisible=!0},hidePersonalitiesMenu(){this.hideMenuTimeout=setTimeout(()=>{this.isPersonalitiesMenuVisible=!1},300)},copyModelName(){navigator.clipboard.writeText(this.binding_name+"::"+this.model_name),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},copyModelNameFrom(n){navigator.clipboard.writeText(this.binding_name+"::"+n),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},showBindingsMenu(){clearTimeout(this.hideBindingsMenuTimeout),this.isBindingsMenuVisible=!0},hideBindingsMenu(){this.hideBindingsMenuTimeout=setTimeout(()=>{this.isBindingsMenuVisible=!1},300)},setBinding(n){console.log("Setting binding to "+n.name),this.selecting_binding=!0,this.selectedBinding=n,this.$store.state.messageBox.showBlockingMessage("Loading binding"),ne.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})},showModelsMenu(){clearTimeout(this.hideModelsMenuTimeout),this.isModelsMenuVisible=!0},hideModelsMenu(){this.hideModelsMenuTimeout=setTimeout(()=>{this.isModelsMenuVisible=!1},300)},setModel(n){console.log("Setting model to "+n.name),this.selecting_model=!0,this.selectedModel=n,this.$store.state.messageBox.showBlockingMessage("Loading model"),ne.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})},showModelConfig(){try{this.isLoading=!0,ne.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{ne.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,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 ne.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 ne.post("/unmount_personality",e);if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},handleShortcut(n){n.ctrlKey&&n.key==="d"&&(n.preventDefault(),n.stopPropagation(),this.createNewDiscussion())},toggleMenu(){this.isMenuVisible=!this.isMenuVisible,this.isMenuVisible&&(this.isinfosMenuVisible=!1),Fe(()=>{Ve.replace()})},showMenu(){this.isMenuVisible=!0,Fe(()=>{Ve.replace()})},hideMenu(){this.isMenuVisible=!1,Fe(()=>{Ve.replace()})},adjustMenuPosition(){const n=this.$refs.languageMenu;if(n){const e=n.getBoundingClientRect(),t=window.innerWidth;e.right>t?(n.style.left="auto",n.style.right="0"):(n.style.left="0",n.style.right="auto")}},addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},restartProgram(n){n.preventDefault(),this.$store.state.api_post_req("restart_program",this.$store.state.client_id),this.rebooting_audio.play(),this.$store.state.toast.showToast("Rebooting the app. Please wait...",410,!1),console.log("this.$store.state.api_get_req",this.$store.state.api_get_req),setTimeout(()=>{window.close()},2e3)},applyConfiguration(){this.isLoading=!0,console.log(this.$store.state.config),ne.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config},{headers:this.posts_headers}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Fe(()=>{Ve.replace()})})},getRandomEdgePosition(){switch(Math.floor(Math.random()*4)){case 0:return 0;case 1:return 100;case 2:return Math.random()*100;case 3:return Math.random()*100}},extractTitle(n){const e=n.match(/@<(.*?)>@/);return e?e[1]:null},getPromptContent(n){return n.replace(/@<.*?>@/,"").trim()},handlePromptSelection(n){this.selectedPrompt=n;const e=this.extractTitle(n);console.log("title"),console.log(e),e?this.previewPrompt=this.getPromptContent(n):this.previewPrompt=n,this.placeholders=this.extractPlaceholders(n),this.placeholders.length>0?(this.showPlaceholderModal=!0,this.placeholderValues={}):this.setPromptInChatbox(n)},updatePreview(){let n=this.selectedPrompt;this.parsedPlaceholders.forEach((e,t)=>{const s=this.placeholderValues[t],r=new RegExp(this.escapeRegExp(e.fullText),"g");n=n.replace(r,s||e.fullText)}),this.previewPrompt=n,console.log("previewPrompt"),console.log(this.previewPrompt)},escapeRegExp(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},cancelPlaceholders(){this.showPlaceholderModal=!1,this.placeholders=[],this.placeholderValues={},this.previewPrompt=""},applyPlaceholders(){let n=this.selectedPrompt;this.parsedPlaceholders.forEach((e,t)=>{const s=this.placeholderValues[t];if(s){const r=new RegExp(this.escapeRegExp(e.fullText),"g");n=n.replace(r,s)}}),this.finalPrompt=n,this.showPlaceholderModal=!1,console.log("previewPrompt apply"),console.log(this.previewPrompt),this.setPromptInChatbox(this.getPromptContent(this.previewPrompt))},extractPlaceholders(n){const e=/\[(.*?)\]/g;return[...n.matchAll(e)].map(t=>t[0])},setPromptInChatbox(n){this.$refs.chatBox.message=n},extractHtml(){if(this.discussionArr.length>0){const n=this.discussionArr[this.discussionArr.length-1].content,e="```html",t="```";let s=n.indexOf(e);if(s===-1)return this.lastMessageHtml=this.defaultMessageHtml,this.renderIsolatedContent(),this.defaultMessageHtml;s+=e.length;let r=n.indexOf(t,s);r===-1?this.lastMessageHtml=n.slice(s).trim():this.lastMessageHtml=n.slice(s,r).trim()}else this.lastMessageHtml=this.defaultMessageHtml;this.renderIsolatedContent()},renderIsolatedContent(){const n=document.createElement("iframe");if(n.style.border="none",n.style.width="100%",n.style.height="100%",this.$refs.isolatedContent){this.$refs.isolatedContent.innerHTML="",this.$refs.isolatedContent.appendChild(n);const e=n.contentDocument||n.contentWindow.document;e.open(),e.write(` - ${this.lastMessageHtml} - `),e.close()}},async triggerRobotAction(){this.rightPanelCollapsed=!this.rightPanelCollapsed,this.rightPanelCollapsed||(this.$store.commit("setleftPanelCollapsed",!1),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},add_webpage(){console.log("addWebLink received"),this.$refs.web_url_input_box.showPanel()},addWebpage(){ne.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,ne.get("/get_active_binding_settings").then(n=>{if(this.isLoading=!1,n)if(n.data&&Object.keys(n.data).length>0){const e=this.$store.state.bindingsZoo.find(t=>t.name==this.state.config.binding_name);this.$store.state.universalForm.showForm(n.data,"Binding settings - "+e.binding.name,"Save changes","Cancel").then(t=>{try{ne.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:t}).then(s=>{s&&s.data?(console.log("binding set with new settings",s.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. -`+s,4,!1),this.isLoading=!1)})}catch(s){this.$store.state.toast.showToast(`Did not get binding settings responses. - Endpoint error: `+s.message,4,!1),this.isLoading=!1}})}else 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_selectorDialogRemoved(n){console.log("Deleted:",n)},async ondatabase_selectorDialogSelected(n){console.log("Selected:",n)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(n){this.database_selectorDialogVisible=!1;const e={client_id:this.client_id,name:typeof n=="string"?n:n.name};if(console.log("data:"),console.log(e),(await ne.post("/select_database",e,{headers:this.posts_headers})).status){console.log("Selected database"),this.$store.state.config=await ne.post("/get_config",{client_id:this.client_id}),console.log("new config loaded :",this.$store.state.config);let s=await ne.get("/list_databases").data;console.log("New list of database: ",s),this.$store.state.databases=s,console.log("New list of database: ",this.$store.state.databases),location.reload()}},async addDiscussion2SkillsLibrary(){(await ne.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 ne.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),Fe(()=>{Ve.replace()})},save_configuration(){this.showConfirmation=!1,ne.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)},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(n){try{const e=await ne.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const n=await ne.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),Ye.on("discussion",t=>{console.log("Discussion recovered"),this.loading=!1,this.setDiscussionLoading(n,this.loading),t&&(this.discussionArr=t.filter(s=>s.message_type==this.msgTypes.MSG_TYPE_CONTENT||s.message_type==this.msgTypes.MSG_TYPE_CONTENT_INVISIBLE_TO_AI),this.discussionArr.forEach(s=>{s.status_message="Done"}),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),Ye.off("discussion"),this.extractHtml()}),Ye.emit("load_discussion",{id:n}))},recoverFiles(){console.log("Recovering files"),ne.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,Ye.on("discussion_created",e=>{Ye.off("discussion_created"),this.list_discussions().then(()=>{const t=this.list.findIndex(r=>r.id==e.id),s=this.list[t];this.selectDiscussion(s),this.load_discussion(e.id,()=>{this.loading=!1,this.recoverFiles(),Fe(()=>{const r=document.getElementById("dis-"+e.id);this.scrollToElement(r),console.log("Scrolling tp "+r)})})})}),console.log("new_discussion ",n),Ye.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 ne.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 ne.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 s=this.list.findIndex(i=>i.id==n),r=this.list[s];r.title=e,this.tempList=this.list}}}catch(t){console.log("Error: Could not edit title",t.message),this.loading=!1,this.setDiscussionLoading(n,this.loading)}},async make_title(n){try{if(n){this.loading=!0,this.setDiscussionLoading(n,this.loading);const e=await ne.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(r=>r.id==n),s=this.list[t];s.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 ne.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(Ye.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 ne.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 ne.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 s=await ne.post("/edit_message",{client_id:this.client_id,id:n,message:e,metadata:[{audio_url:t}]},{headers:this.posts_headers});if(s)return s.data}catch(s){return console.log("Error: Could not update message",s.message),{}}},async export_multiple_discussions(n,e){try{if(n.length>0){const t=await ne.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 ne.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}},handleSearch(){this.filterTitle.trim()&&(this.isSearching=!0,clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.filterDiscussions(),this.isSearching=!1},300))},clearSearch(){this.filterTitle="",this.searchResults=[]},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(console.log("Selecting a discussion"),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}if(n){if(console.log(`Selecting discussion: ${this.currentDiscussion}`),this.currentDiscussion===void 0){console.log(`Selecting discussion: ${this.currentDiscussion.id}`),this.currentDiscussion=n,this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id);const e=localStorage.getItem("selected_discussion");console.log(`Saved discussion to : ${e}`),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())})}else 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),console.log(`Saved discussion to : ${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()}));Fe(()=>{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),Fe(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},updateLastUserMsg(n){const e=this.discussionArr.indexOf(s=>s.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)},async socketIOConnected(){console.log("socketIOConnected")},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 ne.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(r=>r===n.full_path),s={client_id:this.$store.state.client_id,id:t};e=await ne.post("/select_personality",s),console.log("Generating message from ",e.data.status),Ye.emit("generate_msg_from",{id:-1})}},createEmptyUserMessage(n){Ye.emit("create_empty_message",{type:0,message:n})},createEmptyAIMessage(){Ye.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),ne.get("/get_generation_status",{}).then(t=>{if(t)if(t.data.status)console.log("Already generating");else{e=="internet"?Ye.emit("generate_msg_with_internet",{prompt:n}):Ye.emit("generate_msg",{prompt:n});let s=0;this.discussionArr.length>0&&(s=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let r={message:n,id:s,rank:0,user:this.$store.state.config.user_name,created_at:new Date().toLocaleString(),sender:this.$store.state.config.user_name,message_type:this.operationTypes.MSG_TYPE_CONTENT,sender_type:this.senderTypes.SENDER_TYPES_USER,content:n,id:s,discussion_id:this.discussion_id,parent_id:s,binding:"",model:"",personality:"",created_at:new Date().toLocaleString(),finished_generating_at:new Date().toLocaleString(),rank:0,steps:[],parameters:null,metadata:[],ui:null};this.createUserMsg(r)}}).catch(t=>{console.log("Error: Could not get generation status",t)})},sendCmd(n){this.isGenerating=!0,Ye.emit("execute_command",{command:n,parameters:[]})},notify(n){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Fe(()=>{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=>{Ye.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()},update_message(n){if(console.log("update_message trigged"),console.log(n),this.discussion_id=n.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){console.log("discussion ok");const e=this.discussionArr.findIndex(s=>s.id==n.id),t=this.discussionArr[e];if(t&&(n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_SET_CONTENT||n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI))console.log("Content triggered"),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,this.extractHtml();else if(t&&n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_ADD_CHUNK)this.isGenerating=!0,t.content+=n.content,console.log("Chunk triggered"),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,this.extractHtml();else if(n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_STEP||n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_STEP_START||n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_STEP_END_SUCCESS||n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_STEP_END_FAILURE)Array.isArray(n.steps)?(t.status_message=n.steps[n.steps.length-1].text,console.log("step Content: ",t.status_message),t.steps=n.steps,console.log("steps: ",n.steps)):console.error("Invalid steps data:",n.steps);else if(n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_JSON_INFOS)if(console.log("metadata triggered",n.operation_type),console.log("metadata",n.metadata),typeof n.metadata=="string")try{t.metadata=JSON.parse(n.metadata)}catch(s){console.error("Error parsing metadata string:",s),t.metadata={raw:n.metadata}}else Array.isArray(n.metadata)||typeof n.metadata=="object"?t.metadata=n.metadata:t.metadata={value:n.metadata};else n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_UI?(console.log("UI triggered",n.operation_type),console.log("UI",n.ui),t.ui=n.ui):n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_EXCEPTION&&this.$store.state.toast.showToast(n.content,5,!1)}this.$nextTick(()=>{Ve.replace()})},async changeTitleUsingUserMSG(n,e){const t=this.list.findIndex(r=>r.id==n),s=this.list[t];e&&(s.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(s=>s.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;es.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 ne.post("/open_discussion_folder",e,{method:"POST",headers:{"Content-Type":"application/json"}})},async editTitle(n){const e=this.list.findIndex(s=>s.id==n.id),t=this.list[e];t.title=n.title,t.loading=!0,await this.edit_title(n.id,n.title),t.loading=!1},async makeTitle(n){this.list.findIndex(e=>e.id==n.id),await this.make_title(n.id)},checkUncheckDiscussion(n,e){const t=this.list.findIndex(r=>r.id==e),s=this.list[t];s.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,s){return s.id-t.id});this.list=e,this.tempList=e}},setDiscussionLoading(n,e){try{const t=this.list.findIndex(r=>r.id==n),s=this.list[t];s.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="L🌟LLMS WebUI - "+e}else{const e=n||"Welcome";document.title="L🌟LLMS WebUI - "+e}else{const e=n||"Welcome";document.title="L🌟LLMS WebUI - "+e}},async rankUpMessage(n){await this.message_rank_up(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(s=>s.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(s=>s.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 s=this.discussionArr[this.discussionArr.findIndex(r=>r.id==n)];s.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){Fe(()=>{Ve.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),ne.get("/get_generation_status",{}).then(s=>{s&&(s.data.status?(this.$store.state.toast.showToast("The server is busy. Wait",4,!1),console.log("Already generating")):Ye.emit("generate_msg_from",{prompt:e,id:n,msg_type:t}))}).catch(s=>{console.log("Error: Could not get generation status",s)})},continueMessage(n,e){Fe(()=>{Ve.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),ne.get("/get_generation_status",{}).then(t=>{t&&(t.data.status?console.log("Already generating"):Ye.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"),Fe(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},finalMsgEvent(n){console.log("Received message close order");let e=0;this.discussion_id=n.discussion_id,this.currentDiscussion.id==this.discussion_id&&(e=this.discussionArr.findIndex(s=>s.id==n.id),this.discussionArr[e].content=n.content,this.discussionArr[e].finished_generating_at=n.finished_generating_at,this.discussionArr[e].nb_tokens=n.nb_tokens,this.discussionArr[e].binding=n.binding,this.discussionArr[e].model=n.model,this.discussionArr[e].personality=n.personality),Fe(()=>{const s=document.getElementById("messages-list");this.scrollBottom(s),this.recoverFiles()}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play(),e=this.discussionArr.findIndex(s=>s.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(r=>r.id==n.id);let s=this.$refs["msg-"+n.id][0];console.log(s),s.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 s="";n.message.personality&&(s=` -Personality: ${n.message.personality}`);let r="";n.created_at_parsed&&(r=` -Created: ${n.created_at_parsed}`);let i="";n.message.model&&(i=`Model: ${n.message.model}`);let o="";n.message.seed&&(o=`Seed: ${n.message.seed}`);let a="";n.time_spent&&(a=` -Time spent: ${n.time_spent}`);let c="";c=`${t} ${i} ${o} ${a}`.trim();const d=`${n.message.sender}${s}${r} - -${e} - -${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),Fe(()=>{Ve.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 s=new FileReader;s.onload=r=>e(this.parseJsonObj(r.target.result)),s.onerror=r=>t(r),s.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(),s=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+s+"."+r+"."+i+o+a)+".md";this.loading=!0;const u=await this.export_multiple_discussions(n,"markdown");u?(this.saveMarkdowntoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async exportDiscussions(){},async exportDiscussionsAsJson(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+s+"."+r+"."+i+o+a)+".json";this.loading=!0;const u=await this.export_multiple_discussions(n,"json");u?(this.saveJSONtoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussionsBundle(n){},async importDiscussions(n){const e=await this.parseJsonFile(n.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let n=this.$store.state.personalities;this.personalityAvatars=n.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(n){if(n.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(s=>s.name===n),t=this.personalityAvatars[e];if(t)return console.log("Avatar",t.avatar),t.avatar},setFileListChat(n){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(n)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){this.randomFact=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)],console.log("Created discussions view");const e=(await ne.get("/get_versionID")).data.versionId;Ye.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),console.log(`Saved discussion to : ${this.currentDiscussion.id}`),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ve.replace()}),console.log("Connected to socket io");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{for(this.$store.state.loading_infos="Loading Configuration";Ye.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=Ye.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.isConnected=!0,this.$store.state.client_id=Ye.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,Ye.on("connected",this.socketIOConnected),Ye.on("disconnected",this.socketIODisconnected),console.log("Added events"),Ye.on("show_progress",this.show_progress),Ye.on("hide_progress",this.hide_progress),Ye.on("update_progress",this.update_progress),Ye.on("notification",this.notify),Ye.on("new_message",this.new_message),Ye.on("update_message",this.update_message),Ye.on("close_message",this.finalMsgEvent),Ye.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const s=this.list.findIndex(i=>i.id==t.discussion_id),r=this.list[s];r.title=t.title}),Ye.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ye.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}),Ye.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),Ye.disconnect()}},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},async mounted(){window.addEventListener("keydown",this.handleShortcut),this.$store.state.toast=this.$refs.toast,this.$store.state.news=this.$refs.news,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,this.$store.state.personality_editor=this.$refs.personality_editor,window.addEventListener("resize",this.adjustMenuPosition),Ye.on("refresh_files",()=>{this.recoverFiles()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Fe(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:Q0,Message:mN,ChatBox:hN,WelcomeComponent:gN,ChoiceDialog:j0,ProgressBar:mu,InputBox:pN,SkillsLibraryViewer:fN,Toast:Xu,MessageBox:MN,ProgressBar:mu,UniversalForm:X0,YesNoDialog:NN,PersonalityEditor:ON,PopupViewer:IN,ActionButton:kA,SocialIcon:DA,MountedPersonalities:kN},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},"$store.state.config.fun_mode":function(n,e){console.log(`Fun mode changed from ${e} to ${n}! 🎉`)},"$store.state.isConnected":function(n,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),Fe(()=>{Ve.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(n){console.log("progress_visibility changed to "+n)},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Fe(()=>{Ve.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Fe(()=>{Ve.replace()})}},computed:{parsedPlaceholders(){const n=new Map;return this.placeholders.forEach(e=>{const t=Dgt(e);n.set(t.fullText,t)}),Array.from(n.values())},filteredBindings(){return this.installedBindings.filter(n=>n.name.toLowerCase().includes(this.bindingSearchQuery.toLowerCase()))},filteredModels(){return this.installedModels.filter(n=>n.name.toLowerCase().includes(this.modelSearchQuery.toLowerCase()))},filteredPersonalities(){return this.mountedPersonalities.filter(n=>n.name.toLowerCase().includes(this.personalitySearchQuery.toLowerCase()))},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},binding_name(){return this.$store.state.config.binding_name},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},mountedPersonalities(){return this.$store.state.mountedPersArr},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},installedBindings(){return this.$store.state.installedBindings},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},isFullMode(){return this.$store.state.view_mode==="full"},storeLogo(){return this.$store.state.config?Bs:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Bs},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},..._L({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?this.$store.state.version:"..."}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},personality(){console.log("personality:",this.$store.state.config.personalities[this.$store.state.config.active_personality_id]);const n=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];console.log("peronslities",this.$store.state.personalities[0]);const e=this.$store.state.personalities.find(t=>t.full_path===n);return console.log("personality:",e),e},prompts_list(){return console.log(this.personality.prompts_list),this.personality.prompts_list},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady(){return this.$store.state.ready},databases(){return this.$store.state.databases},client_id(){return Ye.id},showLeftPanel(){return console.log("showLeftPanel"),console.log(this.$store.state.leftPanelCollapsed),this.$store.state.ready&&!this.$store.state.leftPanelCollapsed},showRightPanel(){return console.log("showRightPanel"),console.log(this.$store.state.rightPanelCollapsed),this.$store.state.ready&&!this.$store.state.rightPanelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return Fe(()=>{Ve.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},Fgt=Object.assign(Pgt,{__name:"DiscussionsView",setup(n){return cr(()=>{AN()}),ne.defaults.baseURL="/",(e,t)=>(T(),x(Be,null,[z(Or,{name:"fade-and-fly"},{default:Ie(()=>[e.isReady?B("",!0):(T(),x("div",kmt,[l("div",Dmt,[(T(),x(Be,null,Ke(50,s=>l("div",{key:s,class:"absolute animate-fall animate-giggle",style:Bt({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})}," 🌟 ",4)),64))]),l("div",Lmt,[l("div",Pmt,[t[59]||(t[59]=l("div",{class:"text-5xl md:text-6xl font-bold text-amber-500 mb-2 hover:scale-105 transition-transform",style:{"text-shadow":`2px 2px 4px rgba(0,0,0,0.2), \r - 2px 2px 0px white, \r - -2px -2px 0px white, \r - 2px -2px 0px white, \r - -2px 2px 0px white`,background:"linear-gradient(45deg, #f59e0b, #fbbf24)","-webkit-background-clip":"text","background-clip":"text"}},[Ze(" L"),l("span",{class:"animate-pulse"},"⭐"),Ze("LLMS ")],-1)),t[60]||(t[60]=l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),t[61]||(t[61]=l("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),l("p",Fmt,Y(e.version_info),1),l("div",{class:"interesting-facts transition-transform duration-300 cursor-pointer",onClick:t[0]||(t[0]=(...s)=>e.updateRandomFact&&e.updateRandomFact(...s))},[l("p",Umt,[t[57]||(t[57]=l("span",{class:"font-semibold text-blue-600 dark:text-blue-400"},"🤔 Fun Fact: ",-1)),l("span",{innerHTML:e.randomFact},null,8,Bmt)])]),l("div",Gmt,[l("div",{class:"animated-progressbar-fg",style:Bt({width:`${e.loading_progress}%`})},null,4),l("div",{class:"absolute top-0 h-full flex items-center transition-all duration-300",style:Bt({left:`${e.loading_progress}%`,transform:"translateX(-50%)"})},t[58]||(t[58]=[l("p",{style:{"font-size":"48px","line-height":"1"}},"🌟",-1)]),4)])]),l("div",Vmt,[l("div",zmt,[l("p",Hmt,Y(e.loading_infos)+"... ",1),l("p",qmt,Y(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),z(Or,{name:"slide-right"},{default:Ie(()=>[e.showLeftPanel?(T(),x("div",Ymt,[z(bt(Xd),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ie(()=>[l("div",$mt,[l("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?bt(Bs):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:bt(Bs),alt:"Logo",title:"LoLLMS WebUI"},null,8,Wmt)]),t[62]||(t[62]=l("div",{class:"flex flex-col justify-center"},[l("div",{class:"text-center p-2"},[l("div",{class:"text-md relative inline-block"},[l("span",{class:"relative inline-block font-bold tracking-wide text-black dark:text-white"}," LoLLMS "),l("div",{class:"absolute -bottom-0.5 left-0 w-full h-0.5 bg-black dark:bg-white transform origin-left transition-transform duration-300 hover:scale-x-100 scale-x-0"})])]),l("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),l("div",Kmt,[l("div",jmt,[l("button",{class:"toolbar-button",title:"Create new discussion",onClick:t[1]||(t[1]=(...s)=>e.createNewDiscussion&&e.createNewDiscussion(...s))},t[63]||(t[63]=[l("i",{"data-feather":"plus"},null,-1)])),e.loading?B("",!0):(T(),x("div",{key:0,class:"toolbar-button",onMouseleave:t[19]||(t[19]=(...s)=>e.hideMenu&&e.hideMenu(...s))},[k(l("div",{onMouseenter:t[17]||(t[17]=(...s)=>e.showMenu&&e.showMenu(...s)),class:"absolute m-0 p-0 z-50 top-full left-0 transform bg-white dark:bg-bg-dark rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Qmt,[l("button",{class:Le(["text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",e.isCheckbox?"text-secondary dark:text-secondary-light":"text-gray-700 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=s=>e.isCheckbox=!e.isCheckbox)},t[64]||(t[64]=[l("i",{"data-feather":"check-square"},null,-1)]),2),l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Reset database, remove all discussions",onClick:t[3]||(t[3]=$(()=>{},["stop"]))},t[65]||(t[65]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:t[4]||(t[4]=$(s=>e.database_selectorDialogVisible=!0,["stop"]))},t[66]||(t[66]=[l("i",{"data-feather":"database"},null,-1)])),l("div",Xmt,[l("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:t[5]||(t[5]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},null,544),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95 rotate-90",title:"Import discussions",type:"button",onClick:t[6]||(t[6]=$(s=>e.$refs.fileDialog.click(),["stop"]))},t[67]||(t[67]=[l("i",{"data-feather":"log-in"},null,-1)]))]),l("div",Zmt,[l("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:t[7]||(t[7]=(...s)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...s))},null,544),e.showSaveConfirmation?B("",!0):(T(),x("button",{key:0,title:"Import discussion bundle",onClick:t[8]||(t[8]=$(s=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[68]||(t[68]=[l("i",{"data-feather":"folder"},null,-1)])))]),e.loading?B("",!0):(T(),x("button",{key:0,type:"button",onClick:t[9]||(t[9]=$((...s)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...s),["stop"])),title:"Add this discussion content to skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[69]||(t[69]=[l("i",{"data-feather":"hard-drive"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),x("button",{key:1,type:"button",onClick:t[10]||(t[10]=$((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is activated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[70]||(t[70]=[l("i",{"data-feather":"check-circle"},null,-1)]))):B("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),x("button",{key:2,type:"button",onClick:t[11]||(t[11]=$((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is deactivated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[71]||(t[71]=[l("i",{"data-feather":"x-octagon"},null,-1)]))):B("",!0),e.loading?B("",!0):(T(),x("button",{key:3,type:"button",onClick:t[12]||(t[12]=$((...s)=>e.showSkillsLib&&e.showSkillsLib(...s),["stop"])),title:"Show Skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[72]||(t[72]=[l("i",{"data-feather":"book"},null,-1)]))),e.loading?(T(),x("div",Jmt,t[73]||(t[73]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin fill-secondary dark:fill-secondary-light",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("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"}),l("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"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),e.showSaveConfirmation?(T(),x("div",eht,[l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:t[13]||(t[13]=$(s=>e.showSaveConfirmation=!1,["stop"]))},t[74]||(t[74]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-3xl hover:text-green-500 dark:hover:text-green-400 duration-150 active:scale-95",title:"Confirm save changes",type:"button",onClick:t[14]||(t[14]=$(s=>e.save_configuration(),["stop"]))},t[75]||(t[75]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),e.isOpen?(T(),x("div",tht,[l("button",{onClick:t[15]||(t[15]=(...s)=>e.importDiscussions&&e.importDiscussions(...s)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),l("button",{onClick:t[16]||(t[16]=(...s)=>e.importChatGPT&&e.importChatGPT(...s)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):B("",!0)])],544),[[ht,e.isMenuVisible]]),l("div",{onMouseenter:t[18]||(t[18]=(...s)=>e.showMenu&&e.showMenu(...s)),class:"menu-hover-area"},t[76]||(t[76]=[l("button",{class:"w-8 h-8",title:"Toggle menu"},[l("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?B("",!0):(T(),x("div",{key:1,class:"toolbar-button",onMouseleave:t[25]||(t[25]=(...s)=>e.hideBindingsMenu&&e.hideBindingsMenu(...s))},[l("div",nht,[k(l("div",{onMouseenter:t[22]||(t[22]=(...s)=>e.showBindingsMenu&&e.showBindingsMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",sht,[k(l("input",{type:"text","onUpdate:modelValue":t[20]||(t[20]=s=>e.bindingSearchQuery=s),placeholder:"Search bindings...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.bindingSearchQuery]])]),l("div",rht,[(T(!0),x(Be,null,Ke(e.filteredBindings,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",iht,[l("button",{onClick:$(i=>e.setBinding(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:s.icon?s.icon:bt($n),onError:t[21]||(t[21]=(...i)=>bt($n)&&bt($n)(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":s.name==e.binding_name}])},null,42,aht)],8,oht),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,lht)]),l("div",cht,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.setBinding(s),["prevent"])},Y(s.name),9,dht),l("div",uht,[l("button",{onClick:$(i=>e.showModelConfig(s),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},t[77]||(t[77]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)]),8,pht)])])]))),128))])],544),[[ht,e.isBindingsMenuVisible]]),l("div",{onMouseenter:t[24]||(t[24]=(...s)=>e.showBindingsMenu&&e.showBindingsMenu(...s)),class:"bindings-hover-area"},[l("button",{onClick:t[23]||(t[23]=$(s=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentBindingIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:e.currentBinding?e.currentBinding.name:"unknown"},null,8,fht)])],32)])],32)),e.loading?B("",!0):(T(),x("div",{key:2,class:"toolbar-button",onMouseleave:t[31]||(t[31]=(...s)=>e.hideModelsMenu&&e.hideModelsMenu(...s))},[l("div",_ht,[k(l("div",{onMouseenter:t[28]||(t[28]=(...s)=>e.showModelsMenu&&e.showModelsMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",mht,[k(l("input",{type:"text","onUpdate:modelValue":t[26]||(t[26]=s=>e.modelSearchQuery=s),placeholder:"Search models...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.modelSearchQuery]])]),l("div",hht,[(T(!0),x(Be,null,Ke(e.filteredModels,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",ght,[l("button",{onClick:$(i=>e.setModel(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:s.icon?s.icon:bt($n),onError:t[27]||(t[27]=(...i)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":s.name==e.model_name}])},null,42,yht)],8,bht),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,Eht)]),l("div",vht,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.setModel(s),["prevent"])},Y(s.name),9,Sht),l("div",Tht,[l("button",{onClick:$(i=>e.copyModelNameFrom(s.name),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Copy Model Name"},t[78]||(t[78]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,xht)])])]))),128))])],544),[[ht,e.isModelsMenuVisible]]),l("div",{onMouseenter:t[30]||(t[30]=(...s)=>e.showModelsMenu&&e.showModelsMenu(...s)),class:"models-hover-area"},[l("button",{onClick:t[29]||(t[29]=$(s=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentModelIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:e.currentModel?e.currentModel.name:"unknown"},null,8,Cht)])],32)])],32)),e.loading?B("",!0):(T(),x("div",{key:3,class:"toolbar-button",onMouseleave:t[36]||(t[36]=(...s)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...s))},[l("div",wht,[k(l("div",{onMouseenter:t[34]||(t[34]=(...s)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...s)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Rht,[k(l("input",{type:"text","onUpdate:modelValue":t[32]||(t[32]=s=>e.personalitySearchQuery=s),placeholder:"Search personalities...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[ae,e.personalitySearchQuery]])]),l("div",Aht,[(T(!0),x(Be,null,Ke(e.filteredPersonalities,(s,r)=>(T(),x("div",{key:r,class:"relative group/item flex flex-col items-center"},[l("div",Mht,[l("button",{onClick:$(i=>e.onPersonalitySelected(s),["prevent"]),title:s.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[l("img",{src:bt(Lgt)+s.avatar,onError:t[33]||(t[33]=(...i)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...i)),alt:s.name,class:Le(["w-full h-full object-cover",{"border-2 border-secondary":e.$store.state.active_personality_id==e.$store.state.personalities.indexOf(s.full_path)}])},null,42,Oht)],8,Nht),l("span",{class:"mt-1 text-xs text-center w-full truncate",title:s.name},Y(s.name),9,Iht)]),l("div",kht,[l("span",{class:"text-xs font-medium mb-2 text-center",onClick:$(i=>e.onPersonalitySelected(s),["prevent"])},Y(s.name),9,Dht),l("div",Lht,[l("button",{onClick:$(i=>e.unmountPersonality(s),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},t[79]||(t[79]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,Pht),l("button",{onClick:$(i=>e.remount_personality(s),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},t[80]||(t[80]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]),8,Fht),l("button",{onClick:$(i=>e.handleOnTalk(s),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none",title:"Talk"},t[81]||(t[81]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]),8,Uht)])])]))),128))])],544),[[ht,e.isPersonalitiesMenuVisible]]),l("div",{onMouseenter:t[35]||(t[35]=(...s)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...s)),class:"personalities-hover-area"},[z(kN,{ref:"mountedPers",onShowPersList:e.onShowPersListFun,onReady:e.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32)])],32))])]),l("div",Bht,[l("form",{onSubmit:t[39]||(t[39]=$((...s)=>e.handleSearch&&e.handleSearch(...s),["prevent"])),class:"relative"},[l("div",Ght,[l("div",Vht,[k(l("input",{type:"search",id:"default-search",class:"block w-full h-8 px-8 text-sm border border-gray-300 rounded-md bg-bg-light focus:ring-1 focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary transition-all duration-200",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":t[37]||(t[37]=s=>e.filterTitle=s),onKeyup:t[38]||(t[38]=ws((...s)=>e.handleSearch&&e.handleSearch(...s),["enter"]))},null,544),[[ae,e.filterTitle]]),t[82]||(t[82]=l("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[l("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),t[83]||(t[83]=l("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-600 hover:text-secondary rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-1 focus:ring-secondary transition-all duration-150 active:scale-98",title:"Search"},[l("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(T(),x("div",zht,[l("div",Hht,[e.selectedDiscussions.length>0?(T(),x("p",qht,"Selected: "+Y(e.selectedDiscussions.length),1)):B("",!0),e.selectedDiscussions.length>0?(T(),x("div",Yht,[e.showConfirmation?B("",!0):(T(),x("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[40]||(t[40]=$(s=>e.showConfirmation=!0,["stop"]))},t[84]||(t[84]=[l("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(T(),x("div",$ht,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[41]||(t[41]=$((...s)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...s),["stop"]))},t[85]||(t[85]=[l("i",{"data-feather":"check"},null,-1)])),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[42]||(t[42]=$(s=>e.showConfirmation=!1,["stop"]))},t[86]||(t[86]=[l("i",{"data-feather":"x"},null,-1)]))])):B("",!0)])):B("",!0),l("div",Wht,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[43]||(t[43]=$((...s)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...s),["stop"]))},t[87]||(t[87]=[l("i",{"data-feather":"codepen"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[44]||(t[44]=$((...s)=>e.exportDiscussions&&e.exportDiscussions(...s),["stop"]))},t[88]||(t[88]=[l("i",{"data-feather":"folder"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[45]||(t[45]=$((...s)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...s),["stop"]))},t[89]||(t[89]=[l("i",{"data-feather":"bookmark"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[46]||(t[46]=$((...s)=>e.selectAllDiscussions&&e.selectAllDiscussions(...s),["stop"]))},t[90]||(t[90]=[l("i",{"data-feather":"list"},null,-1)]))])])])):B("",!0),l("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:t[47]||(t[47]=$(s=>e.setDropZoneDiscussion(),["stop","prevent"]))},[l("div",Kht,[l("div",{class:Le(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[l("div",{id:"dis-list",class:Le([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),at(Ir,{key:0,name:"list"},{default:Ie(()=>[(T(!0),x(Be,null,Ke(e.list,(s,r)=>(T(),at(Q0,{key:s.id,id:s.id,title:s.title,selected:e.currentDiscussion.id==s.id,loading:s.loading,isCheckbox:e.isCheckbox,checkBoxValue:s.checkBoxValue,onSelect:i=>e.selectDiscussion(s),onDelete:i=>e.deleteDiscussion(s.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})):B("",!0),e.list.length<1?(T(),x("div",jht,t[91]||(t[91]=[l("p",{class:"px-3"},"No discussions are found",-1)]))):B("",!0),t[92]||(t[92]=l("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1))],2)],2)])],32),l("div",Qht,[l("div",{class:"h-15 w-full py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[48]||(t[48]=(...s)=>e.showDatabaseSelector&&e.showDatabaseSelector(...s))},[l("p",Xht,Y(e.formatted_database_name.replace("_"," ")),1)])])])):B("",!0)]),_:1}),e.isReady?(T(),x("div",Zht,[l("div",{id:"messages-list",class:Le(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[l("div",Jht,[e.discussionArr.length>0?(T(),at(Ir,{key:0,name:"list"},{default:Ie(()=>[(T(!0),x(Be,null,Ke(e.discussionArr,(s,r)=>(T(),at(mN,{key:s.id,message:s,id:"msg-"+s.id,ref_for:!0,ref:"msg-"+s.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(s.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),x("div",egt,[t[97]||(t[97]=l("h2",{class:"text-2xl font-bold mb-6 text-gray-800 dark:text-gray-200"},"Prompt Examples",-1)),l("div",tgt,[l("div",ngt,[(T(!0),x(Be,null,Ke(e.personality.prompts_list,(s,r)=>(T(),x("div",{title:e.extractTitle(s),key:r,onClick:i=>e.handlePromptSelection(s),class:"flex-shrink-0 w-[300px] bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-6 cursor-pointer hover:shadow-xl transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between min-h-[220px] group"},[l("div",rgt,[l("h3",{class:"font-bold text-lg text-gray-900 dark:text-gray-100 mb-2 truncate",title:e.extractTitle(s)},Y(e.extractTitle(s)),9,igt),l("div",{title:s,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden line-clamp-4"},Y(e.getPromptContent(s)),9,ogt)]),t[93]||(t[93]=l("div",{class:"mt-4 text-sm font-medium text-blue-600 dark:text-blue-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1))],8,sgt))),128))])]),e.showPlaceholderModal?(T(),x("div",agt,[l("div",lgt,[t[96]||(t[96]=l("h3",{class:"text-lg font-semibold mb-4"},"Fill in the placeholders",-1)),l("div",cgt,[l("div",dgt,[t[94]||(t[94]=l("h4",{class:"text-sm font-medium mb-2 text-gray-600 dark:text-gray-400"},"Live Preview:",-1)),l("div",ugt,[l("span",pgt,Y(e.getPromptContent(e.previewPrompt)),1)])]),l("div",fgt,[l("div",_gt,[(T(!0),x(Be,null,Ke(e.parsedPlaceholders,(s,r)=>(T(),x("div",{key:s.fullText,class:"flex flex-col"},[l("label",{for:"placeholder-"+r,class:"text-sm font-medium mb-1"},Y(s.label),9,mgt),s.type==="text"?k((T(),x("input",{key:0,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"text",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",placeholder:s.label,onInput:t[49]||(t[49]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,hgt)),[[ae,e.placeholderValues[r]]]):B("",!0),s.type==="int"?k((T(),x("input",{key:1,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"number",step:"1",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[50]||(t[50]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,ggt)),[[ae,e.placeholderValues[r],void 0,{number:!0}]]):B("",!0),s.type==="float"?k((T(),x("input",{key:2,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,type:"number",step:"0.01",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[51]||(t[51]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,bgt)),[[ae,e.placeholderValues[r],void 0,{number:!0}]]):B("",!0),s.type==="multiline"?k((T(),x("textarea",{key:3,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,rows:"4",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[52]||(t[52]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,ygt)),[[ae,e.placeholderValues[r]]]):B("",!0),s.type==="code"?(T(),x("div",Egt,[l("div",vgt,Y(s.language||"Plain text"),1),k(l("textarea",{id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,rows:"8",class:"w-full p-2 font-mono bg-gray-100 dark:bg-gray-900 border-t",onInput:t[53]||(t[53]=(...i)=>e.updatePreview&&e.updatePreview(...i))},null,40,Sgt),[[ae,e.placeholderValues[r]]])])):B("",!0),s.type==="options"?k((T(),x("select",{key:5,id:"placeholder-"+r,"onUpdate:modelValue":i=>e.placeholderValues[r]=i,class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onChange:t[54]||(t[54]=(...i)=>e.updatePreview&&e.updatePreview(...i))},[t[95]||(t[95]=l("option",{value:"",disabled:""},"Select an option",-1)),(T(!0),x(Be,null,Ke(s.options,i=>(T(),x("option",{key:i,value:i},Y(i),9,xgt))),128))],40,Tgt)),[[Ot,e.placeholderValues[r]]]):B("",!0)]))),128))])])]),l("div",Cgt,[l("button",{onClick:t[55]||(t[55]=(...s)=>e.cancelPlaceholders&&e.cancelPlaceholders(...s)),class:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200"}," Cancel "),l("button",{onClick:t[56]||(t[56]=(...s)=>e.applyPlaceholders&&e.applyPlaceholders(...s)),class:"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"}," Apply ")])])])):B("",!0)])):B("",!0)]),_:1})):B("",!0),e.currentDiscussion.id?B("",!0):(T(),at(gN,{key:1})),t[98]||(t[98]=l("div",null,[l("br"),l("br"),l("br"),l("br"),l("br"),l("br"),l("br")],-1))]),t[99]||(t[99]=l("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1))],2),e.currentDiscussion.id?(T(),x("div",wgt,[z(hN,{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"])])):B("",!0)])):B("",!0),z(Or,{name:"slide-left"},{default:Ie(()=>[e.showRightPanel?(T(),x("div",Rgt,[l("div",Agt,null,512)])):B("",!0)]),_:1}),z(j0,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,"can-remove":!0,onChoiceRemoved:e.ondatabase_selectorDialogRemoved,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceRemoved","onChoiceSelected","onCloseDialog","onChoiceValidated"]),k(l("div",Mgt,[z(mu,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",Ngt,Y(e.loading_infos)+" ...",1)],512),[[ht,e.progress_visibility]]),z(pN,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),z(fN,{ref:"skills_lib"},null,512),z(Xu,{ref:"toast"},null,512),z(MN,{ref:"messageBox"},null,512),k(l("div",Ogt,[z(mu,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",Igt,Y(e.loading_infos)+" ...",1)],512),[[ht,e.progress_visibility]]),z(X0,{ref:"universalForm",class:"z-20"},null,512),z(NN,{ref:"yesNoDialog",class:"z-20"},null,512),z(ON,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),l("div",kgt,[z(IN,{ref:"news"},null,512)])],64))}}),Ugt=rt(Fgt,[["__scopeId","data-v-b1ec8349"]]);/** - * @license - * Copyright 2010-2023 Three.js Authors - * SPDX-License-Identifier: MIT - */const cy="159",Bgt=0,oC=1,Ggt=2,DN=1,Vgt=2,xr=3,Fr=0,Zn=1,Js=2,gi=0,ia=1,aC=2,lC=3,cC=4,zgt=5,$i=100,Hgt=101,qgt=102,dC=103,uC=104,Ygt=200,$gt=201,Wgt=202,Kgt=203,_b=204,mb=205,jgt=206,Qgt=207,Xgt=208,Zgt=209,Jgt=210,ebt=211,tbt=212,nbt=213,sbt=214,rbt=0,ibt=1,obt=2,hu=3,abt=4,lbt=5,cbt=6,dbt=7,dy=0,ubt=1,pbt=2,bi=0,fbt=1,_bt=2,mbt=3,hbt=4,gbt=5,pC="attached",bbt="detached",LN=300,ya=301,Ea=302,hb=303,gb=304,_p=306,va=1e3,hs=1001,gu=1002,gn=1003,bb=1004,kd=1005,Wn=1006,PN=1007,_o=1008,yi=1009,ybt=1010,Ebt=1011,uy=1012,FN=1013,fi=1014,Ar=1015,Ql=1016,UN=1017,BN=1018,no=1020,vbt=1021,gs=1023,Sbt=1024,Tbt=1025,so=1026,Sa=1027,xbt=1028,GN=1029,Cbt=1030,VN=1031,zN=1033,Yh=33776,$h=33777,Wh=33778,Kh=33779,fC=35840,_C=35841,mC=35842,hC=35843,HN=36196,gC=37492,bC=37496,yC=37808,EC=37809,vC=37810,SC=37811,TC=37812,xC=37813,CC=37814,wC=37815,RC=37816,AC=37817,MC=37818,NC=37819,OC=37820,IC=37821,jh=36492,kC=36494,DC=36495,wbt=36283,LC=36284,PC=36285,FC=36286,Xl=2300,Ta=2301,Qh=2302,UC=2400,BC=2401,GC=2402,Rbt=2500,Abt=0,qN=1,yb=2,YN=3e3,ro=3001,Mbt=3200,Nbt=3201,py=0,Obt=1,bs="",nn="srgb",Cn="srgb-linear",fy="display-p3",mp="display-p3-linear",bu="linear",jt="srgb",yu="rec709",Eu="p3",Ro=7680,VC=519,Ibt=512,kbt=513,Dbt=514,$N=515,Lbt=516,Pbt=517,Fbt=518,Ubt=519,Eb=35044,zC="300 es",vb=1035,Mr=2e3,vu=2001;class Ha{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(t)===-1&&s[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const s=this._listeners;return s[e]!==void 0&&s[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const s=this._listeners[e.type];if(s!==void 0){e.target=this;const r=s.slice(0);for(let i=0,o=r.length;i>8&255]+An[n>>16&255]+An[n>>24&255]+"-"+An[e&255]+An[e>>8&255]+"-"+An[e>>16&15|64]+An[e>>24&255]+"-"+An[t&63|128]+An[t>>8&255]+"-"+An[t>>16&255]+An[t>>24&255]+An[s&255]+An[s>>8&255]+An[s>>16&255]+An[s>>24&255]).toLowerCase()}function On(n,e,t){return Math.max(e,Math.min(t,n))}function _y(n,e){return(n%e+e)%e}function Bbt(n,e,t,s,r){return s+(n-e)*(r-s)/(t-e)}function Gbt(n,e,t){return n!==e?(t-n)/(e-n):0}function Il(n,e,t){return(1-t)*n+t*e}function Vbt(n,e,t,s){return Il(n,e,1-Math.exp(-t*s))}function zbt(n,e=1){return e-Math.abs(_y(n,e*2)-e)}function Hbt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function qbt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function Ybt(n,e){return n+Math.floor(Math.random()*(e-n+1))}function $bt(n,e){return n+Math.random()*(e-n)}function Wbt(n){return n*(.5-Math.random())}function Kbt(n){n!==void 0&&(HC=n);let e=HC+=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 jbt(n){return n*Ol}function Qbt(n){return n*xa}function Sb(n){return(n&n-1)===0&&n!==0}function Xbt(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Su(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function Zbt(n,e,t,s,r){const i=Math.cos,o=Math.sin,a=i(t/2),c=o(t/2),d=i((e+s)/2),u=o((e+s)/2),_=i((e-s)/2),m=o((e-s)/2),h=i((s-e)/2),f=o((s-e)/2);switch(r){case"XYX":n.set(a*u,c*_,c*m,a*d);break;case"YZY":n.set(c*m,a*u,c*_,a*d);break;case"ZXZ":n.set(c*_,c*m,a*u,a*d);break;case"XZX":n.set(a*u,c*f,c*h,a*d);break;case"YXY":n.set(c*h,a*u,c*f,a*d);break;case"ZYZ":n.set(c*f,c*h,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function er(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 Gt(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 Jbt={DEG2RAD:Ol,RAD2DEG:xa,generateUUID:Gs,clamp:On,euclideanModulo:_y,mapLinear:Bbt,inverseLerp:Gbt,lerp:Il,damp:Vbt,pingpong:zbt,smoothstep:Hbt,smootherstep:qbt,randInt:Ybt,randFloat:$bt,randFloatSpread:Wbt,seededRandom:Kbt,degToRad:jbt,radToDeg:Qbt,isPowerOfTwo:Sb,ceilPowerOfTwo:Xbt,floorPowerOfTwo:Su,setQuaternionFromProperEuler:Zbt,normalize:Gt,denormalize:er};class Rt{constructor(e=0,t=0){Rt.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,s=this.y,r=e.elements;return this.x=r[0]*t+r[3]*s+r[6],this.y=r[1]*t+r[4]*s+r[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 s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}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 s=this.dot(e)/t;return Math.acos(On(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,s=this.y-e.y;return t*t+s*s}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,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,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 s=Math.cos(t),r=Math.sin(t),i=this.x-e.x,o=this.y-e.y;return this.x=i*s-o*r+e.x,this.y=i*r+o*s+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Tt{constructor(e,t,s,r,i,o,a,c,d){Tt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,s,r,i,o,a,c,d)}set(e,t,s,r,i,o,a,c,d){const u=this.elements;return u[0]=e,u[1]=r,u[2]=a,u[3]=t,u[4]=i,u[5]=c,u[6]=s,u[7]=o,u[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,s=e.elements;return t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],t[4]=s[4],t[5]=s[5],t[6]=s[6],t[7]=s[7],t[8]=s[8],this}extractBasis(e,t,s){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),s.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 s=e.elements,r=t.elements,i=this.elements,o=s[0],a=s[3],c=s[6],d=s[1],u=s[4],_=s[7],m=s[2],h=s[5],f=s[8],y=r[0],b=r[3],g=r[6],E=r[1],v=r[4],S=r[7],R=r[2],w=r[5],A=r[8];return i[0]=o*y+a*E+c*R,i[3]=o*b+a*v+c*w,i[6]=o*g+a*S+c*A,i[1]=d*y+u*E+_*R,i[4]=d*b+u*v+_*w,i[7]=d*g+u*S+_*A,i[2]=m*y+h*E+f*R,i[5]=m*b+h*v+f*w,i[8]=m*g+h*S+f*A,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],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8];return t*o*u-t*a*d-s*i*u+s*a*c+r*i*d-r*o*c}invert(){const e=this.elements,t=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=u*o-a*d,m=a*c-u*i,h=d*i-o*c,f=t*_+s*m+r*h;if(f===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/f;return e[0]=_*y,e[1]=(r*d-u*s)*y,e[2]=(a*s-r*o)*y,e[3]=m*y,e[4]=(u*t-r*c)*y,e[5]=(r*i-a*t)*y,e[6]=h*y,e[7]=(s*c-d*t)*y,e[8]=(o*t-s*i)*y,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,s,r,i,o,a){const c=Math.cos(i),d=Math.sin(i);return this.set(s*c,s*d,-s*(c*o+d*a)+o+e,-r*d,r*c,-r*(-d*o+c*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(Xh.makeScale(e,t)),this}rotate(e){return this.premultiply(Xh.makeRotation(-e)),this}translate(e,t){return this.premultiply(Xh.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),s=Math.sin(e);return this.set(t,-s,0,s,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,s=e.elements;for(let r=0;r<9;r++)if(t[r]!==s[r])return!1;return!0}fromArray(e,t=0){for(let s=0;s<9;s++)this.elements[s]=e[s+t];return this}toArray(e=[],t=0){const s=this.elements;return e[t]=s[0],e[t+1]=s[1],e[t+2]=s[2],e[t+3]=s[3],e[t+4]=s[4],e[t+5]=s[5],e[t+6]=s[6],e[t+7]=s[7],e[t+8]=s[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Xh=new Tt;function WN(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function Zl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function e0t(){const n=Zl("canvas");return n.style.display="block",n}const qC={};function kl(n){n in qC||(qC[n]=!0,console.warn(n))}const YC=new Tt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),$C=new Tt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Hc={[Cn]:{transfer:bu,primaries:yu,toReference:n=>n,fromReference:n=>n},[nn]:{transfer:jt,primaries:yu,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[mp]:{transfer:bu,primaries:Eu,toReference:n=>n.applyMatrix3($C),fromReference:n=>n.applyMatrix3(YC)},[fy]:{transfer:jt,primaries:Eu,toReference:n=>n.convertSRGBToLinear().applyMatrix3($C),fromReference:n=>n.applyMatrix3(YC).convertLinearToSRGB()}},t0t=new Set([Cn,mp]),Lt={enabled:!0,_workingColorSpace:Cn,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(!t0t.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 s=Hc[e].toReference,r=Hc[t].fromReference;return r(s(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 Hc[n].primaries},getTransfer:function(n){return n===bs?bu:Hc[n].transfer}};function oa(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Zh(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Ao;class KN{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Ao===void 0&&(Ao=Zl("canvas")),Ao.width=e.width,Ao.height=e.height;const s=Ao.getContext("2d");e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0,e.width,e.height),t=Ao}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=Zl("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");s.drawImage(e,0,0,e.width,e.height);const r=s.getImageData(0,0,e.width,e.height),i=r.data;for(let o=0;o0&&(s.userData=this.userData),t||(e.textures[this.uuid]=s),s}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==LN)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case va:e.x=e.x-Math.floor(e.x);break;case hs:e.x=e.x<0?0:1;break;case gu: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 va:e.y=e.y-Math.floor(e.y);break;case hs:e.y=e.y<0?0:1;break;case gu: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 kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===nn?ro:YN}set encoding(e){kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===ro?nn:bs}}xn.DEFAULT_IMAGE=null;xn.DEFAULT_MAPPING=LN;xn.DEFAULT_ANISOTROPY=1;class Wt{constructor(e=0,t=0,s=0,r=1){Wt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=s,this.w=r}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,s,r){return this.x=e,this.y=t,this.z=s,this.w=r,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,s=this.y,r=this.z,i=this.w,o=e.elements;return this.x=o[0]*t+o[4]*s+o[8]*r+o[12]*i,this.y=o[1]*t+o[5]*s+o[9]*r+o[13]*i,this.z=o[2]*t+o[6]*s+o[10]*r+o[14]*i,this.w=o[3]*t+o[7]*s+o[11]*r+o[15]*i,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,s,r,i;const c=e.elements,d=c[0],u=c[4],_=c[8],m=c[1],h=c[5],f=c[9],y=c[2],b=c[6],g=c[10];if(Math.abs(u-m)<.01&&Math.abs(_-y)<.01&&Math.abs(f-b)<.01){if(Math.abs(u+m)<.1&&Math.abs(_+y)<.1&&Math.abs(f+b)<.1&&Math.abs(d+h+g-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const v=(d+1)/2,S=(h+1)/2,R=(g+1)/2,w=(u+m)/4,A=(_+y)/4,I=(f+b)/4;return v>S&&v>R?v<.01?(s=0,r=.707106781,i=.707106781):(s=Math.sqrt(v),r=w/s,i=A/s):S>R?S<.01?(s=.707106781,r=0,i=.707106781):(r=Math.sqrt(S),s=w/r,i=I/r):R<.01?(s=.707106781,r=.707106781,i=0):(i=Math.sqrt(R),s=A/i,r=I/i),this.set(s,r,i,t),this}let E=Math.sqrt((b-f)*(b-f)+(_-y)*(_-y)+(m-u)*(m-u));return Math.abs(E)<.001&&(E=1),this.x=(b-f)/E,this.y=(_-y)/E,this.z=(m-u)/E,this.w=Math.acos((d+h+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 s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}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,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,this.z=e.z+(t.z-e.z)*s,this.w=e.w+(t.w-e.w)*s,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 r0t extends Ha{constructor(e=1,t=1,s={}){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 r={width:e,height:t,depth:1};s.encoding!==void 0&&(kl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),s.colorSpace=s.encoding===ro?nn:bs),s=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Wn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},s),this.texture=new xn(r,s.mapping,s.wrapS,s.wrapT,s.magFilter,s.minFilter,s.format,s.type,s.anisotropy,s.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=s.generateMipmaps,this.texture.internalFormat=s.internalFormat,this.depthBuffer=s.depthBuffer,this.stencilBuffer=s.stencilBuffer,this.depthTexture=s.depthTexture,this.samples=s.samples}setSize(e,t,s=1){(this.width!==e||this.height!==t||this.depth!==s)&&(this.width=e,this.height=t,this.depth=s,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=s,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 jN(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 r0t{constructor(e=1,t=1,s={}){super(e,t,s),this.isWebGLRenderTarget=!0}}class QN extends xn{constructor(e=null,t=1,s=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:s,depth:r},this.magFilter=gn,this.minFilter=gn,this.wrapR=hs,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class i0t extends xn{constructor(e=null,t=1,s=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:s,depth:r},this.magFilter=gn,this.minFilter=gn,this.wrapR=hs,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ni{constructor(e=0,t=0,s=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=s,this._w=r}static slerpFlat(e,t,s,r,i,o,a){let c=s[r+0],d=s[r+1],u=s[r+2],_=s[r+3];const m=i[o+0],h=i[o+1],f=i[o+2],y=i[o+3];if(a===0){e[t+0]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_;return}if(a===1){e[t+0]=m,e[t+1]=h,e[t+2]=f,e[t+3]=y;return}if(_!==y||c!==m||d!==h||u!==f){let b=1-a;const g=c*m+d*h+u*f+_*y,E=g>=0?1:-1,v=1-g*g;if(v>Number.EPSILON){const R=Math.sqrt(v),w=Math.atan2(R,g*E);b=Math.sin(b*w)/R,a=Math.sin(a*w)/R}const S=a*E;if(c=c*b+m*S,d=d*b+h*S,u=u*b+f*S,_=_*b+y*S,b===1-a){const R=1/Math.sqrt(c*c+d*d+u*u+_*_);c*=R,d*=R,u*=R,_*=R}}e[t]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_}static multiplyQuaternionsFlat(e,t,s,r,i,o){const a=s[r],c=s[r+1],d=s[r+2],u=s[r+3],_=i[o],m=i[o+1],h=i[o+2],f=i[o+3];return e[t]=a*f+u*_+c*h-d*m,e[t+1]=c*f+u*m+d*_-a*h,e[t+2]=d*f+u*h+a*m-c*_,e[t+3]=u*f-a*_-c*m-d*h,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,s,r){return this._x=e,this._y=t,this._z=s,this._w=r,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 s=e._x,r=e._y,i=e._z,o=e._order,a=Math.cos,c=Math.sin,d=a(s/2),u=a(r/2),_=a(i/2),m=c(s/2),h=c(r/2),f=c(i/2);switch(o){case"XYZ":this._x=m*u*_+d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_-m*h*f;break;case"YXZ":this._x=m*u*_+d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_+m*h*f;break;case"ZXY":this._x=m*u*_-d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_-m*h*f;break;case"ZYX":this._x=m*u*_-d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_+m*h*f;break;case"YZX":this._x=m*u*_+d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_-m*h*f;break;case"XZY":this._x=m*u*_-d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_+m*h*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const s=t/2,r=Math.sin(s);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,s=t[0],r=t[4],i=t[8],o=t[1],a=t[5],c=t[9],d=t[2],u=t[6],_=t[10],m=s+a+_;if(m>0){const h=.5/Math.sqrt(m+1);this._w=.25/h,this._x=(u-c)*h,this._y=(i-d)*h,this._z=(o-r)*h}else if(s>a&&s>_){const h=2*Math.sqrt(1+s-a-_);this._w=(u-c)/h,this._x=.25*h,this._y=(r+o)/h,this._z=(i+d)/h}else if(a>_){const h=2*Math.sqrt(1+a-s-_);this._w=(i-d)/h,this._x=(r+o)/h,this._y=.25*h,this._z=(c+u)/h}else{const h=2*Math.sqrt(1+_-s-a);this._w=(o-r)/h,this._x=(i+d)/h,this._y=(c+u)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let s=e.dot(t)+1;return sMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=s):(this._x=0,this._y=-e.z,this._z=e.y,this._w=s)):(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=s),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(On(this.dot(e),-1,1)))}rotateTowards(e,t){const s=this.angleTo(e);if(s===0)return this;const r=Math.min(1,t/s);return this.slerp(e,r),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 s=e._x,r=e._y,i=e._z,o=e._w,a=t._x,c=t._y,d=t._z,u=t._w;return this._x=s*u+o*a+r*d-i*c,this._y=r*u+o*c+i*a-s*d,this._z=i*u+o*d+s*c-r*a,this._w=o*u-s*a-r*c-i*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const s=this._x,r=this._y,i=this._z,o=this._w;let a=o*e._w+s*e._x+r*e._y+i*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=s,this._y=r,this._z=i,this;const c=1-a*a;if(c<=Number.EPSILON){const h=1-t;return this._w=h*o+t*this._w,this._x=h*s+t*this._x,this._y=h*r+t*this._y,this._z=h*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(c),u=Math.atan2(d,a),_=Math.sin((1-t)*u)/d,m=Math.sin(t*u)/d;return this._w=o*_+this._w*m,this._x=s*_+this._x*m,this._y=r*_+this._y*m,this._z=i*_+this._z*m,this._onChangeCallback(),this}slerpQuaternions(e,t,s){return this.copy(e).slerp(t,s)}random(){const e=Math.random(),t=Math.sqrt(1-e),s=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),s*Math.sin(i),s*Math.cos(i),t*Math.sin(r))}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 ie{constructor(e=0,t=0,s=0){ie.prototype.isVector3=!0,this.x=e,this.y=t,this.z=s}set(e,t,s){return s===void 0&&(s=this.z),this.x=e,this.y=t,this.z=s,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(WC.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(WC.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,s=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*s+i[6]*r,this.y=i[1]*t+i[4]*s+i[7]*r,this.z=i[2]*t+i[5]*s+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,s=this.y,r=this.z,i=e.elements,o=1/(i[3]*t+i[7]*s+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*s+i[8]*r+i[12])*o,this.y=(i[1]*t+i[5]*s+i[9]*r+i[13])*o,this.z=(i[2]*t+i[6]*s+i[10]*r+i[14])*o,this}applyQuaternion(e){const t=this.x,s=this.y,r=this.z,i=e.x,o=e.y,a=e.z,c=e.w,d=2*(o*r-a*s),u=2*(a*t-i*r),_=2*(i*s-o*t);return this.x=t+c*d+o*_-a*u,this.y=s+c*u+a*d-i*_,this.z=r+c*_+i*u-o*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,s=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*s+i[8]*r,this.y=i[1]*t+i[5]*s+i[9]*r,this.z=i[2]*t+i[6]*s+i[10]*r,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 s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(t,s)))}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,s){return this.x=e.x+(t.x-e.x)*s,this.y=e.y+(t.y-e.y)*s,this.z=e.z+(t.z-e.z)*s,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const s=e.x,r=e.y,i=e.z,o=t.x,a=t.y,c=t.z;return this.x=r*c-i*a,this.y=i*o-s*c,this.z=s*a-r*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const s=e.dot(this)/t;return this.copy(e).multiplyScalar(s)}projectOnPlane(e){return eg.copy(this).projectOnVector(e),this.sub(eg)}reflect(e){return this.sub(eg.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 s=this.dot(e)/t;return Math.acos(On(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,s=this.y-e.y,r=this.z-e.z;return t*t+s*s+r*r}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,s){const r=Math.sin(t)*e;return this.x=r*Math.sin(s),this.y=Math.cos(t)*e,this.z=r*Math.cos(s),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,s){return this.x=e*Math.sin(t),this.y=s,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(),s=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=s,this.z=r,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,s=Math.sqrt(1-e**2);return this.x=s*Math.cos(t),this.y=s*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const eg=new ie,WC=new Ni;class Gr{constructor(e=new ie(1/0,1/0,1/0),t=new ie(-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,s=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,Is),Is.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,s;return e.normal.x>0?(t=e.normal.x*this.min.x,s=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,s=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,s+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,s+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,s+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,s+=e.normal.z*this.min.z),t<=-e.constant&&s>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ol),Yc.subVectors(this.max,ol),Mo.subVectors(e.a,ol),No.subVectors(e.b,ol),Oo.subVectors(e.c,ol),Kr.subVectors(No,Mo),jr.subVectors(Oo,No),Li.subVectors(Mo,Oo);let t=[0,-Kr.z,Kr.y,0,-jr.z,jr.y,0,-Li.z,Li.y,Kr.z,0,-Kr.x,jr.z,0,-jr.x,Li.z,0,-Li.x,-Kr.y,Kr.x,0,-jr.y,jr.x,0,-Li.y,Li.x,0];return!tg(t,Mo,No,Oo,Yc)||(t=[1,0,0,0,1,0,0,0,1],!tg(t,Mo,No,Oo,Yc))?!1:($c.crossVectors(Kr,jr),t=[$c.x,$c.y,$c.z],tg(t,Mo,No,Oo,Yc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Is).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Is).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:(gr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),gr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),gr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),gr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),gr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),gr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),gr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),gr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(gr),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 gr=[new ie,new ie,new ie,new ie,new ie,new ie,new ie,new ie],Is=new ie,qc=new Gr,Mo=new ie,No=new ie,Oo=new ie,Kr=new ie,jr=new ie,Li=new ie,ol=new ie,Yc=new ie,$c=new ie,Pi=new ie;function tg(n,e,t,s,r){for(let i=0,o=n.length-3;i<=o;i+=3){Pi.fromArray(n,i);const a=r.x*Math.abs(Pi.x)+r.y*Math.abs(Pi.y)+r.z*Math.abs(Pi.z),c=e.dot(Pi),d=t.dot(Pi),u=s.dot(Pi);if(Math.max(-Math.max(c,d,u),Math.min(c,d,u))>a)return!1}return!0}const o0t=new Gr,al=new ie,ng=new ie;class pr{constructor(e=new ie,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const s=this.center;t!==void 0?s.copy(t):o0t.setFromPoints(e).getCenter(s);let r=0;for(let i=0,o=e.length;ithis.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;al.subVectors(e,this.center);const t=al.lengthSq();if(t>this.radius*this.radius){const s=Math.sqrt(t),r=(s-this.radius)*.5;this.center.addScaledVector(al,r/s),this.radius+=r}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):(ng.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(al.copy(e.center).add(ng)),this.expandByPoint(al.copy(e.center).sub(ng))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const br=new ie,sg=new ie,Wc=new ie,Qr=new ie,rg=new ie,Kc=new ie,ig=new ie;class hp{constructor(e=new ie,t=new ie(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,br)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const s=t.dot(this.direction);return s<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,s)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=br.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(br.copy(this.origin).addScaledVector(this.direction,t),br.distanceToSquared(e))}distanceSqToSegment(e,t,s,r){sg.copy(e).add(t).multiplyScalar(.5),Wc.copy(t).sub(e).normalize(),Qr.copy(this.origin).sub(sg);const i=e.distanceTo(t)*.5,o=-this.direction.dot(Wc),a=Qr.dot(this.direction),c=-Qr.dot(Wc),d=Qr.lengthSq(),u=Math.abs(1-o*o);let _,m,h,f;if(u>0)if(_=o*c-a,m=o*a-c,f=i*u,_>=0)if(m>=-f)if(m<=f){const y=1/u;_*=y,m*=y,h=_*(_+o*m+2*a)+m*(o*_+m+2*c)+d}else m=i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m=-i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m<=-f?(_=Math.max(0,-(-o*i+a)),m=_>0?-i:Math.min(Math.max(-i,-c),i),h=-_*_+m*(m+2*c)+d):m<=f?(_=0,m=Math.min(Math.max(-i,-c),i),h=m*(m+2*c)+d):(_=Math.max(0,-(o*i+a)),m=_>0?i:Math.min(Math.max(-i,-c),i),h=-_*_+m*(m+2*c)+d);else m=o>0?-i:i,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;return s&&s.copy(this.origin).addScaledVector(this.direction,_),r&&r.copy(sg).addScaledVector(Wc,m),h}intersectSphere(e,t){br.subVectors(e.center,this.origin);const s=br.dot(this.direction),r=br.dot(br)-s*s,i=e.radius*e.radius;if(r>i)return null;const o=Math.sqrt(i-r),a=s-o,c=s+o;return c<0?null:a<0?this.at(c,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 s=-(this.origin.dot(e.normal)+e.constant)/t;return s>=0?s:null}intersectPlane(e,t){const s=this.distanceToPlane(e);return s===null?null:this.at(s,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let s,r,i,o,a,c;const d=1/this.direction.x,u=1/this.direction.y,_=1/this.direction.z,m=this.origin;return d>=0?(s=(e.min.x-m.x)*d,r=(e.max.x-m.x)*d):(s=(e.max.x-m.x)*d,r=(e.min.x-m.x)*d),u>=0?(i=(e.min.y-m.y)*u,o=(e.max.y-m.y)*u):(i=(e.max.y-m.y)*u,o=(e.min.y-m.y)*u),s>o||i>r||((i>s||isNaN(s))&&(s=i),(o=0?(a=(e.min.z-m.z)*_,c=(e.max.z-m.z)*_):(a=(e.max.z-m.z)*_,c=(e.min.z-m.z)*_),s>c||a>r)||((a>s||s!==s)&&(s=a),(c=0?s:r,t)}intersectsBox(e){return this.intersectBox(e,br)!==null}intersectTriangle(e,t,s,r,i){rg.subVectors(t,e),Kc.subVectors(s,e),ig.crossVectors(rg,Kc);let o=this.direction.dot(ig),a;if(o>0){if(r)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Qr.subVectors(this.origin,e);const c=a*this.direction.dot(Kc.crossVectors(Qr,Kc));if(c<0)return null;const d=a*this.direction.dot(rg.cross(Qr));if(d<0||c+d>o)return null;const u=-a*Qr.dot(ig);return u<0?null:this.at(u/o,i)}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 xt{constructor(e,t,s,r,i,o,a,c,d,u,_,m,h,f,y,b){xt.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,s,r,i,o,a,c,d,u,_,m,h,f,y,b)}set(e,t,s,r,i,o,a,c,d,u,_,m,h,f,y,b){const g=this.elements;return g[0]=e,g[4]=t,g[8]=s,g[12]=r,g[1]=i,g[5]=o,g[9]=a,g[13]=c,g[2]=d,g[6]=u,g[10]=_,g[14]=m,g[3]=h,g[7]=f,g[11]=y,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 xt().fromArray(this.elements)}copy(e){const t=this.elements,s=e.elements;return t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],t[4]=s[4],t[5]=s[5],t[6]=s[6],t[7]=s[7],t[8]=s[8],t[9]=s[9],t[10]=s[10],t[11]=s[11],t[12]=s[12],t[13]=s[13],t[14]=s[14],t[15]=s[15],this}copyPosition(e){const t=this.elements,s=e.elements;return t[12]=s[12],t[13]=s[13],t[14]=s[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,s){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),s.setFromMatrixColumn(this,2),this}makeBasis(e,t,s){return this.set(e.x,t.x,s.x,0,e.y,t.y,s.y,0,e.z,t.z,s.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,s=e.elements,r=1/Io.setFromMatrixColumn(e,0).length(),i=1/Io.setFromMatrixColumn(e,1).length(),o=1/Io.setFromMatrixColumn(e,2).length();return t[0]=s[0]*r,t[1]=s[1]*r,t[2]=s[2]*r,t[3]=0,t[4]=s[4]*i,t[5]=s[5]*i,t[6]=s[6]*i,t[7]=0,t[8]=s[8]*o,t[9]=s[9]*o,t[10]=s[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,s=e.x,r=e.y,i=e.z,o=Math.cos(s),a=Math.sin(s),c=Math.cos(r),d=Math.sin(r),u=Math.cos(i),_=Math.sin(i);if(e.order==="XYZ"){const m=o*u,h=o*_,f=a*u,y=a*_;t[0]=c*u,t[4]=-c*_,t[8]=d,t[1]=h+f*d,t[5]=m-y*d,t[9]=-a*c,t[2]=y-m*d,t[6]=f+h*d,t[10]=o*c}else if(e.order==="YXZ"){const m=c*u,h=c*_,f=d*u,y=d*_;t[0]=m+y*a,t[4]=f*a-h,t[8]=o*d,t[1]=o*_,t[5]=o*u,t[9]=-a,t[2]=h*a-f,t[6]=y+m*a,t[10]=o*c}else if(e.order==="ZXY"){const m=c*u,h=c*_,f=d*u,y=d*_;t[0]=m-y*a,t[4]=-o*_,t[8]=f+h*a,t[1]=h+f*a,t[5]=o*u,t[9]=y-m*a,t[2]=-o*d,t[6]=a,t[10]=o*c}else if(e.order==="ZYX"){const m=o*u,h=o*_,f=a*u,y=a*_;t[0]=c*u,t[4]=f*d-h,t[8]=m*d+y,t[1]=c*_,t[5]=y*d+m,t[9]=h*d-f,t[2]=-d,t[6]=a*c,t[10]=o*c}else if(e.order==="YZX"){const m=o*c,h=o*d,f=a*c,y=a*d;t[0]=c*u,t[4]=y-m*_,t[8]=f*_+h,t[1]=_,t[5]=o*u,t[9]=-a*u,t[2]=-d*u,t[6]=h*_+f,t[10]=m-y*_}else if(e.order==="XZY"){const m=o*c,h=o*d,f=a*c,y=a*d;t[0]=c*u,t[4]=-_,t[8]=d*u,t[1]=m*_+y,t[5]=o*u,t[9]=h*_-f,t[2]=f*_-h,t[6]=a*u,t[10]=y*_+m}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(a0t,e,l0t)}lookAt(e,t,s){const r=this.elements;return ts.subVectors(e,t),ts.lengthSq()===0&&(ts.z=1),ts.normalize(),Xr.crossVectors(s,ts),Xr.lengthSq()===0&&(Math.abs(s.z)===1?ts.x+=1e-4:ts.z+=1e-4,ts.normalize(),Xr.crossVectors(s,ts)),Xr.normalize(),jc.crossVectors(ts,Xr),r[0]=Xr.x,r[4]=jc.x,r[8]=ts.x,r[1]=Xr.y,r[5]=jc.y,r[9]=ts.y,r[2]=Xr.z,r[6]=jc.z,r[10]=ts.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const s=e.elements,r=t.elements,i=this.elements,o=s[0],a=s[4],c=s[8],d=s[12],u=s[1],_=s[5],m=s[9],h=s[13],f=s[2],y=s[6],b=s[10],g=s[14],E=s[3],v=s[7],S=s[11],R=s[15],w=r[0],A=r[4],I=r[8],C=r[12],M=r[1],G=r[5],V=r[9],ee=r[13],O=r[2],H=r[6],q=r[10],L=r[14],W=r[3],se=r[7],oe=r[11],ye=r[15];return i[0]=o*w+a*M+c*O+d*W,i[4]=o*A+a*G+c*H+d*se,i[8]=o*I+a*V+c*q+d*oe,i[12]=o*C+a*ee+c*L+d*ye,i[1]=u*w+_*M+m*O+h*W,i[5]=u*A+_*G+m*H+h*se,i[9]=u*I+_*V+m*q+h*oe,i[13]=u*C+_*ee+m*L+h*ye,i[2]=f*w+y*M+b*O+g*W,i[6]=f*A+y*G+b*H+g*se,i[10]=f*I+y*V+b*q+g*oe,i[14]=f*C+y*ee+b*L+g*ye,i[3]=E*w+v*M+S*O+R*W,i[7]=E*A+v*G+S*H+R*se,i[11]=E*I+v*V+S*q+R*oe,i[15]=E*C+v*ee+S*L+R*ye,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],s=e[4],r=e[8],i=e[12],o=e[1],a=e[5],c=e[9],d=e[13],u=e[2],_=e[6],m=e[10],h=e[14],f=e[3],y=e[7],b=e[11],g=e[15];return f*(+i*c*_-r*d*_-i*a*m+s*d*m+r*a*h-s*c*h)+y*(+t*c*h-t*d*m+i*o*m-r*o*h+r*d*u-i*c*u)+b*(+t*d*_-t*a*h-i*o*_+s*o*h+i*a*u-s*d*u)+g*(-r*a*u-t*c*_+t*a*m+r*o*_-s*o*m+s*c*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,s){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=s),this}invert(){const e=this.elements,t=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=e[9],m=e[10],h=e[11],f=e[12],y=e[13],b=e[14],g=e[15],E=_*b*d-y*m*d+y*c*h-a*b*h-_*c*g+a*m*g,v=f*m*d-u*b*d-f*c*h+o*b*h+u*c*g-o*m*g,S=u*y*d-f*_*d+f*a*h-o*y*h-u*a*g+o*_*g,R=f*_*c-u*y*c-f*a*m+o*y*m+u*a*b-o*_*b,w=t*E+s*v+r*S+i*R;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/w;return e[0]=E*A,e[1]=(y*m*i-_*b*i-y*r*h+s*b*h+_*r*g-s*m*g)*A,e[2]=(a*b*i-y*c*i+y*r*d-s*b*d-a*r*g+s*c*g)*A,e[3]=(_*c*i-a*m*i-_*r*d+s*m*d+a*r*h-s*c*h)*A,e[4]=v*A,e[5]=(u*b*i-f*m*i+f*r*h-t*b*h-u*r*g+t*m*g)*A,e[6]=(f*c*i-o*b*i-f*r*d+t*b*d+o*r*g-t*c*g)*A,e[7]=(o*m*i-u*c*i+u*r*d-t*m*d-o*r*h+t*c*h)*A,e[8]=S*A,e[9]=(f*_*i-u*y*i-f*s*h+t*y*h+u*s*g-t*_*g)*A,e[10]=(o*y*i-f*a*i+f*s*d-t*y*d-o*s*g+t*a*g)*A,e[11]=(u*a*i-o*_*i-u*s*d+t*_*d+o*s*h-t*a*h)*A,e[12]=R*A,e[13]=(u*y*r-f*_*r+f*s*m-t*y*m-u*s*b+t*_*b)*A,e[14]=(f*a*r-o*y*r-f*s*c+t*y*c+o*s*b-t*a*b)*A,e[15]=(o*_*r-u*a*r+u*s*c-t*_*c-o*s*m+t*a*m)*A,this}scale(e){const t=this.elements,s=e.x,r=e.y,i=e.z;return t[0]*=s,t[4]*=r,t[8]*=i,t[1]*=s,t[5]*=r,t[9]*=i,t[2]*=s,t[6]*=r,t[10]*=i,t[3]*=s,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],s=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,s,r))}makeTranslation(e,t,s){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,s,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),s=Math.sin(e);return this.set(1,0,0,0,0,t,-s,0,0,s,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,0,s,0,0,1,0,0,-s,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,-s,0,0,s,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const s=Math.cos(t),r=Math.sin(t),i=1-s,o=e.x,a=e.y,c=e.z,d=i*o,u=i*a;return this.set(d*o+s,d*a-r*c,d*c+r*a,0,d*a+r*c,u*a+s,u*c-r*o,0,d*c-r*a,u*c+r*o,i*c*c+s,0,0,0,0,1),this}makeScale(e,t,s){return this.set(e,0,0,0,0,t,0,0,0,0,s,0,0,0,0,1),this}makeShear(e,t,s,r,i,o){return this.set(1,s,i,0,e,1,o,0,t,r,1,0,0,0,0,1),this}compose(e,t,s){const r=this.elements,i=t._x,o=t._y,a=t._z,c=t._w,d=i+i,u=o+o,_=a+a,m=i*d,h=i*u,f=i*_,y=o*u,b=o*_,g=a*_,E=c*d,v=c*u,S=c*_,R=s.x,w=s.y,A=s.z;return r[0]=(1-(y+g))*R,r[1]=(h+S)*R,r[2]=(f-v)*R,r[3]=0,r[4]=(h-S)*w,r[5]=(1-(m+g))*w,r[6]=(b+E)*w,r[7]=0,r[8]=(f+v)*A,r[9]=(b-E)*A,r[10]=(1-(m+y))*A,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,s){const r=this.elements;let i=Io.set(r[0],r[1],r[2]).length();const o=Io.set(r[4],r[5],r[6]).length(),a=Io.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],ks.copy(this);const d=1/i,u=1/o,_=1/a;return ks.elements[0]*=d,ks.elements[1]*=d,ks.elements[2]*=d,ks.elements[4]*=u,ks.elements[5]*=u,ks.elements[6]*=u,ks.elements[8]*=_,ks.elements[9]*=_,ks.elements[10]*=_,t.setFromRotationMatrix(ks),s.x=i,s.y=o,s.z=a,this}makePerspective(e,t,s,r,i,o,a=Mr){const c=this.elements,d=2*i/(t-e),u=2*i/(s-r),_=(t+e)/(t-e),m=(s+r)/(s-r);let h,f;if(a===Mr)h=-(o+i)/(o-i),f=-2*o*i/(o-i);else if(a===vu)h=-o/(o-i),f=-o*i/(o-i);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=d,c[4]=0,c[8]=_,c[12]=0,c[1]=0,c[5]=u,c[9]=m,c[13]=0,c[2]=0,c[6]=0,c[10]=h,c[14]=f,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,s,r,i,o,a=Mr){const c=this.elements,d=1/(t-e),u=1/(s-r),_=1/(o-i),m=(t+e)*d,h=(s+r)*u;let f,y;if(a===Mr)f=(o+i)*_,y=-2*_;else if(a===vu)f=i*_,y=-1*_;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*d,c[4]=0,c[8]=0,c[12]=-m,c[1]=0,c[5]=2*u,c[9]=0,c[13]=-h,c[2]=0,c[6]=0,c[10]=y,c[14]=-f,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const t=this.elements,s=e.elements;for(let r=0;r<16;r++)if(t[r]!==s[r])return!1;return!0}fromArray(e,t=0){for(let s=0;s<16;s++)this.elements[s]=e[s+t];return this}toArray(e=[],t=0){const s=this.elements;return e[t]=s[0],e[t+1]=s[1],e[t+2]=s[2],e[t+3]=s[3],e[t+4]=s[4],e[t+5]=s[5],e[t+6]=s[6],e[t+7]=s[7],e[t+8]=s[8],e[t+9]=s[9],e[t+10]=s[10],e[t+11]=s[11],e[t+12]=s[12],e[t+13]=s[13],e[t+14]=s[14],e[t+15]=s[15],e}}const Io=new ie,ks=new xt,a0t=new ie(0,0,0),l0t=new ie(1,1,1),Xr=new ie,jc=new ie,ts=new ie,KC=new xt,jC=new Ni;class gp{constructor(e=0,t=0,s=0,r=gp.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=s,this._order=r}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,s,r=this._order){return this._x=e,this._y=t,this._z=s,this._order=r,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,s=!0){const r=e.elements,i=r[0],o=r[4],a=r[8],c=r[1],d=r[5],u=r[9],_=r[2],m=r[6],h=r[10];switch(t){case"XYZ":this._y=Math.asin(On(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(m,d),this._z=0);break;case"YXZ":this._x=Math.asin(-On(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(c,d)):(this._y=Math.atan2(-_,i),this._z=0);break;case"ZXY":this._x=Math.asin(On(m,-1,1)),Math.abs(m)<.9999999?(this._y=Math.atan2(-_,h),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(c,i));break;case"ZYX":this._y=Math.asin(-On(_,-1,1)),Math.abs(_)<.9999999?(this._x=Math.atan2(m,h),this._z=Math.atan2(c,i)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(On(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-_,i)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-On(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(m,d),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-u,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,s===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,s){return KC.makeRotationFromQuaternion(e),this.setFromRotationMatrix(KC,t,s)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return jC.setFromEuler(this),this.setFromQuaternion(jC,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}}gp.DEFAULT_ORDER="XYZ";class XN{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let s=0;s0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.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()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function i(a,c){return a[c.uuid]===void 0&&(a[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const c=a.shapes;if(Array.isArray(c))for(let d=0,u=c.length;d0){r.children=[];for(let a=0;a0){r.animations=[];for(let a=0;a0&&(s.geometries=a),c.length>0&&(s.materials=c),d.length>0&&(s.textures=d),u.length>0&&(s.images=u),_.length>0&&(s.shapes=_),m.length>0&&(s.skeletons=m),h.length>0&&(s.animations=h),f.length>0&&(s.nodes=f)}return s.object=r,s;function o(a){const c=[];for(const d in a){const u=a[d];delete u.metadata,c.push(u)}return c}}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 s=0;s0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,s,r,i){Ds.subVectors(r,t),Er.subVectors(s,t),og.subVectors(e,t);const o=Ds.dot(Ds),a=Ds.dot(Er),c=Ds.dot(og),d=Er.dot(Er),u=Er.dot(og),_=o*d-a*a;if(_===0)return i.set(-2,-1,-1);const m=1/_,h=(d*c-a*u)*m,f=(o*u-a*c)*m;return i.set(1-h-f,f,h)}static containsPoint(e,t,s,r){return this.getBarycoord(e,t,s,r,vr),vr.x>=0&&vr.y>=0&&vr.x+vr.y<=1}static getUV(e,t,s,r,i,o,a,c){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),this.getInterpolation(e,t,s,r,i,o,a,c)}static getInterpolation(e,t,s,r,i,o,a,c){return this.getBarycoord(e,t,s,r,vr),c.setScalar(0),c.addScaledVector(i,vr.x),c.addScaledVector(o,vr.y),c.addScaledVector(a,vr.z),c}static isFrontFacing(e,t,s,r){return Ds.subVectors(s,t),Er.subVectors(e,t),Ds.cross(Er).dot(r)<0}set(e,t,s){return this.a.copy(e),this.b.copy(t),this.c.copy(s),this}setFromPointsAndIndices(e,t,s,r){return this.a.copy(e[t]),this.b.copy(e[s]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,s,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,s),this.c.fromBufferAttribute(e,r),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 Ds.subVectors(this.c,this.b),Er.subVectors(this.a,this.b),Ds.cross(Er).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Fs.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Fs.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,s,r,i){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),Fs.getInterpolation(e,this.a,this.b,this.c,t,s,r,i)}getInterpolation(e,t,s,r,i){return Fs.getInterpolation(e,this.a,this.b,this.c,t,s,r,i)}containsPoint(e){return Fs.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Fs.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const s=this.a,r=this.b,i=this.c;let o,a;Do.subVectors(r,s),Lo.subVectors(i,s),ag.subVectors(e,s);const c=Do.dot(ag),d=Lo.dot(ag);if(c<=0&&d<=0)return t.copy(s);lg.subVectors(e,r);const u=Do.dot(lg),_=Lo.dot(lg);if(u>=0&&_<=u)return t.copy(r);const m=c*_-u*d;if(m<=0&&c>=0&&u<=0)return o=c/(c-u),t.copy(s).addScaledVector(Do,o);cg.subVectors(e,i);const h=Do.dot(cg),f=Lo.dot(cg);if(f>=0&&h<=f)return t.copy(i);const y=h*d-c*f;if(y<=0&&d>=0&&f<=0)return a=d/(d-f),t.copy(s).addScaledVector(Lo,a);const b=u*f-h*_;if(b<=0&&_-u>=0&&h-f>=0)return ew.subVectors(i,r),a=(_-u)/(_-u+(h-f)),t.copy(r).addScaledVector(ew,a);const g=1/(b+y+m);return o=y*g,a=m*g,t.copy(s).addScaledVector(Do,o).addScaledVector(Lo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const ZN={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},Zr={h:0,s:0,l:0},Zc={h:0,s:0,l:0};function dg(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 pt{constructor(e,t,s){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,s)}set(e,t,s){if(t===void 0&&s===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,t,s);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=nn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Lt.toWorkingColorSpace(this,t),this}setRGB(e,t,s,r=Lt.workingColorSpace){return this.r=e,this.g=t,this.b=s,Lt.toWorkingColorSpace(this,r),this}setHSL(e,t,s,r=Lt.workingColorSpace){if(e=_y(e,1),t=On(t,0,1),s=On(s,0,1),t===0)this.r=this.g=this.b=s;else{const i=s<=.5?s*(1+t):s+t-s*t,o=2*s-i;this.r=dg(o,i,e+1/3),this.g=dg(o,i,e),this.b=dg(o,i,e-1/3)}return Lt.toWorkingColorSpace(this,r),this}setStyle(e,t=nn){function s(i){i!==void 0&&parseFloat(i)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i;const o=r[1],a=r[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const i=r[1],o=i.length;if(o===3)return this.setRGB(parseInt(i.charAt(0),16)/15,parseInt(i.charAt(1),16)/15,parseInt(i.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(i,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=nn){const s=ZN[e.toLowerCase()];return s!==void 0?this.setHex(s,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=oa(e.r),this.g=oa(e.g),this.b=oa(e.b),this}copyLinearToSRGB(e){return this.r=Zh(e.r),this.g=Zh(e.g),this.b=Zh(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=nn){return Lt.fromWorkingColorSpace(Mn.copy(this),e),Math.round(On(Mn.r*255,0,255))*65536+Math.round(On(Mn.g*255,0,255))*256+Math.round(On(Mn.b*255,0,255))}getHexString(e=nn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Lt.workingColorSpace){Lt.fromWorkingColorSpace(Mn.copy(this),t);const s=Mn.r,r=Mn.g,i=Mn.b,o=Math.max(s,r,i),a=Math.min(s,r,i);let c,d;const u=(a+o)/2;if(a===o)c=0,d=0;else{const _=o-a;switch(d=u<=.5?_/(o+a):_/(2-o-a),o){case s:c=(r-i)/_+(r0!=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 s=e[t];if(s===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(s):r&&r.isVector3&&s&&s.isVector3?r.copy(s):this[t]=s}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const s={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.color&&this.color.isColor&&(s.color=this.color.getHex()),this.roughness!==void 0&&(s.roughness=this.roughness),this.metalness!==void 0&&(s.metalness=this.metalness),this.sheen!==void 0&&(s.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(s.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(s.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(s.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(s.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(s.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(s.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(s.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(s.shininess=this.shininess),this.clearcoat!==void 0&&(s.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(s.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(s.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(s.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(s.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,s.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(s.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(s.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(s.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(s.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(s.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(s.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(s.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(s.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(s.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(s.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(s.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(s.lightMap=this.lightMap.toJSON(e).uuid,s.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(s.aoMap=this.aoMap.toJSON(e).uuid,s.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(s.bumpMap=this.bumpMap.toJSON(e).uuid,s.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(s.normalMap=this.normalMap.toJSON(e).uuid,s.normalMapType=this.normalMapType,s.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(s.displacementMap=this.displacementMap.toJSON(e).uuid,s.displacementScale=this.displacementScale,s.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(s.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(s.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(s.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(s.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(s.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(s.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(s.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(s.combine=this.combine)),this.envMapIntensity!==void 0&&(s.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(s.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(s.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(s.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(s.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(s.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(s.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(s.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(s.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(s.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(s.size=this.size),this.shadowSide!==null&&(s.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(s.sizeAttenuation=this.sizeAttenuation),this.blending!==ia&&(s.blending=this.blending),this.side!==Fr&&(s.side=this.side),this.vertexColors===!0&&(s.vertexColors=!0),this.opacity<1&&(s.opacity=this.opacity),this.transparent===!0&&(s.transparent=!0),this.blendSrc!==_b&&(s.blendSrc=this.blendSrc),this.blendDst!==mb&&(s.blendDst=this.blendDst),this.blendEquation!==$i&&(s.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(s.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(s.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(s.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(s.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(s.blendAlpha=this.blendAlpha),this.depthFunc!==hu&&(s.depthFunc=this.depthFunc),this.depthTest===!1&&(s.depthTest=this.depthTest),this.depthWrite===!1&&(s.depthWrite=this.depthWrite),this.colorWrite===!1&&(s.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(s.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==VC&&(s.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(s.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(s.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ro&&(s.stencilFail=this.stencilFail),this.stencilZFail!==Ro&&(s.stencilZFail=this.stencilZFail),this.stencilZPass!==Ro&&(s.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(s.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(s.rotation=this.rotation),this.polygonOffset===!0&&(s.polygonOffset=!0),this.polygonOffsetFactor!==0&&(s.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(s.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(s.linewidth=this.linewidth),this.dashSize!==void 0&&(s.dashSize=this.dashSize),this.gapSize!==void 0&&(s.gapSize=this.gapSize),this.scale!==void 0&&(s.scale=this.scale),this.dithering===!0&&(s.dithering=!0),this.alphaTest>0&&(s.alphaTest=this.alphaTest),this.alphaHash===!0&&(s.alphaHash=!0),this.alphaToCoverage===!0&&(s.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(s.premultipliedAlpha=!0),this.forceSinglePass===!0&&(s.forceSinglePass=!0),this.wireframe===!0&&(s.wireframe=!0),this.wireframeLinewidth>1&&(s.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(s.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(s.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(s.flatShading=!0),this.visible===!1&&(s.visible=!1),this.toneMapped===!1&&(s.toneMapped=!1),this.fog===!1&&(s.fog=!1),Object.keys(this.userData).length>0&&(s.userData=this.userData);function r(i){const o=[];for(const a in i){const c=i[a];delete c.metadata,o.push(c)}return o}if(t){const i=r(e.textures),o=r(e.images);i.length>0&&(s.textures=i),o.length>0&&(s.images=o)}return s}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 s=null;if(t!==null){const r=t.length;s=new Array(r);for(let i=0;i!==r;++i)s[i]=t[i].clone()}return this.clippingPlanes=s,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 _i extends Vs{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new pt(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=dy,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 rn=new ie,Jc=new Rt;class zn{constructor(e,t,s=!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=s,this.usage=Eb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ar,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,s){e*=this.itemSize,s*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const d in c)c[d]!==void 0&&(e[d]=c[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const s=this.attributes;for(const c in s){const d=s[c];e.data.attributes[c]=d.toJSON(e.data)}const r={};let i=!1;for(const c in this.morphAttributes){const d=this.morphAttributes[c],u=[];for(let _=0,m=d.length;_0&&(r[c]=u,i=!0)}i&&(e.data.morphAttributes=r,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 s=e.index;s!==null&&this.setIndex(s.clone(t));const r=e.attributes;for(const d in r){const u=r[d];this.setAttribute(d,u.clone(t))}const i=e.morphAttributes;for(const d in i){const u=[],_=i[d];for(let m=0,h=_.length;m0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;i(e.far-e.near)**2))&&(tw.copy(i).invert(),Fi.copy(e.ray).applyMatrix4(tw),!(s.boundingBox!==null&&Fi.intersectsBox(s.boundingBox)===!1)&&this._computeIntersections(e,t,Fi)))}_computeIntersections(e,t,s){let r;const i=this.geometry,o=this.material,a=i.index,c=i.attributes.position,d=i.attributes.uv,u=i.attributes.uv1,_=i.attributes.normal,m=i.groups,h=i.drawRange;if(a!==null)if(Array.isArray(o))for(let f=0,y=m.length;ft.far?null:{distance:d,point:od.clone(),object:n}}function ad(n,e,t,s,r,i,o,a,c,d){n.getVertexPosition(a,Fo),n.getVertexPosition(c,Uo),n.getVertexPosition(d,Bo);const u=h0t(n,e,t,s,Fo,Uo,Bo,id);if(u){r&&(nd.fromBufferAttribute(r,a),sd.fromBufferAttribute(r,c),rd.fromBufferAttribute(r,d),u.uv=Fs.getInterpolation(id,Fo,Uo,Bo,nd,sd,rd,new Rt)),i&&(nd.fromBufferAttribute(i,a),sd.fromBufferAttribute(i,c),rd.fromBufferAttribute(i,d),u.uv1=Fs.getInterpolation(id,Fo,Uo,Bo,nd,sd,rd,new Rt),u.uv2=u.uv1),o&&(sw.fromBufferAttribute(o,a),rw.fromBufferAttribute(o,c),iw.fromBufferAttribute(o,d),u.normal=Fs.getInterpolation(id,Fo,Uo,Bo,sw,rw,iw,new ie),u.normal.dot(s.direction)>0&&u.normal.multiplyScalar(-1));const _={a,b:c,c:d,normal:new ie,materialIndex:0};Fs.getNormal(Fo,Uo,Bo,_.normal),u.face=_}return u}class Ei extends fr{constructor(e=1,t=1,s=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:s,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const c=[],d=[],u=[],_=[];let m=0,h=0;f("z","y","x",-1,-1,s,t,e,o,i,0),f("z","y","x",1,-1,s,t,-e,o,i,1),f("x","z","y",1,1,e,s,t,r,o,2),f("x","z","y",1,-1,e,s,-t,r,o,3),f("x","y","z",1,-1,e,t,s,r,i,4),f("x","y","z",-1,-1,e,t,-s,r,i,5),this.setIndex(c),this.setAttribute("position",new kr(d,3)),this.setAttribute("normal",new kr(u,3)),this.setAttribute("uv",new kr(_,2));function f(y,b,g,E,v,S,R,w,A,I,C){const M=S/A,G=R/I,V=S/2,ee=R/2,O=w/2,H=A+1,q=I+1;let L=0,W=0;const se=new ie;for(let oe=0;oe0?1:-1,u.push(se.x,se.y,se.z),_.push(xe/A),_.push(1-oe/I),L+=1}}for(let oe=0;oe0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const s={};for(const r in this.extensions)this.extensions[r]===!0&&(s[r]=!0);return Object.keys(s).length>0&&(t.extensions=s),t}}class nO extends Jt{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new xt,this.projectionMatrix=new xt,this.projectionMatrixInverse=new xt,this.coordinateSystem=Mr}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 Gn extends nO{constructor(e=50,t=1,s=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=s,this.far=r,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=xa*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Ol*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return xa*2*Math.atan(Math.tan(Ol*.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,s,r,i,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=s,this.view.offsetY=r,this.view.width=i,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(Ol*.5*this.fov)/this.zoom,s=2*t,r=this.aspect*s,i=-.5*r;const o=this.view;if(this.view!==null&&this.view.enabled){const c=o.fullWidth,d=o.fullHeight;i+=o.offsetX*r/c,t-=o.offsetY*s/d,r*=o.width/c,s*=o.height/d}const a=this.filmOffset;a!==0&&(i+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-s,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 Go=-90,Vo=1;class v0t extends Jt{constructor(e,t,s){super(),this.type="CubeCamera",this.renderTarget=s,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new Gn(Go,Vo,e,t);r.layers=this.layers,this.add(r);const i=new Gn(Go,Vo,e,t);i.layers=this.layers,this.add(i);const o=new Gn(Go,Vo,e,t);o.layers=this.layers,this.add(o);const a=new Gn(Go,Vo,e,t);a.layers=this.layers,this.add(a);const c=new Gn(Go,Vo,e,t);c.layers=this.layers,this.add(c);const d=new Gn(Go,Vo,e,t);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[s,r,i,o,a,c]=t;for(const d of t)this.remove(d);if(e===Mr)s.up.set(0,1,0),s.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.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),c.up.set(0,1,0),c.lookAt(0,0,-1);else if(e===vu)s.up.set(0,-1,0),s.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.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),c.up.set(0,-1,0),c.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of t)this.add(d),d.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:s,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[i,o,a,c,d,u]=this.children,_=e.getRenderTarget(),m=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),f=e.xr.enabled;e.xr.enabled=!1;const y=s.texture.generateMipmaps;s.texture.generateMipmaps=!1,e.setRenderTarget(s,0,r),e.render(t,i),e.setRenderTarget(s,1,r),e.render(t,o),e.setRenderTarget(s,2,r),e.render(t,a),e.setRenderTarget(s,3,r),e.render(t,c),e.setRenderTarget(s,4,r),e.render(t,d),s.texture.generateMipmaps=y,e.setRenderTarget(s,5,r),e.render(t,u),e.setRenderTarget(_,m,h),e.xr.enabled=f,s.texture.needsPMREMUpdate=!0}}class sO extends xn{constructor(e,t,s,r,i,o,a,c,d,u){e=e!==void 0?e:[],t=t!==void 0?t:ya,super(e,t,s,r,i,o,a,c,d,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class S0t extends mo{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const s={width:e,height:e,depth:1},r=[s,s,s,s,s,s];t.encoding!==void 0&&(kl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===ro?nn:bs),this.texture=new sO(r,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:Wn}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 s={uniforms:{tEquirect:{value:null}},vertexShader:` - - varying vec3 vWorldDirection; - - vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); - - } - - void main() { - - vWorldDirection = transformDirection( position, modelMatrix ); - - #include - #include - - } - `,fragmentShader:` - - uniform sampler2D tEquirect; - - varying vec3 vWorldDirection; - - #include - - void main() { - - vec3 direction = normalize( vWorldDirection ); - - vec2 sampleUV = equirectUv( direction ); - - gl_FragColor = texture2D( tEquirect, sampleUV ); - - } - `},r=new Ei(5,5,5),i=new ho({name:"CubemapFromEquirect",uniforms:Ca(s.uniforms),vertexShader:s.vertexShader,fragmentShader:s.fragmentShader,side:Zn,blending:gi});i.uniforms.tEquirect.value=t;const o=new Vn(r,i),a=t.minFilter;return t.minFilter===_o&&(t.minFilter=Wn),new v0t(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,s,r){const i=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,s,r);e.setRenderTarget(i)}}const fg=new ie,T0t=new ie,x0t=new Tt;class zi{constructor(e=new ie(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,s,r){return this.normal.set(e,t,s),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,s){const r=fg.subVectors(s,t).cross(T0t.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,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 s=e.delta(fg),r=this.normal.dot(s);if(r===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(e.start).addScaledVector(s,i)}intersectsLine(e){const t=this.distanceToPoint(e.start),s=this.distanceToPoint(e.end);return t<0&&s>0||s<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 s=t||x0t.getNormalMatrix(e),r=this.coplanarPoint(fg).applyMatrix4(e),i=this.normal.applyMatrix3(s).normalize();return this.constant=-r.dot(i),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 Ui=new pr,ld=new ie;class my{constructor(e=new zi,t=new zi,s=new zi,r=new zi,i=new zi,o=new zi){this.planes=[e,t,s,r,i,o]}set(e,t,s,r,i,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(s),a[3].copy(r),a[4].copy(i),a[5].copy(o),this}copy(e){const t=this.planes;for(let s=0;s<6;s++)t[s].copy(e.planes[s]);return this}setFromProjectionMatrix(e,t=Mr){const s=this.planes,r=e.elements,i=r[0],o=r[1],a=r[2],c=r[3],d=r[4],u=r[5],_=r[6],m=r[7],h=r[8],f=r[9],y=r[10],b=r[11],g=r[12],E=r[13],v=r[14],S=r[15];if(s[0].setComponents(c-i,m-d,b-h,S-g).normalize(),s[1].setComponents(c+i,m+d,b+h,S+g).normalize(),s[2].setComponents(c+o,m+u,b+f,S+E).normalize(),s[3].setComponents(c-o,m-u,b-f,S-E).normalize(),s[4].setComponents(c-a,m-_,b-y,S-v).normalize(),t===Mr)s[5].setComponents(c+a,m+_,b+y,S+v).normalize();else if(t===vu)s[5].setComponents(a,_,y,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(),Ui.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Ui.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ui)}intersectsSprite(e){return Ui.center.set(0,0,0),Ui.radius=.7071067811865476,Ui.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ui)}intersectsSphere(e){const t=this.planes,s=e.center,r=-e.radius;for(let i=0;i<6;i++)if(t[i].distanceToPoint(s)0?e.max.x:e.min.x,ld.y=r.normal.y>0?e.max.y:e.min.y,ld.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(ld)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let s=0;s<6;s++)if(t[s].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function rO(){let n=null,e=!1,t=null,s=null;function r(i,o){t(i,o),s=n.requestAnimationFrame(r)}return{start:function(){e!==!0&&t!==null&&(s=n.requestAnimationFrame(r),e=!0)},stop:function(){n.cancelAnimationFrame(s),e=!1},setAnimationLoop:function(i){t=i},setContext:function(i){n=i}}}function C0t(n,e){const t=e.isWebGL2,s=new WeakMap;function r(d,u){const _=d.array,m=d.usage,h=_.byteLength,f=n.createBuffer();n.bindBuffer(u,f),n.bufferData(u,_,m),d.onUploadCallback();let y;if(_ instanceof Float32Array)y=n.FLOAT;else if(_ instanceof Uint16Array)if(d.isFloat16BufferAttribute)if(t)y=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else y=n.UNSIGNED_SHORT;else if(_ instanceof Int16Array)y=n.SHORT;else if(_ instanceof Uint32Array)y=n.UNSIGNED_INT;else if(_ instanceof Int32Array)y=n.INT;else if(_ instanceof Int8Array)y=n.BYTE;else if(_ instanceof Uint8Array)y=n.UNSIGNED_BYTE;else if(_ instanceof Uint8ClampedArray)y=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+_);return{buffer:f,type:y,bytesPerElement:_.BYTES_PER_ELEMENT,version:d.version,size:h}}function i(d,u,_){const m=u.array,h=u._updateRange,f=u.updateRanges;if(n.bindBuffer(_,d),h.count===-1&&f.length===0&&n.bufferSubData(_,0,m),f.length!==0){for(let y=0,b=f.length;y 0 - vec4 plane; - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - bool clipped = true; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; - } - #pragma unroll_loop_end - if ( clipped ) discard; - #endif -#endif`,z0t=`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; - uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,H0t=`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; -#endif`,q0t=`#if NUM_CLIPPING_PLANES > 0 - vClipPosition = - mvPosition.xyz; -#endif`,Y0t=`#if defined( USE_COLOR_ALPHA ) - diffuseColor *= vColor; -#elif defined( USE_COLOR ) - diffuseColor.rgb *= vColor; -#endif`,$0t=`#if defined( USE_COLOR_ALPHA ) - varying vec4 vColor; -#elif defined( USE_COLOR ) - varying vec3 vColor; -#endif`,W0t=`#if defined( USE_COLOR_ALPHA ) - varying vec4 vColor; -#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) - varying vec3 vColor; -#endif`,K0t=`#if defined( USE_COLOR_ALPHA ) - vColor = vec4( 1.0 ); -#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) - vColor = vec3( 1.0 ); -#endif -#ifdef USE_COLOR - vColor *= color; -#endif -#ifdef USE_INSTANCING_COLOR - vColor.xyz *= instanceColor.xyz; -#endif`,j0t=`#define PI 3.141592653589793 -#define PI2 6.283185307179586 -#define PI_HALF 1.5707963267948966 -#define RECIPROCAL_PI 0.3183098861837907 -#define RECIPROCAL_PI2 0.15915494309189535 -#define EPSILON 1e-6 -#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -#define whiteComplement( a ) ( 1.0 - saturate( a ) ) -float pow2( const in float x ) { return x*x; } -vec3 pow2( const in vec3 x ) { return x*x; } -float pow3( const in float x ) { return x*x*x; } -float pow4( const in float x ) { float x2 = x*x; return x2*x2; } -float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } -float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } -highp float rand( const in vec2 uv ) { - const highp float a = 12.9898, b = 78.233, c = 43758.5453; - highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); - return fract( sin( sn ) * c ); -} -#ifdef HIGH_PRECISION - float precisionSafeLength( vec3 v ) { return length( v ); } -#else - float precisionSafeLength( vec3 v ) { - float maxComponent = max3( abs( v ) ); - return length( v / maxComponent ) * maxComponent; - } -#endif -struct IncidentLight { - vec3 color; - vec3 direction; - bool visible; -}; -struct ReflectedLight { - vec3 directDiffuse; - vec3 directSpecular; - vec3 indirectDiffuse; - vec3 indirectSpecular; -}; -#ifdef USE_ALPHAHASH - varying vec3 vPosition; -#endif -vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); -} -vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); -} -mat3 transposeMat3( const in mat3 m ) { - mat3 tmp; - tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); - tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); - tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); - return tmp; -} -float luminance( const in vec3 rgb ) { - const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 ); - return dot( weights, rgb ); -} -bool isPerspectiveMatrix( mat4 m ) { - return m[ 2 ][ 3 ] == - 1.0; -} -vec2 equirectUv( in vec3 dir ) { - float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; - float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; - return vec2( u, v ); -} -vec3 BRDF_Lambert( const in vec3 diffuseColor ) { - return RECIPROCAL_PI * diffuseColor; -} -vec3 F_Schlick( const in vec3 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 ); -} -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`,Q0t=`#ifdef ENVMAP_TYPE_CUBE_UV - #define cubeUV_minMipLevel 4.0 - #define cubeUV_minTileSize 16.0 - float getFace( vec3 direction ) { - vec3 absDirection = abs( direction ); - float face = - 1.0; - if ( absDirection.x > absDirection.z ) { - if ( absDirection.x > absDirection.y ) - face = direction.x > 0.0 ? 0.0 : 3.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } else { - if ( absDirection.z > absDirection.y ) - face = direction.z > 0.0 ? 2.0 : 5.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } - return face; - } - vec2 getUV( vec3 direction, float face ) { - vec2 uv; - if ( face == 0.0 ) { - uv = vec2( direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 1.0 ) { - uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); - } else if ( face == 2.0 ) { - uv = vec2( - direction.x, direction.y ) / abs( direction.z ); - } else if ( face == 3.0 ) { - uv = vec2( - direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 4.0 ) { - uv = vec2( - direction.x, direction.z ) / abs( direction.y ); - } else { - uv = vec2( direction.x, direction.y ) / abs( direction.z ); - } - return 0.5 * ( uv + 1.0 ); - } - vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { - float face = getFace( direction ); - float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); - mipInt = max( mipInt, cubeUV_minMipLevel ); - float faceSize = exp2( mipInt ); - highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; - if ( face > 2.0 ) { - uv.y += faceSize; - face -= 3.0; - } - uv.x += face * faceSize; - uv.x += filterInt * 3.0 * cubeUV_minTileSize; - uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); - uv.x *= CUBEUV_TEXEL_WIDTH; - uv.y *= CUBEUV_TEXEL_HEIGHT; - #ifdef texture2DGradEXT - return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; - #else - return texture2D( envMap, uv ).rgb; - #endif - } - #define cubeUV_r0 1.0 - #define cubeUV_v0 0.339 - #define cubeUV_m0 - 2.0 - #define cubeUV_r1 0.8 - #define cubeUV_v1 0.276 - #define cubeUV_m1 - 1.0 - #define cubeUV_r4 0.4 - #define cubeUV_v4 0.046 - #define cubeUV_m4 2.0 - #define cubeUV_r5 0.305 - #define cubeUV_v5 0.016 - #define cubeUV_m5 3.0 - #define cubeUV_r6 0.21 - #define cubeUV_v6 0.0038 - #define cubeUV_m6 4.0 - float roughnessToMip( float roughness ) { - float mip = 0.0; - if ( roughness >= cubeUV_r1 ) { - mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; - } else if ( roughness >= cubeUV_r4 ) { - mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; - } else if ( roughness >= cubeUV_r5 ) { - mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; - } else if ( roughness >= cubeUV_r6 ) { - mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; - } else { - mip = - 2.0 * log2( 1.16 * roughness ); } - return mip; - } - vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { - float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); - float mipF = fract( mip ); - float mipInt = floor( mip ); - vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); - if ( mipF == 0.0 ) { - return vec4( color0, 1.0 ); - } else { - vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); - return vec4( mix( color0, color1, mipF ), 1.0 ); - } - } -#endif`,X0t=`vec3 transformedNormal = objectNormal; -#ifdef USE_TANGENT - vec3 transformedTangent = objectTangent; -#endif -#ifdef USE_BATCHING - mat3 bm = mat3( batchingMatrix ); - transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); - transformedNormal = bm * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = bm * transformedTangent; - #endif -#endif -#ifdef USE_INSTANCING - mat3 im = mat3( instanceMatrix ); - transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); - transformedNormal = im * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = im * transformedTangent; - #endif -#endif -transformedNormal = normalMatrix * transformedNormal; -#ifdef FLIP_SIDED - transformedNormal = - transformedNormal; -#endif -#ifdef USE_TANGENT - transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; - #ifdef FLIP_SIDED - transformedTangent = - transformedTangent; - #endif -#endif`,Z0t=`#ifdef USE_DISPLACEMENTMAP - uniform sampler2D displacementMap; - uniform float displacementScale; - uniform float displacementBias; -#endif`,J0t=`#ifdef USE_DISPLACEMENTMAP - transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,eyt=`#ifdef USE_EMISSIVEMAP - vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); - totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,tyt=`#ifdef USE_EMISSIVEMAP - uniform sampler2D emissiveMap; -#endif`,nyt="gl_FragColor = linearToOutputTexel( gl_FragColor );",syt=` -const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( - vec3( 0.8224621, 0.177538, 0.0 ), - vec3( 0.0331941, 0.9668058, 0.0 ), - vec3( 0.0170827, 0.0723974, 0.9105199 ) -); -const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3( - vec3( 1.2249401, - 0.2249404, 0.0 ), - vec3( - 0.0420569, 1.0420571, 0.0 ), - vec3( - 0.0196376, - 0.0786361, 1.0982735 ) -); -vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) { - return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a ); -} -vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) { - return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a ); -} -vec4 LinearTransferOETF( in vec4 value ) { - return value; -} -vec4 sRGBTransferOETF( in vec4 value ) { - return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); -} -vec4 LinearToLinear( in vec4 value ) { - return value; -} -vec4 LinearTosRGB( in vec4 value ) { - return sRGBTransferOETF( value ); -}`,ryt=`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vec3 cameraToFrag; - if ( isOrthographic ) { - cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToFrag = normalize( vWorldPosition - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vec3 reflectVec = reflect( cameraToFrag, worldNormal ); - #else - vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); - #endif - #else - vec3 reflectVec = vReflect; - #endif - #ifdef ENVMAP_TYPE_CUBE - vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); - #else - vec4 envColor = vec4( 0.0 ); - #endif - #ifdef ENVMAP_BLENDING_MULTIPLY - outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_MIX ) - outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_ADD ) - outgoingLight += envColor.xyz * specularStrength * reflectivity; - #endif -#endif`,iyt=`#ifdef USE_ENVMAP - uniform float envMapIntensity; - uniform float flipEnvMap; - #ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; - #else - uniform sampler2D envMap; - #endif - -#endif`,oyt=`#ifdef USE_ENVMAP - uniform float reflectivity; - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - varying vec3 vWorldPosition; - uniform float refractionRatio; - #else - varying vec3 vReflect; - #endif -#endif`,ayt=`#ifdef USE_ENVMAP - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - - varying vec3 vWorldPosition; - #else - varying vec3 vReflect; - uniform float refractionRatio; - #endif -#endif`,lyt=`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vWorldPosition = worldPosition.xyz; - #else - vec3 cameraToVertex; - if ( isOrthographic ) { - cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vReflect = reflect( cameraToVertex, worldNormal ); - #else - vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); - #endif - #endif -#endif`,cyt=`#ifdef USE_FOG - vFogDepth = - mvPosition.z; -#endif`,dyt=`#ifdef USE_FOG - varying float vFogDepth; -#endif`,uyt=`#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`,pyt=`#ifdef USE_FOG - uniform vec3 fogColor; - varying float vFogDepth; - #ifdef FOG_EXP2 - uniform float fogDensity; - #else - uniform float fogNear; - uniform float fogFar; - #endif -#endif`,fyt=`#ifdef USE_GRADIENTMAP - uniform sampler2D gradientMap; -#endif -vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { - float dotNL = dot( normal, lightDirection ); - vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); - #ifdef USE_GRADIENTMAP - return vec3( texture2D( gradientMap, coord ).r ); - #else - 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 -}`,_yt=`#ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; - reflectedLight.indirectDiffuse += lightMapIrradiance; -#endif`,myt=`#ifdef USE_LIGHTMAP - uniform sampler2D lightMap; - uniform float lightMapIntensity; -#endif`,hyt=`LambertMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,gyt=`varying vec3 vViewPosition; -struct LambertMaterial { - vec3 diffuseColor; - float specularStrength; -}; -void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,byt=`uniform bool receiveShadow; -uniform vec3 ambientLightColor; -#if defined( USE_LIGHT_PROBES ) - uniform vec3 lightProbe[ 9 ]; -#endif -vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { - float x = normal.x, y = normal.y, z = normal.z; - vec3 result = shCoefficients[ 0 ] * 0.886227; - result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; - result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; - result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; - result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; - result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; - result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); - result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; - result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); - return result; -} -vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); - return irradiance; -} -vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { - vec3 irradiance = ambientLightColor; - return irradiance; -} -float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { - #if defined ( LEGACY_LIGHTS ) - if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) { - return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent ); - } - return 1.0; - #else - float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); - if ( cutoffDistance > 0.0 ) { - distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); - } - return distanceFalloff; - #endif -} -float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { - return smoothstep( coneCosine, penumbraCosine, angleCosine ); -} -#if NUM_DIR_LIGHTS > 0 - struct DirectionalLight { - vec3 direction; - vec3 color; - }; - uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; - void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { - light.color = directionalLight.color; - light.direction = directionalLight.direction; - light.visible = true; - } -#endif -#if NUM_POINT_LIGHTS > 0 - struct PointLight { - vec3 position; - vec3 color; - float distance; - float decay; - }; - uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; - void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = pointLight.position - geometryPosition; - light.direction = normalize( lVector ); - float lightDistance = length( lVector ); - light.color = pointLight.color; - light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } -#endif -#if NUM_SPOT_LIGHTS > 0 - struct SpotLight { - vec3 position; - vec3 direction; - vec3 color; - float distance; - float decay; - float coneCos; - float penumbraCos; - }; - uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; - void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = spotLight.position - geometryPosition; - light.direction = normalize( lVector ); - float angleCos = dot( light.direction, spotLight.direction ); - float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); - if ( spotAttenuation > 0.0 ) { - float lightDistance = length( lVector ); - light.color = spotLight.color * spotAttenuation; - light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } else { - light.color = vec3( 0.0 ); - light.visible = false; - } - } -#endif -#if NUM_RECT_AREA_LIGHTS > 0 - struct RectAreaLight { - vec3 color; - vec3 position; - vec3 halfWidth; - vec3 halfHeight; - }; - uniform sampler2D ltc_1; uniform sampler2D ltc_2; - uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; -#endif -#if NUM_HEMI_LIGHTS > 0 - struct HemisphereLight { - vec3 direction; - vec3 skyColor; - vec3 groundColor; - }; - uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; - vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { - float dotNL = dot( normal, hemiLight.direction ); - float hemiDiffuseWeight = 0.5 * dotNL + 0.5; - vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); - return irradiance; - } -#endif`,yyt=`#ifdef USE_ENVMAP - vec3 getIBLIrradiance( const in vec3 normal ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 ); - return PI * envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 reflectVec = reflect( - viewDir, normal ); - reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); - reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness ); - return envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - #ifdef USE_ANISOTROPY - vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 bentNormal = cross( bitangent, viewDir ); - bentNormal = normalize( cross( bentNormal, bitangent ) ); - bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); - return getIBLRadiance( viewDir, bentNormal, roughness ); - #else - return vec3( 0.0 ); - #endif - } - #endif -#endif`,Eyt=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,vyt=`varying vec3 vViewPosition; -struct ToonMaterial { - vec3 diffuseColor; -}; -void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Syt=`BlinnPhongMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularColor = specular; -material.specularShininess = shininess; -material.specularStrength = specularStrength;`,Tyt=`varying vec3 vViewPosition; -struct BlinnPhongMaterial { - vec3 diffuseColor; - vec3 specularColor; - float specularShininess; - float specularStrength; -}; -void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); - reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; -} -void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,xyt=`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 ); -material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; -material.roughness = min( material.roughness, 1.0 ); -#ifdef IOR - material.ior = ior; - #ifdef USE_SPECULAR - float specularIntensityFactor = specularIntensity; - vec3 specularColorFactor = specularColor; - #ifdef USE_SPECULAR_COLORMAP - specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; - #endif - material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); - #else - float specularIntensityFactor = 1.0; - vec3 specularColorFactor = vec3( 1.0 ); - material.specularF90 = 1.0; - #endif - material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); -#else - material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); - material.specularF90 = 1.0; -#endif -#ifdef USE_CLEARCOAT - material.clearcoat = clearcoat; - material.clearcoatRoughness = clearcoatRoughness; - material.clearcoatF0 = vec3( 0.04 ); - material.clearcoatF90 = 1.0; - #ifdef USE_CLEARCOATMAP - material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; - #endif - #ifdef USE_CLEARCOAT_ROUGHNESSMAP - material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; - #endif - material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); - material.clearcoatRoughness += geometryRoughness; - material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); -#endif -#ifdef USE_IRIDESCENCE - material.iridescence = iridescence; - material.iridescenceIOR = iridescenceIOR; - #ifdef USE_IRIDESCENCEMAP - material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; - #endif - #ifdef USE_IRIDESCENCE_THICKNESSMAP - material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; - #else - material.iridescenceThickness = iridescenceThicknessMaximum; - #endif -#endif -#ifdef USE_SHEEN - material.sheenColor = sheenColor; - #ifdef USE_SHEEN_COLORMAP - material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; - #endif - material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); - #ifdef USE_SHEEN_ROUGHNESSMAP - material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; - #endif -#endif -#ifdef USE_ANISOTROPY - #ifdef USE_ANISOTROPYMAP - mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); - vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; - vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; - #else - vec2 anisotropyV = anisotropyVector; - #endif - material.anisotropy = length( anisotropyV ); - if( material.anisotropy == 0.0 ) { - anisotropyV = vec2( 1.0, 0.0 ); - } else { - anisotropyV /= material.anisotropy; - material.anisotropy = saturate( material.anisotropy ); - } - 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`,Cyt=`struct PhysicalMaterial { - vec3 diffuseColor; - float roughness; - vec3 specularColor; - float specularF90; - #ifdef USE_CLEARCOAT - float clearcoat; - float clearcoatRoughness; - vec3 clearcoatF0; - float clearcoatF90; - #endif - #ifdef USE_IRIDESCENCE - float iridescence; - float iridescenceIOR; - float iridescenceThickness; - vec3 iridescenceFresnel; - vec3 iridescenceF0; - #endif - #ifdef USE_SHEEN - vec3 sheenColor; - float sheenRoughness; - #endif - #ifdef IOR - float ior; - #endif - #ifdef USE_TRANSMISSION - float transmission; - float transmissionAlpha; - float thickness; - float attenuationDistance; - vec3 attenuationColor; - #endif - #ifdef USE_ANISOTROPY - float anisotropy; - float alphaT; - vec3 anisotropyT; - vec3 anisotropyB; - #endif -}; -vec3 clearcoatSpecularDirect = vec3( 0.0 ); -vec3 clearcoatSpecularIndirect = vec3( 0.0 ); -vec3 sheenSpecularDirect = vec3( 0.0 ); -vec3 sheenSpecularIndirect = vec3(0.0 ); -vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { - float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); - float x2 = x * x; - float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); - return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); -} -float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { - float a2 = pow2( alpha ); - float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); - float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); - return 0.5 / max( gv + gl, EPSILON ); -} -float D_GGX( const in float alpha, const in float dotNH ) { - float a2 = pow2( alpha ); - float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; - return RECIPROCAL_PI * a2 / pow2( denom ); -} -#ifdef USE_ANISOTROPY - float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { - float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); - float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); - float v = 0.5 / ( gv + gl ); - return saturate(v); - } - float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { - float a2 = alphaT * alphaB; - highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); - highp float v2 = dot( v, v ); - float w2 = a2 / v2; - return RECIPROCAL_PI * a2 * pow2 ( w2 ); - } -#endif -#ifdef USE_CLEARCOAT - vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { - vec3 f0 = material.clearcoatF0; - float f90 = material.clearcoatF90; - float roughness = material.clearcoatRoughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - return F * ( V * D ); - } -#endif -vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { - vec3 f0 = material.specularColor; - float f90 = material.specularF90; - float roughness = material.roughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - #ifdef USE_IRIDESCENCE - F = mix( F, material.iridescenceFresnel, material.iridescence ); - #endif - #ifdef USE_ANISOTROPY - float dotTL = dot( material.anisotropyT, lightDir ); - float dotTV = dot( material.anisotropyT, viewDir ); - float dotTH = dot( material.anisotropyT, halfDir ); - float dotBL = dot( material.anisotropyB, lightDir ); - float dotBV = dot( material.anisotropyB, viewDir ); - float dotBH = dot( material.anisotropyB, halfDir ); - float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); - float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); - #else - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - #endif - return F * ( V * D ); -} -vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { - const float LUT_SIZE = 64.0; - const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; - const float LUT_BIAS = 0.5 / LUT_SIZE; - float dotNV = saturate( dot( N, V ) ); - vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); - uv = uv * LUT_SCALE + LUT_BIAS; - return uv; -} -float LTC_ClippedSphereFormFactor( const in vec3 f ) { - float l = length( f ); - return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); -} -vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { - float x = dot( v1, v2 ); - float y = abs( x ); - float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; - float b = 3.4175940 + ( 4.1616724 + y ) * y; - float v = a / b; - float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; - return cross( v1, v2 ) * theta_sintheta; -} -vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { - vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; - vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; - vec3 lightNormal = cross( v1, v2 ); - if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); - vec3 T1, T2; - T1 = normalize( V - N * dot( V, N ) ); - T2 = - cross( N, T1 ); - mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); - vec3 coords[ 4 ]; - coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); - coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); - coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); - coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); - coords[ 0 ] = normalize( coords[ 0 ] ); - coords[ 1 ] = normalize( coords[ 1 ] ); - coords[ 2 ] = normalize( coords[ 2 ] ); - coords[ 3 ] = normalize( coords[ 3 ] ); - vec3 vectorFormFactor = vec3( 0.0 ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); - float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); - return vec3( result ); -} -#if defined( USE_SHEEN ) -float D_Charlie( float roughness, float dotNH ) { - float alpha = pow2( roughness ); - float invAlpha = 1.0 / alpha; - float cos2h = dotNH * dotNH; - float sin2h = max( 1.0 - cos2h, 0.0078125 ); - return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); -} -float V_Neubelt( float dotNV, float dotNL ) { - return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); -} -vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float D = D_Charlie( sheenRoughness, dotNH ); - float V = V_Neubelt( dotNV, dotNL ); - return sheenColor * ( D * V ); -} -#endif -float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - float r2 = roughness * roughness; - float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; - float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; - float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); - return saturate( DG * RECIPROCAL_PI ); -} -vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); - const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); - vec4 r = roughness * c0 + c1; - float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; - vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; - return fab; -} -vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { - vec2 fab = DFGApprox( normal, viewDir, roughness ); - return specularColor * fab.x + specularF90 * fab.y; -} -#ifdef USE_IRIDESCENCE -void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#else -void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#endif - vec2 fab = DFGApprox( normal, viewDir, roughness ); - #ifdef USE_IRIDESCENCE - vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); - #else - vec3 Fr = specularColor; - #endif - vec3 FssEss = Fr * fab.x + specularF90 * fab.y; - float Ess = fab.x + fab.y; - float Ems = 1.0 - Ess; - vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); - singleScatter += FssEss; - multiScatter += Fms * Ems; -} -#if NUM_RECT_AREA_LIGHTS > 0 - void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - vec3 normal = geometryNormal; - vec3 viewDir = geometryViewDir; - vec3 position = geometryPosition; - vec3 lightPos = rectAreaLight.position; - vec3 halfWidth = rectAreaLight.halfWidth; - vec3 halfHeight = rectAreaLight.halfHeight; - vec3 lightColor = rectAreaLight.color; - float roughness = material.roughness; - vec3 rectCoords[ 4 ]; - rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; - rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; - rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; - vec2 uv = LTC_Uv( normal, viewDir, roughness ); - vec4 t1 = texture2D( ltc_1, uv ); - vec4 t2 = texture2D( ltc_2, uv ); - mat3 mInv = mat3( - vec3( t1.x, 0, t1.y ), - vec3( 0, 1, 0 ), - vec3( t1.z, 0, t1.w ) - ); - vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); - reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); - reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); - } -#endif -void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - #ifdef USE_CLEARCOAT - float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); - vec3 ccIrradiance = dotNLcc * directLight.color; - clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); - #endif - #ifdef USE_SHEEN - sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); - #endif - reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { - #ifdef USE_CLEARCOAT - clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); - #endif - #ifdef USE_SHEEN - sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - #endif - vec3 singleScattering = vec3( 0.0 ); - vec3 multiScattering = vec3( 0.0 ); - vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; - #ifdef USE_IRIDESCENCE - computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); - #else - computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); - #endif - vec3 totalScattering = singleScattering + multiScattering; - vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); - reflectedLight.indirectSpecular += radiance * singleScattering; - reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; - reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; -} -#define RE_Direct RE_Direct_Physical -#define RE_Direct_RectArea RE_Direct_RectArea_Physical -#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical -#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 ); -}`,wyt=` -vec3 geometryPosition = - vViewPosition; -vec3 geometryNormal = normal; -vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); -vec3 geometryClearcoatNormal = vec3( 0.0 ); -#ifdef USE_CLEARCOAT - geometryClearcoatNormal = clearcoatNormal; -#endif -#ifdef USE_IRIDESCENCE - float dotNVi = saturate( dot( normal, geometryViewDir ) ); - if ( material.iridescenceThickness == 0.0 ) { - material.iridescence = 0.0; - } else { - material.iridescence = saturate( material.iridescence ); - } - if ( material.iridescence > 0.0 ) { - material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); - material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); - } -#endif -IncidentLight directLight; -#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) - PointLight pointLight; - #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { - pointLight = pointLights[ i ]; - getPointLightInfo( pointLight, geometryPosition, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) - pointLightShadow = pointLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) - SpotLight spotLight; - vec4 spotColor; - vec3 spotLightCoord; - bool inSpotLightMap; - #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { - spotLight = spotLights[ i ]; - getSpotLightInfo( spotLight, geometryPosition, directLight ); - #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX - #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS - #else - #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #endif - #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) - spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; - inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); - spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); - directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; - #endif - #undef SPOT_LIGHT_MAP_INDEX - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - spotLightShadow = spotLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) - DirectionalLight directionalLight; - #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { - directionalLight = directionalLights[ i ]; - getDirectionalLightInfo( directionalLight, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) - directionalLightShadow = directionalLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) - RectAreaLight rectAreaLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { - rectAreaLight = rectAreaLights[ i ]; - RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if defined( RE_IndirectDiffuse ) - vec3 iblIrradiance = vec3( 0.0 ); - vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); - #if defined( USE_LIGHT_PROBES ) - irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); - #endif - #if ( NUM_HEMI_LIGHTS > 0 ) - #pragma unroll_loop_start - for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { - irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); - } - #pragma unroll_loop_end - #endif -#endif -#if defined( RE_IndirectSpecular ) - vec3 radiance = vec3( 0.0 ); - vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,Ryt=`#if defined( RE_IndirectDiffuse ) - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; - irradiance += lightMapIrradiance; - #endif - #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) - iblIrradiance += getIBLIrradiance( geometryNormal ); - #endif -#endif -#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) - #ifdef USE_ANISOTROPY - radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); - #else - radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); - #endif - #ifdef USE_CLEARCOAT - clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); - #endif -#endif`,Ayt=`#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`,Myt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) - gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,Nyt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) - uniform float logDepthBufFC; - varying float vFragDepth; - varying float vIsPerspective; -#endif`,Oyt=`#ifdef USE_LOGDEPTHBUF - #ifdef USE_LOGDEPTHBUF_EXT - varying float vFragDepth; - varying float vIsPerspective; - #else - uniform float logDepthBufFC; - #endif -#endif`,Iyt=`#ifdef USE_LOGDEPTHBUF - #ifdef USE_LOGDEPTHBUF_EXT - vFragDepth = 1.0 + gl_Position.w; - vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); - #else - if ( isPerspectiveMatrix( projectionMatrix ) ) { - gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0; - gl_Position.z *= gl_Position.w; - } - #endif -#endif`,kyt=`#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`,Dyt=`#ifdef USE_MAP - uniform sampler2D map; -#endif`,Lyt=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - #if defined( USE_POINTS_UV ) - vec2 uv = vUv; - #else - vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; - #endif -#endif -#ifdef USE_MAP - diffuseColor *= texture2D( map, uv ); -#endif -#ifdef USE_ALPHAMAP - diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,Pyt=`#if defined( USE_POINTS_UV ) - varying vec2 vUv; -#else - #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - uniform mat3 uvTransform; - #endif -#endif -#ifdef USE_MAP - uniform sampler2D map; -#endif -#ifdef USE_ALPHAMAP - uniform sampler2D alphaMap; -#endif`,Fyt=`float metalnessFactor = metalness; -#ifdef USE_METALNESSMAP - vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); - metalnessFactor *= texelMetalness.b; -#endif`,Uyt=`#ifdef USE_METALNESSMAP - uniform sampler2D metalnessMap; -#endif`,Byt=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) - vColor *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - #if defined( USE_COLOR_ALPHA ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; - #elif defined( USE_COLOR ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; - #endif - } -#endif`,Gyt=`#ifdef USE_MORPHNORMALS - objectNormal *= morphTargetBaseInfluence; - #ifdef MORPHTARGETS_TEXTURE - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; - } - #else - objectNormal += morphNormal0 * morphTargetInfluences[ 0 ]; - objectNormal += morphNormal1 * morphTargetInfluences[ 1 ]; - objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; - objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; - #endif -#endif`,Vyt=`#ifdef USE_MORPHTARGETS - uniform float morphTargetBaseInfluence; - #ifdef MORPHTARGETS_TEXTURE - uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - uniform sampler2DArray morphTargetsTexture; - uniform ivec2 morphTargetsTextureSize; - vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { - int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; - int y = texelIndex / morphTargetsTextureSize.x; - int x = texelIndex - y * morphTargetsTextureSize.x; - ivec3 morphUV = ivec3( x, y, morphTargetIndex ); - return texelFetch( morphTargetsTexture, morphUV, 0 ); - } - #else - #ifndef USE_MORPHNORMALS - uniform float morphTargetInfluences[ 8 ]; - #else - uniform float morphTargetInfluences[ 4 ]; - #endif - #endif -#endif`,zyt=`#ifdef USE_MORPHTARGETS - transformed *= morphTargetBaseInfluence; - #ifdef MORPHTARGETS_TEXTURE - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; - } - #else - transformed += morphTarget0 * morphTargetInfluences[ 0 ]; - transformed += morphTarget1 * morphTargetInfluences[ 1 ]; - transformed += morphTarget2 * morphTargetInfluences[ 2 ]; - transformed += morphTarget3 * morphTargetInfluences[ 3 ]; - #ifndef USE_MORPHNORMALS - transformed += morphTarget4 * morphTargetInfluences[ 4 ]; - transformed += morphTarget5 * morphTargetInfluences[ 5 ]; - transformed += morphTarget6 * morphTargetInfluences[ 6 ]; - transformed += morphTarget7 * morphTargetInfluences[ 7 ]; - #endif - #endif -#endif`,Hyt=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; -#ifdef FLAT_SHADED - vec3 fdx = dFdx( vViewPosition ); - vec3 fdy = dFdy( vViewPosition ); - vec3 normal = normalize( cross( fdx, fdy ) ); -#else - vec3 normal = normalize( vNormal ); - #ifdef DOUBLE_SIDED - normal *= faceDirection; - #endif -#endif -#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) - #ifdef USE_TANGENT - mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn = getTangentFrame( - vViewPosition, normal, - #if defined( USE_NORMALMAP ) - vNormalMapUv - #elif defined( USE_CLEARCOAT_NORMALMAP ) - vClearcoatNormalMapUv - #else - vUv - #endif - ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn[0] *= faceDirection; - tbn[1] *= faceDirection; - #endif -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - #ifdef USE_TANGENT - mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn2[0] *= faceDirection; - tbn2[1] *= faceDirection; - #endif -#endif -vec3 nonPerturbedNormal = normal;`,qyt=`#ifdef USE_NORMALMAP_OBJECTSPACE - normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - #ifdef FLIP_SIDED - normal = - normal; - #endif - #ifdef DOUBLE_SIDED - normal = normal * faceDirection; - #endif - normal = normalize( normalMatrix * normal ); -#elif defined( USE_NORMALMAP_TANGENTSPACE ) - vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - mapN.xy *= normalScale; - normal = normalize( tbn * mapN ); -#elif defined( USE_BUMPMAP ) - normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,Yyt=`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,$yt=`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,Wyt=`#ifndef FLAT_SHADED - vNormal = normalize( transformedNormal ); - #ifdef USE_TANGENT - vTangent = normalize( transformedTangent ); - vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); - #endif -#endif`,Kyt=`#ifdef USE_NORMALMAP - uniform sampler2D normalMap; - uniform vec2 normalScale; -#endif -#ifdef USE_NORMALMAP_OBJECTSPACE - uniform mat3 normalMatrix; -#endif -#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) - mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { - vec3 q0 = dFdx( eye_pos.xyz ); - vec3 q1 = dFdy( eye_pos.xyz ); - vec2 st0 = dFdx( uv.st ); - vec2 st1 = dFdy( uv.st ); - vec3 N = surf_norm; - vec3 q1perp = cross( q1, N ); - vec3 q0perp = cross( N, q0 ); - vec3 T = q1perp * st0.x + q0perp * st1.x; - vec3 B = q1perp * st0.y + q0perp * st1.y; - float det = max( dot( T, T ), dot( B, B ) ); - float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); - return mat3( T * scale, B * scale, N ); - } -#endif`,jyt=`#ifdef USE_CLEARCOAT - vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,Qyt=`#ifdef USE_CLEARCOAT_NORMALMAP - vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; - clearcoatMapN.xy *= clearcoatNormalScale; - clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,Xyt=`#ifdef USE_CLEARCOATMAP - uniform sampler2D clearcoatMap; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform sampler2D clearcoatNormalMap; - uniform vec2 clearcoatNormalScale; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform sampler2D clearcoatRoughnessMap; -#endif`,Zyt=`#ifdef USE_IRIDESCENCEMAP - uniform sampler2D iridescenceMap; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform sampler2D iridescenceThicknessMap; -#endif`,Jyt=`#ifdef OPAQUE -diffuseColor.a = 1.0; -#endif -#ifdef USE_TRANSMISSION -diffuseColor.a *= material.transmissionAlpha; -#endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,eEt=`vec3 packNormalToRGB( const in vec3 normal ) { - return normalize( normal ) * 0.5 + 0.5; -} -vec3 unpackRGBToNormal( const in vec3 rgb ) { - return 2.0 * rgb.xyz - 1.0; -} -const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.; -const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. ); -const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. ); -const float ShiftRight8 = 1. / 256.; -vec4 packDepthToRGBA( const in float v ) { - vec4 r = vec4( fract( v * PackFactors ), v ); - r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale; -} -float unpackRGBAToDepth( const in vec4 v ) { - return dot( v, UnpackFactors ); -} -vec2 packDepthToRG( in highp float v ) { - return packDepthToRGBA( v ).yx; -} -float unpackRGToDepth( const in highp vec2 v ) { - return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) ); -} -vec4 pack2HalfToRGBA( vec2 v ) { - vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); - return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); -} -vec2 unpackRGBATo2Half( vec4 v ) { - return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); -} -float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { - return ( viewZ + near ) / ( near - far ); -} -float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { - return depth * ( near - far ) - near; -} -float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { - return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); -} -float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { - return ( near * far ) / ( ( far - near ) * depth - far ); -}`,tEt=`#ifdef PREMULTIPLIED_ALPHA - gl_FragColor.rgb *= gl_FragColor.a; -#endif`,nEt=`vec4 mvPosition = vec4( transformed, 1.0 ); -#ifdef USE_BATCHING - mvPosition = batchingMatrix * mvPosition; -#endif -#ifdef USE_INSTANCING - mvPosition = instanceMatrix * mvPosition; -#endif -mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,sEt=`#ifdef DITHERING - gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,rEt=`#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`,iEt=`float roughnessFactor = roughness; -#ifdef USE_ROUGHNESSMAP - vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); - roughnessFactor *= texelRoughness.g; -#endif`,oEt=`#ifdef USE_ROUGHNESSMAP - uniform sampler2D roughnessMap; -#endif`,aEt=`#if NUM_SPOT_LIGHT_COORDS > 0 - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#if NUM_SPOT_LIGHT_MAPS > 0 - uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; - struct SpotLightShadow { - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif - float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { - return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); - } - vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { - return unpackRGBATo2Half( texture2D( shadow, uv ) ); - } - float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ - float occlusion = 1.0; - vec2 distribution = texture2DDistribution( shadow, uv ); - float hard_shadow = step( compare , distribution.x ); - if (hard_shadow != 1.0 ) { - float distance = compare - distribution.x ; - float variance = max( 0.00000, distribution.y * distribution.y ); - float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); - } - return occlusion; - } - float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - shadowCoord.z += shadowBias; - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - #if defined( SHADOWMAP_TYPE_PCF ) - vec2 texelSize = vec2( 1.0 ) / shadowMapSize; - float dx0 = - texelSize.x * shadowRadius; - float dy0 = - texelSize.y * shadowRadius; - float dx1 = + texelSize.x * shadowRadius; - float dy1 = + texelSize.y * shadowRadius; - float dx2 = dx0 / 2.0; - float dy2 = dy0 / 2.0; - float dx3 = dx1 / 2.0; - float dy3 = dy1 / 2.0; - shadow = ( - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) - ) * ( 1.0 / 17.0 ); - #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) - vec2 texelSize = vec2( 1.0 ) / shadowMapSize; - float dx = texelSize.x; - float dy = texelSize.y; - vec2 uv = shadowCoord.xy; - vec2 f = fract( uv * shadowMapSize + 0.5 ); - uv -= f * texelSize; - shadow = ( - texture2DCompare( shadowMap, uv, shadowCoord.z ) + - texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + - texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + - mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), - f.x ) + - mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), - f.x ) + - mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), - f.y ) + - mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), - f.y ) + - mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), - f.x ), - mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), - f.x ), - f.y ) - ) * ( 1.0 / 9.0 ); - #elif defined( SHADOWMAP_TYPE_VSM ) - shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); - #else - shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); - #endif - } - return shadow; - } - vec2 cubeToUV( vec3 v, float texelSizeY ) { - vec3 absV = abs( v ); - float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); - absV *= scaleToCube; - v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); - vec2 planar = v.xy; - float almostATexel = 1.5 * texelSizeY; - float almostOne = 1.0 - almostATexel; - if ( absV.z >= almostOne ) { - if ( v.z > 0.0 ) - planar.x = 4.0 - v.x; - } else if ( absV.x >= almostOne ) { - float signX = sign( v.x ); - planar.x = v.z * signX + 2.0 * signX; - } else if ( absV.y >= almostOne ) { - float signY = sign( v.y ); - planar.x = v.x + 2.0 * signY + 2.0; - planar.y = v.z * signY - 2.0; - } - return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); - } - float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { - vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); - vec3 lightToPosition = shadowCoord.xyz; - float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; - vec3 bd3D = normalize( lightToPosition ); - #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) - vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; - return ( - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) - ) * ( 1.0 / 9.0 ); - #else - return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); - #endif - } -#endif`,lEt=`#if NUM_SPOT_LIGHT_COORDS > 0 - uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - struct SpotLightShadow { - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif -#endif`,cEt=`#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 -#if defined( USE_SHADOWMAP ) - #if NUM_DIR_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); - vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); - vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif -#endif -#if NUM_SPOT_LIGHT_COORDS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { - shadowWorldPosition = worldPosition; - #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; - #endif - vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end -#endif`,dEt=`float getShadowMask() { - float shadow = 1.0; - #ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - directionalLight = directionalLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { - spotLight = spotLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - pointLight = pointLightShadows[ i ]; - shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; - } - #pragma unroll_loop_end - #endif - #endif - return shadow; -}`,uEt=`#ifdef USE_SKINNING - mat4 boneMatX = getBoneMatrix( skinIndex.x ); - mat4 boneMatY = getBoneMatrix( skinIndex.y ); - mat4 boneMatZ = getBoneMatrix( skinIndex.z ); - mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,pEt=`#ifdef USE_SKINNING - uniform mat4 bindMatrix; - uniform mat4 bindMatrixInverse; - uniform highp sampler2D boneTexture; - mat4 getBoneMatrix( const in float i ) { - int size = textureSize( boneTexture, 0 ).x; - int j = int( i ) * 4; - int x = j % size; - int y = j / size; - vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); - vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); - vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); - vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); - return mat4( v1, v2, v3, v4 ); - } -#endif`,fEt=`#ifdef USE_SKINNING - vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); - vec4 skinned = vec4( 0.0 ); - skinned += boneMatX * skinVertex * skinWeight.x; - skinned += boneMatY * skinVertex * skinWeight.y; - skinned += boneMatZ * skinVertex * skinWeight.z; - skinned += boneMatW * skinVertex * skinWeight.w; - transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,_Et=`#ifdef USE_SKINNING - mat4 skinMatrix = mat4( 0.0 ); - skinMatrix += skinWeight.x * boneMatX; - skinMatrix += skinWeight.y * boneMatY; - skinMatrix += skinWeight.z * boneMatZ; - skinMatrix += skinWeight.w * boneMatW; - skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; - objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; - #ifdef USE_TANGENT - objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; - #endif -#endif`,mEt=`float specularStrength; -#ifdef USE_SPECULARMAP - vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); - specularStrength = texelSpecular.r; -#else - specularStrength = 1.0; -#endif`,hEt=`#ifdef USE_SPECULARMAP - uniform sampler2D specularMap; -#endif`,gEt=`#if defined( TONE_MAPPING ) - gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,bEt=`#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -uniform float toneMappingExposure; -vec3 LinearToneMapping( vec3 color ) { - return saturate( toneMappingExposure * color ); -} -vec3 ReinhardToneMapping( vec3 color ) { - color *= toneMappingExposure; - return saturate( color / ( vec3( 1.0 ) + color ) ); -} -vec3 OptimizedCineonToneMapping( vec3 color ) { - color *= toneMappingExposure; - color = max( vec3( 0.0 ), color - 0.004 ); - return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); -} -vec3 RRTAndODTFit( vec3 v ) { - vec3 a = v * ( v + 0.0245786 ) - 0.000090537; - vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; - return a / b; -} -vec3 ACESFilmicToneMapping( vec3 color ) { - const mat3 ACESInputMat = mat3( - vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), - vec3( 0.04823, 0.01566, 0.83777 ) - ); - const mat3 ACESOutputMat = mat3( - vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), - vec3( -0.07367, -0.00605, 1.07602 ) - ); - color *= toneMappingExposure / 0.6; - color = ACESInputMat * color; - color = RRTAndODTFit( color ); - color = ACESOutputMat * color; - return saturate( color ); -} -vec3 CustomToneMapping( vec3 color ) { return color; }`,yEt=`#ifdef USE_TRANSMISSION - material.transmission = transmission; - material.transmissionAlpha = 1.0; - material.thickness = thickness; - material.attenuationDistance = attenuationDistance; - material.attenuationColor = attenuationColor; - #ifdef USE_TRANSMISSIONMAP - material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; - #endif - #ifdef USE_THICKNESSMAP - material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; - #endif - vec3 pos = vWorldPosition; - vec3 v = normalize( cameraPosition - pos ); - vec3 n = inverseTransformDirection( normal, viewMatrix ); - vec4 transmitted = getIBLVolumeRefraction( - n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, - pos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness, - material.attenuationColor, material.attenuationDistance ); - material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); - totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,EEt=`#ifdef USE_TRANSMISSION - uniform float transmission; - uniform float thickness; - uniform float attenuationDistance; - uniform vec3 attenuationColor; - #ifdef USE_TRANSMISSIONMAP - uniform sampler2D transmissionMap; - #endif - #ifdef USE_THICKNESSMAP - uniform sampler2D thicknessMap; - #endif - uniform vec2 transmissionSamplerSize; - uniform sampler2D transmissionSamplerMap; - uniform mat4 modelMatrix; - uniform mat4 projectionMatrix; - varying vec3 vWorldPosition; - float w0( float a ) { - return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); - } - float w1( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); - } - float w2( float a ){ - return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); - } - float w3( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * a ); - } - float g0( float a ) { - return w0( a ) + w1( a ); - } - float g1( float a ) { - return w2( a ) + w3( a ); - } - float h0( float a ) { - return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); - } - float h1( float a ) { - return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); - } - vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { - uv = uv * texelSize.zw + 0.5; - vec2 iuv = floor( uv ); - vec2 fuv = fract( uv ); - float g0x = g0( fuv.x ); - float g1x = g1( fuv.x ); - float h0x = h0( fuv.x ); - float h1x = h1( fuv.x ); - float h0y = h0( fuv.y ); - float h1y = h1( fuv.y ); - vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + - g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); - } - vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { - vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); - vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); - vec2 fLodSizeInv = 1.0 / fLodSize; - vec2 cLodSizeInv = 1.0 / cLodSize; - vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); - vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); - return mix( fSample, cSample, fract( lod ) ); - } - vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { - vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); - vec3 modelScale; - modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); - modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); - modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); - return normalize( refractionVector ) * thickness * modelScale; - } - float applyIorToRoughness( const in float roughness, const in float ior ) { - return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); - } - vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { - float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); - return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); - } - vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { - if ( isinf( attenuationDistance ) ) { - return vec3( 1.0 ); - } else { - vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; - vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; - } - } - vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, - const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, - const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness, - const in vec3 attenuationColor, const in float attenuationDistance ) { - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); - vec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); - vec3 attenuatedColor = transmittance * transmittedLight.rgb; - vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); - float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; - return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); - } -#endif`,vEt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - varying vec2 vNormalMapUv; -#endif -#ifdef USE_EMISSIVEMAP - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_SPECULARMAP - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,SEt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - uniform mat3 mapTransform; - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - uniform mat3 alphaMapTransform; - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - uniform mat3 lightMapTransform; - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - uniform mat3 aoMapTransform; - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - uniform mat3 bumpMapTransform; - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - uniform mat3 normalMapTransform; - varying vec2 vNormalMapUv; -#endif -#ifdef USE_DISPLACEMENTMAP - uniform mat3 displacementMapTransform; - varying vec2 vDisplacementMapUv; -#endif -#ifdef USE_EMISSIVEMAP - uniform mat3 emissiveMapTransform; - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - uniform mat3 metalnessMapTransform; - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - uniform mat3 roughnessMapTransform; - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - uniform mat3 anisotropyMapTransform; - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - uniform mat3 clearcoatMapTransform; - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform mat3 clearcoatNormalMapTransform; - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform mat3 clearcoatRoughnessMapTransform; - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - uniform mat3 sheenColorMapTransform; - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - uniform mat3 sheenRoughnessMapTransform; - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - uniform mat3 iridescenceMapTransform; - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform mat3 iridescenceThicknessMapTransform; - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SPECULARMAP - uniform mat3 specularMapTransform; - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - uniform mat3 specularColorMapTransform; - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - uniform mat3 specularIntensityMapTransform; - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,TEt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - vUv = vec3( uv, 1 ).xy; -#endif -#ifdef USE_MAP - vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ALPHAMAP - vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_LIGHTMAP - vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_AOMAP - vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_BUMPMAP - vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_NORMALMAP - vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_DISPLACEMENTMAP - vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_EMISSIVEMAP - vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_METALNESSMAP - vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ROUGHNESSMAP - vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ANISOTROPYMAP - vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOATMAP - vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCEMAP - vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_COLORMAP - vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULARMAP - vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_COLORMAP - vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_TRANSMISSIONMAP - vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_THICKNESSMAP - vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,xEt=`#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; - #endif - #ifdef USE_INSTANCING - worldPosition = instanceMatrix * worldPosition; - #endif - worldPosition = modelMatrix * worldPosition; -#endif`;const CEt=`varying vec2 vUv; -uniform mat3 uvTransform; -void main() { - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,wEt=`uniform sampler2D t2D; -uniform float backgroundIntensity; -varying vec2 vUv; -void main() { - vec4 texColor = texture2D( t2D, vUv ); - #ifdef DECODE_VIDEO_TEXTURE - texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,REt=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,AEt=`#ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; -#elif defined( ENVMAP_TYPE_CUBE_UV ) - uniform sampler2D envMap; -#endif -uniform float flipEnvMap; -uniform float backgroundBlurriness; -uniform float backgroundIntensity; -varying vec3 vWorldDirection; -#include -void main() { - #ifdef ENVMAP_TYPE_CUBE - vec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); - #elif defined( ENVMAP_TYPE_CUBE_UV ) - vec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness ); - #else - vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,MEt=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,NEt=`uniform samplerCube tCube; -uniform float tFlip; -uniform float opacity; -varying vec3 vWorldDirection; -void main() { - vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); - gl_FragColor = texColor; - gl_FragColor.a *= opacity; - #include - #include -}`,OEt=`#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vHighPrecisionZW = gl_Position.zw; -}`,IEt=`#if DEPTH_PACKING == 3200 - uniform float opacity; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - #include - vec4 diffuseColor = vec4( 1.0 ); - #if DEPTH_PACKING == 3200 - diffuseColor.a = opacity; - #endif - #include - #include - #include - #include - #include - float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; - #if DEPTH_PACKING == 3200 - gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); - #elif DEPTH_PACKING == 3201 - gl_FragColor = packDepthToRGBA( fragCoordZ ); - #endif -}`,kEt=`#define DISTANCE -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vWorldPosition = worldPosition.xyz; -}`,DEt=`#define DISTANCE -uniform vec3 referencePosition; -uniform float nearDistance; -uniform float farDistance; -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -#include -void main () { - #include - vec4 diffuseColor = vec4( 1.0 ); - #include - #include - #include - #include - float dist = length( vWorldPosition - referencePosition ); - dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); - dist = saturate( dist ); - gl_FragColor = packDepthToRGBA( dist ); -}`,LEt=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include -}`,PEt=`uniform sampler2D tEquirect; -varying vec3 vWorldDirection; -#include -void main() { - vec3 direction = normalize( vWorldDirection ); - vec2 sampleUV = equirectUv( direction ); - gl_FragColor = texture2D( tEquirect, sampleUV ); - #include - #include -}`,FEt=`uniform float scale; -attribute float lineDistance; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vLineDistance = scale * lineDistance; - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,UEt=`uniform vec3 diffuse; -uniform float opacity; -uniform float dashSize; -uniform float totalSize; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - if ( mod( vLineDistance, totalSize ) > dashSize ) { - discard; - } - vec3 outgoingLight = vec3( 0.0 ); - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,BEt=`#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) - #include - #include - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,GEt=`uniform vec3 diffuse; -uniform float opacity; -#ifndef FLAT_SHADED - varying vec3 vNormal; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; - #else - reflectedLight.indirectDiffuse += vec3( 1.0 ); - #endif - #include - reflectedLight.indirectDiffuse *= diffuseColor.rgb; - vec3 outgoingLight = reflectedLight.indirectDiffuse; - #include - #include - #include - #include - #include - #include - #include -}`,VEt=`#define LAMBERT -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,zEt=`#define LAMBERT -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - vec4 diffuseColor = vec4( diffuse, opacity ); - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,HEt=`#define MATCAP -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; -}`,qEt=`#define MATCAP -uniform vec3 diffuse; -uniform float opacity; -uniform sampler2D matcap; -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - vec3 viewDir = normalize( vViewPosition ); - vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); - vec3 y = cross( viewDir, x ); - vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; - #ifdef USE_MATCAP - vec4 matcapColor = texture2D( matcap, uv ); - #else - vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); - #endif - vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; - #include - #include - #include - #include - #include - #include -}`,YEt=`#define NORMAL -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - vViewPosition = - mvPosition.xyz; -#endif -}`,$Et=`#define NORMAL -uniform float opacity; -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - gl_FragColor = vec4( packNormalToRGB( normal ), opacity ); - #ifdef OPAQUE - gl_FragColor.a = 1.0; - #endif -}`,WEt=`#define PHONG -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,KEt=`#define PHONG -uniform vec3 diffuse; -uniform vec3 emissive; -uniform vec3 specular; -uniform float shininess; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - vec4 diffuseColor = vec4( diffuse, opacity ); - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,jEt=`#define STANDARD -varying vec3 vViewPosition; -#ifdef USE_TRANSMISSION - varying vec3 vWorldPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -#ifdef USE_TRANSMISSION - vWorldPosition = worldPosition.xyz; -#endif -}`,QEt=`#define STANDARD -#ifdef PHYSICAL - #define IOR - #define USE_SPECULAR -#endif -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float roughness; -uniform float metalness; -uniform float opacity; -#ifdef IOR - uniform float ior; -#endif -#ifdef USE_SPECULAR - uniform float specularIntensity; - uniform vec3 specularColor; - #ifdef USE_SPECULAR_COLORMAP - uniform sampler2D specularColorMap; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - uniform sampler2D specularIntensityMap; - #endif -#endif -#ifdef USE_CLEARCOAT - uniform float clearcoat; - uniform float clearcoatRoughness; -#endif -#ifdef USE_IRIDESCENCE - uniform float iridescence; - uniform float iridescenceIOR; - uniform float iridescenceThicknessMinimum; - uniform float iridescenceThicknessMaximum; -#endif -#ifdef USE_SHEEN - uniform vec3 sheenColor; - uniform float sheenRoughness; - #ifdef USE_SHEEN_COLORMAP - uniform sampler2D sheenColorMap; - #endif - #ifdef USE_SHEEN_ROUGHNESSMAP - uniform sampler2D sheenRoughnessMap; - #endif -#endif -#ifdef USE_ANISOTROPY - uniform vec2 anisotropyVector; - #ifdef USE_ANISOTROPYMAP - uniform sampler2D anisotropyMap; - #endif -#endif -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - vec4 diffuseColor = vec4( diffuse, opacity ); - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; - vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; - #include - vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; - #ifdef USE_SHEEN - float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); - outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; - #endif - #ifdef USE_CLEARCOAT - float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); - vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); - outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; - #endif - #include - #include - #include - #include - #include - #include -}`,XEt=`#define TOON -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -}`,ZEt=`#define TOON -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - vec4 diffuseColor = vec4( diffuse, opacity ); - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include -}`,JEt=`uniform float size; -uniform float scale; -#include -#include -#include -#include -#include -#include -#ifdef USE_POINTS_UV - varying vec2 vUv; - uniform mat3 uvTransform; -#endif -void main() { - #ifdef USE_POINTS_UV - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - #endif - #include - #include - #include - #include - #include - gl_PointSize = size; - #ifdef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); - #endif - #include - #include - #include - #include -}`,evt=`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - vec3 outgoingLight = vec3( 0.0 ); - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,tvt=`#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,nvt=`uniform vec3 color; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); - #include - #include - #include -}`,svt=`uniform float rotation; -uniform vec2 center; -#include -#include -#include -#include -#include -void main() { - #include - vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); - vec2 scale; - scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); - scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); - #ifndef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) scale *= - mvPosition.z; - #endif - vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; - vec2 rotatedPosition; - rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; - rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; - mvPosition.xy += rotatedPosition; - gl_Position = projectionMatrix * mvPosition; - #include - #include - #include -}`,rvt=`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - vec3 outgoingLight = vec3( 0.0 ); - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include -}`,vt={alphahash_fragment:w0t,alphahash_pars_fragment:R0t,alphamap_fragment:A0t,alphamap_pars_fragment:M0t,alphatest_fragment:N0t,alphatest_pars_fragment:O0t,aomap_fragment:I0t,aomap_pars_fragment:k0t,batching_pars_vertex:D0t,batching_vertex:L0t,begin_vertex:P0t,beginnormal_vertex:F0t,bsdfs:U0t,iridescence_fragment:B0t,bumpmap_pars_fragment:G0t,clipping_planes_fragment:V0t,clipping_planes_pars_fragment:z0t,clipping_planes_pars_vertex:H0t,clipping_planes_vertex:q0t,color_fragment:Y0t,color_pars_fragment:$0t,color_pars_vertex:W0t,color_vertex:K0t,common:j0t,cube_uv_reflection_fragment:Q0t,defaultnormal_vertex:X0t,displacementmap_pars_vertex:Z0t,displacementmap_vertex:J0t,emissivemap_fragment:eyt,emissivemap_pars_fragment:tyt,colorspace_fragment:nyt,colorspace_pars_fragment:syt,envmap_fragment:ryt,envmap_common_pars_fragment:iyt,envmap_pars_fragment:oyt,envmap_pars_vertex:ayt,envmap_physical_pars_fragment:yyt,envmap_vertex:lyt,fog_vertex:cyt,fog_pars_vertex:dyt,fog_fragment:uyt,fog_pars_fragment:pyt,gradientmap_pars_fragment:fyt,lightmap_fragment:_yt,lightmap_pars_fragment:myt,lights_lambert_fragment:hyt,lights_lambert_pars_fragment:gyt,lights_pars_begin:byt,lights_toon_fragment:Eyt,lights_toon_pars_fragment:vyt,lights_phong_fragment:Syt,lights_phong_pars_fragment:Tyt,lights_physical_fragment:xyt,lights_physical_pars_fragment:Cyt,lights_fragment_begin:wyt,lights_fragment_maps:Ryt,lights_fragment_end:Ayt,logdepthbuf_fragment:Myt,logdepthbuf_pars_fragment:Nyt,logdepthbuf_pars_vertex:Oyt,logdepthbuf_vertex:Iyt,map_fragment:kyt,map_pars_fragment:Dyt,map_particle_fragment:Lyt,map_particle_pars_fragment:Pyt,metalnessmap_fragment:Fyt,metalnessmap_pars_fragment:Uyt,morphcolor_vertex:Byt,morphnormal_vertex:Gyt,morphtarget_pars_vertex:Vyt,morphtarget_vertex:zyt,normal_fragment_begin:Hyt,normal_fragment_maps:qyt,normal_pars_fragment:Yyt,normal_pars_vertex:$yt,normal_vertex:Wyt,normalmap_pars_fragment:Kyt,clearcoat_normal_fragment_begin:jyt,clearcoat_normal_fragment_maps:Qyt,clearcoat_pars_fragment:Xyt,iridescence_pars_fragment:Zyt,opaque_fragment:Jyt,packing:eEt,premultiplied_alpha_fragment:tEt,project_vertex:nEt,dithering_fragment:sEt,dithering_pars_fragment:rEt,roughnessmap_fragment:iEt,roughnessmap_pars_fragment:oEt,shadowmap_pars_fragment:aEt,shadowmap_pars_vertex:lEt,shadowmap_vertex:cEt,shadowmask_pars_fragment:dEt,skinbase_vertex:uEt,skinning_pars_vertex:pEt,skinning_vertex:fEt,skinnormal_vertex:_Et,specularmap_fragment:mEt,specularmap_pars_fragment:hEt,tonemapping_fragment:gEt,tonemapping_pars_fragment:bEt,transmission_fragment:yEt,transmission_pars_fragment:EEt,uv_pars_fragment:vEt,uv_pars_vertex:SEt,uv_vertex:TEt,worldpos_vertex:xEt,background_vert:CEt,background_frag:wEt,backgroundCube_vert:REt,backgroundCube_frag:AEt,cube_vert:MEt,cube_frag:NEt,depth_vert:OEt,depth_frag:IEt,distanceRGBA_vert:kEt,distanceRGBA_frag:DEt,equirect_vert:LEt,equirect_frag:PEt,linedashed_vert:FEt,linedashed_frag:UEt,meshbasic_vert:BEt,meshbasic_frag:GEt,meshlambert_vert:VEt,meshlambert_frag:zEt,meshmatcap_vert:HEt,meshmatcap_frag:qEt,meshnormal_vert:YEt,meshnormal_frag:$Et,meshphong_vert:WEt,meshphong_frag:KEt,meshphysical_vert:jEt,meshphysical_frag:QEt,meshtoon_vert:XEt,meshtoon_frag:ZEt,points_vert:JEt,points_frag:evt,shadow_vert:tvt,shadow_frag:nvt,sprite_vert:svt,sprite_frag:rvt},$e={common:{diffuse:{value:new pt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Tt}},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 Tt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Tt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Tt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Tt},normalScale:{value:new Rt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Tt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Tt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Tt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Tt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new pt(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 pt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0},uvTransform:{value:new Tt}},sprite:{diffuse:{value:new pt(16777215)},opacity:{value:1},center:{value:new Rt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}}},Zs={basic:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.fog]),vertexShader:vt.meshbasic_vert,fragmentShader:vt.meshbasic_frag},lambert:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:vt.meshlambert_vert,fragmentShader:vt.meshlambert_frag},phong:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},specular:{value:new pt(1118481)},shininess:{value:30}}]),vertexShader:vt.meshphong_vert,fragmentShader:vt.meshphong_frag},standard:{uniforms:Fn([$e.common,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.roughnessmap,$e.metalnessmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:vt.meshphysical_vert,fragmentShader:vt.meshphysical_frag},toon:{uniforms:Fn([$e.common,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.gradientmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:vt.meshtoon_vert,fragmentShader:vt.meshtoon_frag},matcap:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,{matcap:{value:null}}]),vertexShader:vt.meshmatcap_vert,fragmentShader:vt.meshmatcap_frag},points:{uniforms:Fn([$e.points,$e.fog]),vertexShader:vt.points_vert,fragmentShader:vt.points_frag},dashed:{uniforms:Fn([$e.common,$e.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:vt.linedashed_vert,fragmentShader:vt.linedashed_frag},depth:{uniforms:Fn([$e.common,$e.displacementmap]),vertexShader:vt.depth_vert,fragmentShader:vt.depth_frag},normal:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,{opacity:{value:1}}]),vertexShader:vt.meshnormal_vert,fragmentShader:vt.meshnormal_frag},sprite:{uniforms:Fn([$e.sprite,$e.fog]),vertexShader:vt.sprite_vert,fragmentShader:vt.sprite_frag},background:{uniforms:{uvTransform:{value:new Tt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:vt.background_vert,fragmentShader:vt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:vt.backgroundCube_vert,fragmentShader:vt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:vt.cube_vert,fragmentShader:vt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:vt.equirect_vert,fragmentShader:vt.equirect_frag},distanceRGBA:{uniforms:Fn([$e.common,$e.displacementmap,{referencePosition:{value:new ie},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:vt.distanceRGBA_vert,fragmentShader:vt.distanceRGBA_frag},shadow:{uniforms:Fn([$e.lights,$e.fog,{color:{value:new pt(0)},opacity:{value:1}}]),vertexShader:vt.shadow_vert,fragmentShader:vt.shadow_frag}};Zs.physical={uniforms:Fn([Zs.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Tt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Tt},clearcoatNormalScale:{value:new Rt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Tt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Tt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Tt},sheen:{value:0},sheenColor:{value:new pt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Tt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Tt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Tt},transmissionSamplerSize:{value:new Rt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Tt},attenuationDistance:{value:0},attenuationColor:{value:new pt(0)},specularColor:{value:new pt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Tt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Tt},anisotropyVector:{value:new Rt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Tt}}]),vertexShader:vt.meshphysical_vert,fragmentShader:vt.meshphysical_frag};const cd={r:0,b:0,g:0};function ivt(n,e,t,s,r,i,o){const a=new pt(0);let c=i===!0?0:1,d,u,_=null,m=0,h=null;function f(b,g){let E=!1,v=g.isScene===!0?g.background:null;v&&v.isTexture&&(v=(g.backgroundBlurriness>0?t:e).get(v)),v===null?y(a,c):v&&v.isColor&&(y(v,1),E=!0);const S=n.xr.getEnvironmentBlendMode();S==="additive"?s.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&s.buffers.color.setClear(0,0,0,0,o),(n.autoClear||E)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),v&&(v.isCubeTexture||v.mapping===_p)?(u===void 0&&(u=new Vn(new Ei(1,1,1),new ho({name:"BackgroundCubeMaterial",uniforms:Ca(Zs.backgroundCube.uniforms),vertexShader:Zs.backgroundCube.vertexShader,fragmentShader:Zs.backgroundCube.fragmentShader,side:Zn,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(R,w,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(u)),u.material.uniforms.envMap.value=v,u.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,u.material.toneMapped=Lt.getTransfer(v.colorSpace)!==jt,(_!==v||m!==v.version||h!==n.toneMapping)&&(u.material.needsUpdate=!0,_=v,m=v.version,h=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):v&&v.isTexture&&(d===void 0&&(d=new Vn(new hy(2,2),new ho({name:"BackgroundMaterial",uniforms:Ca(Zs.background.uniforms),vertexShader:Zs.background.vertexShader,fragmentShader:Zs.background.fragmentShader,side:Fr,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(d)),d.material.uniforms.t2D.value=v,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Lt.getTransfer(v.colorSpace)!==jt,v.matrixAutoUpdate===!0&&v.updateMatrix(),d.material.uniforms.uvTransform.value.copy(v.matrix),(_!==v||m!==v.version||h!==n.toneMapping)&&(d.material.needsUpdate=!0,_=v,m=v.version,h=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null))}function y(b,g){b.getRGB(cd,tO(n)),s.buffers.color.setClear(cd.r,cd.g,cd.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),c=g,y(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(b){c=b,y(a,c)},render:f}}function ovt(n,e,t,s){const r=n.getParameter(n.MAX_VERTEX_ATTRIBS),i=s.isWebGL2?null:e.get("OES_vertex_array_object"),o=s.isWebGL2||i!==null,a={},c=b(null);let d=c,u=!1;function _(O,H,q,L,W){let se=!1;if(o){const oe=y(L,q,H);d!==oe&&(d=oe,h(d.object)),se=g(O,L,q,W),se&&E(O,L,q,W)}else{const oe=H.wireframe===!0;(d.geometry!==L.id||d.program!==q.id||d.wireframe!==oe)&&(d.geometry=L.id,d.program=q.id,d.wireframe=oe,se=!0)}W!==null&&t.update(W,n.ELEMENT_ARRAY_BUFFER),(se||u)&&(u=!1,I(O,H,q,L),W!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(W).buffer))}function m(){return s.isWebGL2?n.createVertexArray():i.createVertexArrayOES()}function h(O){return s.isWebGL2?n.bindVertexArray(O):i.bindVertexArrayOES(O)}function f(O){return s.isWebGL2?n.deleteVertexArray(O):i.deleteVertexArrayOES(O)}function y(O,H,q){const L=q.wireframe===!0;let W=a[O.id];W===void 0&&(W={},a[O.id]=W);let se=W[H.id];se===void 0&&(se={},W[H.id]=se);let oe=se[L];return oe===void 0&&(oe=b(m()),se[L]=oe),oe}function b(O){const H=[],q=[],L=[];for(let W=0;W=0){const ve=W[xe];let Oe=se[xe];if(Oe===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(Oe=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(Oe=O.instanceColor)),ve===void 0||ve.attribute!==Oe||Oe&&ve.data!==Oe.data)return!0;oe++}return d.attributesNum!==oe||d.index!==L}function E(O,H,q,L){const W={},se=H.attributes;let oe=0;const ye=q.getAttributes();for(const xe in ye)if(ye[xe].location>=0){let ve=se[xe];ve===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(ve=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(ve=O.instanceColor));const Oe={};Oe.attribute=ve,ve&&ve.data&&(Oe.data=ve.data),W[xe]=Oe,oe++}d.attributes=W,d.attributesNum=oe,d.index=L}function v(){const O=d.newAttributes;for(let H=0,q=O.length;H=0){let ce=W[ye];if(ce===void 0&&(ye==="instanceMatrix"&&O.instanceMatrix&&(ce=O.instanceMatrix),ye==="instanceColor"&&O.instanceColor&&(ce=O.instanceColor)),ce!==void 0){const ve=ce.normalized,Oe=ce.itemSize,De=t.get(ce);if(De===void 0)continue;const Q=De.buffer,fe=De.type,_e=De.bytesPerElement,Ae=s.isWebGL2===!0&&(fe===n.INT||fe===n.UNSIGNED_INT||ce.gpuType===FN);if(ce.isInterleavedBufferAttribute){const Ue=ce.data,te=Ue.stride,U=ce.offset;if(Ue.isInstancedInterleavedBuffer){for(let P=0;P0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";A="mediump"}return A==="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 c=i(a);c!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",c,"instead."),a=c);const d=o||e.has("WEBGL_draw_buffers"),u=t.logarithmicDepthBuffer===!0,_=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),m=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=n.getParameter(n.MAX_TEXTURE_SIZE),f=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),y=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),g=n.getParameter(n.MAX_VARYING_VECTORS),E=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),v=m>0,S=o||e.has("OES_texture_float"),R=v&&S,w=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:r,getMaxPrecision:i,precision:a,logarithmicDepthBuffer:u,maxTextures:_,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:f,maxAttributes:y,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:E,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:R,maxSamples:w}}function cvt(n){const e=this;let t=null,s=0,r=!1,i=!1;const o=new zi,a=new Tt,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(_,m){const h=_.length!==0||m||s!==0||r;return r=m,s=_.length,h},this.beginShadows=function(){i=!0,u(null)},this.endShadows=function(){i=!1},this.setGlobalState=function(_,m){t=u(_,m,0)},this.setState=function(_,m,h){const f=_.clippingPlanes,y=_.clipIntersection,b=_.clipShadows,g=n.get(_);if(!r||f===null||f.length===0||i&&!b)i?u(null):d();else{const E=i?0:s,v=E*4;let S=g.clippingState||null;c.value=S,S=u(f,m,v,h);for(let R=0;R!==v;++R)S[R]=t[R];g.clippingState=S,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=E}};function d(){c.value!==t&&(c.value=t,c.needsUpdate=s>0),e.numPlanes=s,e.numIntersection=0}function u(_,m,h,f){const y=_!==null?_.length:0;let b=null;if(y!==0){if(b=c.value,f!==!0||b===null){const g=h+y*4,E=m.matrixWorldInverse;a.getNormalMatrix(E),(b===null||b.length0){const d=new S0t(c.height/2);return d.fromEquirectangularTexture(n,o),e.set(o,d),o.addEventListener("dispose",r),t(d.texture,o.mapping)}else return null}}return o}function r(o){const a=o.target;a.removeEventListener("dispose",r);const c=e.get(a);c!==void 0&&(e.delete(a),c.dispose())}function i(){e=new WeakMap}return{get:s,dispose:i}}class gy extends nO{constructor(e=-1,t=1,s=1,r=-1,i=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=s,this.bottom=r,this.near=i,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,s,r,i,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=s,this.view.offsetY=r,this.view.width=i,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),s=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=s-e,o=s+e,a=r+t,c=r-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=d*this.view.offsetX,o=i+d*this.view.width,a-=u*this.view.offsetY,c=a-u*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,c,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 jo=4,ow=[.125,.215,.35,.446,.526,.582],Wi=20,_g=new gy,aw=new pt;let mg=null,hg=0,gg=0;const Hi=(1+Math.sqrt(5))/2,zo=1/Hi,lw=[new ie(1,1,1),new ie(-1,1,1),new ie(1,1,-1),new ie(-1,1,-1),new ie(0,Hi,zo),new ie(0,Hi,-zo),new ie(zo,0,Hi),new ie(-zo,0,Hi),new ie(Hi,zo,0),new ie(-Hi,zo,0)];class cw{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,s=.1,r=100){mg=this._renderer.getRenderTarget(),hg=this._renderer.getActiveCubeFace(),gg=this._renderer.getActiveMipmapLevel(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,s,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=pw(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=uw(),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),u.setRenderTarget(r),y&&u.render(f,a),u.render(e,a)}f.geometry.dispose(),f.material.dispose(),u.toneMapping=m,u.autoClear=_,e.background=b}_textureToCubeUV(e,t){const s=this._renderer,r=e.mapping===ya||e.mapping===Ea;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=pw()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=uw());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new Vn(this._lodPlanes[0],i),a=i.uniforms;a.envMap.value=e;const c=this._cubeSize;dd(t,0,0,3*c,2*c),s.setRenderTarget(t),s.render(o,_g)}_applyPMREM(e){const t=this._renderer,s=t.autoClear;t.autoClear=!1;for(let r=1;rWi&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Wi}`);const g=[];let E=0;for(let A=0;Av-jo?r-v+jo:0),w=4*(this._cubeSize-S);dd(t,R,w,3*S,2*S),c.setRenderTarget(t),c.render(_,_g)}}function uvt(n){const e=[],t=[],s=[];let r=n;const i=n-jo+1+ow.length;for(let o=0;on-jo?c=ow[o-n+jo-1]:o===0&&(c=0),s.push(c);const d=1/(a-2),u=-d,_=1+d,m=[u,u,_,u,_,_,u,u,_,_,u,_],h=6,f=6,y=3,b=2,g=1,E=new Float32Array(y*f*h),v=new Float32Array(b*f*h),S=new Float32Array(g*f*h);for(let w=0;w2?0:-1,C=[A,I,0,A+2/3,I,0,A+2/3,I+1,0,A,I,0,A+2/3,I+1,0,A,I+1,0];E.set(C,y*f*w),v.set(m,b*f*w);const M=[w,w,w,w,w,w];S.set(M,g*f*w)}const R=new fr;R.setAttribute("position",new zn(E,y)),R.setAttribute("uv",new zn(v,b)),R.setAttribute("faceIndex",new zn(S,g)),e.push(R),r>jo&&r--}return{lodPlanes:e,sizeLods:t,sigmas:s}}function dw(n,e,t){const s=new mo(n,e,t);return s.texture.mapping=_p,s.texture.name="PMREM.cubeUv",s.scissorTest=!0,s}function dd(n,e,t,s,r){n.viewport.set(e,t,s,r),n.scissor.set(e,t,s,r)}function pvt(n,e,t){const s=new Float32Array(Wi),r=new ie(0,1,0);return new ho({name:"SphericalGaussianBlur",defines:{n:Wi,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:s},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:by(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform int samples; - uniform float weights[ n ]; - uniform bool latitudinal; - uniform float dTheta; - uniform float mipInt; - uniform vec3 poleAxis; - - #define ENVMAP_TYPE_CUBE_UV - #include - - vec3 getSample( float theta, vec3 axis ) { - - float cosTheta = cos( theta ); - // Rodrigues' axis-angle rotation - vec3 sampleDirection = vOutputDirection * cosTheta - + cross( axis, vOutputDirection ) * sin( theta ) - + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); - - return bilinearCubeUV( envMap, sampleDirection, mipInt ); - - } - - void main() { - - vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); - - if ( all( equal( axis, vec3( 0.0 ) ) ) ) { - - axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); - - } - - axis = normalize( axis ); - - gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); - - for ( int i = 1; i < n; i++ ) { - - if ( i >= samples ) { - - break; - - } - - float theta = dTheta * float( i ); - gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); - gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); - - } - - } - `,blending:gi,depthTest:!1,depthWrite:!1})}function uw(){return new ho({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:by(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - - #include - - void main() { - - vec3 outputDirection = normalize( vOutputDirection ); - vec2 uv = equirectUv( outputDirection ); - - gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); - - } - `,blending:gi,depthTest:!1,depthWrite:!1})}function pw(){return new ho({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:by(),fragmentShader:` - - precision mediump float; - precision mediump int; - - uniform float flipEnvMap; - - varying vec3 vOutputDirection; - - uniform samplerCube envMap; - - void main() { - - gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); - - } - `,blending:gi,depthTest:!1,depthWrite:!1})}function by(){return` - - precision mediump float; - precision mediump int; - - attribute float faceIndex; - - varying vec3 vOutputDirection; - - // RH coordinate system; PMREM face-indexing convention - vec3 getDirection( vec2 uv, float face ) { - - uv = 2.0 * uv - 1.0; - - vec3 direction = vec3( uv, 1.0 ); - - if ( face == 0.0 ) { - - direction = direction.zyx; // ( 1, v, u ) pos x - - } else if ( face == 1.0 ) { - - direction = direction.xzy; - direction.xz *= -1.0; // ( -u, 1, -v ) pos y - - } else if ( face == 2.0 ) { - - direction.x *= -1.0; // ( -u, v, 1 ) pos z - - } else if ( face == 3.0 ) { - - direction = direction.zyx; - direction.xz *= -1.0; // ( -1, v, -u ) neg x - - } else if ( face == 4.0 ) { - - direction = direction.xzy; - direction.xy *= -1.0; // ( -u, -1, v ) neg y - - } else if ( face == 5.0 ) { - - direction.z *= -1.0; // ( u, v, -1 ) neg z - - } - - return direction; - - } - - void main() { - - vOutputDirection = getDirection( uv, faceIndex ); - gl_Position = vec4( position, 1.0 ); - - } - `}function fvt(n){let e=new WeakMap,t=null;function s(a){if(a&&a.isTexture){const c=a.mapping,d=c===hb||c===gb,u=c===ya||c===Ea;if(d||u)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let _=e.get(a);return t===null&&(t=new cw(n)),_=d?t.fromEquirectangular(a,_):t.fromCubemap(a,_),e.set(a,_),_.texture}else{if(e.has(a))return e.get(a).texture;{const _=a.image;if(d&&_&&_.height>0||u&&_&&r(_)){t===null&&(t=new cw(n));const m=d?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,m),a.addEventListener("dispose",i),m.texture}else return null}}}return a}function r(a){let c=0;const d=6;for(let u=0;ue.maxTextureSize&&(G=Math.ceil(M/e.maxTextureSize),M=e.maxTextureSize);const V=new Float32Array(M*G*4*y),ee=new QN(V,M,G,y);ee.type=Ar,ee.needsUpdate=!0;const O=C*4;for(let q=0;q0)return n;const r=e*t;let i=fw[r];if(i===void 0&&(i=new Float32Array(r),fw[r]=i),e!==0){s.toArray(i,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(i,a)}return i}function fn(n,e){if(n.length!==e.length)return!1;for(let t=0,s=n.length;t":" "} ${a}: ${t[o]}`)}return s.join(` -`)}function mSt(n){const e=Lt.getPrimaries(Lt.workingColorSpace),t=Lt.getPrimaries(n);let s;switch(e===t?s="":e===Eu&&t===yu?s="LinearDisplayP3ToLinearSRGB":e===yu&&t===Eu&&(s="LinearSRGBToLinearDisplayP3"),n){case Cn:case mp:return[s,"LinearTransferOETF"];case nn:case fy:return[s,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[s,"LinearTransferOETF"]}}function Ew(n,e,t){const s=n.getShaderParameter(e,n.COMPILE_STATUS),r=n.getShaderInfoLog(e).trim();if(s&&r==="")return"";const i=/ERROR: 0:(\d+)/.exec(r);if(i){const o=parseInt(i[1]);return t.toUpperCase()+` - -`+r+` - -`+_St(n.getShaderSource(e),o)}else return r}function hSt(n,e){const t=mSt(e);return`vec4 ${n}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function gSt(n,e){let t;switch(e){case fbt:t="Linear";break;case _bt:t="Reinhard";break;case mbt:t="OptimizedCineon";break;case hbt:t="ACESFilmic";break;case gbt:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function bSt(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(gl).join(` -`)}function ySt(n){const e=[];for(const t in n){const s=n[t];s!==!1&&e.push("#define "+t+" "+s)}return e.join(` -`)}function ESt(n,e){const t={},s=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let r=0;r/gm;function Tb(n){return n.replace(vSt,TSt)}const SSt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function TSt(n,e){let t=vt[e];if(t===void 0){const s=SSt.get(e);if(s!==void 0)t=vt[s],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,s);else throw new Error("Can not resolve #include <"+e+">")}return Tb(t)}const xSt=/#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 Tw(n){return n.replace(xSt,CSt)}function CSt(n,e,t,s){let r="";for(let i=parseInt(e);i0&&(b+=` -`),g=[h,"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,f].filter(gl).join(` -`),g.length>0&&(g+=` -`)):(b=[xw(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,f,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 "+u:"",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 "+c:"",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(gl).join(` -`),g=[h,xw(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,f,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 "+d:"",t.envMap?"#define "+u:"",t.envMap?"#define "+_:"",m?"#define CUBEUV_TEXEL_WIDTH "+m.texelWidth:"",m?"#define CUBEUV_TEXEL_HEIGHT "+m.texelHeight:"",m?"#define CUBEUV_MAX_MIP "+m.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 "+c:"",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!==bi?"#define TONE_MAPPING":"",t.toneMapping!==bi?vt.tonemapping_pars_fragment:"",t.toneMapping!==bi?gSt("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",vt.colorspace_pars_fragment,hSt("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` -`].filter(gl).join(` -`)),o=Tb(o),o=vw(o,t),o=Sw(o,t),a=Tb(a),a=vw(a,t),a=Sw(a,t),o=Tw(o),a=Tw(a),t.isWebGL2&&t.isRawShaderMaterial!==!0&&(E=`#version 300 es -`,b=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(` -`)+` -`+b,g=["precision mediump sampler2DArray;","#define varying in",t.glslVersion===zC?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===zC?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` -`)+` -`+g);const v=E+b+o,S=E+g+a,R=yw(r,r.VERTEX_SHADER,v),w=yw(r,r.FRAGMENT_SHADER,S);r.attachShader(y,R),r.attachShader(y,w),t.index0AttributeName!==void 0?r.bindAttribLocation(y,0,t.index0AttributeName):t.morphTargets===!0&&r.bindAttribLocation(y,0,"position"),r.linkProgram(y);function A(G){if(n.debug.checkShaderErrors){const V=r.getProgramInfoLog(y).trim(),ee=r.getShaderInfoLog(R).trim(),O=r.getShaderInfoLog(w).trim();let H=!0,q=!0;if(r.getProgramParameter(y,r.LINK_STATUS)===!1)if(H=!1,typeof n.debug.onShaderError=="function")n.debug.onShaderError(r,y,R,w);else{const L=Ew(r,R,"vertex"),W=Ew(r,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(y,r.VALIDATE_STATUS)+` - -Program Info Log: `+V+` -`+L+` -`+W)}else V!==""?console.warn("THREE.WebGLProgram: Program Info Log:",V):(ee===""||O==="")&&(q=!1);q&&(G.diagnostics={runnable:H,programLog:V,vertexShader:{log:ee,prefix:b},fragmentShader:{log:O,prefix:g}})}r.deleteShader(R),r.deleteShader(w),I=new Dd(r,y),C=ESt(r,y)}let I;this.getUniforms=function(){return I===void 0&&A(this),I};let C;this.getAttributes=function(){return C===void 0&&A(this),C};let M=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return M===!1&&(M=r.getProgramParameter(y,pSt)),M},this.destroy=function(){s.releaseStatesOfProgram(this),r.deleteProgram(y),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=fSt++,this.cacheKey=e,this.usedTimes=1,this.program=y,this.vertexShader=R,this.fragmentShader=w,this}let ISt=0;class kSt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,s=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(s),o=this._getShaderCacheForMaterial(e);return o.has(r)===!1&&(o.add(r),r.usedTimes++),o.has(i)===!1&&(o.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const s of t)s.usedTimes--,s.usedTimes===0&&this.shaderCache.delete(s.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 s=t.get(e);return s===void 0&&(s=new Set,t.set(e,s)),s}_getShaderStage(e){const t=this.shaderCache;let s=t.get(e);return s===void 0&&(s=new DSt(e),t.set(e,s)),s}}class DSt{constructor(e){this.id=ISt++,this.code=e,this.usedTimes=0}}function LSt(n,e,t,s,r,i,o){const a=new XN,c=new kSt,d=[],u=r.isWebGL2,_=r.logarithmicDepthBuffer,m=r.vertexTextures;let h=r.precision;const f={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 y(C){return C===0?"uv":`uv${C}`}function b(C,M,G,V,ee){const O=V.fog,H=ee.geometry,q=C.isMeshStandardMaterial?V.environment:null,L=(C.isMeshStandardMaterial?t:e).get(C.envMap||q),W=L&&L.mapping===_p?L.image.height:null,se=f[C.type];C.precision!==null&&(h=r.getMaxPrecision(C.precision),h!==C.precision&&console.warn("THREE.WebGLProgram.getParameters:",C.precision,"not supported, using",h,"instead."));const oe=H.morphAttributes.position||H.morphAttributes.normal||H.morphAttributes.color,ye=oe!==void 0?oe.length:0;let xe=0;H.morphAttributes.position!==void 0&&(xe=1),H.morphAttributes.normal!==void 0&&(xe=2),H.morphAttributes.color!==void 0&&(xe=3);let ce,ve,Oe,De;if(se){const wn=Zs[se];ce=wn.vertexShader,ve=wn.fragmentShader}else ce=C.vertexShader,ve=C.fragmentShader,c.update(C),Oe=c.getVertexShaderID(C),De=c.getFragmentShaderID(C);const Q=n.getRenderTarget(),fe=ee.isInstancedMesh===!0,_e=ee.isBatchedMesh===!0,Ae=!!C.map,Ue=!!C.matcap,te=!!L,U=!!C.aoMap,P=!!C.lightMap,Z=!!C.bumpMap,de=!!C.normalMap,pe=!!C.displacementMap,he=!!C.emissiveMap,le=!!C.metalnessMap,Me=!!C.roughnessMap,Re=C.anisotropy>0,ge=C.clearcoat>0,D=C.iridescence>0,N=C.sheen>0,K=C.transmission>0,me=Re&&!!C.anisotropyMap,j=ge&&!!C.clearcoatMap,re=ge&&!!C.clearcoatNormalMap,Ce=ge&&!!C.clearcoatRoughnessMap,we=D&&!!C.iridescenceMap,ke=D&&!!C.iridescenceThicknessMap,We=N&&!!C.sheenColorMap,lt=N&&!!C.sheenRoughnessMap,Pe=!!C.specularMap,Mt=!!C.specularColorMap,et=!!C.specularIntensityMap,tt=K&&!!C.transmissionMap,ze=K&&!!C.thicknessMap,je=!!C.gradientMap,_t=!!C.alphaMap,J=C.alphaTest>0,Qe=!!C.alphaHash,Ge=!!C.extensions,Ne=!!H.attributes.uv1,qe=!!H.attributes.uv2,dt=!!H.attributes.uv3;let Nt=bi;return C.toneMapped&&(Q===null||Q.isXRRenderTarget===!0)&&(Nt=n.toneMapping),{isWebGL2:u,shaderID:se,shaderType:C.type,shaderName:C.name,vertexShader:ce,fragmentShader:ve,defines:C.defines,customVertexShaderID:Oe,customFragmentShaderID:De,isRawShaderMaterial:C.isRawShaderMaterial===!0,glslVersion:C.glslVersion,precision:h,batching:_e,instancing:fe,instancingColor:fe&&ee.instanceColor!==null,supportsVertexTextures:m,outputColorSpace:Q===null?n.outputColorSpace:Q.isXRRenderTarget===!0?Q.texture.colorSpace:Cn,map:Ae,matcap:Ue,envMap:te,envMapMode:te&&L.mapping,envMapCubeUVHeight:W,aoMap:U,lightMap:P,bumpMap:Z,normalMap:de,displacementMap:m&&pe,emissiveMap:he,normalMapObjectSpace:de&&C.normalMapType===Obt,normalMapTangentSpace:de&&C.normalMapType===py,metalnessMap:le,roughnessMap:Me,anisotropy:Re,anisotropyMap:me,clearcoat:ge,clearcoatMap:j,clearcoatNormalMap:re,clearcoatRoughnessMap:Ce,iridescence:D,iridescenceMap:we,iridescenceThicknessMap:ke,sheen:N,sheenColorMap:We,sheenRoughnessMap:lt,specularMap:Pe,specularColorMap:Mt,specularIntensityMap:et,transmission:K,transmissionMap:tt,thicknessMap:ze,gradientMap:je,opaque:C.transparent===!1&&C.blending===ia,alphaMap:_t,alphaTest:J,alphaHash:Qe,combine:C.combine,mapUv:Ae&&y(C.map.channel),aoMapUv:U&&y(C.aoMap.channel),lightMapUv:P&&y(C.lightMap.channel),bumpMapUv:Z&&y(C.bumpMap.channel),normalMapUv:de&&y(C.normalMap.channel),displacementMapUv:pe&&y(C.displacementMap.channel),emissiveMapUv:he&&y(C.emissiveMap.channel),metalnessMapUv:le&&y(C.metalnessMap.channel),roughnessMapUv:Me&&y(C.roughnessMap.channel),anisotropyMapUv:me&&y(C.anisotropyMap.channel),clearcoatMapUv:j&&y(C.clearcoatMap.channel),clearcoatNormalMapUv:re&&y(C.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ce&&y(C.clearcoatRoughnessMap.channel),iridescenceMapUv:we&&y(C.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&y(C.iridescenceThicknessMap.channel),sheenColorMapUv:We&&y(C.sheenColorMap.channel),sheenRoughnessMapUv:lt&&y(C.sheenRoughnessMap.channel),specularMapUv:Pe&&y(C.specularMap.channel),specularColorMapUv:Mt&&y(C.specularColorMap.channel),specularIntensityMapUv:et&&y(C.specularIntensityMap.channel),transmissionMapUv:tt&&y(C.transmissionMap.channel),thicknessMapUv:ze&&y(C.thicknessMap.channel),alphaMapUv:_t&&y(C.alphaMap.channel),vertexTangents:!!H.attributes.tangent&&(de||Re),vertexColors:C.vertexColors,vertexAlphas:C.vertexColors===!0&&!!H.attributes.color&&H.attributes.color.itemSize===4,vertexUv1s:Ne,vertexUv2s:qe,vertexUv3s:dt,pointsUvs:ee.isPoints===!0&&!!H.attributes.uv&&(Ae||_t),fog:!!O,useFog:C.fog===!0,fogExp2:O&&O.isFogExp2,flatShading:C.flatShading===!0,sizeAttenuation:C.sizeAttenuation===!0,logarithmicDepthBuffer:_,skinning:ee.isSkinnedMesh===!0,morphTargets:H.morphAttributes.position!==void 0,morphNormals:H.morphAttributes.normal!==void 0,morphColors:H.morphAttributes.color!==void 0,morphTargetsCount:ye,morphTextureStride:xe,numDirLights:M.directional.length,numPointLights:M.point.length,numSpotLights:M.spot.length,numSpotLightMaps:M.spotLightMap.length,numRectAreaLights:M.rectArea.length,numHemiLights:M.hemi.length,numDirLightShadows:M.directionalShadowMap.length,numPointLightShadows:M.pointShadowMap.length,numSpotLightShadows:M.spotShadowMap.length,numSpotLightShadowsWithMaps:M.numSpotLightShadowsWithMaps,numLightProbes:M.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:C.dithering,shadowMapEnabled:n.shadowMap.enabled&&G.length>0,shadowMapType:n.shadowMap.type,toneMapping:Nt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ae&&C.map.isVideoTexture===!0&&Lt.getTransfer(C.map.colorSpace)===jt,premultipliedAlpha:C.premultipliedAlpha,doubleSided:C.side===Js,flipSided:C.side===Zn,useDepthPacking:C.depthPacking>=0,depthPacking:C.depthPacking||0,index0AttributeName:C.index0AttributeName,extensionDerivatives:Ge&&C.extensions.derivatives===!0,extensionFragDepth:Ge&&C.extensions.fragDepth===!0,extensionDrawBuffers:Ge&&C.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ge&&C.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:u||s.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||s.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||s.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:s.has("KHR_parallel_shader_compile"),customProgramCacheKey:C.customProgramCacheKey()}}function g(C){const M=[];if(C.shaderID?M.push(C.shaderID):(M.push(C.customVertexShaderID),M.push(C.customFragmentShaderID)),C.defines!==void 0)for(const G in C.defines)M.push(G),M.push(C.defines[G]);return C.isRawShaderMaterial===!1&&(E(M,C),v(M,C),M.push(n.outputColorSpace)),M.push(C.customProgramCacheKey),M.join()}function E(C,M){C.push(M.precision),C.push(M.outputColorSpace),C.push(M.envMapMode),C.push(M.envMapCubeUVHeight),C.push(M.mapUv),C.push(M.alphaMapUv),C.push(M.lightMapUv),C.push(M.aoMapUv),C.push(M.bumpMapUv),C.push(M.normalMapUv),C.push(M.displacementMapUv),C.push(M.emissiveMapUv),C.push(M.metalnessMapUv),C.push(M.roughnessMapUv),C.push(M.anisotropyMapUv),C.push(M.clearcoatMapUv),C.push(M.clearcoatNormalMapUv),C.push(M.clearcoatRoughnessMapUv),C.push(M.iridescenceMapUv),C.push(M.iridescenceThicknessMapUv),C.push(M.sheenColorMapUv),C.push(M.sheenRoughnessMapUv),C.push(M.specularMapUv),C.push(M.specularColorMapUv),C.push(M.specularIntensityMapUv),C.push(M.transmissionMapUv),C.push(M.thicknessMapUv),C.push(M.combine),C.push(M.fogExp2),C.push(M.sizeAttenuation),C.push(M.morphTargetsCount),C.push(M.morphAttributeCount),C.push(M.numDirLights),C.push(M.numPointLights),C.push(M.numSpotLights),C.push(M.numSpotLightMaps),C.push(M.numHemiLights),C.push(M.numRectAreaLights),C.push(M.numDirLightShadows),C.push(M.numPointLightShadows),C.push(M.numSpotLightShadows),C.push(M.numSpotLightShadowsWithMaps),C.push(M.numLightProbes),C.push(M.shadowMapType),C.push(M.toneMapping),C.push(M.numClippingPlanes),C.push(M.numClipIntersection),C.push(M.depthPacking)}function v(C,M){a.disableAll(),M.isWebGL2&&a.enable(0),M.supportsVertexTextures&&a.enable(1),M.instancing&&a.enable(2),M.instancingColor&&a.enable(3),M.matcap&&a.enable(4),M.envMap&&a.enable(5),M.normalMapObjectSpace&&a.enable(6),M.normalMapTangentSpace&&a.enable(7),M.clearcoat&&a.enable(8),M.iridescence&&a.enable(9),M.alphaTest&&a.enable(10),M.vertexColors&&a.enable(11),M.vertexAlphas&&a.enable(12),M.vertexUv1s&&a.enable(13),M.vertexUv2s&&a.enable(14),M.vertexUv3s&&a.enable(15),M.vertexTangents&&a.enable(16),M.anisotropy&&a.enable(17),M.alphaHash&&a.enable(18),M.batching&&a.enable(19),C.push(a.mask),a.disableAll(),M.fog&&a.enable(0),M.useFog&&a.enable(1),M.flatShading&&a.enable(2),M.logarithmicDepthBuffer&&a.enable(3),M.skinning&&a.enable(4),M.morphTargets&&a.enable(5),M.morphNormals&&a.enable(6),M.morphColors&&a.enable(7),M.premultipliedAlpha&&a.enable(8),M.shadowMapEnabled&&a.enable(9),M.useLegacyLights&&a.enable(10),M.doubleSided&&a.enable(11),M.flipSided&&a.enable(12),M.useDepthPacking&&a.enable(13),M.dithering&&a.enable(14),M.transmission&&a.enable(15),M.sheen&&a.enable(16),M.opaque&&a.enable(17),M.pointsUvs&&a.enable(18),M.decodeVideoTexture&&a.enable(19),C.push(a.mask)}function S(C){const M=f[C.type];let G;if(M){const V=Zs[M];G=b0t.clone(V.uniforms)}else G=C.uniforms;return G}function R(C,M){let G;for(let V=0,ee=d.length;V0?s.push(g):h.transparent===!0?r.push(g):t.push(g)}function c(_,m,h,f,y,b){const g=o(_,m,h,f,y,b);h.transmission>0?s.unshift(g):h.transparent===!0?r.unshift(g):t.unshift(g)}function d(_,m){t.length>1&&t.sort(_||FSt),s.length>1&&s.sort(m||Cw),r.length>1&&r.sort(m||Cw)}function u(){for(let _=e,m=n.length;_=i.length?(o=new ww,i.push(o)):o=i[r],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function BSt(){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 ie,color:new pt};break;case"SpotLight":t={position:new ie,direction:new ie,color:new pt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new ie,color:new pt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new ie,skyColor:new pt,groundColor:new pt};break;case"RectAreaLight":t={color:new pt,position:new ie,halfWidth:new ie,halfHeight:new ie};break}return n[e.id]=t,t}}}function GSt(){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 Rt};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let VSt=0;function zSt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function HSt(n,e){const t=new BSt,s=GSt(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)r.probe.push(new ie);const i=new ie,o=new xt,a=new xt;function c(u,_){let m=0,h=0,f=0;for(let V=0;V<9;V++)r.probe[V].set(0,0,0);let y=0,b=0,g=0,E=0,v=0,S=0,R=0,w=0,A=0,I=0,C=0;u.sort(zSt);const M=_===!0?Math.PI:1;for(let V=0,ee=u.length;V0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(r.rectAreaLTC1=$e.LTC_FLOAT_1,r.rectAreaLTC2=$e.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(r.rectAreaLTC1=$e.LTC_HALF_1,r.rectAreaLTC2=$e.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=m,r.ambient[1]=h,r.ambient[2]=f;const G=r.hash;(G.directionalLength!==y||G.pointLength!==b||G.spotLength!==g||G.rectAreaLength!==E||G.hemiLength!==v||G.numDirectionalShadows!==S||G.numPointShadows!==R||G.numSpotShadows!==w||G.numSpotMaps!==A||G.numLightProbes!==C)&&(r.directional.length=y,r.spot.length=g,r.rectArea.length=E,r.point.length=b,r.hemi.length=v,r.directionalShadow.length=S,r.directionalShadowMap.length=S,r.pointShadow.length=R,r.pointShadowMap.length=R,r.spotShadow.length=w,r.spotShadowMap.length=w,r.directionalShadowMatrix.length=S,r.pointShadowMatrix.length=R,r.spotLightMatrix.length=w+A-I,r.spotLightMap.length=A,r.numSpotLightShadowsWithMaps=I,r.numLightProbes=C,G.directionalLength=y,G.pointLength=b,G.spotLength=g,G.rectAreaLength=E,G.hemiLength=v,G.numDirectionalShadows=S,G.numPointShadows=R,G.numSpotShadows=w,G.numSpotMaps=A,G.numLightProbes=C,r.version=VSt++)}function d(u,_){let m=0,h=0,f=0,y=0,b=0;const g=_.matrixWorldInverse;for(let E=0,v=u.length;E=a.length?(c=new Rw(n,e),a.push(c)):c=a[o],c}function r(){t=new WeakMap}return{get:s,dispose:r}}class YSt extends Vs{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Mbt,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 $St extends Vs{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 WSt=`void main() { - gl_Position = vec4( position, 1.0 ); -}`,KSt=`uniform sampler2D shadow_pass; -uniform vec2 resolution; -uniform float radius; -#include -void main() { - const float samples = float( VSM_SAMPLES ); - float mean = 0.0; - float squared_mean = 0.0; - float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); - float uvStart = samples <= 1.0 ? 0.0 : - 1.0; - for ( float i = 0.0; i < samples; i ++ ) { - float uvOffset = uvStart + i * uvStride; - #ifdef HORIZONTAL_PASS - vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); - mean += distribution.x; - squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; - #else - float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); - mean += depth; - squared_mean += depth * depth; - #endif - } - mean = mean / samples; - squared_mean = squared_mean / samples; - float std_dev = sqrt( squared_mean - mean * mean ); - gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function jSt(n,e,t){let s=new my;const r=new Rt,i=new Rt,o=new Wt,a=new YSt({depthPacking:Nbt}),c=new $St,d={},u=t.maxTextureSize,_={[Fr]:Zn,[Zn]:Fr,[Js]:Js},m=new ho({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Rt},radius:{value:4}},vertexShader:WSt,fragmentShader:KSt}),h=m.clone();h.defines.HORIZONTAL_PASS=1;const f=new fr;f.setAttribute("position",new zn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const y=new Vn(f,m),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=DN;let g=this.type;this.render=function(R,w,A){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||R.length===0)return;const I=n.getRenderTarget(),C=n.getActiveCubeFace(),M=n.getActiveMipmapLevel(),G=n.state;G.setBlending(gi),G.buffers.color.setClear(1,1,1,1),G.buffers.depth.setTest(!0),G.setScissorTest(!1);const V=g!==xr&&this.type===xr,ee=g===xr&&this.type!==xr;for(let O=0,H=R.length;Ou||r.y>u)&&(r.x>u&&(i.x=Math.floor(u/W.x),r.x=i.x*W.x,L.mapSize.x=i.x),r.y>u&&(i.y=Math.floor(u/W.y),r.y=i.y*W.y,L.mapSize.y=i.y)),L.map===null||V===!0||ee===!0){const oe=this.type!==xr?{minFilter:gn,magFilter:gn}:{};L.map!==null&&L.map.dispose(),L.map=new mo(r.x,r.y,oe),L.map.texture.name=q.name+".shadowMap",L.camera.updateProjectionMatrix()}n.setRenderTarget(L.map),n.clear();const se=L.getViewportCount();for(let oe=0;oe0||w.map&&w.alphaTest>0){const G=C.uuid,V=w.uuid;let ee=d[G];ee===void 0&&(ee={},d[G]=ee);let O=ee[V];O===void 0&&(O=C.clone(),ee[V]=O),C=O}if(C.visible=w.visible,C.wireframe=w.wireframe,I===xr?C.side=w.shadowSide!==null?w.shadowSide:w.side:C.side=w.shadowSide!==null?w.shadowSide:_[w.side],C.alphaMap=w.alphaMap,C.alphaTest=w.alphaTest,C.map=w.map,C.clipShadows=w.clipShadows,C.clippingPlanes=w.clippingPlanes,C.clipIntersection=w.clipIntersection,C.displacementMap=w.displacementMap,C.displacementScale=w.displacementScale,C.displacementBias=w.displacementBias,C.wireframeLinewidth=w.wireframeLinewidth,C.linewidth=w.linewidth,A.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const G=n.properties.get(C);G.light=A}return C}function S(R,w,A,I,C){if(R.visible===!1)return;if(R.layers.test(w.layers)&&(R.isMesh||R.isLine||R.isPoints)&&(R.castShadow||R.receiveShadow&&C===xr)&&(!R.frustumCulled||s.intersectsObject(R))){R.modelViewMatrix.multiplyMatrices(A.matrixWorldInverse,R.matrixWorld);const V=e.update(R),ee=R.material;if(Array.isArray(ee)){const O=V.groups;for(let H=0,q=O.length;H=1):oe.indexOf("OpenGL ES")!==-1&&(se=parseFloat(/^OpenGL ES (\d)/.exec(oe)[1]),W=se>=2);let ye=null,xe={};const ce=n.getParameter(n.SCISSOR_BOX),ve=n.getParameter(n.VIEWPORT),Oe=new Wt().fromArray(ce),De=new Wt().fromArray(ve);function Q(J,Qe,Ge,Ne){const qe=new Uint8Array(4),dt=n.createTexture();n.bindTexture(J,dt),n.texParameteri(J,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(J,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Nt=0;Nt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),f=new WeakMap;let y;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function E(D,N){return g?new OffscreenCanvas(D,N):Zl("canvas")}function v(D,N,K,me){let j=1;if((D.width>me||D.height>me)&&(j=me/Math.max(D.width,D.height)),j<1||N===!0)if(typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&D instanceof ImageBitmap){const re=N?Su:Math.floor,Ce=re(j*D.width),we=re(j*D.height);y===void 0&&(y=E(Ce,we));const ke=K?E(Ce,we):y;return ke.width=Ce,ke.height=we,ke.getContext("2d").drawImage(D,0,0,Ce,we),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+D.width+"x"+D.height+") to ("+Ce+"x"+we+")."),ke}else return"data"in D&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+D.width+"x"+D.height+")."),D;return D}function S(D){return Sb(D.width)&&Sb(D.height)}function R(D){return a?!1:D.wrapS!==hs||D.wrapT!==hs||D.minFilter!==gn&&D.minFilter!==Wn}function w(D,N){return D.generateMipmaps&&N&&D.minFilter!==gn&&D.minFilter!==Wn}function A(D){n.generateMipmap(D)}function I(D,N,K,me,j=!1){if(a===!1)return N;if(D!==null){if(n[D]!==void 0)return n[D];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+D+"'")}let re=N;if(N===n.RED&&(K===n.FLOAT&&(re=n.R32F),K===n.HALF_FLOAT&&(re=n.R16F),K===n.UNSIGNED_BYTE&&(re=n.R8)),N===n.RED_INTEGER&&(K===n.UNSIGNED_BYTE&&(re=n.R8UI),K===n.UNSIGNED_SHORT&&(re=n.R16UI),K===n.UNSIGNED_INT&&(re=n.R32UI),K===n.BYTE&&(re=n.R8I),K===n.SHORT&&(re=n.R16I),K===n.INT&&(re=n.R32I)),N===n.RG&&(K===n.FLOAT&&(re=n.RG32F),K===n.HALF_FLOAT&&(re=n.RG16F),K===n.UNSIGNED_BYTE&&(re=n.RG8)),N===n.RGBA){const Ce=j?bu:Lt.getTransfer(me);K===n.FLOAT&&(re=n.RGBA32F),K===n.HALF_FLOAT&&(re=n.RGBA16F),K===n.UNSIGNED_BYTE&&(re=Ce===jt?n.SRGB8_ALPHA8:n.RGBA8),K===n.UNSIGNED_SHORT_4_4_4_4&&(re=n.RGBA4),K===n.UNSIGNED_SHORT_5_5_5_1&&(re=n.RGB5_A1)}return(re===n.R16F||re===n.R32F||re===n.RG16F||re===n.RG32F||re===n.RGBA16F||re===n.RGBA32F)&&e.get("EXT_color_buffer_float"),re}function C(D,N,K){return w(D,K)===!0||D.isFramebufferTexture&&D.minFilter!==gn&&D.minFilter!==Wn?Math.log2(Math.max(N.width,N.height))+1:D.mipmaps!==void 0&&D.mipmaps.length>0?D.mipmaps.length:D.isCompressedTexture&&Array.isArray(D.image)?N.mipmaps.length:1}function M(D){return D===gn||D===bb||D===kd?n.NEAREST:n.LINEAR}function G(D){const N=D.target;N.removeEventListener("dispose",G),ee(N),N.isVideoTexture&&f.delete(N)}function V(D){const N=D.target;N.removeEventListener("dispose",V),H(N)}function ee(D){const N=s.get(D);if(N.__webglInit===void 0)return;const K=D.source,me=b.get(K);if(me){const j=me[N.__cacheKey];j.usedTimes--,j.usedTimes===0&&O(D),Object.keys(me).length===0&&b.delete(K)}s.remove(D)}function O(D){const N=s.get(D);n.deleteTexture(N.__webglTexture);const K=D.source,me=b.get(K);delete me[N.__cacheKey],o.memory.textures--}function H(D){const N=D.texture,K=s.get(D),me=s.get(N);if(me.__webglTexture!==void 0&&(n.deleteTexture(me.__webglTexture),o.memory.textures--),D.depthTexture&&D.depthTexture.dispose(),D.isWebGLCubeRenderTarget)for(let j=0;j<6;j++){if(Array.isArray(K.__webglFramebuffer[j]))for(let re=0;re=c&&console.warn("THREE.WebGLTextures: Trying to use "+D+" texture units while this GPU supports only "+c),q+=1,D}function se(D){const N=[];return N.push(D.wrapS),N.push(D.wrapT),N.push(D.wrapR||0),N.push(D.magFilter),N.push(D.minFilter),N.push(D.anisotropy),N.push(D.internalFormat),N.push(D.format),N.push(D.type),N.push(D.generateMipmaps),N.push(D.premultiplyAlpha),N.push(D.flipY),N.push(D.unpackAlignment),N.push(D.colorSpace),N.join()}function oe(D,N){const K=s.get(D);if(D.isVideoTexture&&Re(D),D.isRenderTargetTexture===!1&&D.version>0&&K.__version!==D.version){const me=D.image;if(me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{_e(K,D,N);return}}t.bindTexture(n.TEXTURE_2D,K.__webglTexture,n.TEXTURE0+N)}function ye(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,K.__webglTexture,n.TEXTURE0+N)}function xe(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_3D,K.__webglTexture,n.TEXTURE0+N)}function ce(D,N){const K=s.get(D);if(D.version>0&&K.__version!==D.version){Ae(K,D,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,K.__webglTexture,n.TEXTURE0+N)}const ve={[va]:n.REPEAT,[hs]:n.CLAMP_TO_EDGE,[gu]:n.MIRRORED_REPEAT},Oe={[gn]:n.NEAREST,[bb]:n.NEAREST_MIPMAP_NEAREST,[kd]:n.NEAREST_MIPMAP_LINEAR,[Wn]:n.LINEAR,[PN]:n.LINEAR_MIPMAP_NEAREST,[_o]:n.LINEAR_MIPMAP_LINEAR},De={[Ibt]:n.NEVER,[Ubt]:n.ALWAYS,[kbt]:n.LESS,[$N]:n.LEQUAL,[Dbt]:n.EQUAL,[Fbt]:n.GEQUAL,[Lbt]:n.GREATER,[Pbt]:n.NOTEQUAL};function Q(D,N,K){if(K?(n.texParameteri(D,n.TEXTURE_WRAP_S,ve[N.wrapS]),n.texParameteri(D,n.TEXTURE_WRAP_T,ve[N.wrapT]),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,ve[N.wrapR]),n.texParameteri(D,n.TEXTURE_MAG_FILTER,Oe[N.magFilter]),n.texParameteri(D,n.TEXTURE_MIN_FILTER,Oe[N.minFilter])):(n.texParameteri(D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==hs||N.wrapT!==hs)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(D,n.TEXTURE_MAG_FILTER,M(N.magFilter)),n.texParameteri(D,n.TEXTURE_MIN_FILTER,M(N.minFilter)),N.minFilter!==gn&&N.minFilter!==Wn&&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(D,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(D,n.TEXTURE_COMPARE_FUNC,De[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const me=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===gn||N.minFilter!==kd&&N.minFilter!==_o||N.type===Ar&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===Ql&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||s.get(N).__currentAnisotropy)&&(n.texParameterf(D,me.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,r.getMaxAnisotropy())),s.get(N).__currentAnisotropy=N.anisotropy)}}function fe(D,N){let K=!1;D.__webglInit===void 0&&(D.__webglInit=!0,N.addEventListener("dispose",G));const me=N.source;let j=b.get(me);j===void 0&&(j={},b.set(me,j));const re=se(N);if(re!==D.__cacheKey){j[re]===void 0&&(j[re]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,K=!0),j[re].usedTimes++;const Ce=j[D.__cacheKey];Ce!==void 0&&(j[D.__cacheKey].usedTimes--,Ce.usedTimes===0&&O(N)),D.__cacheKey=re,D.__webglTexture=j[re].texture}return K}function _e(D,N,K){let me=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(me=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(me=n.TEXTURE_3D);const j=fe(D,N),re=N.source;t.bindTexture(me,D.__webglTexture,n.TEXTURE0+K);const Ce=s.get(re);if(re.version!==Ce.__version||j===!0){t.activeTexture(n.TEXTURE0+K);const we=Lt.getPrimaries(Lt.workingColorSpace),ke=N.colorSpace===bs?null:Lt.getPrimaries(N.colorSpace),We=N.colorSpace===bs||we===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,We);const lt=R(N)&&S(N.image)===!1;let Pe=v(N.image,lt,!1,u);Pe=ge(N,Pe);const Mt=S(Pe)||a,et=i.convert(N.format,N.colorSpace);let tt=i.convert(N.type),ze=I(N.internalFormat,et,tt,N.colorSpace,N.isVideoTexture);Q(me,N,Mt);let je;const _t=N.mipmaps,J=a&&N.isVideoTexture!==!0&&ze!==HN,Qe=Ce.__version===void 0||j===!0,Ge=C(N,Pe,Mt);if(N.isDepthTexture)ze=n.DEPTH_COMPONENT,a?N.type===Ar?ze=n.DEPTH_COMPONENT32F:N.type===fi?ze=n.DEPTH_COMPONENT24:N.type===no?ze=n.DEPTH24_STENCIL8:ze=n.DEPTH_COMPONENT16:N.type===Ar&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===so&&ze===n.DEPTH_COMPONENT&&N.type!==uy&&N.type!==fi&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=fi,tt=i.convert(N.type)),N.format===Sa&&ze===n.DEPTH_COMPONENT&&(ze=n.DEPTH_STENCIL,N.type!==no&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=no,tt=i.convert(N.type))),Qe&&(J?t.texStorage2D(n.TEXTURE_2D,1,ze,Pe.width,Pe.height):t.texImage2D(n.TEXTURE_2D,0,ze,Pe.width,Pe.height,0,et,tt,null));else if(N.isDataTexture)if(_t.length>0&&Mt){J&&Qe&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,_t[0].width,_t[0].height);for(let Ne=0,qe=_t.length;Ne>=1,qe>>=1}}else if(_t.length>0&&Mt){J&&Qe&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,_t[0].width,_t[0].height);for(let Ne=0,qe=_t.length;Ne0&&Qe++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Qe,je,Pe[0].width,Pe[0].height));for(let Ne=0;Ne<6;Ne++)if(lt){_t?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,Pe[Ne].width,Pe[Ne].height,tt,ze,Pe[Ne].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,je,Pe[Ne].width,Pe[Ne].height,0,tt,ze,Pe[Ne].data);for(let qe=0;qe>re),Pe=Math.max(1,N.height>>re);j===n.TEXTURE_3D||j===n.TEXTURE_2D_ARRAY?t.texImage3D(j,re,ke,lt,Pe,N.depth,0,Ce,we,null):t.texImage2D(j,re,ke,lt,Pe,0,Ce,we,null)}t.bindFramebuffer(n.FRAMEBUFFER,D),Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,me,j,s.get(K).__webglTexture,0,le(N)):(j===n.TEXTURE_2D||j>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&j<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,me,j,s.get(K).__webglTexture,re),t.bindFramebuffer(n.FRAMEBUFFER,null)}function te(D,N,K){if(n.bindRenderbuffer(n.RENDERBUFFER,D),N.depthBuffer&&!N.stencilBuffer){let me=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(K||Me(N)){const j=N.depthTexture;j&&j.isDepthTexture&&(j.type===Ar?me=n.DEPTH_COMPONENT32F:j.type===fi&&(me=n.DEPTH_COMPONENT24));const re=le(N);Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,re,me,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,re,me,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,me,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,D)}else if(N.depthBuffer&&N.stencilBuffer){const me=le(N);K&&Me(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,me,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,D)}else{const me=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let j=0;j0){K.__webglFramebuffer[we]=[];for(let ke=0;ke0){K.__webglFramebuffer=[];for(let we=0;we0&&Me(D)===!1){const we=re?N:[N];K.__webglMultisampledFramebuffer=n.createFramebuffer(),K.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,K.__webglMultisampledFramebuffer);for(let ke=0;ke0)for(let ke=0;ke0)for(let ke=0;ke0&&Me(D)===!1){const N=D.isWebGLMultipleRenderTargets?D.texture:[D.texture],K=D.width,me=D.height;let j=n.COLOR_BUFFER_BIT;const re=[],Ce=D.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,we=s.get(D),ke=D.isWebGLMultipleRenderTargets===!0;if(ke)for(let We=0;We0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function Re(D){const N=o.render.frame;f.get(D)!==N&&(f.set(D,N),D.update())}function ge(D,N){const K=D.colorSpace,me=D.format,j=D.type;return D.isCompressedTexture===!0||D.isVideoTexture===!0||D.format===vb||K!==Cn&&K!==bs&&(Lt.getTransfer(K)===jt?a===!1?e.has("EXT_sRGB")===!0&&me===gs?(D.format=vb,D.minFilter=Wn,D.generateMipmaps=!1):N=KN.sRGBToLinear(N):(me!==gs||j!==yi)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",K)),N}this.allocateTextureUnit=W,this.resetTextureUnits=L,this.setTexture2D=oe,this.setTexture2DArray=ye,this.setTexture3D=xe,this.setTextureCube=ce,this.rebindTextures=Z,this.setupRenderTarget=de,this.updateRenderTargetMipmap=pe,this.updateMultisampleRenderTarget=he,this.setupDepthRenderbuffer=P,this.setupFrameBufferTexture=Ue,this.useMultisampledRTT=Me}function ZSt(n,e,t){const s=t.isWebGL2;function r(i,o=bs){let a;const c=Lt.getTransfer(o);if(i===yi)return n.UNSIGNED_BYTE;if(i===UN)return n.UNSIGNED_SHORT_4_4_4_4;if(i===BN)return n.UNSIGNED_SHORT_5_5_5_1;if(i===ybt)return n.BYTE;if(i===Ebt)return n.SHORT;if(i===uy)return n.UNSIGNED_SHORT;if(i===FN)return n.INT;if(i===fi)return n.UNSIGNED_INT;if(i===Ar)return n.FLOAT;if(i===Ql)return s?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(i===vbt)return n.ALPHA;if(i===gs)return n.RGBA;if(i===Sbt)return n.LUMINANCE;if(i===Tbt)return n.LUMINANCE_ALPHA;if(i===so)return n.DEPTH_COMPONENT;if(i===Sa)return n.DEPTH_STENCIL;if(i===vb)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(i===xbt)return n.RED;if(i===GN)return n.RED_INTEGER;if(i===Cbt)return n.RG;if(i===VN)return n.RG_INTEGER;if(i===zN)return n.RGBA_INTEGER;if(i===Yh||i===$h||i===Wh||i===Kh)if(c===jt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(i===Yh)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===$h)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===Wh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===Kh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(i===Yh)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===$h)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===Wh)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===Kh)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===fC||i===_C||i===mC||i===hC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(i===fC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===_C)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===mC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===hC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===HN)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(i===gC||i===bC)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(i===gC)return c===jt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(i===bC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===yC||i===EC||i===vC||i===SC||i===TC||i===xC||i===CC||i===wC||i===RC||i===AC||i===MC||i===NC||i===OC||i===IC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(i===yC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===EC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===vC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===SC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===TC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===xC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===CC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===wC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===RC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===AC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===MC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===NC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===OC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===IC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===jh||i===kC||i===DC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(i===jh)return c===jt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===kC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===DC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===wbt||i===LC||i===PC||i===FC)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(i===jh)return a.COMPRESSED_RED_RGTC1_EXT;if(i===LC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===PC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===FC)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===no?s?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[i]!==void 0?n[i]:null}return{convert:r}}class JSt extends Gn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Qi extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const e1t={type:"move"};class yg{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Qi,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 Qi,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ie,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ie),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Qi,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ie,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ie),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 s of e.hand.values())this._getHandJoint(t,s)}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,s){let r=null,i=null,o=null;const a=this._targetRay,c=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const y of e.hand.values()){const b=t.getJointPose(y,s),g=this._getHandJoint(d,y);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 u=d.joints["index-finger-tip"],_=d.joints["thumb-tip"],m=u.position.distanceTo(_.position),h=.02,f=.005;d.inputState.pinching&&m>h+f?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&m<=h-f&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,s),i!==null&&(c.matrix.fromArray(i.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,i.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(i.linearVelocity)):c.hasLinearVelocity=!1,i.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(i.angularVelocity)):c.hasAngularVelocity=!1));a!==null&&(r=t.getPose(e.targetRaySpace,s),r===null&&i!==null&&(r=i),r!==null&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(e1t)))}return a!==null&&(a.visible=r!==null),c!==null&&(c.visible=i!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const s=new Qi;s.matrixAutoUpdate=!1,s.visible=!1,e.joints[t.jointName]=s,e.add(s)}return e.joints[t.jointName]}}class t1t extends Ha{constructor(e,t){super();const s=this;let r=null,i=1,o=null,a="local-floor",c=1,d=null,u=null,_=null,m=null,h=null,f=null;const y=t.getContextAttributes();let b=null,g=null;const E=[],v=[],S=new Rt;let R=null;const w=new Gn;w.layers.enable(1),w.viewport=new Wt;const A=new Gn;A.layers.enable(2),A.viewport=new Wt;const I=[w,A],C=new JSt;C.layers.enable(1),C.layers.enable(2);let M=null,G=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ce){let ve=E[ce];return ve===void 0&&(ve=new yg,E[ce]=ve),ve.getTargetRaySpace()},this.getControllerGrip=function(ce){let ve=E[ce];return ve===void 0&&(ve=new yg,E[ce]=ve),ve.getGripSpace()},this.getHand=function(ce){let ve=E[ce];return ve===void 0&&(ve=new yg,E[ce]=ve),ve.getHandSpace()};function V(ce){const ve=v.indexOf(ce.inputSource);if(ve===-1)return;const Oe=E[ve];Oe!==void 0&&(Oe.update(ce.inputSource,ce.frame,d||o),Oe.dispatchEvent({type:ce.type,data:ce.inputSource}))}function ee(){r.removeEventListener("select",V),r.removeEventListener("selectstart",V),r.removeEventListener("selectend",V),r.removeEventListener("squeeze",V),r.removeEventListener("squeezestart",V),r.removeEventListener("squeezeend",V),r.removeEventListener("end",ee),r.removeEventListener("inputsourceschange",O);for(let ce=0;ce=0&&(v[De]=null,E[De].disconnect(Oe))}for(let ve=0;ve=v.length){v.push(Oe),De=fe;break}else if(v[fe]===null){v[fe]=Oe,De=fe;break}if(De===-1)break}const Q=E[De];Q&&Q.connect(Oe)}}const H=new ie,q=new ie;function L(ce,ve,Oe){H.setFromMatrixPosition(ve.matrixWorld),q.setFromMatrixPosition(Oe.matrixWorld);const De=H.distanceTo(q),Q=ve.projectionMatrix.elements,fe=Oe.projectionMatrix.elements,_e=Q[14]/(Q[10]-1),Ae=Q[14]/(Q[10]+1),Ue=(Q[9]+1)/Q[5],te=(Q[9]-1)/Q[5],U=(Q[8]-1)/Q[0],P=(fe[8]+1)/fe[0],Z=_e*U,de=_e*P,pe=De/(-U+P),he=pe*-U;ve.matrixWorld.decompose(ce.position,ce.quaternion,ce.scale),ce.translateX(he),ce.translateZ(pe),ce.matrixWorld.compose(ce.position,ce.quaternion,ce.scale),ce.matrixWorldInverse.copy(ce.matrixWorld).invert();const le=_e+pe,Me=Ae+pe,Re=Z-he,ge=de+(De-he),D=Ue*Ae/Me*le,N=te*Ae/Me*le;ce.projectionMatrix.makePerspective(Re,ge,D,N,le,Me),ce.projectionMatrixInverse.copy(ce.projectionMatrix).invert()}function W(ce,ve){ve===null?ce.matrixWorld.copy(ce.matrix):ce.matrixWorld.multiplyMatrices(ve.matrixWorld,ce.matrix),ce.matrixWorldInverse.copy(ce.matrixWorld).invert()}this.updateCamera=function(ce){if(r===null)return;C.near=A.near=w.near=ce.near,C.far=A.far=w.far=ce.far,(M!==C.near||G!==C.far)&&(r.updateRenderState({depthNear:C.near,depthFar:C.far}),M=C.near,G=C.far);const ve=ce.parent,Oe=C.cameras;W(C,ve);for(let De=0;De0&&(b.alphaTest.value=g.alphaTest);const E=e.get(g).envMap;if(E&&(b.envMap.value=E,b.flipEnvMap.value=E.isCubeTexture&&E.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 c(b,g,E,v){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*E,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 d(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 u(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function _(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function m(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 h(b,g,E){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=E.texture,b.transmissionSamplerSize.value.set(E.width,E.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 f(b,g){g.matcap&&(b.matcap.value=g.matcap)}function y(b,g){const E=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(E.matrixWorld),b.nearDistance.value=E.shadow.camera.near,b.farDistance.value=E.shadow.camera.far}return{refreshFogUniforms:s,refreshMaterialUniforms:r}}function s1t(n,e,t,s){let r={},i={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(E,v){const S=v.program;s.uniformBlockBinding(E,S)}function d(E,v){let S=r[E.id];S===void 0&&(f(E),S=u(E),r[E.id]=S,E.addEventListener("dispose",b));const R=v.program;s.updateUBOMapping(E,R);const w=e.render.frame;i[E.id]!==w&&(m(E),i[E.id]=w)}function u(E){const v=_();E.__bindingPointIndex=v;const S=n.createBuffer(),R=E.__size,w=E.usage;return n.bindBuffer(n.UNIFORM_BUFFER,S),n.bufferData(n.UNIFORM_BUFFER,R,w),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,v,S),S}function _(){for(let E=0;E0){w=S%R;const V=R-w;w!==0&&V-M.boundary<0&&(S+=R-w,C.__offset=S)}S+=M.storage}return w=S%R,w>0&&(S+=R-w),E.__size=S,E.__cache={},this}function y(E){const v={boundary:0,storage:0};return typeof E=="number"?(v.boundary=4,v.storage=4):E.isVector2?(v.boundary=8,v.storage=8):E.isVector3||E.isColor?(v.boundary=16,v.storage=12):E.isVector4?(v.boundary=16,v.storage=16):E.isMatrix3?(v.boundary=48,v.storage=48):E.isMatrix4?(v.boundary=64,v.storage=64):E.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",E),v}function b(E){const v=E.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),n.deleteBuffer(r[v.id]),delete r[v.id],delete i[v.id]}function g(){for(const E in r)n.deleteBuffer(r[E]);o=[],r={},i={}}return{bind:c,update:d,dispose:g}}class uO{constructor(e={}){const{canvas:t=e0t(),context:s=null,depth:r=!0,stencil:i=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:_=!1}=e;this.isWebGLRenderer=!0;let m;s!==null?m=s.getContextAttributes().alpha:m=o;const h=new Uint32Array(4),f=new Int32Array(4);let y=null,b=null;const g=[],E=[];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=nn,this._useLegacyLights=!1,this.toneMapping=bi,this.toneMappingExposure=1;const v=this;let S=!1,R=0,w=0,A=null,I=-1,C=null;const M=new Wt,G=new Wt;let V=null;const ee=new pt(0);let O=0,H=t.width,q=t.height,L=1,W=null,se=null;const oe=new Wt(0,0,H,q),ye=new Wt(0,0,H,q);let xe=!1;const ce=new my;let ve=!1,Oe=!1,De=null;const Q=new xt,fe=new Rt,_e=new ie,Ae={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ue(){return A===null?L:1}let te=s;function U(F,ue){for(let Ee=0;Ee{function Xe(){if(Se.forEach(function(st){he.get(st).currentProgram.isReady()&&Se.delete(st)}),Se.size===0){be(F);return}setTimeout(Xe,10)}P.get("KHR_parallel_shader_compile")!==null?Xe():setTimeout(Xe,10)})};let Nt=null;function dn(F){Nt&&Nt(F)}function wn(){Rn.stop()}function qt(){Rn.start()}const Rn=new rO;Rn.setAnimationLoop(dn),typeof self<"u"&&Rn.setContext(self),this.setAnimationLoop=function(F){Nt=F,je.setAnimationLoop(F),F===null?Rn.stop():Rn.start()},je.addEventListener("sessionstart",wn),je.addEventListener("sessionend",qt),this.render=function(F,ue){if(ue!==void 0&&ue.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;F.matrixWorldAutoUpdate===!0&&F.updateMatrixWorld(),ue.parent===null&&ue.matrixWorldAutoUpdate===!0&&ue.updateMatrixWorld(),je.enabled===!0&&je.isPresenting===!0&&(je.cameraAutoUpdate===!0&&je.updateCamera(ue),ue=je.getCamera()),F.isScene===!0&&F.onBeforeRender(v,F,ue,A),b=re.get(F,E.length),b.init(),E.push(b),Q.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),ce.setFromProjectionMatrix(Q),Oe=this.localClippingEnabled,ve=Ce.init(this.clippingPlanes,Oe),y=j.get(F,g.length),y.init(),g.push(y),Os(F,ue,0,v.sortObjects),y.finish(),v.sortObjects===!0&&y.sort(W,se),this.info.render.frame++,ve===!0&&Ce.beginShadows();const Ee=b.state.shadowsArray;if(we.render(Ee,F,ue),ve===!0&&Ce.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(y,F),b.setupLights(v._useLegacyLights),ue.isArrayCamera){const Se=ue.cameras;for(let be=0,Xe=Se.length;be0?b=E[E.length-1]:b=null,g.pop(),g.length>0?y=g[g.length-1]:y=null};function Os(F,ue,Ee,Se){if(F.visible===!1)return;if(F.layers.test(ue.layers)){if(F.isGroup)Ee=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(ue);else if(F.isLight)b.pushLight(F),F.castShadow&&b.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||ce.intersectsSprite(F)){Se&&_e.setFromMatrixPosition(F.matrixWorld).applyMatrix4(Q);const st=N.update(F),ct=F.material;ct.visible&&y.push(F,st,ct,Ee,_e.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||ce.intersectsObject(F))){const st=N.update(F),ct=F.material;if(Se&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),_e.copy(F.boundingSphere.center)):(st.boundingSphere===null&&st.computeBoundingSphere(),_e.copy(st.boundingSphere.center)),_e.applyMatrix4(F.matrixWorld).applyMatrix4(Q)),Array.isArray(ct)){const ut=st.groups;for(let Et=0,mt=ut.length;Et0&&ky(be,Xe,ue,Ee),Se&&de.viewport(M.copy(Se)),be.length>0&&ja(be,ue,Ee),Xe.length>0&&ja(Xe,ue,Ee),st.length>0&&ja(st,ue,Ee),de.buffers.depth.setTest(!0),de.buffers.depth.setMask(!0),de.buffers.color.setMask(!0),de.setPolygonOffset(!1)}function ky(F,ue,Ee,Se){if((Ee.isScene===!0?Ee.overrideMaterial:null)!==null)return;const Xe=Z.isWebGL2;De===null&&(De=new mo(1,1,{generateMipmaps:!0,type:P.has("EXT_color_buffer_half_float")?Ql:yi,minFilter:_o,samples:Xe?4:0})),v.getDrawingBufferSize(fe),Xe?De.setSize(fe.x,fe.y):De.setSize(Su(fe.x),Su(fe.y));const st=v.getRenderTarget();v.setRenderTarget(De),v.getClearColor(ee),O=v.getClearAlpha(),O<1&&v.setClearColor(16777215,.5),v.clear();const ct=v.toneMapping;v.toneMapping=bi,ja(F,Ee,Se),le.updateMultisampleRenderTarget(De),le.updateRenderTargetMipmap(De);let ut=!1;for(let Et=0,mt=ue.length;Et0),gt=!!Ee.morphAttributes.position,tn=!!Ee.morphAttributes.normal,qn=!!Ee.morphAttributes.color;let un=bi;Se.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(un=v.toneMapping);const Ws=Ee.morphAttributes.position||Ee.morphAttributes.normal||Ee.morphAttributes.color,Qt=Ws!==void 0?Ws.length:0,St=he.get(Se),hc=b.state.lights;if(ve===!0&&(Oe===!0||F!==C)){const es=F===C&&Se.id===I;Ce.setState(Se,F,es)}let Zt=!1;Se.version===St.__version?(St.needsLights&&St.lightsStateVersion!==hc.state.version||St.outputColorSpace!==ct||be.isBatchedMesh&&St.batching===!1||!be.isBatchedMesh&&St.batching===!0||be.isInstancedMesh&&St.instancing===!1||!be.isInstancedMesh&&St.instancing===!0||be.isSkinnedMesh&&St.skinning===!1||!be.isSkinnedMesh&&St.skinning===!0||be.isInstancedMesh&&St.instancingColor===!0&&be.instanceColor===null||be.isInstancedMesh&&St.instancingColor===!1&&be.instanceColor!==null||St.envMap!==ut||Se.fog===!0&&St.fog!==Xe||St.numClippingPlanes!==void 0&&(St.numClippingPlanes!==Ce.numPlanes||St.numIntersection!==Ce.numIntersection)||St.vertexAlphas!==Et||St.vertexTangents!==mt||St.morphTargets!==gt||St.morphNormals!==tn||St.morphColors!==qn||St.toneMapping!==un||Z.isWebGL2===!0&&St.morphTargetsCount!==Qt)&&(Zt=!0):(Zt=!0,St.__version=Se.version);let zr=St.currentProgram;Zt===!0&&(zr=Qa(Se,ue,be));let wp=!1,vo=!1,gc=!1;const yn=zr.getUniforms(),Hr=St.uniforms;if(de.useProgram(zr.program)&&(wp=!0,vo=!0,gc=!0),Se.id!==I&&(I=Se.id,vo=!0),wp||C!==F){yn.setValue(te,"projectionMatrix",F.projectionMatrix),yn.setValue(te,"viewMatrix",F.matrixWorldInverse);const es=yn.map.cameraPosition;es!==void 0&&es.setValue(te,_e.setFromMatrixPosition(F.matrixWorld)),Z.logarithmicDepthBuffer&&yn.setValue(te,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(Se.isMeshPhongMaterial||Se.isMeshToonMaterial||Se.isMeshLambertMaterial||Se.isMeshBasicMaterial||Se.isMeshStandardMaterial||Se.isShaderMaterial)&&yn.setValue(te,"isOrthographic",F.isOrthographicCamera===!0),C!==F&&(C=F,vo=!0,gc=!0)}if(be.isSkinnedMesh){yn.setOptional(te,be,"bindMatrix"),yn.setOptional(te,be,"bindMatrixInverse");const es=be.skeleton;es&&(Z.floatVertexTextures?(es.boneTexture===null&&es.computeBoneTexture(),yn.setValue(te,"boneTexture",es.boneTexture,le)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}be.isBatchedMesh&&(yn.setOptional(te,be,"batchingTexture"),yn.setValue(te,"batchingTexture",be._matricesTexture,le));const bc=Ee.morphAttributes;if((bc.position!==void 0||bc.normal!==void 0||bc.color!==void 0&&Z.isWebGL2===!0)&&We.update(be,Ee,zr),(vo||St.receiveShadow!==be.receiveShadow)&&(St.receiveShadow=be.receiveShadow,yn.setValue(te,"receiveShadow",be.receiveShadow)),Se.isMeshGouraudMaterial&&Se.envMap!==null&&(Hr.envMap.value=ut,Hr.flipEnvMap.value=ut.isCubeTexture&&ut.isRenderTargetTexture===!1?-1:1),vo&&(yn.setValue(te,"toneMappingExposure",v.toneMappingExposure),St.needsLights&&Ly(Hr,gc),Xe&&Se.fog===!0&&me.refreshFogUniforms(Hr,Xe),me.refreshMaterialUniforms(Hr,Se,L,q,De),Dd.upload(te,xp(St),Hr,le)),Se.isShaderMaterial&&Se.uniformsNeedUpdate===!0&&(Dd.upload(te,xp(St),Hr,le),Se.uniformsNeedUpdate=!1),Se.isSpriteMaterial&&yn.setValue(te,"center",be.center),yn.setValue(te,"modelViewMatrix",be.modelViewMatrix),yn.setValue(te,"normalMatrix",be.normalMatrix),yn.setValue(te,"modelMatrix",be.matrixWorld),Se.isShaderMaterial||Se.isRawShaderMaterial){const es=Se.uniformsGroups;for(let yc=0,Fy=es.length;yc0&&le.useMultisampledRTT(F)===!1?be=he.get(F).__webglMultisampledFramebuffer:Array.isArray(mt)?be=mt[Ee]:be=mt,M.copy(F.viewport),G.copy(F.scissor),V=F.scissorTest}else M.copy(oe).multiplyScalar(L).floor(),G.copy(ye).multiplyScalar(L).floor(),V=xe;if(de.bindFramebuffer(te.FRAMEBUFFER,be)&&Z.drawBuffers&&Se&&de.drawBuffers(F,be),de.viewport(M),de.scissor(G),de.setScissorTest(V),Xe){const ut=he.get(F.texture);te.framebufferTexture2D(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,te.TEXTURE_CUBE_MAP_POSITIVE_X+ue,ut.__webglTexture,Ee)}else if(st){const ut=he.get(F.texture),Et=ue||0;te.framebufferTextureLayer(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,ut.__webglTexture,Ee||0,Et)}I=-1},this.readRenderTargetPixels=function(F,ue,Ee,Se,be,Xe,st){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ct=he.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&st!==void 0&&(ct=ct[st]),ct){de.bindFramebuffer(te.FRAMEBUFFER,ct);try{const ut=F.texture,Et=ut.format,mt=ut.type;if(Et!==gs&&Mt.convert(Et)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const gt=mt===Ql&&(P.has("EXT_color_buffer_half_float")||Z.isWebGL2&&P.has("EXT_color_buffer_float"));if(mt!==yi&&Mt.convert(mt)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_TYPE)&&!(mt===Ar&&(Z.isWebGL2||P.has("OES_texture_float")||P.has("WEBGL_color_buffer_float")))&&!gt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ue>=0&&ue<=F.width-Se&&Ee>=0&&Ee<=F.height-be&&te.readPixels(ue,Ee,Se,be,Mt.convert(Et),Mt.convert(mt),Xe)}finally{const ut=A!==null?he.get(A).__webglFramebuffer:null;de.bindFramebuffer(te.FRAMEBUFFER,ut)}}},this.copyFramebufferToTexture=function(F,ue,Ee=0){const Se=Math.pow(2,-Ee),be=Math.floor(ue.image.width*Se),Xe=Math.floor(ue.image.height*Se);le.setTexture2D(ue,0),te.copyTexSubImage2D(te.TEXTURE_2D,Ee,0,0,F.x,F.y,be,Xe),de.unbindTexture()},this.copyTextureToTexture=function(F,ue,Ee,Se=0){const be=ue.image.width,Xe=ue.image.height,st=Mt.convert(Ee.format),ct=Mt.convert(Ee.type);le.setTexture2D(Ee,0),te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,Ee.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ee.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,Ee.unpackAlignment),ue.isDataTexture?te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,be,Xe,st,ct,ue.image.data):ue.isCompressedTexture?te.compressedTexSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,ue.mipmaps[0].width,ue.mipmaps[0].height,st,ue.mipmaps[0].data):te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,st,ct,ue.image),Se===0&&Ee.generateMipmaps&&te.generateMipmap(te.TEXTURE_2D),de.unbindTexture()},this.copyTextureToTexture3D=function(F,ue,Ee,Se,be=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Xe=F.max.x-F.min.x+1,st=F.max.y-F.min.y+1,ct=F.max.z-F.min.z+1,ut=Mt.convert(Se.format),Et=Mt.convert(Se.type);let mt;if(Se.isData3DTexture)le.setTexture3D(Se,0),mt=te.TEXTURE_3D;else if(Se.isDataArrayTexture)le.setTexture2DArray(Se,0),mt=te.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,Se.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Se.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,Se.unpackAlignment);const gt=te.getParameter(te.UNPACK_ROW_LENGTH),tn=te.getParameter(te.UNPACK_IMAGE_HEIGHT),qn=te.getParameter(te.UNPACK_SKIP_PIXELS),un=te.getParameter(te.UNPACK_SKIP_ROWS),Ws=te.getParameter(te.UNPACK_SKIP_IMAGES),Qt=Ee.isCompressedTexture?Ee.mipmaps[0]:Ee.image;te.pixelStorei(te.UNPACK_ROW_LENGTH,Qt.width),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,Qt.height),te.pixelStorei(te.UNPACK_SKIP_PIXELS,F.min.x),te.pixelStorei(te.UNPACK_SKIP_ROWS,F.min.y),te.pixelStorei(te.UNPACK_SKIP_IMAGES,F.min.z),Ee.isDataTexture||Ee.isData3DTexture?te.texSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,st,ct,ut,Et,Qt.data):Ee.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),te.compressedTexSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,st,ct,ut,Qt.data)):te.texSubImage3D(mt,be,ue.x,ue.y,ue.z,Xe,st,ct,ut,Et,Qt),te.pixelStorei(te.UNPACK_ROW_LENGTH,gt),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,tn),te.pixelStorei(te.UNPACK_SKIP_PIXELS,qn),te.pixelStorei(te.UNPACK_SKIP_ROWS,un),te.pixelStorei(te.UNPACK_SKIP_IMAGES,Ws),be===0&&Se.generateMipmaps&&te.generateMipmap(mt),de.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?le.setTextureCube(F,0):F.isData3DTexture?le.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?le.setTexture2DArray(F,0):le.setTexture2D(F,0),de.unbindTexture()},this.resetState=function(){R=0,w=0,A=null,de.reset(),et.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Mr}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===fy?"display-p3":"srgb",t.unpackColorSpace=Lt.workingColorSpace===mp?"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===nn?ro:YN}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===ro?nn:Cn}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 r1t extends uO{}r1t.prototype.isWebGL1Renderer=!0;class i1t extends Jt{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 o1t{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=Eb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Gs()}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,s){e*=this.stride,s*=t.stride;for(let r=0,i=this.stride;rc)continue;m.applyMatrix4(this.matrixWorld);const I=e.ray.origin.distanceTo(m);Ie.far||t.push({distance:I,point:_.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),E=Math.min(b.count,o.start+o.count);for(let v=g,S=E-1;vc)continue;m.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(m);we.far||t.push({distance:w,point:_.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,s=Object.keys(t);if(s.length>0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;i0){const r=t[s[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,o=r.length;ir.far)return;i.push({distance:d,distanceToRay:Math.sqrt(a),point:c,index:e,face:null,object:o})}}class Sy extends Vs{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new pt(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 pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=py,this.normalScale=new Rt(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 Vr extends Sy{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 Rt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return On(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 pt(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 pt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new pt(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 Hw extends Vs{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new pt(16777215),this.specular=new pt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=py,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=dy,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 hd(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 h1t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function g1t(n){function e(r,i){return n[r]-n[i]}const t=n.length,s=new Array(t);for(let r=0;r!==t;++r)s[r]=r;return s.sort(e),s}function qw(n,e,t){const s=n.length,r=new n.constructor(s);for(let i=0,o=0;o!==s;++i){const a=t[i]*e;for(let c=0;c!==e;++c)r[o++]=n[a+c]}return r}function mO(n,e,t,s){let r=1,i=n[0];for(;i!==void 0&&i[s]===void 0;)i=n[r++];if(i===void 0)return;let o=i[s];if(o!==void 0)if(Array.isArray(o))do o=i[s],o!==void 0&&(e.push(i.time),t.push.apply(t,o)),i=n[r++];while(i!==void 0);else if(o.toArray!==void 0)do o=i[s],o!==void 0&&(e.push(i.time),o.toArray(t,t.length)),i=n[r++];while(i!==void 0);else do o=i[s],o!==void 0&&(e.push(i.time),t.push(o)),i=n[r++];while(i!==void 0)}class fc{constructor(e,t,s,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r!==void 0?r:new t.constructor(s),this.sampleValues=t,this.valueSize=s,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let s=this._cachedIndex,r=t[s],i=t[s-1];e:{t:{let o;n:{s:if(!(e=i)){const a=t[1];e=i)break t}o=s,s=0;break n}break e}for(;s>>1;et;)--o;if(++o,i!==0||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const a=this.getValueSize();this.times=s.slice(i,o),this.values=this.values.slice(i*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 s=this.times,r=this.values,i=s.length;i===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==i;a++){const c=s[a];if(typeof c=="number"&&isNaN(c)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,c),e=!1;break}if(o!==null&&o>c){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,c,o),e=!1;break}o=c}if(r!==void 0&&h1t(r))for(let a=0,c=r.length;a!==c;++a){const d=r[a];if(isNaN(d)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,d),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),s=this.getValueSize(),r=this.getInterpolation()===Qh,i=e.length-1;let o=1;for(let a=1;a0){e[o]=e[i];for(let a=i*s,c=o*s,d=0;d!==s;++d)t[c+d]=t[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*s)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),s=this.constructor,r=new s(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}}_r.prototype.TimeBufferType=Float32Array;_r.prototype.ValueBufferType=Float32Array;_r.prototype.DefaultInterpolation=Ta;class Ya extends _r{}Ya.prototype.ValueTypeName="bool";Ya.prototype.ValueBufferType=Array;Ya.prototype.DefaultInterpolation=Xl;Ya.prototype.InterpolantFactoryMethodLinear=void 0;Ya.prototype.InterpolantFactoryMethodSmooth=void 0;class hO extends _r{}hO.prototype.ValueTypeName="color";class wa extends _r{}wa.prototype.ValueTypeName="number";class v1t extends fc{constructor(e,t,s,r){super(e,t,s,r)}interpolate_(e,t,s,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=(s-t)/(r-t);let d=e*a;for(let u=d+a;d!==u;d+=4)Ni.slerpFlat(i,0,o,d-a,o,d,c);return i}}class go extends _r{InterpolantFactoryMethodLinear(e){return new v1t(this.times,this.values,this.getValueSize(),e)}}go.prototype.ValueTypeName="quaternion";go.prototype.DefaultInterpolation=Ta;go.prototype.InterpolantFactoryMethodSmooth=void 0;class $a extends _r{}$a.prototype.ValueTypeName="string";$a.prototype.ValueBufferType=Array;$a.prototype.DefaultInterpolation=Xl;$a.prototype.InterpolantFactoryMethodLinear=void 0;$a.prototype.InterpolantFactoryMethodSmooth=void 0;class Ra extends _r{}Ra.prototype.ValueTypeName="vector";class S1t{constructor(e,t=-1,s,r=Rbt){this.name=e,this.tracks=s,this.duration=t,this.blendMode=r,this.uuid=Gs(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],s=e.tracks,r=1/(e.fps||1);for(let o=0,a=s.length;o!==a;++o)t.push(x1t(s[o]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],s=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let i=0,o=s.length;i!==o;++i)t.push(_r.toJSON(s[i]));return r}static CreateFromMorphTargetSequence(e,t,s,r){const i=t.length,o=[];for(let a=0;a1){const _=u[1];let m=r[_];m||(r[_]=m=[]),m.push(d)}}const o=[];for(const a in r)o.push(this.CreateFromMorphTargetSequence(a,r[a],t,s));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const s=function(_,m,h,f,y){if(h.length!==0){const b=[],g=[];mO(h,b,g,f),b.length!==0&&y.push(new _(m,b,g))}},r=[],i=e.name||"default",o=e.fps||30,a=e.blendMode;let c=e.length||-1;const d=e.hierarchy||[];for(let _=0;_{t&&t(i),this.manager.itemEnd(e)},0),i;if(Sr[e]!==void 0){Sr[e].push({onLoad:t,onProgress:s,onError:r});return}Sr[e]=[],Sr[e].push({onLoad:t,onProgress:s,onError:r});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,c=this.responseType;fetch(o).then(d=>{if(d.status===200||d.status===0){if(d.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||d.body===void 0||d.body.getReader===void 0)return d;const u=Sr[e],_=d.body.getReader(),m=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),h=m?parseInt(m):0,f=h!==0;let y=0;const b=new ReadableStream({start(g){E();function E(){_.read().then(({done:v,value:S})=>{if(v)g.close();else{y+=S.byteLength;const R=new ProgressEvent("progress",{lengthComputable:f,loaded:y,total:h});for(let w=0,A=u.length;w{switch(c){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"document":return d.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return d.json();default:if(a===void 0)return d.text();{const _=/charset="?([^;"\s]*)"?/i.exec(a),m=_&&_[1]?_[1].toLowerCase():void 0,h=new TextDecoder(m);return d.arrayBuffer().then(f=>h.decode(f))}}}).then(d=>{Aa.add(e,d);const u=Sr[e];delete Sr[e];for(let _=0,m=u.length;_{const u=Sr[e];if(u===void 0)throw this.manager.itemError(e),d;delete Sr[e];for(let _=0,m=u.length;_{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class A1t extends Wa{constructor(e){super(e)}load(e,t,s,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=Aa.get(e);if(o!==void 0)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;const a=Zl("img");function c(){u(),Aa.add(e,this),t&&t(this),i.manager.itemEnd(e)}function d(_){u(),r&&r(_),i.manager.itemError(e),i.manager.itemEnd(e)}function u(){a.removeEventListener("load",c,!1),a.removeEventListener("error",d,!1)}return a.addEventListener("load",c,!1),a.addEventListener("error",d,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(e),a.src=e,a}}class bO extends Wa{constructor(e){super(e)}load(e,t,s,r){const i=new xn,o=new A1t(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){i.image=a,i.needsUpdate=!0,t!==void 0&&t(i)},s,r),i}}class yp extends Jt{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new pt(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 Tg=new xt,Yw=new ie,$w=new ie;class Ty{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Rt(512,512),this.map=null,this.mapPass=null,this.matrix=new xt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new my,this._frameExtents=new Rt(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,s=this.matrix;Yw.setFromMatrixPosition(e.matrixWorld),t.position.copy(Yw),$w.setFromMatrixPosition(e.target.matrixWorld),t.lookAt($w),t.updateMatrixWorld(),Tg.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Tg),s.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),s.multiply(Tg)}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 M1t extends Ty{constructor(){super(new Gn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,s=xa*2*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;(s!==t.fov||r!==t.aspect||i!==t.far)&&(t.fov=s,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class N1t extends yp{constructor(e,t,s=0,r=Math.PI/3,i=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=s,this.angle=r,this.penumbra=i,this.decay=o,this.map=null,this.shadow=new M1t}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 Ww=new xt,pl=new ie,xg=new ie;class O1t extends Ty{constructor(){super(new Gn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Rt(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 ie(1,0,0),new ie(-1,0,0),new ie(0,0,1),new ie(0,0,-1),new ie(0,1,0),new ie(0,-1,0)],this._cubeUps=[new ie(0,1,0),new ie(0,1,0),new ie(0,1,0),new ie(0,1,0),new ie(0,0,1),new ie(0,0,-1)]}updateMatrices(e,t=0){const s=this.camera,r=this.matrix,i=e.distance||s.far;i!==s.far&&(s.far=i,s.updateProjectionMatrix()),pl.setFromMatrixPosition(e.matrixWorld),s.position.copy(pl),xg.copy(s.position),xg.add(this._cubeDirections[t]),s.up.copy(this._cubeUps[t]),s.lookAt(xg),s.updateMatrixWorld(),r.makeTranslation(-pl.x,-pl.y,-pl.z),Ww.multiplyMatrices(s.projectionMatrix,s.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Ww)}}class I1t extends yp{constructor(e,t,s=0,r=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=s,this.decay=r,this.shadow=new O1t}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 k1t extends Ty{constructor(){super(new gy(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class yO extends yp{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new k1t}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class D1t extends yp{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Dl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let s=0,r=e.length;s"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,s,r){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=Aa.get(e);if(o!==void 0)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(i.options,{colorSpaceConversion:"none"}))}).then(function(c){Aa.add(e,c),t&&t(c),i.manager.itemEnd(e)}).catch(function(c){r&&r(c),i.manager.itemError(e),i.manager.itemEnd(e)}),i.manager.itemStart(e)}}const xy="\\[\\]\\.:\\/",P1t=new RegExp("["+xy+"]","g"),Cy="[^"+xy+"]",F1t="[^"+xy.replace("\\.","")+"]",U1t=/((?:WC+[\/:])*)/.source.replace("WC",Cy),B1t=/(WCOD+)?/.source.replace("WCOD",F1t),G1t=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Cy),V1t=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Cy),z1t=new RegExp("^"+U1t+B1t+G1t+V1t+"$"),H1t=["material","materials","bones","map"];class q1t{constructor(e,t,s){const r=s||Ut.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();const s=this._targetGroup.nCachedObjects_,r=this._bindings[s];r!==void 0&&r.getValue(e,t)}setValue(e,t){const s=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=s.length;r!==i;++r)s[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,s=e.length;t!==s;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,s=e.length;t!==s;++t)e[t].unbind()}}class Ut{constructor(e,t,s){this.path=t,this.parsedPath=s||Ut.parseTrackName(t),this.node=Ut.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,s){return e&&e.isAnimationObjectGroup?new Ut.Composite(e,t,s):new Ut(e,t,s)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(P1t,"")}static parseTrackName(e){const t=z1t.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const s={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=s.nodeName&&s.nodeName.lastIndexOf(".");if(r!==void 0&&r!==-1){const i=s.nodeName.substring(r+1);H1t.indexOf(i)!==-1&&(s.nodeName=s.nodeName.substring(0,r),s.objectName=i)}if(s.propertyName===null||s.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return s}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const s=e.skeleton.getBoneByName(t);if(s!==void 0)return s}if(e.children){const s=function(i){for(let o=0;o=2.0 are supported."));return}const d=new TTt(i,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});d.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&a[_]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+_+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(s,r)}parseAsync(e,t){const s=this;return new Promise(function(r,i){s.parse(e,t,r,i)})}}function $1t(){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 wt={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 W1t{constructor(e){this.parser=e,this.name=wt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let s=0,r=t.length;s=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,i.source,o)}}class oTt{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,s=this.parser,r=s.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const o=i.extensions[t],a=r.images[o.source];let c=s.textureLoader;if(a.uri){const d=s.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return s.loadTextureImage(e,o.source,c);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return s.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 aTt{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,s=this.parser,r=s.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const o=i.extensions[t],a=r.images[o.source];let c=s.textureLoader;if(a.uri){const d=s.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return s.loadTextureImage(e,o.source,c);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return s.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 lTt{constructor(e){this.name=wt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,s=t.bufferViews[e];if(s.extensions&&s.extensions[this.name]){const r=s.extensions[this.name],i=this.parser.getDependency("buffer",r.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 i.then(function(a){const c=r.byteOffset||0,d=r.byteLength||0,u=r.count,_=r.byteStride,m=new Uint8Array(a,c,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,_,m,r.mode,r.filter).then(function(h){return h.buffer}):o.ready.then(function(){const h=new ArrayBuffer(u*_);return o.decodeGltfBuffer(new Uint8Array(h),u,_,m,r.mode,r.filter),h})})}else return null}}class cTt{constructor(e){this.name=wt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,s=t.nodes[e];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;const r=t.meshes[s.mesh];for(const d of r.primitives)if(d.mode!==_s.TRIANGLES&&d.mode!==_s.TRIANGLE_STRIP&&d.mode!==_s.TRIANGLE_FAN&&d.mode!==void 0)return null;const o=s.extensions[this.name].attributes,a=[],c={};for(const d in o)a.push(this.parser.getDependency("accessor",o[d]).then(u=>(c[d]=u,c[d])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(d=>{const u=d.pop(),_=u.isGroup?u.children:[u],m=d[0].count,h=[];for(const f of _){const y=new xt,b=new ie,g=new Ni,E=new ie(1,1,1),v=new p1t(f.geometry,f.material,m);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 STt=new xt;class TTt{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new $1t,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 s=!1,r=!1,i=-1;typeof navigator<"u"&&(s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,r=navigator.userAgent.indexOf("Firefox")>-1,i=r?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||s||r&&i<98?this.textureLoader=new bO(this.options.manager):this.textureLoader=new L1t(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new gO(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 s=this,r=this.json,i=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([s.getDependencies("scene"),s.getDependencies("animation"),s.getDependencies("camera")])}).then(function(o){const a={scene:o[0][r.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:r.asset,parser:s,userData:{}};return Bi(i,a,r),di(a,r),Promise.all(s._invokeAll(function(c){return c.afterRoot&&c.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],s=this.json.meshes||[];for(let r=0,i=t.length;r{const c=this.associations.get(o);c!=null&&this.associations.set(a,c);for(const[d,u]of o.children.entries())i(u,a.children[d])};return i(s,r),r.name+="_instance_"+e.uses[t]++,r}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let s=0;s=2&&b.setY(C,w[A*c+1]),c>=3&&b.setZ(C,w[A*c+2]),c>=4&&b.setW(C,w[A*c+3]),c>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,s=this.options,i=t.textures[e].source,o=t.images[i];let a=this.textureLoader;if(o.uri){const c=s.manager.getHandler(o.uri);c!==null&&(a=c)}return this.loadTextureImage(e,i,a)}loadTextureImage(e,t,s){const r=this,i=this.json,o=i.textures[e],a=i.images[t],c=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[c])return this.textureCache[c];const d=this.loadImageSource(t,s).then(function(u){u.flipY=!1,u.name=o.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const m=(i.samplers||{})[o.sampler]||{};return u.magFilter=Qw[m.magFilter]||Wn,u.minFilter=Qw[m.minFilter]||_o,u.wrapS=Xw[m.wrapS]||va,u.wrapT=Xw[m.wrapT]||va,r.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[c]=d,d}loadImageSource(e,t){const s=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(_=>_.clone());const o=r.images[e],a=self.URL||self.webkitURL;let c=o.uri||"",d=!1;if(o.bufferView!==void 0)c=s.getDependency("bufferView",o.bufferView).then(function(_){d=!0;const m=new Blob([_],{type:o.mimeType});return c=a.createObjectURL(m),c});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(c).then(function(_){return new Promise(function(m,h){let f=m;t.isImageBitmapLoader===!0&&(f=function(y){const b=new xn(y);b.needsUpdate=!0,m(b)}),t.load(Dl.resolveURL(_,i.path),f,void 0,h)})}).then(function(_){return d===!0&&a.revokeObjectURL(c),_.userData.mimeType=o.mimeType||vTt(o.uri),_}).catch(function(_){throw console.error("THREE.GLTFLoader: Couldn't load texture",c),_});return this.sourceCache[e]=u,u}assignTexture(e,t,s,r){const i=this;return this.getDependency("texture",s.index).then(function(o){if(!o)return null;if(s.texCoord!==void 0&&s.texCoord>0&&(o=o.clone(),o.channel=s.texCoord),i.extensions[wt.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[wt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const c=i.associations.get(o);o=i.extensions[wt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),i.associations.set(o,c)}}return r!==void 0&&(o.colorSpace=r),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let s=e.material;const r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+s.uuid;let c=this.cache.get(a);c||(c=new _O,Vs.prototype.copy.call(c,s),c.color.copy(s.color),c.map=s.map,c.sizeAttenuation=!1,this.cache.add(a,c)),s=c}else if(e.isLine){const a="LineBasicMaterial:"+s.uuid;let c=this.cache.get(a);c||(c=new fO,Vs.prototype.copy.call(c,s),c.color.copy(s.color),c.map=s.map,this.cache.add(a,c)),s=c}if(r||i||o){let a="ClonedMaterial:"+s.uuid+":";r&&(a+="derivative-tangents:"),i&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let c=this.cache.get(a);c||(c=s.clone(),i&&(c.vertexColors=!0),o&&(c.flatShading=!0),r&&(c.normalScale&&(c.normalScale.y*=-1),c.clearcoatNormalScale&&(c.clearcoatNormalScale.y*=-1)),this.cache.add(a,c),this.associations.set(c,this.associations.get(s))),s=c}e.material=s}getMaterialType(){return Sy}loadMaterial(e){const t=this,s=this.json,r=this.extensions,i=s.materials[e];let o;const a={},c=i.extensions||{},d=[];if(c[wt.KHR_MATERIALS_UNLIT]){const _=r[wt.KHR_MATERIALS_UNLIT];o=_.getMaterialType(),d.push(_.extendParams(a,i,t))}else{const _=i.pbrMetallicRoughness||{};if(a.color=new pt(1,1,1),a.opacity=1,Array.isArray(_.baseColorFactor)){const m=_.baseColorFactor;a.color.setRGB(m[0],m[1],m[2],Cn),a.opacity=m[3]}_.baseColorTexture!==void 0&&d.push(t.assignTexture(a,"map",_.baseColorTexture,nn)),a.metalness=_.metallicFactor!==void 0?_.metallicFactor:1,a.roughness=_.roughnessFactor!==void 0?_.roughnessFactor:1,_.metallicRoughnessTexture!==void 0&&(d.push(t.assignTexture(a,"metalnessMap",_.metallicRoughnessTexture)),d.push(t.assignTexture(a,"roughnessMap",_.metallicRoughnessTexture))),o=this._invokeOne(function(m){return m.getMaterialType&&m.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(m){return m.extendMaterialParams&&m.extendMaterialParams(e,a)})))}i.doubleSided===!0&&(a.side=Js);const u=i.alphaMode||wg.OPAQUE;if(u===wg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===wg.MASK&&(a.alphaTest=i.alphaCutoff!==void 0?i.alphaCutoff:.5)),i.normalTexture!==void 0&&o!==_i&&(d.push(t.assignTexture(a,"normalMap",i.normalTexture)),a.normalScale=new Rt(1,1),i.normalTexture.scale!==void 0)){const _=i.normalTexture.scale;a.normalScale.set(_,_)}if(i.occlusionTexture!==void 0&&o!==_i&&(d.push(t.assignTexture(a,"aoMap",i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&o!==_i){const _=i.emissiveFactor;a.emissive=new pt().setRGB(_[0],_[1],_[2],Cn)}return i.emissiveTexture!==void 0&&o!==_i&&d.push(t.assignTexture(a,"emissiveMap",i.emissiveTexture,nn)),Promise.all(d).then(function(){const _=new o(a);return i.name&&(_.name=i.name),di(_,i),t.associations.set(_,{materials:e}),i.extensions&&Bi(r,_,i),_})}createUniqueName(e){const t=Ut.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,s=this.extensions,r=this.primitiveCache;function i(a){return s[wt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(c){return Zw(c,a,t)})}const o=[];for(let a=0,c=e.length;a0&&yTt(g,i),g.name=t.createUniqueName(i.name||"mesh_"+e),di(g,i),b.extensions&&Bi(r,g,b),t.assignFinalMaterial(g),_.push(g)}for(let h=0,f=_.length;h1?u=new Qi:d.length===1?u=d[0]:u=new Jt,u!==d[0])for(let _=0,m=d.length;_{const _=new Map;for(const[m,h]of r.associations)(m instanceof Vs||m instanceof xn)&&_.set(m,h);return u.traverse(m=>{const h=r.associations.get(m);h!=null&&_.set(m,h)}),_};return r.associations=d(i),i})}_createAnimationTracks(e,t,s,r,i){const o=[],a=e.name?e.name:e.uuid,c=[];Jr[i.path]===Jr.weights?e.traverse(function(m){m.morphTargetInfluences&&c.push(m.name?m.name:m.uuid)}):c.push(a);let d;switch(Jr[i.path]){case Jr.weights:d=wa;break;case Jr.rotation:d=go;break;case Jr.position:case Jr.scale:d=Ra;break;default:switch(s.itemSize){case 1:d=wa;break;case 2:case 3:default:d=Ra;break}break}const u=r.interpolation!==void 0?hTt[r.interpolation]:Ta,_=this._getArrayFromAccessor(s);for(let m=0,h=c.length;m{Ve.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,Ye.emit("stop_webcam_video_stream"),Fe(()=>{Ve.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(){Ve.replace(),Ye.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)}})}},wTt=["src"],RTt=["src"],ATt={class:"controls"},MTt={key:2};function NTt(n,e,t,s,r,i){return T(),x("div",{class:"floating-frame bg-white",style:Bt({bottom:r.position.bottom+"px",right:r.position.right+"px","z-index":r.zIndex}),onMousedown:e[4]||(e[4]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},"Drag Me",32),r.isVideoActive&&r.imageDataUrl!=null?(T(),x("img",{key:0,src:r.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,wTt)):B("",!0),r.isVideoActive&&r.imageDataUrl==null?(T(),x("p",{key:1,src:r.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,RTt)):B("",!0),l("div",ATt,[r.isVideoActive?B("",!0):(T(),x("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)=>i.startVideoStream&&i.startVideoStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"video"},null,-1)]))),r.isVideoActive?(T(),x("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)=>i.stopVideoStream&&i.stopVideoStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"video"},null,-1)]))):B("",!0),r.isVideoActive?(T(),x("span",MTt,"FPS: "+Y(r.frameRate),1)):B("",!0)])],36)}const OTt=rt(CTt,[["render",NTt]]),ITt={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(){Ye.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Fe(()=>{Ve.replace()})},stopAudioStream(){Ye.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Fe(()=>{Ve.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(){Ve.replace(),Ye.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)}})}},kTt=["src"],DTt={class:"controls"};function LTt(n,e,t,s,r,i){return T(),x("div",{class:"floating-frame bg-white",style:Bt({bottom:r.position.bottom+"px",right:r.position.right+"px","z-index":r.zIndex}),onMousedown:e[4]||(e[4]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=$((...o)=>i.startDrag&&i.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=$((...o)=>i.stopDrag&&i.stopDrag(...o),["stop"]))},"Drag Me",32),r.isAudioActive&&r.imageDataUrl!=null?(T(),x("img",{key:0,src:r.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,kTt)):B("",!0),l("div",DTt,[r.isAudioActive?B("",!0):(T(),x("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)=>i.startAudioStream&&i.startAudioStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"mic"},null,-1)]))),r.isAudioActive?(T(),x("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)=>i.stopAudioStream&&i.stopAudioStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"mic"},null,-1)]))):B("",!0)])],36)}const PTt=rt(ITt,[["render",LTt]]),FTt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:OTt,AudioFrame:PTt},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(),Fe(()=>{Ve.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 i1t,this.camera=new Gn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new uO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new Ei,e=new Hw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube);const t=new D1t(4210752),s=new yO(16777215,.5);s.position.set(0,1,0),this.scene.add(t),this.scene.add(s),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 Y1t().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 Ei,t=new bO().load(n),s=new _i({map:t});this.cube=new Vn(e,s),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new Ei,e=new Hw({color:65280});this.cube=new Vn(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)}}},UTt={ref:"webglContainer"},BTt={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"},GTt={key:0,class:"text-center"},VTt={key:1,class:"text-center"},zTt={class:"floating-frame2"},HTt=["innerHTML"];function qTt(n,e,t,s,r,i){const o=nt("VideoFrame"),a=nt("AudioFrame");return T(),x(Be,null,[l("div",UTt,null,512),l("div",BTt,[!r.activePersonality||!r.activePersonality.scene_path?(T(),x("div",GTt," Personality does not have a 3d avatar. ")):B("",!0),!r.activePersonality||!r.activePersonality.avatar||r.activePersonality.avatar===""?(T(),x("div",VTt," Personality does not have an avatar. ")):B("",!0),l("div",zTt,[l("div",{innerHTML:n.htmlContent},null,8,HTt)])]),z(o,{ref:"video_frame"},null,512),z(a,{ref:"audio_frame"},null,512)],64)}const YTt=rt(FTt,[["render",qTt]]);let gd;const $Tt=new Uint8Array(16);function WTt(){if(!gd&&(gd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gd($Tt)}const En=[];for(let n=0;n<256;++n)En.push((n+256).toString(16).slice(1));function KTt(n,e=0){return En[n[e+0]]+En[n[e+1]]+En[n[e+2]]+En[n[e+3]]+"-"+En[n[e+4]]+En[n[e+5]]+"-"+En[n[e+6]]+En[n[e+7]]+"-"+En[n[e+8]]+En[n[e+9]]+"-"+En[n[e+10]]+En[n[e+11]]+En[n[e+12]]+En[n[e+13]]+En[n[e+14]]+En[n[e+15]]}const jTt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Jw={randomUUID:jTt};function Dr(n,e,t){if(Jw.randomUUID&&!e&&!n)return Jw.randomUUID();n=n||{};const s=n.random||(n.rng||WTt)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,KTt(s)}class io{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 s=this._listeners.indexOf(t);s>=0&&this._listeners.splice(s,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 s=this.proxies.indexOf(t);s>=0&&this.proxies.splice(s,1)}}class Vt extends io{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class kn extends io{constructor(e){super(),this.entity=e}emit(e){let t=!1;const s=()=>[t=!0];for(const r of Array.from(this.listeners.values()))if(r(e,s,this.entity),t)return{prevented:!0};return{prevented:!1}}}class SO extends io{execute(e,t){let s=e;for(const r of this.listeners)s=r(s,t);return s}}class cs extends SO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class QTt extends io{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const s of this.listeners)t.push(s(e,this.entity));return t}}function Qs(){const n=Symbol(),e=new Map,t=new Set,s=(c,d)=>{d instanceof io&&d.registerProxy(n,()=>{var u,_;return(_=(u=e.get(c))===null||u===void 0?void 0:u.listeners)!==null&&_!==void 0?_:[]})},r=c=>{const d=new io;e.set(c,d),t.forEach(u=>s(c,u[c]))},i=c=>{t.add(c);for(const d of e.keys())s(d,c[d])},o=c=>{for(const d of e.keys())c[d]instanceof io&&c[d].unregisterProxy(n);t.delete(c)},a=()=>{t.forEach(c=>o(c)),e.clear()};return new Proxy({},{get(c,d){return d==="addTarget"?i:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?c[d]:(e.has(d)||r(d),e.get(d))}})}class e2{constructor(e,t){if(this.destructed=!1,this.events={destruct:new Vt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Dr(),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 TO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Dr(),this.from=e,this.to=t}}function Ab(n,e){return Object.fromEntries(Object.entries(n).map(([t,s])=>[t,e(s)]))}class xO{constructor(){this._title="",this.id=Dr(),this.events={loaded:new Vt(this),beforeAddInput:new kn(this),addInput:new Vt(this),beforeRemoveInput:new kn(this),removeInput:new Vt(this),beforeAddOutput:new kn(this),addOutput:new Vt(this),beforeRemoveOutput:new kn(this),removeOutput:new Vt(this),beforeTitleChanged:new kn(this),titleChanged:new Vt(this),update:new Vt(this)},this.hooks={beforeLoad:new cs(this),afterSave:new cs(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,s])=>{this.inputs[t]&&(this.inputs[t].load(s),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,s])=>{this.outputs[t]&&(this.outputs[t].load(s),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=Ab(this.inputs,r=>r.save()),t=Ab(this.outputs,r=>r.save()),s={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(s)}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,s){s.isInput=e==="input",s.nodeId=this.id,s.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:s}))}addInterface(e,t,s){const r=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,i=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return r.emit(s).prevented?!1:(o[t]=s,this.initializeIntf(e,t,s),i.emit(s),!0)}removeInterface(e,t){const s=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,r=e==="input"?this.events.removeInput:this.events.removeOutput,i=e==="input"?this.inputs[t]:this.outputs[t];if(!i||s.emit(i).prevented)return!1;if(i.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===i||a.to===i).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return i.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],r.emit(i),!0}}let CO=class extends xO{load(e){super.load(e)}save(){return super.save()}};function Ka(n){return class extends CO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(s,r)=>n.calculate.call(this,s,r):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(s=>{const r=t[s]();e==="input"?this.addInput(s,r):this.addOutput(s,r)})}}}class en{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=Dr(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new Vt(this),beforeSetValue:new kn(this),setValue:new Vt(this),updated:new Vt(this)},this.hooks={load:new cs(this),save:new cs(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 Ma="__baklava_SubgraphInputNode",Na="__baklava_SubgraphOutputNode";class wO extends CO{constructor(){super(),this.graphInterfaceId=Dr()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class wy extends wO{constructor(){super(...arguments),this.type=Ma,this.inputs={name:new en("Name","Input")},this.outputs={placeholder:new en("Value",void 0)}}static isGraphInputNode(e){return e.type===Ma}}class Ry extends wO{constructor(){super(...arguments),this.type=Na,this.inputs={name:new en("Name","Output"),placeholder:new en("Value",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===Na}}class _c{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===Ma).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===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Dr(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new kn(this),addNode:new Vt(this),beforeRemoveNode:new kn(this),removeNode:new Vt(this),beforeAddConnection:new kn(this),addConnection:new Vt(this),checkConnection:new kn(this),beforeRemoveConnection:new kn(this),removeConnection:new Vt(this)},this.hooks={save:new cs(this),load:new cs(this),checkConnection:new QTt(this)},this.nodeEvents=Qs(),this.nodeHooks=Qs(),this.connectionEvents=Qs(),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(s=>t.includes(s.from)||t.includes(s.to)).forEach(s=>this.removeConnection(s)),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 s=this.checkConnection(e,t);if(!s.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const i of s.connectionsInDanger){const o=this.connections.find(a=>a.id===i.id);o&&this.removeConnection(o)}const r=new e2(s.dummyConnection.from,s.dummyConnection.to);return this.internalAddConnection(r),r}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 s=this.findNodeById(e.nodeId),r=this.findNodeById(t.nodeId);if(s&&r&&s===r)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 i=this.hooks.checkConnection.execute({from:e,to:t});if(i.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(i.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new TO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const s in t.inputs){const r=t.inputs[s];if(r.id===e)return r}for(const s in t.outputs){const r=t.outputs[s];if(r.id===e)return r}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let s=this.connections.length-1;s>=0;s--)this.removeConnection(this.connections[s]);for(let s=this.nodes.length-1;s>=0;s--)this.removeNode(this.nodes[s]);this.id=e.id;for(const s of e.nodes){const r=this.editor.nodeTypes.get(s.type);if(!r){t.push(`Node type ${s.type} is not registered`);continue}const i=new r.type;this.addNode(i),i.load(s)}for(const s of e.connections){const r=this.findNodeInterface(s.from),i=this.findNodeInterface(s.to);if(r)if(i){const o=new e2(r,i);o.id=s.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${s.to}`);continue}else{t.push(`Could not find interface with id ${s.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 Jl="__baklava_GraphNode-";function Oa(n){return Jl+n.id}const XTt=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function ZTt(n){return class extends xO{constructor(){super(...arguments),this.type=Oa(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,s)=>{var r;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!s.engine||typeof s.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const i=s.engine.getInputValues(this.subgraph);for(const c of this.subgraph.inputs)i.set(c.nodeInterfaceId,t[c.id]);const o=await s.engine.runGraph(this.subgraph,i,s.globalValues),a={};for(const c of this.subgraph.outputs)a[c.id]=(r=o.get(c.nodeId))===null||r===void 0?void 0:r.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,this.createProxyInterface(t,!0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(s=>s.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,this.createProxyInterface(t,!1));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(s=>s.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new en("_calculationResults",void 0).setHidden(!0))}createProxyInterface(t,s){const r=new en(t.name,void 0);return new Proxy(r,{get:(i,o)=>{var a,c,d;if(XTt.includes(o)||o in i||typeof o=="string"&&o.startsWith("__v_"))return Reflect.get(i,o);let u;if(s){const h=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(f=>wy.isGraphInputNode(f)&&f.graphInterfaceId===t.id);u=h==null?void 0:h.outputs.placeholder.id}else{const h=(c=this.subgraph)===null||c===void 0?void 0:c.nodes.find(f=>Ry.isGraphOutputNode(f)&&f.graphInterfaceId===t.id);u=h==null?void 0:h.inputs.placeholder.id}const _=(d=this.subgraph)===null||d===void 0?void 0:d.connections.find(h=>{var f;return u===((f=s?h.from:h.to)===null||f===void 0?void 0:f.id)}),m=s?_==null?void 0:_.to:_==null?void 0:_.from;if(m)return Reflect.get(m,o)}})}}}class Ep{static fromGraph(e,t){return new Ep(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(Oa(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Ma).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===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Dr(),this._name="Subgraph",this.events={nameChanged:new Vt(this),updated:new Vt(this)},this.hooks={beforeLoad:new cs(this),afterSave:new cs(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,s=m=>{const h=Dr();return t.set(m,h),h},r=m=>{const h=t.get(m);if(!h)throw new Error(`Unable to create graph from template: Could not map old id ${m} to new id`);return h},i=m=>Ab(m,h=>({id:s(h.id),templateId:h.id,value:h.value})),o=this.nodes.map(m=>({...m,id:s(m.id),inputs:i(m.inputs),outputs:i(m.outputs)})),a=this.connections.map(m=>({id:s(m.id),from:r(m.from),to:r(m.to)})),c=this.inputs.map(m=>({id:m.id,name:m.name,nodeId:r(m.nodeId),nodeInterfaceId:r(m.nodeInterfaceId)})),d=this.outputs.map(m=>({id:m.id,name:m.name,nodeId:r(m.nodeId),nodeInterfaceId:r(m.nodeInterfaceId)})),u={id:Dr(),nodes:o,connections:a,inputs:c,outputs:d};return e||(e=new _c(this.editor)),e.load(u).forEach(m=>console.warn(m)),e.template=this,e}}class JTt{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 Vt(this),beforeRegisterNodeType:new kn(this),registerNodeType:new Vt(this),beforeUnregisterNodeType:new kn(this),unregisterNodeType:new Vt(this),beforeAddGraphTemplate:new kn(this),addGraphTemplate:new Vt(this),beforeRemoveGraphTemplate:new kn(this),removeGraphTemplate:new Vt(this),registerGraph:new Vt(this),unregisterGraph:new Vt(this)},this.hooks={save:new cs(this),load:new cs(this)},this.graphTemplateEvents=Qs(),this.graphTemplateHooks=Qs(),this.graphEvents=Qs(),this.graphHooks=Qs(),this.nodeEvents=Qs(),this.nodeHooks=Qs(),this.connectionEvents=Qs(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new _c(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(wy),this.registerNodeType(Ry)}registerNodeType(e,t){var s,r;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const i=new e;this._nodeTypes.set(i.type,{type:e,category:(s=t==null?void 0:t.category)!==null&&s!==void 0?s:"default",title:(r=t==null?void 0:t.title)!==null&&r!==void 0?r:i.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=ZTt(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=Oa(e);for(const s of[this.graph,...this.graphs.values()]){const r=s.nodes.filter(i=>i.type===t);for(const i of r)s.removeNode(i)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{for(this._loading=!0,e=this.hooks.load.execute(e);this.graphTemplates.length>0;)this.removeGraphTemplate(this.graphTemplates[0]);e.graphTemplates.forEach(s=>{const r=new Ep(s,this);this.addGraphTemplate(r)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(s=>console.warn(s)),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 ext(n,e){const t=new Map;e.graphs.forEach(s=>{s.nodes.forEach(r=>t.set(r.id,r))}),n.forEach((s,r)=>{const i=t.get(r);i&&s.forEach((o,a)=>{const c=i.outputs[a];c&&(c.value=o)})})}class RO extends Error{constructor(){super("Cycle detected")}}function txt(n){return typeof n=="string"}function AO(n,e){const t=new Map,s=new Map,r=new Map;let i,o;if(n instanceof _c)i=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");i=n,o=e}i.forEach(d=>{Object.values(d.inputs).forEach(u=>t.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>t.set(u.id,d.id))}),i.forEach(d=>{const u=o.filter(m=>m.from&&t.get(m.from.id)===d.id),_=new Set(u.map(m=>t.get(m.to.id)).filter(txt));s.set(d.id,_),r.set(d,u)});const a=i.slice();o.forEach(d=>{const u=a.findIndex(_=>t.get(d.to.id)===_.id);u>=0&&a.splice(u,1)});const c=[];for(;a.length>0;){const d=a.pop();c.push(d);const u=s.get(d.id);for(;u.size>0;){const _=u.values().next().value;if(u.delete(_),Array.from(s.values()).every(m=>!m.has(_))){const m=i.find(h=>h.id===_);a.push(m)}}}if(Array.from(s.values()).some(d=>d.size>0))throw new RO;return{calculationOrder:c,connectionsFromNode:r,interfaceIdToNodeId:t}}function nxt(n,e){try{return AO(n,e),!1}catch(t){if(t instanceof RO)return!0;throw t}}var Yn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(Yn||(Yn={}));class sxt{get status(){return this.isRunning?Yn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new kn(this),afterRun:new Vt(this),statusChange:new Vt(this),beforeNodeCalculation:new Vt(this),afterNodeCalculation:new Vt(this)},this.hooks={gatherCalculationData:new cs(this),transferData:new SO},this.recalculateOrder=!0,this.internalStatus=Yn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,s)=>{s.graph&&!s.graph.loading&&s.graph.activeTransactions===0&&this.internalOnChange(s,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===Yn.Stopped&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Yn.Idle&&(this.internalStatus=Yn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Yn.Paused&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Yn.Idle||this.internalStatus===Yn.Paused)&&(this.internalStatus=Yn.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 s=await this.execute(e,...t);return this.events.afterRun.emit(s),s}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const i=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!i)return{connectionAllowed:!0,connectionsInDanger:[]};e=i}if(t.templateId){const i=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!i)return{connectionAllowed:!0,connectionsInDanger:[]};t=i}const s=new TO(e,t);let r=this.editor.graph.connections.slice();return t.allowMultipleConnections||(r=r.filter(i=>i.to!==t)),r.push(s),nxt(this.editor.graph.nodes,r)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(i=>i.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(s=>{if(!(s in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${s}"`)})}internalOnChange(e,t){this.internalStatus===Yn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const s of e)for(const r of[...Object.values(s.inputs),...Object.values(s.outputs)])if(r.templateId===t)return r;return null}}class rxt extends sxt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,s){this.order.has(e.id)||this.order.set(e.id,AO(e));const{calculationOrder:r,connectionsFromNode:i}=this.order.get(e.id),o=new Map;for(const a of r){const c={};Object.entries(a.inputs).forEach(([u,_])=>{c[u]=this.getInterfaceValue(t,_.id)}),this.events.beforeNodeCalculation.emit({inputValues:c,node:a});let d;if(a.calculate)d=await a.calculate(c,{globalValues:s,engine:this});else{d={};for(const[u,_]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(t,_.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),i.has(a)&&i.get(a).forEach(u=>{var _;const m=(_=Object.entries(a.outputs).find(([,f])=>f.id===u.from.id))===null||_===void 0?void 0:_[0];if(!m)throw new Error(`Could not find key for interface ${u.from.id} -This is likely a Baklava internal issue. Please report it on GitHub.`);const h=this.hooks.transferData.execute(d[m],u);u.to.allowMultipleConnections?t.has(u.to.id)?t.get(u.to.id).push(h):t.set(u.to.id,[h]):t.set(u.to.id,h)})}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 s of e.nodes)Object.values(s.inputs).forEach(r=>{r.connectionCount===0&&t.set(r.id,r.value)}),s.calculate||Object.values(s.outputs).forEach(r=>{t.set(r.id,r.value)});return t}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,t){if(!e.has(t))throw new Error(`Could not find value for interface ${t} -This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}const ixt=["INPUT","TEXTAREA","SELECT"];function MO(n){return ixt.includes(n.tagName)}let Mb=null;function oxt(n){Mb=n}function ds(){if(!Mb)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:Mb}}function Ns(){const{viewModel:n}=ds();return{graph:Bd(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function NO(n){const{graph:e}=Ns(),t=ot(null),s=ot(null);return{dragging:Je(()=>!!t.value),onPointerDown:c=>{t.value={x:c.pageX,y:c.pageY},s.value={x:n.value.x,y:n.value.y}},onPointerMove:c=>{if(t.value){const d=c.pageX-t.value.x,u=c.pageY-t.value.y;n.value.x=s.value.x+d/e.value.scaling,n.value.y=s.value.y+u/e.value.scaling}},onPointerUp:()=>{t.value=null,s.value=null}}}function OO(n,e,t){if(!e.template)return!1;if(Oa(e.template)===t)return!0;const s=n.graphTemplates.find(i=>Oa(i)===t);return s?s.nodes.filter(i=>i.type.startsWith(Jl)).some(i=>OO(n,e,i.type)):!1}function IO(n){return Je(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,r])=>r.category)),s=[];for(const r of t.values()){let i=e.filter(([,o])=>o.category===r);n.value.displayedGraph.template?i=i.filter(([o])=>!OO(n.value.editor,n.value.displayedGraph,o)):i=i.filter(([o])=>![Ma,Na].includes(o)),i.length>0&&s.push({name:r,nodeTypes:Object.fromEntries(i)})}return s.sort((r,i)=>r.name==="default"?-1:i.name==="default"||r.name>i.name?1:-1),s})}function kO(){const{graph:n}=Ns();return{transform:(t,s)=>{const r=t/n.value.scaling-n.value.panning.x,i=s/n.value.scaling-n.value.panning.y;return[r,i]}}}function axt(){const{graph:n}=Ns();let e=[],t=-1,s={x:0,y:0};const r=Je(()=>n.value.panning),i=NO(r),o=Je(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(h,f,y)=>{const b=[h/n.value.scaling-n.value.panning.x,f/n.value.scaling-n.value.panning.y],g=[h/y-n.value.panning.x,f/y-n.value.panning.y],E=[g[0]-b[0],g[1]-b[1]];n.value.panning.x+=E[0],n.value.panning.y+=E[1],n.value.scaling=y},c=h=>{h.preventDefault();let f=h.deltaY;h.deltaMode===1&&(f*=32);const y=n.value.scaling*(1-f/3e3);a(h.offsetX,h.offsetY,y)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...i,onPointerDown:h=>{if(e.push(h),i.onPointerDown(h),e.length===2){const{ax:f,ay:y,bx:b,by:g}=d();s={x:f+(b-f)/2,y:y+(g-y)/2}}},onPointerMove:h=>{for(let f=0;f0){const R=n.value.scaling*(1+(S-t)/500);a(s.x,s.y,R)}t=S}else i.onPointerMove(h)},onPointerUp:h=>{e=e.filter(f=>f.pointerId!==h.pointerId),t=-1,i.onPointerUp()},onMouseWheel:c}}var ys=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(ys||{});const DO=Symbol();function lxt(){const{graph:n}=Ns(),e=ot(null),t=ot(null),s=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)},r=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(c=>c.to===t.value);t.value.isInput&&a?(e.value={status:ys.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:ys.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},i=()=>{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 c=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=c.connectionAllowed?ys.ALLOWED:ys.FORBIDDEN,c.connectionAllowed){const d=c.connectionsInDanger.map(u=>u.id);n.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=ys.NONE,n.value.connections.forEach(c=>{c.isInDanger=!1}))};return na(DO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:s,onMouseDown:r,onMouseUp:i,hoveredOver:o}}function cxt(n){const e=ot(!1),t=ot(0),s=ot(0),r=IO(n),{transform:i}=kO(),o=Je(()=>{let u=[];const _={};for(const h of r.value){const f=Object.entries(h.nodeTypes).map(([y,b])=>({label:b.title,value:"addNode:"+y}));h.name==="default"?u=f:_[h.name]=f}const m=[...Object.entries(_).map(([h,f])=>({label:h,submenu:f}))];return m.length>0&&u.length>0&&m.push({isDivider:!0}),m.push(...u),m}),a=Je(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!n.value.commandHandler.canExecuteCommand(u.command)})]);function c(u){const _=u.target;if(!(_ instanceof Element)||MO(_))return;u.preventDefault(),e.value=!0;const m=_.getBoundingClientRect(),f=_.closest(".baklava-editor").getBoundingClientRect();t.value=m.x+u.offsetX-f.x,s.value=m.y+u.offsetY-f.y}function d(u){if(u.startsWith("addNode:")){const _=u.substring(8),m=n.value.editor.nodeTypes.get(_);if(!m)return;const h=Hn(new m.type);n.value.displayedGraph.addNode(h);const[f,y]=i(t.value,s.value);h.position.x=f,h.position.y=y}else if(u.startsWith("command:")){const _=u.substring(8);n.value.commandHandler.canExecuteCommand(_)&&n.value.commandHandler.executeCommand(_)}}return{show:e,x:t,y:s,items:a,open:c,onClick:d}}const Ld="START_SELECTION_BOX";function dxt(n){const{viewModel:e}=ds(),{graph:t}=Ns(),s=Je(()=>t.value.nodes),r=ot(!1),i=ot(!1),o=ot([0,0]),a=ot([0,0]);Tn(e,()=>{e.value.commandHandler.hasCommand(Ld)||(e.value.commandHandler.registerCommand(Ld,{canExecute:()=>!0,execute(){r.value=!0}}),e.value.commandHandler.registerHotkey(["b"],Ld))},{immediate:!0});function c(g){return[g.clientX-n.value.getBoundingClientRect().left,g.clientY-n.value.getBoundingClientRect().top]}function d(g){return r.value?(i.value=!0,r.value=!1,o.value=c(g),a.value=c(g),document.addEventListener("pointermove",u),document.addEventListener("pointerup",_),!0):!1}function u(g){o.value=c(g)}function _(g){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",_),o.value=c(g),i.value=!1;const E=m();for(const v of E)e.value.displayedGraph.selectedNodes.push(v)}function m(){const g=h(),v=document.querySelector(".baklava-editor").getBoundingClientRect();return s.value.filter(S=>{const R=f(S,v);return y(g,R)})}function h(){return{left:Math.min(o.value[0],a.value[0]),top:Math.min(o.value[1],a.value[1]),right:Math.max(o.value[0],a.value[0]),bottom:Math.max(o.value[1],a.value[1])}}function f(g,E){const v=document.getElementById(g.id),S=v?v.getBoundingClientRect():{x:0,y:0,width:0,height:0},R=S.x-E.left,w=S.y-E.top;return{left:R,top:w,right:R+S.width,bottom:w+S.height}}function y(g,E){return g.leftE.left&&g.topE.top}function b(){return{width:Math.abs(a.value[0]-o.value[0])+"px",height:Math.abs(a.value[1]-o.value[1])+"px",left:(a.value[0]>o.value[0]?o.value[0]:a.value[0])+"px",top:(a.value[1]>o.value[1]?o.value[1]:a.value[1])+"px"}}return Hn({startSelection:r,isSelecting:i,start:o,end:a,onPointerDown:d,getStyles:b})}const uxt=cn({setup(){const{viewModel:n}=ds(),{graph:e}=Ns();return{styles:Je(()=>{const s=n.value.settings.background,r=e.value.panning.x*e.value.scaling,i=e.value.panning.y*e.value.scaling,o=e.value.scaling*s.gridSize,a=o/s.gridDivision,c=`${o}px ${o}px, ${o}px ${o}px`,d=e.value.scaling>s.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${r}px top ${i}px`,backgroundSize:`${c} ${d}`}})}}}),sn=(n,e)=>{const t=n.__vccOpts||n;for(const[s,r]of e)t[s]=r;return t};function pxt(n,e,t,s,r,i){return T(),x("div",{class:"background",style:Bt(n.styles)},null,4)}const fxt=sn(uxt,[["render",pxt]]);function _xt(n){return E2()?(bI(n),!0):!1}function Ay(n){return typeof n=="function"?n():bt(n)}const LO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mxt=Object.prototype.toString,hxt=n=>mxt.call(n)==="[object Object]",Pd=()=>{},gxt=bxt();function bxt(){var n,e;return LO&&((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 yxt(n,e,t=!1){return e.reduce((s,r)=>(r in n&&(!t||n[r]!==void 0)&&(s[r]=n[r]),s),{})}function Ext(n,e={}){if(!pn(n))return WI(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const s in n.value)t[s]=$I(()=>({get(){return n.value[s]},set(r){var i;if((i=Ay(e.replaceRef))!=null?i:!0)if(Array.isArray(n.value)){const a=[...n.value];a[s]=r,n.value=a}else{const a={...n.value,[s]:r};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[s]=r}}));return t}function bl(n){var e;const t=Ay(n);return(e=t==null?void 0:t.$el)!=null?e:t}const My=LO?window:void 0;function Ll(...n){let e,t,s,r;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,s,r]=n,e=My):[e,t,s,r]=n,!e)return Pd;Array.isArray(t)||(t=[t]),Array.isArray(s)||(s=[s]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},a=(u,_,m,h)=>(u.addEventListener(_,m,h),()=>u.removeEventListener(_,m,h)),c=Tn(()=>[bl(e),Ay(r)],([u,_])=>{if(o(),!u)return;const m=hxt(_)?{..._}:_;i.push(...t.flatMap(h=>s.map(f=>a(u,h,f,m))))},{immediate:!0,flush:"post"}),d=()=>{c(),o()};return _xt(d),d}let t2=!1;function PO(n,e,t={}){const{window:s=My,ignore:r=[],capture:i=!0,detectIframe:o=!1}=t;if(!s)return Pd;gxt&&!t2&&(t2=!0,Array.from(s.document.body.children).forEach(m=>m.addEventListener("click",Pd)),s.document.documentElement.addEventListener("click",Pd));let a=!0;const c=m=>r.some(h=>{if(typeof h=="string")return Array.from(s.document.querySelectorAll(h)).some(f=>f===m.target||m.composedPath().includes(f));{const f=bl(h);return f&&(m.target===f||m.composedPath().includes(f))}}),u=[Ll(s,"click",m=>{const h=bl(n);if(!(!h||h===m.target||m.composedPath().includes(h))){if(m.detail===0&&(a=!c(m)),!a){a=!0;return}e(m)}},{passive:!0,capture:i}),Ll(s,"pointerdown",m=>{const h=bl(n);a=!c(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),o&&Ll(s,"blur",m=>{setTimeout(()=>{var h;const f=bl(n);((h=s.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(f!=null&&f.contains(s.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>u.forEach(m=>m())}const FO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},vxt=Object.keys(FO);function Sxt(n={}){const{target:e=My}=n,t=ot(!1),s=ot(n.initialValue||{});Object.assign(s.value,FO,s.value);const r=i=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(i.pointerType))&&(s.value=yxt(i,vxt,!1))};if(e){const i={passive:!0};Ll(e,["pointerdown","pointermove","pointerup"],r,i),Ll(e,"pointerleave",()=>t.value=!1,i)}return{...Ext(s),isInside:t}}const Txt=["onMouseenter","onMouseleave","onClick"],xxt={class:"flex-fill"},Cxt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},wxt=l("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[l("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),Rxt=[wxt],Ny=cn({__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,s=e;let r=null;const i=ot(null),o=ot(-1),a=ot(0),c=ot({x:!1,y:!1}),d=Je(()=>t.flippable&&(c.value.x||t.isFlipped.x)),u=Je(()=>t.flippable&&(c.value.y||t.isFlipped.y)),_=Je(()=>{const E={};return t.isNested||(E.top=(u.value?t.y-a.value:t.y)+"px",E.left=t.x+"px"),E}),m=Je(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":t.isNested})),h=Je(()=>t.items.map(E=>({...E,hover:!1})));Tn([()=>t.y,()=>t.items],()=>{var E,v,S,R;a.value=t.items.length*30;const w=((v=(E=i.value)==null?void 0:E.parentElement)==null?void 0:v.offsetWidth)??0,A=((R=(S=i.value)==null?void 0:S.parentElement)==null?void 0:R.offsetHeight)??0;c.value.x=!t.isNested&&t.x>w*.75,c.value.y=!t.isNested&&t.y+a.value>A-20}),PO(i,()=>{t.modelValue&&s("update:modelValue",!1)});const f=E=>{!E.submenu&&E.value&&(s("click",E.value),s("update:modelValue",!1))},y=E=>{s("click",E),o.value=-1,t.isNested||s("update:modelValue",!1)},b=(E,v)=>{t.items[v].submenu&&(o.value=v,r!==null&&(clearTimeout(r),r=null))},g=(E,v)=>{t.items[v].submenu&&(r=window.setTimeout(()=>{o.value=-1,r=null},200))};return(E,v)=>{const S=nt("ContextMenu",!0);return T(),at(Or,{name:"slide-fade"},{default:Ie(()=>[k(l("div",{ref_key:"el",ref:i,class:Le(["baklava-context-menu",m.value]),style:Bt(_.value)},[(T(!0),x(Be,null,Ke(h.value,(R,w)=>(T(),x(Be,null,[R.isDivider?(T(),x("div",{key:`d-${w}`,class:"divider"})):(T(),x("div",{key:`i-${w}`,class:Le(["item",{submenu:!!R.submenu,"--disabled":!!R.disabled}]),onMouseenter:A=>b(A,w),onMouseleave:A=>g(A,w),onClick:$(A=>f(R),["stop","prevent"])},[l("div",xxt,Y(R.label),1),R.submenu?(T(),x("div",Cxt,Rxt)):B("",!0),R.submenu?(T(),at(S,{key:1,"model-value":o.value===w,items:R.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:E.flippable,onClick:y},null,8,["model-value","items","is-flipped","flippable"])):B("",!0)],42,Txt))],64))),256))],6),[[ht,E.modelValue]])]),_:1})}}}),Axt={},Mxt={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"},Nxt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Oxt=l("circle",{cx:"12",cy:"12",r:"1"},null,-1),Ixt=l("circle",{cx:"12",cy:"19",r:"1"},null,-1),kxt=l("circle",{cx:"12",cy:"5",r:"1"},null,-1),Dxt=[Nxt,Oxt,Ixt,kxt];function Lxt(n,e){return T(),x("svg",Mxt,Dxt)}const UO=sn(Axt,[["render",Lxt]]),Pxt=["id"],Fxt={key:0,class:"__tooltip"},Uxt={key:2,class:"align-middle"},n2=cn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,g=100)=>{const E=typeof(b==null?void 0:b.toString)=="function"?String(b):"";return E.length>g?E.slice(0,g)+"...":E},t=n,{viewModel:s}=ds(),{hoveredOver:r,temporaryConnection:i}=is(DO),o=ot(null),a=Je(()=>t.intf.connectionCount>0),c=ot(!1),d=Je(()=>s.value.settings.displayValueOnHover&&c.value),u=Je(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),_=Je(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),m=()=>{c.value=!0,r(t.intf)},h=()=>{c.value=!1,r(void 0)},f=()=>{o.value&&s.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},y=()=>{const b=s.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return cr(f),nc(f),(b,g)=>{var E;return T(),x("div",{id:b.intf.id,ref_key:"el",ref:o,class:Le(["baklava-node-interface",u.value])},[b.intf.port?(T(),x("div",{key:0,class:Le(["__port",{"--selected":((E=bt(i))==null?void 0:E.from)===b.intf}]),onPointerover:m,onPointerout:h},[on(b.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),x("span",Fxt,Y(e(b.intf.value)),1)):B("",!0)])],34)):B("",!0),_.value?(T(),at(Fu(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:y},null,40,["modelValue","node","intf"])):(T(),x("span",Uxt,Y(b.intf.name),1))],10,Pxt)}}}),Bxt=["id","data-node-type"],Gxt={class:"__title-label"},Vxt={class:"__menu"},zxt={class:"__outputs"},Hxt={class:"__inputs"},qxt=cn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,s=e,{viewModel:r}=ds(),{graph:i,switchGraph:o}=Ns(),a=ot(null),c=ot(!1),d=ot(""),u=ot(null),_=ot(!1),m=ot(!1),h=Je(()=>{const V=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(Jl)&&V.push({value:"editSubgraph",label:"Edit Subgraph"}),V}),f=Je(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),y=Je(()=>({"--reverse-y":t.node.reverseY??r.value.settings.nodes.reverseY})),b=Je(()=>{var V,ee;return{top:`${((V=t.node.position)==null?void 0:V.y)??0}px`,left:`${((ee=t.node.position)==null?void 0:ee.x)??0}px`,"--width":`${t.node.width??r.value.settings.nodes.defaultWidth}px`}}),g=Je(()=>Object.values(t.node.inputs).filter(V=>!V.hidden)),E=Je(()=>Object.values(t.node.outputs).filter(V=>!V.hidden)),v=()=>{s("select")},S=V=>{t.selected||v(),s("start-drag",V)},R=()=>{m.value=!0},w=async V=>{var ee;switch(V){case"delete":i.value.removeNode(t.node);break;case"rename":d.value=t.node.title,c.value=!0,await Fe(),(ee=u.value)==null||ee.focus();break;case"editSubgraph":o(t.node.template);break}},A=()=>{t.node.title=d.value,c.value=!1},I=()=>{a.value&&r.value.hooks.renderNode.execute({node:t.node,el:a.value})},C=V=>{_.value=!0,V.preventDefault()},M=V=>{if(!_.value)return;const ee=t.node.width+V.movementX/i.value.scaling,O=r.value.settings.nodes.minWidth,H=r.value.settings.nodes.maxWidth;t.node.width=Math.max(O,Math.min(H,ee))},G=()=>{_.value=!1};return cr(()=>{I(),window.addEventListener("mousemove",M),window.addEventListener("mouseup",G)}),nc(I),La(()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",G)}),(V,ee)=>(T(),x("div",{id:V.node.id,ref_key:"el",ref:a,class:Le(["baklava-node",f.value]),style:Bt(b.value),"data-node-type":V.node.type,onPointerdown:v},[bt(r).settings.nodes.resizable?(T(),x("div",{key:0,class:"__resize-handle",onMousedown:C},null,32)):B("",!0),on(V.$slots,"title",{},()=>[l("div",{class:"__title",onPointerdown:$(S,["self","stop"])},[c.value?k((T(),x("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":ee[1]||(ee[1]=O=>d.value=O),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:A,onKeydown:ws(A,["enter"])},null,544)),[[ae,d.value]]):(T(),x(Be,{key:0},[l("div",Gxt,Y(V.node.title),1),l("div",Vxt,[z(UO,{class:"--clickable",onClick:R}),z(bt(Ny),{modelValue:m.value,"onUpdate:modelValue":ee[0]||(ee[0]=O=>m.value=O),x:0,y:0,items:h.value,onClick:w},null,8,["modelValue","items"])])],64))],32)]),on(V.$slots,"content",{},()=>[l("div",{class:Le(["__content",y.value]),onKeydown:ee[2]||(ee[2]=ws($(()=>{},["stop"]),["delete"]))},[l("div",zxt,[(T(!0),x(Be,null,Ke(E.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"output",node:V.node,intf:O},()=>[z(n2,{node:V.node,intf:O},null,8,["node","intf"])])),128))]),l("div",Hxt,[(T(!0),x(Be,null,Ke(g.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"input",node:V.node,intf:O},()=>[z(n2,{node:V.node,intf:O},null,8,["node","intf"])])),128))])],34)])],46,Bxt))}}),Yxt=cn({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:ys.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=ds(),{graph:t}=Ns(),s=(o,a)=>{const c=(o+t.value.panning.x)*t.value.scaling,d=(a+t.value.panning.y)*t.value.scaling;return[c,d]},r=Je(()=>{const[o,a]=s(n.x1,n.y1),[c,d]=s(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${c} ${d}`;{const u=.3*Math.abs(o-c);return`M ${o} ${a} C ${o+u} ${a}, ${c-u} ${d}, ${c} ${d}`}}),i=Je(()=>({"--temporary":n.isTemporary,"--allowed":n.state===ys.ALLOWED,"--forbidden":n.state===ys.FORBIDDEN}));return{d:r,classes:i}}}),$xt=["d"];function Wxt(n,e,t,s,r,i){return T(),x("path",{class:Le(["baklava-connection",n.classes]),d:n.d},null,10,$xt)}const BO=sn(Yxt,[["render",Wxt]]);function Kxt(n){return document.getElementById(n.id)}function Ia(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 jxt=cn({components:{"connection-view":BO},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=Ns();let t;const s=ot({x1:0,y1:0,x2:0,y2:0}),r=Je(()=>n.connection.isInDanger?ys.FORBIDDEN:ys.NONE),i=Je(()=>{var d;return(d=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:d.position}),o=Je(()=>{var d;return(d=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:d.position}),a=d=>d.node&&d.interface&&d.port?[d.node.offsetLeft+d.interface.offsetLeft+d.port.offsetLeft+d.port.clientWidth/2,d.node.offsetTop+d.interface.offsetTop+d.port.offsetTop+d.port.clientHeight/2]:[0,0],c=()=>{const d=Ia(n.connection.from),u=Ia(n.connection.to);d.node&&u.node&&(t||(t=new ResizeObserver(()=>{c()}),t.observe(d.node),t.observe(u.node)));const[_,m]=a(d),[h,f]=a(u);s.value={x1:_,y1:m,x2:h,y2:f}};return cr(async()=>{await Fe(),c()}),La(()=>{t&&t.disconnect()}),Tn([i,o],()=>c(),{deep:!0}),{d:s,state:r}}});function Qxt(n,e,t,s,r,i){const o=nt("connection-view");return T(),at(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 Xxt=sn(jxt,[["render",Qxt]]);function Tu(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 Zxt=cn({components:{"connection-view":BO},props:{connection:{type:Object,required:!0}},setup(n){const e=Je(()=>n.connection?n.connection.status:ys.NONE);return{d:Je(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const s=Tu(Ia(n.connection.from)),r=n.connection.to?Tu(Ia(n.connection.to)):[n.connection.mx||s[0],n.connection.my||s[1]];return n.connection.from.isInput?{input:r,output:s}:{input:s,output:r}}),status:e}}});function Jxt(n,e,t,s,r,i){const o=nt("connection-view");return T(),at(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 eCt=sn(Zxt,[["render",Jxt]]),tCt=cn({setup(){const{viewModel:n}=ds(),{graph:e}=Ns(),t=ot(null),s=Bd(n.value.settings.sidebar,"width"),r=Je(()=>n.value.settings.sidebar.resizable),i=Je(()=>{const _=e.value.sidebar.nodeId;return e.value.nodes.find(m=>m.id===_)}),o=Je(()=>({width:`${s.value}px`})),a=Je(()=>i.value?[...Object.values(i.value.inputs),...Object.values(i.value.outputs)].filter(m=>m.displayInSidebar&&m.component):[]),c=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=_=>{var m,h;const f=((h=(m=t.value)==null?void 0:m.parentElement)==null?void 0:h.getBoundingClientRect().width)??500;let y=s.value-_.movementX;y<300?y=300:y>.9*f&&(y=.9*f),s.value=y};return{el:t,graph:e,resizable:r,node:i,styles:o,displayedInterfaces:a,startResize:d,close:c}}}),nCt={class:"__header"},sCt={class:"__node-name"};function rCt(n,e,t,s,r,i){return T(),x("div",{ref:"el",class:Le(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:Bt(n.styles)},[n.resizable?(T(),x("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):B("",!0),l("div",nCt,[l("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),l("div",sCt,[l("b",null,Y(n.node?n.node.title:""),1)])]),(T(!0),x(Be,null,Ke(n.displayedInterfaces,o=>(T(),x("div",{key:o.id,class:"__interface"},[(T(),at(Fu(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 iCt=sn(tCt,[["render",rCt]]),oCt=cn({__name:"Minimap",setup(n){const{viewModel:e}=ds(),{graph:t}=Ns(),s=ot(null),r=ot(!1);let i,o=!1,a={x1:0,y1:0,x2:0,y2:0},c;const d=()=>{var w,A;if(!i)return;i.canvas.width=s.value.offsetWidth,i.canvas.height=s.value.offsetHeight;const I=new Map,C=new Map;for(const O of t.value.nodes){const H=Kxt(O),q=(H==null?void 0:H.offsetWidth)??0,L=(H==null?void 0:H.offsetHeight)??0,W=((w=O.position)==null?void 0:w.x)??0,se=((A=O.position)==null?void 0:A.y)??0;I.set(O,{x1:W,y1:se,x2:W+q,y2:se+L}),C.set(O,H)}const M={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const O of I.values())O.x1M.x2&&(M.x2=O.x2),O.y2>M.y2&&(M.y2=O.y2);const G=50;M.x1-=G,M.y1-=G,M.x2+=G,M.y2+=G,a=M;const V=i.canvas.width/i.canvas.height,ee=(a.x2-a.x1)/(a.y2-a.y1);if(V>ee){const O=(V-ee)*(a.y2-a.y1)*.5;a.x1-=O,a.x2+=O}else{const O=a.x2-a.x1,H=a.y2-a.y1,q=(O-V*H)/V*.5;a.y1-=q,a.y2+=q}i.clearRect(0,0,i.canvas.width,i.canvas.height),i.strokeStyle="white";for(const O of t.value.connections){const[H,q]=Tu(Ia(O.from)),[L,W]=Tu(Ia(O.to)),[se,oe]=u(H,q),[ye,xe]=u(L,W);if(i.beginPath(),i.moveTo(se,oe),e.value.settings.useStraightConnections)i.lineTo(ye,xe);else{const ce=.3*Math.abs(se-ye);i.bezierCurveTo(se+ce,oe,ye-ce,xe,ye,xe)}i.stroke()}i.strokeStyle="lightgray";for(const[O,H]of I.entries()){const[q,L]=u(H.x1,H.y1),[W,se]=u(H.x2,H.y2);i.fillStyle=m(C.get(O)),i.beginPath(),i.rect(q,L,W-q,se-L),i.fill(),i.stroke()}if(r.value){const O=f(),[H,q]=u(O.x1,O.y1),[L,W]=u(O.x2,O.y2);i.fillStyle="rgba(255, 255, 255, 0.2)",i.fillRect(H,q,L-H,W-q)}},u=(w,A)=>[(w-a.x1)/(a.x2-a.x1)*i.canvas.width,(A-a.y1)/(a.y2-a.y1)*i.canvas.height],_=(w,A)=>[w*(a.x2-a.x1)/i.canvas.width+a.x1,A*(a.y2-a.y1)/i.canvas.height+a.y1],m=w=>{if(w){const A=w.querySelector(".__content");if(A){const C=h(A);if(C)return C}const I=h(w);if(I)return I}return"gray"},h=w=>{const A=getComputedStyle(w).backgroundColor;if(A&&A!=="rgba(0, 0, 0, 0)")return A},f=()=>{const w=s.value.parentElement.offsetWidth,A=s.value.parentElement.offsetHeight,I=w/t.value.scaling-t.value.panning.x,C=A/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:I,y2:C}},y=w=>{w.button===0&&(o=!0,b(w))},b=w=>{if(o){const[A,I]=_(w.offsetX,w.offsetY),C=f(),M=(C.x2-C.x1)/2,G=(C.y2-C.y1)/2;t.value.panning.x=-(A-M),t.value.panning.y=-(I-G)}},g=()=>{o=!1},E=()=>{r.value=!0},v=()=>{r.value=!1,g()};Tn([r,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{d()});const S=Je(()=>t.value.nodes.map(w=>w.position)),R=Je(()=>t.value.nodes.map(w=>w.width));return Tn([S,R],()=>{d()},{deep:!0}),cr(()=>{i=s.value.getContext("2d"),i.imageSmoothingQuality="high",d(),c=setInterval(d,500)}),La(()=>{clearInterval(c)}),(w,A)=>(T(),x("canvas",{ref_key:"canvas",ref:s,class:"baklava-minimap",onMouseenter:E,onMouseleave:v,onMousedown:$(y,["self"]),onMousemove:$(b,["self"]),onMouseup:g,onContextmenu:A[0]||(A[0]=$(()=>{},["stop","prevent"]))},null,544))}}),aCt=cn({components:{ContextMenu:Ny,VerticalDots:UO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=ds(),{switchGraph:t}=Ns(),s=ot(!1),r=Je(()=>n.type.startsWith(Jl));return{showContextMenu:s,hasContextMenu:r,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{s.value=!0},onContextMenuClick:c=>{const d=n.type.substring(Jl.length),u=e.value.editor.graphTemplates.find(_=>_.id===d);if(u)switch(c){case"editSubgraph":t(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),lCt=["data-node-type"],cCt={class:"__title"},dCt={class:"__title-label"},uCt={key:0,class:"__menu"};function pCt(n,e,t,s,r,i){const o=nt("vertical-dots"),a=nt("context-menu");return T(),x("div",{class:"baklava-node --palette","data-node-type":n.type},[l("div",cCt,[l("div",dCt,Y(n.title),1),n.hasContextMenu?(T(),x("div",uCt,[z(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=$(()=>{},["stop","prevent"])),onClick:$(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),z(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=c=>n.showContextMenu=c),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=$(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):B("",!0)])],8,lCt)}const s2=sn(aCt,[["render",pCt]]),fCt={key:0},_Ct=cn({__name:"NodePalette",setup(n){const{viewModel:e}=ds(),{x:t,y:s}=Sxt(),{transform:r}=kO(),i=IO(e),o=is("editorEl"),a=ot(null),c=Je(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:_}=o.value.getBoundingClientRect();return{top:`${s.value-_}px`,left:`${t.value-u}px`}}),d=(u,_)=>{a.value={type:u,nodeInformation:_};const m=()=>{const h=Hn(new _.type);e.value.displayedGraph.addNode(h);const f=o.value.getBoundingClientRect(),[y,b]=r(t.value-f.left,s.value-f.top);h.position.x=y,h.position.y=b,a.value=null,document.removeEventListener("pointerup",m)};document.addEventListener("pointerup",m)};return(u,_)=>(T(),x(Be,null,[l("div",{class:"baklava-node-palette",onContextmenu:_[0]||(_[0]=$(()=>{},["stop","prevent"]))},[(T(!0),x(Be,null,Ke(bt(i),m=>(T(),x("section",{key:m.name},[m.name!=="default"?(T(),x("h1",fCt,Y(m.name),1)):B("",!0),(T(!0),x(Be,null,Ke(m.nodeTypes,(h,f)=>(T(),at(s2,{key:f,type:f,title:h.title,onPointerdown:y=>d(f,h)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),z(Or,{name:"fade"},{default:Ie(()=>[a.value?(T(),x("div",{key:0,class:"baklava-dragged-node",style:Bt(c.value)},[z(s2,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):B("",!0)]),_:1})],64))}});let bd;const mCt=new Uint8Array(16);function hCt(){if(!bd&&(bd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bd(mCt)}const vn=[];for(let n=0;n<256;++n)vn.push((n+256).toString(16).slice(1));function gCt(n,e=0){return vn[n[e+0]]+vn[n[e+1]]+vn[n[e+2]]+vn[n[e+3]]+"-"+vn[n[e+4]]+vn[n[e+5]]+"-"+vn[n[e+6]]+vn[n[e+7]]+"-"+vn[n[e+8]]+vn[n[e+9]]+"-"+vn[n[e+10]]+vn[n[e+11]]+vn[n[e+12]]+vn[n[e+13]]+vn[n[e+14]]+vn[n[e+15]]}const bCt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r2={randomUUID:bCt};function xu(n,e,t){if(r2.randomUUID&&!e&&!n)return r2.randomUUID();n=n||{};const s=n.random||(n.rng||hCt)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,gCt(s)}const ec="SAVE_SUBGRAPH";function yCt(n,e){const t=()=>{const s=n.value;if(!s.template)throw new Error("Graph template property not set");s.template.update(s.save()),s.template.panning=s.panning,s.template.scaling=s.scaling};e.registerCommand(ec,{canExecute:()=>{var s;return n.value!==((s=n.value.editor)==null?void 0:s.graph)},execute:t})}const ECt={},vCt={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"},SCt=l("polyline",{points:"6 9 12 15 18 9"},null,-1),TCt=[SCt];function xCt(n,e){return T(),x("svg",vCt,TCt)}const CCt=sn(ECt,[["render",xCt]]),wCt=cn({components:{"i-arrow":CCt},props:{intf:{type:Object,required:!0}},setup(n){const e=ot(null),t=ot(!1),s=Je(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),r=Je(()=>s.value?typeof s.value=="string"?s.value:s.value.text:""),i=o=>{n.intf.value=typeof o=="string"?o:o.value};return PO(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:s,selectedText:r,setSelected:i}}}),RCt=["title"],ACt={class:"__selected"},MCt={class:"__text"},NCt={class:"__icon"},OCt={class:"__dropdown"},ICt={class:"item --header"},kCt=["onClick"];function DCt(n,e,t,s,r,i){const o=nt("i-arrow");return T(),x("div",{ref:"el",class:Le(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[l("div",ACt,[l("div",MCt,Y(n.selectedText),1),l("div",NCt,[z(o)])]),z(Or,{name:"slide-fade"},{default:Ie(()=>[k(l("div",OCt,[l("div",ICt,Y(n.intf.name),1),(T(!0),x(Be,null,Ke(n.intf.items,(a,c)=>(T(),x("div",{key:c,class:Le(["item",{"--active":a===n.selectedItem}]),onClick:d=>n.setSelected(a)},Y(typeof a=="string"?a:a.text),11,kCt))),128))],512),[[ht,n.open]])]),_:1})],10,RCt)}const LCt=sn(wCt,[["render",DCt]]);class PCt extends en{constructor(e,t,s){super(e,t),this.component=ku(LCt),this.items=s}}const FCt=cn({props:{intf:{type:Object,required:!0}}});function UCt(n,e,t,s,r,i){return T(),x("div",null,Y(n.intf.value),1)}const BCt=sn(FCt,[["render",UCt]]);class GCt extends en{constructor(e,t){super(e,t),this.component=ku(BCt),this.setPort(!1)}}const VCt=cn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:Je({get:()=>n.modelValue,set:s=>{e("update:modelValue",s)}})}}}),zCt=["placeholder","title"];function HCt(n,e,t,s,r,i){return T(),x("div",null,[k(l("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,zCt),[[ae,n.v]])])}const qCt=sn(VCt,[["render",HCt]]);class mc extends en{constructor(){super(...arguments),this.component=ku(qCt)}}class GO extends wy{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new mc("Name","Input").setPort(!1)},this.outputs={placeholder:new en("Connection",void 0)}}}class VO extends Ry{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new mc("Name","Output").setPort(!1),placeholder:new en("Connection",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)}}}const zO="CREATE_SUBGRAPH",i2=[Ma,Na];function YCt(n,e,t){const s=()=>n.value.selectedNodes.filter(i=>!i2.includes(i.type)).length>0,r=()=>{const{viewModel:i}=ds(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const c=o.selectedNodes.filter(C=>!i2.includes(C.type)),d=c.flatMap(C=>Object.values(C.inputs)),u=c.flatMap(C=>Object.values(C.outputs)),_=o.connections.filter(C=>!u.includes(C.from)&&d.includes(C.to)),m=o.connections.filter(C=>u.includes(C.from)&&!d.includes(C.to)),h=o.connections.filter(C=>u.includes(C.from)&&d.includes(C.to)),f=c.map(C=>C.save()),y=h.map(C=>({id:C.id,from:C.from.id,to:C.to.id})),b=new Map,{xLeft:g,xRight:E,yTop:v}=$Ct(c);for(const[C,M]of _.entries()){const G=new GO;G.inputs.name.value=M.to.name,f.push({...G.save(),position:{x:E-i.value.settings.nodes.defaultWidth-100,y:v+C*200}}),y.push({id:xu(),from:G.outputs.placeholder.id,to:M.to.id}),b.set(M.to.id,G.graphInterfaceId)}for(const[C,M]of m.entries()){const G=new VO;G.inputs.name.value=M.from.name,f.push({...G.save(),position:{x:g+100,y:v+C*200}}),y.push({id:xu(),from:M.from.id,to:G.inputs.placeholder.id}),b.set(M.from.id,G.graphInterfaceId)}const S=Hn(new Ep({connections:y,nodes:f,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const R=a.nodeTypes.get(Oa(S));if(!R)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");o.activeTransactions++;const w=Hn(new R.type);o.addNode(w);const A=Math.round(c.map(C=>C.position.x).reduce((C,M)=>C+M,0)/c.length),I=Math.round(c.map(C=>C.position.y).reduce((C,M)=>C+M,0)/c.length);w.position.x=A,w.position.y=I,_.forEach(C=>{o.removeConnection(C),o.addConnection(C.from,w.inputs[b.get(C.to.id)])}),m.forEach(C=>{o.removeConnection(C),o.addConnection(w.outputs[b.get(C.from.id)],C.to)}),c.forEach(C=>o.removeNode(C)),o.activeTransactions--,e.canExecuteCommand(ec)&&e.executeCommand(ec),t(S),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(zO,{canExecute:s,execute:r})}function $Ct(n){const e=n.reduce((r,i)=>{const o=i.position.x;return o{const o=i.position.y;return o{const o=i.position.x+i.width;return o>r?o:r},-1/0),xRight:e,yTop:t}}class o2{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 s=new t.type;e.addNode(s),s.load(this.nodeState),this.nodeId=s.id}removeNode(e){const t=e.nodes.find(s=>s.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class a2{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const s=t;this.connectionState={id:s.id,from:s.from.id,to:s.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),s=e.findNodeInterface(this.connectionState.to);if(!t||!s)return;const r=e.addConnection(t,s);r&&(r.id=this.connectionState.id),this.connectionId=r==null?void 0:r.id}removeConnection(e){const t=e.connections.find(s=>s.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class WCt{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(!i.value)if(a.value)c.value.push(b);else for(o.value!==r.value.length-1&&(r.value=r.value.slice(0,o.value+1)),r.value.push(b),o.value++;r.value.length>s.value;)r.value.shift()},u=()=>{a.value=!0},_=()=>{a.value=!1,c.value.length>0&&(d(new WCt(c.value)),c.value=[])},m=()=>r.value.length!==0&&o.value!==-1,h=()=>{m()&&(i.value=!0,r.value[o.value--].undo(n.value),i.value=!1)},f=()=>r.value.length!==0&&o.value{f()&&(i.value=!0,r.value[++o.value].redo(n.value),i.value=!1)};return Tn(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,E=>{d(new o2("addNode",E.id))}),b.events.removeNode.subscribe(t,E=>{d(new o2("removeNode",E.save()))}),b.events.addConnection.subscribe(t,E=>{d(new a2("addConnection",E.id))}),b.events.removeConnection.subscribe(t,E=>{d(new a2("removeConnection",E))}))},{immediate:!0}),e.registerCommand(Nb,{canExecute:m,execute:h}),e.registerCommand(Ob,{canExecute:f,execute:y}),e.registerCommand(Oy,{canExecute:()=>!a.value,execute:u}),e.registerCommand(Iy,{canExecute:()=>a.value,execute:_}),e.registerHotkey(["Control","z"],Nb),e.registerHotkey(["Control","y"],Ob),Hn({maxSteps:s})}const Ib="DELETE_NODES";function jCt(n,e){e.registerCommand(Ib,{canExecute:()=>n.value.selectedNodes.length>0,execute(){e.executeCommand(Oy);for(let t=n.value.selectedNodes.length-1;t>=0;t--){const s=n.value.selectedNodes[t];n.value.removeNode(s)}e.executeCommand(Iy)}}),e.registerHotkey(["Delete"],Ib)}const HO="SWITCH_TO_MAIN_GRAPH";function QCt(n,e,t){e.registerCommand(HO,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(ec),t(n.value.editor.graph)}})}function XCt(n,e,t){jCt(n,e),YCt(n,e,t),yCt(n,e),QCt(n,e,t)}const kb="COPY",Db="PASTE",ZCt="CLEAR_CLIPBOARD";function JCt(n,e,t){const s=Symbol("ClipboardToken"),r=ot(""),i=ot(""),o=Je(()=>!r.value),a=()=>{r.value="",i.value=""},c=()=>{const _=n.value.selectedNodes.flatMap(h=>[...Object.values(h.inputs),...Object.values(h.outputs)]),m=n.value.connections.filter(h=>_.includes(h.from)||_.includes(h.to)).map(h=>({from:h.from.id,to:h.to.id}));i.value=JSON.stringify(m),r.value=JSON.stringify(n.value.selectedNodes.map(h=>h.save()))},d=(_,m,h)=>{for(const f of _){let y;if((!h||h==="input")&&(y=Object.values(f.inputs).find(b=>b.id===m)),!y&&(!h||h==="output")&&(y=Object.values(f.outputs).find(b=>b.id===m)),y)return y}},u=()=>{if(o.value)return;const _=new Map,m=JSON.parse(r.value),h=JSON.parse(i.value),f=[],y=[],b=n.value;t.executeCommand(Oy);for(const g of m){const E=e.value.nodeTypes.get(g.type);if(!E){console.warn(`Node type ${g.type} not registered`);return}const v=new E.type,S=v.id;f.push(v),v.hooks.beforeLoad.subscribe(s,R=>{const w=R;return w.position&&(w.position.x+=100,w.position.y+=100),v.hooks.beforeLoad.unsubscribe(s),w}),b.addNode(v),v.load({...g,id:S}),v.id=S,_.set(g.id,S);for(const R of Object.values(v.inputs)){const w=xu();_.set(R.id,w),R.id=w}for(const R of Object.values(v.outputs)){const w=xu();_.set(R.id,w),R.id=w}}for(const g of h){const E=d(f,_.get(g.from),"output"),v=d(f,_.get(g.to),"input");if(!E||!v)continue;const S=b.addConnection(E,v);S&&y.push(S)}return n.value.selectedNodes=f,t.executeCommand(Iy),{newNodes:f,newConnections:y}};return t.registerCommand(kb,{canExecute:()=>n.value.selectedNodes.length>0,execute:c}),t.registerHotkey(["Control","c"],kb),t.registerCommand(Db,{canExecute:()=>!o.value,execute:u}),t.registerHotkey(["Control","v"],Db),t.registerCommand(ZCt,{canExecute:()=>!0,execute:a}),Hn({isEmpty:o})}const ewt="OPEN_SIDEBAR";function twt(n,e){e.registerCommand(ewt,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function nwt(n,e){twt(n,e)}const swt={},rwt={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"},iwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),owt=l("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),awt=[iwt,owt];function lwt(n,e){return T(),x("svg",rwt,awt)}const cwt=sn(swt,[["render",lwt]]),dwt={},uwt={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"},pwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),fwt=l("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),_wt=[pwt,fwt];function mwt(n,e){return T(),x("svg",uwt,_wt)}const hwt=sn(dwt,[["render",mwt]]),gwt={},bwt={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"},ywt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Ewt=l("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),vwt=l("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),Swt=l("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),Twt=[ywt,Ewt,vwt,Swt];function xwt(n,e){return T(),x("svg",bwt,Twt)}const Cwt=sn(gwt,[["render",xwt]]),wwt={},Rwt={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"},Awt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Mwt=l("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),Nwt=l("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),Owt=[Awt,Mwt,Nwt];function Iwt(n,e){return T(),x("svg",Rwt,Owt)}const kwt=sn(wwt,[["render",Iwt]]),Dwt={},Lwt={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"},Pwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Fwt=l("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),Uwt=l("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),Bwt=[Pwt,Fwt,Uwt];function Gwt(n,e){return T(),x("svg",Lwt,Bwt)}const Vwt=sn(Dwt,[["render",Gwt]]),zwt={},Hwt={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"},qwt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Ywt=l("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),$wt=l("circle",{cx:"12",cy:"14",r:"2"},null,-1),Wwt=l("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),Kwt=[qwt,Ywt,$wt,Wwt];function jwt(n,e){return T(),x("svg",Hwt,Kwt)}const Qwt=sn(zwt,[["render",jwt]]),Xwt={},Zwt={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"},Jwt=mi('',6),e2t=[Jwt];function t2t(n,e){return T(),x("svg",Zwt,e2t)}const n2t=sn(Xwt,[["render",t2t]]),s2t={},r2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},i2t=mi('',18),o2t=[i2t];function a2t(n,e){return T(),x("svg",r2t,o2t)}const l2t=sn(s2t,[["render",a2t]]),c2t={},d2t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},u2t=mi('',6),p2t=[u2t];function f2t(n,e){return T(),x("svg",d2t,p2t)}const _2t=sn(c2t,[["render",f2t]]),m2t=cn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=ds();return{viewModel:n}}}),h2t=["disabled","title"];function g2t(n,e,t,s,r,i){return T(),x("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(T(),at(Fu(n.icon),{key:0})):(T(),x(Be,{key:1},[Ze(Y(n.title),1)],64))],8,h2t)}const b2t=sn(m2t,[["render",g2t]]),y2t=cn({components:{ToolbarButton:b2t},setup(){const{viewModel:n}=ds();return{isSubgraph:Je(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:kb,title:"Copy",icon:Vwt},{command:Db,title:"Paste",icon:kwt},{command:Ib,title:"Delete selected nodes",icon:_2t},{command:Nb,title:"Undo",icon:cwt},{command:Ob,title:"Redo",icon:hwt},{command:Ld,title:"Box Select",icon:l2t},{command:zO,title:"Create Subgraph",icon:n2t}],subgraphCommands:[{command:ec,title:"Save Subgraph",icon:Qwt},{command:HO,title:"Back to Main Graph",icon:Cwt}]}}});function E2t(n,e,t,s,r,i){const o=nt("toolbar-button");return T(),x("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=$(()=>{},["stop","prevent"]))},[(T(!0),x(Be,null,Ke(n.commands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(T(!0),x(Be,{key:0},Ke(n.subgraphCommands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):B("",!0)],32)}const v2t=sn(y2t,[["render",E2t]]),S2t={class:"connections-container"},T2t=cn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),s=Bd(e,"viewModel");oxt(s);const r=ot(null);na("editorEl",r);const i=Je(()=>e.viewModel.displayedGraph.nodes),o=Je(()=>e.viewModel.displayedGraph.nodes.map(I=>NO(Bd(I,"position")))),a=Je(()=>e.viewModel.displayedGraph.connections),c=Je(()=>e.viewModel.displayedGraph.selectedNodes),d=axt(),u=lxt(),_=cxt(s),m=dxt(r),h=Je(()=>({...d.styles.value})),f=ot(0);e.viewModel.editor.hooks.load.subscribe(t,I=>(f.value++,I));const y=I=>{d.onPointerMove(I),u.onMouseMove(I)},b=I=>{if(I.button===0){if(m.onPointerDown(I))return;I.target===r.value&&(R(),d.onPointerDown(I)),u.onMouseDown()}},g=I=>{d.onPointerUp(I),u.onMouseUp()},E=I=>{I.key==="Tab"&&I.preventDefault(),e.viewModel.commandHandler.handleKeyDown(I)},v=I=>{e.viewModel.commandHandler.handleKeyUp(I)},S=I=>{["Control","Shift"].some(C=>e.viewModel.commandHandler.pressedKeys.includes(C))||R(),e.viewModel.displayedGraph.selectedNodes.push(I)},R=()=>{e.viewModel.displayedGraph.selectedNodes=[]},w=I=>{for(const C of e.viewModel.displayedGraph.selectedNodes){const M=i.value.indexOf(C),G=o.value[M];G.onPointerDown(I),document.addEventListener("pointermove",G.onPointerMove)}document.addEventListener("pointerup",A)},A=()=>{for(const I of e.viewModel.displayedGraph.selectedNodes){const C=i.value.indexOf(I),M=o.value[C];M.onPointerUp(),document.removeEventListener("pointermove",M.onPointerMove)}document.removeEventListener("pointerup",A)};return(I,C)=>(T(),x("div",{ref_key:"el",ref:r,tabindex:"-1",class:Le(["baklava-editor",{"baklava-ignore-mouse":!!bt(u).temporaryConnection.value||bt(d).dragging.value,"--temporary-connection":!!bt(u).temporaryConnection.value,"--start-selection-box":bt(m).startSelection}]),onPointermove:$(y,["self"]),onPointerdown:b,onPointerup:g,onWheel:C[1]||(C[1]=$((...M)=>bt(d).onMouseWheel&&bt(d).onMouseWheel(...M),["self"])),onKeydown:E,onKeyup:v,onContextmenu:C[2]||(C[2]=(...M)=>bt(_).open&&bt(_).open(...M))},[on(I.$slots,"background",{},()=>[z(fxt)]),on(I.$slots,"toolbar",{},()=>[I.viewModel.settings.toolbar.enabled?(T(),at(v2t,{key:0})):B("",!0)]),on(I.$slots,"palette",{},()=>[I.viewModel.settings.palette.enabled?(T(),at(_Ct,{key:0})):B("",!0)]),(T(),x("svg",S2t,[(T(!0),x(Be,null,Ke(a.value,M=>(T(),x("g",{key:M.id+f.value.toString()},[on(I.$slots,"connection",{connection:M},()=>[z(Xxt,{connection:M},null,8,["connection"])])]))),128)),on(I.$slots,"temporaryConnection",{temporaryConnection:bt(u).temporaryConnection.value},()=>[bt(u).temporaryConnection.value?(T(),at(eCt,{key:0,connection:bt(u).temporaryConnection.value},null,8,["connection"])):B("",!0)])])),l("div",{class:"node-container",style:Bt(h.value)},[z(Ir,{name:"fade"},{default:Ie(()=>[(T(!0),x(Be,null,Ke(i.value,(M,G)=>on(I.$slots,"node",{key:M.id+f.value.toString(),node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:w},()=>[z(qxt,{node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:w},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),on(I.$slots,"sidebar",{},()=>[I.viewModel.settings.sidebar.enabled?(T(),at(iCt,{key:0})):B("",!0)]),on(I.$slots,"minimap",{},()=>[I.viewModel.settings.enableMinimap?(T(),at(oCt,{key:0})):B("",!0)]),on(I.$slots,"contextMenu",{contextMenu:bt(_)},()=>[I.viewModel.settings.contextMenu.enabled?(T(),at(Ny,{key:0,modelValue:bt(_).show.value,"onUpdate:modelValue":C[0]||(C[0]=M=>bt(_).show.value=M),items:bt(_).items.value,x:bt(_).x.value,y:bt(_).y.value,onClick:bt(_).onClick},null,8,["modelValue","items","x","y","onClick"])):B("",!0)]),bt(m).isSelecting?(T(),x("div",{key:0,class:"selection-box",style:Bt(bt(m).getStyles())},null,4)):B("",!0)],34))}});function x2t(n){const e=ot([]),t=ot([]);return{pressedKeys:e,handleKeyDown:o=>{e.value.includes(o.key)||e.value.push(o.key),!(document.activeElement&&MO(document.activeElement))&&t.value.forEach(a=>{var c,d;a.keys.every(u=>e.value.includes(u))&&((c=a.options)!=null&&c.preventDefault&&o.preventDefault(),(d=a.options)!=null&&d.stopPropagation&&o.stopPropagation(),n(a.commandName))})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a,c)=>{t.value.push({keys:o,commandName:a,options:c})}}}const C2t=()=>{const n=ot(new Map),e=o=>n.value.has(o),t=(o,a)=>{if(n.value.has(o))throw new Error(`Command "${o}" already exists`);n.value.set(o,a)},s=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return}return n.value.get(o).execute(...c)},r=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return!1}return n.value.get(o).canExecute(c)},i=x2t(s);return Hn({hasCommand:e,registerCommand:t,executeCommand:s,canExecuteCommand:r,...i})},w2t=n=>!(n instanceof _c);function R2t(n,e){return{switchGraph:s=>{let r;if(w2t(s))r=new _c(n.value),s.createGraph(r);else{if(s!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");r=s}e.value&&e.value!==n.value.graph&&e.value.destroy(),r.panning=r.panning??s.panning??{x:0,y:0},r.scaling=r.scaling??s.scaling??1,r.selectedNodes=r.selectedNodes??[],r.sidebar=r.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=r}}}function A2t(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 M2t=()=>({useStraightConnections:!1,enableMinimap:!1,toolbar:{enabled:!0},palette:{enabled:!0},background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{enabled:!0,width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1,reverseY:!1},contextMenu:{enabled:!0,additionalItems:[]}});function N2t(n){const e=ot(new JTt),t=Symbol("ViewModelToken"),s=ot(null),r=VI(s),{switchGraph:i}=R2t(e,s),o=Je(()=>r.value&&r.value!==e.value.graph),a=Hn(M2t()),c=C2t(),d=KCt(r,c),u=JCt(r,e,c),_={renderNode:new cs(null),renderInterface:new cs(null)};return XCt(r,c,i),nwt(r,c),Tn(e,(m,h)=>{h&&(h.events.registerGraph.unsubscribe(t),h.graphEvents.beforeAddNode.unsubscribe(t),m.nodeHooks.beforeLoad.unsubscribe(t),m.nodeHooks.afterSave.unsubscribe(t),m.graphTemplateHooks.beforeLoad.unsubscribe(t),m.graphTemplateHooks.afterSave.unsubscribe(t),m.graph.hooks.load.unsubscribe(t),m.graph.hooks.save.unsubscribe(t)),m&&(m.nodeHooks.beforeLoad.subscribe(t,(f,y)=>(y.position=f.position??{x:0,y:0},y.width=f.width??a.nodes.defaultWidth,y.twoColumn=f.twoColumn??!1,f)),m.nodeHooks.afterSave.subscribe(t,(f,y)=>(f.position=y.position,f.width=y.width,f.twoColumn=y.twoColumn,f)),m.graphTemplateHooks.beforeLoad.subscribe(t,(f,y)=>(y.panning=f.panning,y.scaling=f.scaling,f)),m.graphTemplateHooks.afterSave.subscribe(t,(f,y)=>(f.panning=y.panning,f.scaling=y.scaling,f)),m.graph.hooks.load.subscribe(t,(f,y)=>(y.panning=f.panning,y.scaling=f.scaling,f)),m.graph.hooks.save.subscribe(t,(f,y)=>(f.panning=y.panning,f.scaling=y.scaling,f)),m.graphEvents.beforeAddNode.subscribe(t,f=>A2t(f,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(GO,{category:"Subgraphs"}),e.value.registerNodeType(VO,{category:"Subgraphs"}),i(m.graph))},{immediate:!0}),Hn({editor:e,displayedGraph:r,isSubgraph:o,settings:a,commandHandler:c,history:d,clipboard:u,hooks:_,switchGraph:i})}const O2t=Ka({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new en("Request",""),agent_name:()=>new PCt("Personality","",Ps.state.config.personalities).setPort(!1)},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Ps.state.config.personalities);let e="";try{e=(await ne.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),I2t=Ka({type:"RAGNode",title:"RAG",inputs:{request:()=>new en("Prompt",""),document_path:()=>new mc("Document path","").setPort(!1)},outputs:{prompt:()=>new en("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await ne.get("/rag",{params:{text:n,doc_path:e}})).data}catch(s){console.error(s)}return{response:t}}}),l2=Ka({type:"Task",title:"Task",inputs:{description:()=>new mc("Task description","").setPort(!1)},outputs:{prompt:()=>new en("Prompt")},calculate({description:n}){return{prompt:n}}}),c2=Ka({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new en("Input","")},outputs:{response:()=>new GCt("Text","")},async calculate({request:n}){}}),d2=Ka({type:"LLMNode",title:"LLM",inputs:{request:()=>new en("Request","")},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Ps.state.config.personalities);let e="";try{e=(await ne.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),k2t=Ka({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new en("Question",""),outputs:()=>new mc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new en("Response","")}}),D2t=cn({components:{"baklava-editor":T2t},setup(){const n=N2t(),e=new rxt(n.editor);n.editor.registerNodeType(O2t),n.editor.registerNodeType(l2),n.editor.registerNodeType(I2t),n.editor.registerNodeType(c2),n.editor.registerNodeType(d2),n.editor.registerNodeType(k2t);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),ext(a,n.editor),e.resume()}),e.start();function s(a,c,d){const u=new a;return n.displayedGraph.addNode(u),u.position.x=c,u.position.y=d,u}const r=s(l2,300,140),i=s(d2,550,140),o=s(c2,850,140);return n.displayedGraph.addConnection(r.outputs.prompt,i.inputs.request),n.displayedGraph.addConnection(i.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)}}}}),L2t={style:{width:"100vw",height:"100vh"}};function P2t(n,e,t,s,r,i){const o=nt("baklava-editor");return T(),x("div",L2t,[z(o,{"view-model":n.baklava},null,8,["view-model"]),l("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),l("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const F2t=rt(D2t,[["render",P2t]]),U2t={},B2t={style:{width:"100vw",height:"100vh"}},G2t=["src"];function V2t(n,e,t,s,r,i){return T(),x("div",B2t,[l("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,G2t)])}const z2t=rt(U2t,[["render",V2t]]),H2t={},q2t={style:{width:"100vw",height:"100vh"}},Y2t=["src"];function $2t(n,e,t,s,r,i){return T(),x("div",q2t,[l("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,Y2t)])}const W2t=rt(H2t,[["render",$2t]]),K2t={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)}}},j2t={class:"app-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full"},Q2t={class:"flex-grow"},X2t={class:"flex items-center mb-4"},Z2t=["src"],J2t={class:"font-bold text-xl text-gray-800"},eRt={class:"text-sm text-gray-600"},tRt={class:"text-sm text-gray-600"},nRt={class:"text-sm text-gray-600"},sRt={class:"text-sm text-gray-600"},rRt={class:"text-sm text-gray-600"},iRt={class:"mb-4"},oRt={class:"text-sm text-gray-600 h-20 overflow-y-auto"},aRt={class:"text-sm text-gray-600 mb-2"},lRt={key:0,class:"mb-4"},cRt={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},dRt={class:"mt-auto pt-4 border-t"},uRt={class:"flex justify-between items-center flex-wrap"},pRt=["title"],fRt=["fill"];function _Rt(n,e,t,s,r,i){return T(),x("div",j2t,[l("div",Q2t,[l("div",X2t,[l("img",{src:t.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,Z2t),l("div",null,[l("h3",J2t,Y(t.app.name),1),l("p",eRt,"Author: "+Y(t.app.author),1),l("p",tRt,"Version: "+Y(t.app.version),1),l("p",nRt,"Category: "+Y(t.app.category),1),l("p",sRt,"Creation date: "+Y(i.formatDate(t.app.creation_date)),1),l("p",rRt,"Last update: "+Y(i.formatDate(t.app.last_update_date)),1),l("p",{class:Le(["text-sm",t.app.is_public?"text-green-600":"text-orange-600"])},Y(t.app.is_public?"Public App":"Local App"),3)])]),l("div",iRt,[e[10]||(e[10]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",oRt,Y(t.app.description),1)]),l("p",aRt,"AI Model: "+Y(t.app.model_name),1),t.app.disclaimer&&t.app.disclaimer.trim()!==""?(T(),x("div",lRt,[e[11]||(e[11]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),l("p",cRt,Y(t.app.disclaimer),1)])):B("",!0)]),l("div",dRt,[l("div",uRt,[l("button",{onClick:e[0]||(e[0]=$(o=>n.$emit("toggle-favorite",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),x("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[12]||(e[12]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,fRt))],8,pRt),t.app.installed?(T(),x("button",{key:0,onClick:e[1]||(e[1]=$(o=>n.$emit("uninstall",t.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):t.app.existsInFolder?(T(),x("button",{key:1,onClick:e[2]||(e[2]=$(o=>n.$emit("delete",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):(T(),x("button",{key:2,onClick:e[3]||(e[3]=$(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)]))),t.app.installed?(T(),x("button",{key:3,onClick:e[4]||(e[4]=$(o=>n.$emit("edit",t.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)]))):B("",!0),l("button",{onClick:e[5]||(e[5]=$(o=>n.$emit("download",t.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),t.app.has_readme?(T(),x("button",{key:4,onClick:e[6]||(e[6]=$(o=>n.$emit("help",t.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M12 21a9 9 0 100-18 9 9 0 000 18z"})],-1)]))):B("",!0),t.app.installed?(T(),x("button",{key:5,onClick:e[7]||(e[7]=$(o=>n.$emit("open",t.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)]))):B("",!0),t.app.has_server&&t.app.installed?(T(),x("button",{key:6,onClick:e[8]||(e[8]=$(o=>n.$emit("start-server",t.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},e[20]||(e[20]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):B("",!0),t.app.has_update?(T(),x("button",{key:7,onClick:e[9]||(e[9]=$(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e[21]||(e[21]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),l("span",{class:"absolute top-0 right-0 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-100 transform translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full"},"!",-1)]))):B("",!0)])])])}const mRt=rt(K2t,[["render",_Rt],["__scopeId","data-v-a946557e"]]),hRt={components:{AppCard:mRt},data(){return{apps:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"update",sortOrder:"desc",showOnlyInstalled:!1,showOnlyUnInstalled:!1}},computed:{currentCategoryName(){return this.selectedCategory==="all"?"All Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const n=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))]},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory,s=this.showOnlyInstalled&&n.installed||this.showOnlyUnInstalled&&!n.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&t&&s})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.appName))}},methods:{toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite"),console.log(n);const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server. -This may take some time the first time as some libraries need to be installed.`),ne.post("/apps/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var s,r;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((r=(s=t.response)==null?void 0:s.data)==null?void 0:r.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const s=await ne.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=s.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(s){console.error("Error uploading app:",s),this.error=((t=(e=s.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const n=await ne.get("/apps");this.apps=n.data,this.showMessage("Refresh successful!",!0)}catch{this.showMessage("Failed to refresh apps.",!1)}finally{this.loading=!1}},async openAppsFolder(){this.loading=!0;try{console.log("opening apps folder");const n=await ne.post("/show_apps_folder",{client_id:this.$store.state.client_id})}catch{this.showMessage("Failed to open apps folder.",!1)}finally{this.loading=!1}},async fetchGithubApps(){this.loading=!0;try{const n=await ne.get("/github/apps");this.githubApps=n.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(n){if(n.installed){this.selectedApp=n;const e=await ne.get(`/apps/${n.folder_name}/README.md`);this.appCode=Pt(e.data)}else this.showMessage(`Please install ${n.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(n){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${n}`);try{await ne.post(`/install/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Installation succeeded!",!0)}catch{this.showMessage("Installation failed.",!1)}finally{this.loading=!1,this.fetchApps(),this.fetchGithubApps(),this.$store.state.messageBox.hideMessage()}},async uninstallApp(n){this.loading=!0;try{await ne.post(`/uninstall/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Uninstallation succeeded!",!0)}catch{this.showMessage("Uninstallation failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async deleteApp(n){this.loading=!0;try{await ne.post(`/delete/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Deletion succeeded!",!0)}catch{this.showMessage("Deletion failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async editApp(n){this.loading=!0;try{const e=await ne.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:n.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(n){this.isLoading=!0,this.error=null;try{const e=await ne.post("/download_app",{client_id:this.$store.state.client_id,app_name:n},{responseType:"arraybuffer"}),t=e.headers["content-disposition"],s=t&&t.match(/filename="?(.+)"?/i),r=s?s[1]:"app.zip",i=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.href=o,a.download=r,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(o),document.body.removeChild(a)}catch(e){console.error("Error downloading app:",e),this.error="Failed to download the app. Please try again."}finally{this.isLoading=!1}},openApp(n){n.installed?window.open(`/apps/${n.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${n.name} before opening.`,!1)},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},gRt={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},bRt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},yRt={class:"flex flex-wrap items-center justify-between gap-4"},ERt={class:"flex items-center space-x-4"},vRt=["disabled"],SRt={key:0},TRt={key:1,class:"error"},xRt={class:"relative flex-grow max-w-md"},CRt={class:"flex items-center space-x-4"},wRt=["value"],RRt={class:"flex items-center space-x-4"},ARt={for:"installed-only",class:"font-semibold"},MRt={for:"installed-only",class:"font-semibold"},NRt={class:"flex items-center space-x-4"},ORt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},IRt={key:1,class:"pb-20"},kRt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},DRt={class:"text-2xl font-bold mb-4"},LRt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},PRt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},FRt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},URt={class:"flex justify-between items-center mb-4"},BRt={class:"text-2xl font-bold"},GRt=["srcdoc"],VRt={key:1,class:"text-center text-red-500"};function zRt(n,e,t,s,r,i){const o=nt("app-card");return T(),x("div",gRt,[l("nav",bRt,[l("div",yRt,[l("div",ERt,[l("button",{onClick:e[0]||(e[0]=(...a)=>i.fetchGithubApps&&i.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[l("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),Ze(" Refresh ")])),l("button",{onClick:e[1]||(e[1]=(...a)=>i.openAppsFolder&&i.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[l("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"})],-1),Ze(" Open Folder ")])),l("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>i.onFileSelected&&i.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),l("button",{onClick:e[3]||(e[3]=(...a)=>i.triggerFileInput&&i.triggerFileInput(...a)),disabled:r.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},Y(r.isUploading?"Uploading...":"Upload App"),9,vRt)]),r.message?(T(),x("p",SRt,Y(r.message),1)):B("",!0),r.error?(T(),x("p",TRt,Y(r.error),1)):B("",!0),l("div",xRt,[k(l("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>r.searchQuery=a),placeholder:"Search apps...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search apps"},null,512),[[ae,r.searchQuery]]),e[13]||(e[13]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("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))]),l("div",CRt,[e[15]||(e[15]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>r.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[14]||(e[14]=l("option",{value:"all"},"All Categories",-1)),(T(!0),x(Be,null,Ke(i.categories,a=>(T(),x("option",{key:a,value:a},Y(a),9,wRt))),128))],512),[[Ot,r.selectedCategory]])]),l("div",RRt,[l("label",ARt,[k(l("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>r.showOnlyInstalled=a),class:"mr-2"},null,512),[[He,r.showOnlyInstalled]]),e[16]||(e[16]=Ze(" Show only installed apps "))]),l("label",MRt,[k(l("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>r.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[He,r.showOnlyUnInstalled]]),e[17]||(e[17]=Ze(" Show only non installed apps "))])]),l("div",NRt,[e[19]||(e[19]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[8]||(e[8]=a=>r.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[18]||(e[18]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[Ot,r.sortBy]]),l("button",{onClick:e[9]||(e[9]=(...a)=>i.toggleSortOrder&&i.toggleSortOrder(...a)),class:"btn btn-secondary"},Y(r.sortOrder==="asc"?"↑":"↓"),1)])])]),r.loading?(T(),x("div",ORt,e[20]||(e[20]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),x("div",IRt,[e[21]||(e[21]=l("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),l("div",kRt,[(T(!0),x(Be,null,Ke(i.favoriteApps,a=>(T(),at(o,{key:a.appName,app:a,onToggleFavorite:i.toggleFavorite,onInstall:i.installApp,onUninstall:i.uninstallApp,onDelete:i.deleteApp,onEdit:i.editApp,onDownload:i.downloadApp,onHelp:i.handleAppClick,onOpen:i.openApp,onStartServer:i.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),l("h2",DRt,Y(i.currentCategoryName)+" ("+Y(i.sortedAndFilteredApps.length)+")",1),l("div",LRt,[(T(!0),x(Be,null,Ke(i.sortedAndFilteredApps,a=>(T(),at(o,{key:a.name,app:a,onToggleFavorite:i.toggleFavorite,onInstall:i.installApp,onUninstall:i.uninstallApp,onDelete:i.deleteApp,onEdit:i.editApp,onDownload:i.downloadApp,onHelp:i.handleAppClick,onOpen:i.openApp,onStartServer:i.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),r.selectedApp?(T(),x("div",PRt,[l("div",FRt,[l("div",URt,[l("h2",BRt,Y(r.selectedApp.name),1),l("button",{onClick:e[10]||(e[10]=(...a)=>i.backToZoo&&i.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),r.appCode?(T(),x("iframe",{key:0,srcdoc:r.appCode,class:"flex-grow border-none"},null,8,GRt)):(T(),x("p",VRt,"Please install this app to view its code."))])])):B("",!0),r.message?(T(),x("div",{key:3,class:Le(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":r.successMessage,"bg-red-100 text-red-800":!r.successMessage}])},Y(r.message),3)):B("",!0)])}const HRt=rt(hRt,[["render",zRt]]),qRt={components:{PersonalityEntry:dN},data(){return{personalities:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"name",sortOrder:"asc"}},computed:{currentCategoryName(){return this.selectedCategory=="all"?"All Personalities":this.selectedCategory},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},combinedApps(){this.personalities.map(e=>e.name);const n=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))].sort((n,e)=>n.localeCompare(e))},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory;return e&&t})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.uid))}},methods:{async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: -`+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: -`+n.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(n);Fe(()=>{feather.replace()})}},onModelSelected(n){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}n&&(n.isInstalled?this.update_model(n.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=n.model.name,e.status?(this.$store.state.toast.showToast(`Selected model: -`+n.name,4,!0),Fe(()=>{feather.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(t=>{this.$store.commit("setIsModelOk",t)})):(this.$store.state.toast.showToast(`Couldn't select model: -`+n.name,4,!1),Fe(()=>{feather.replace()})),this.settingsChanged=!0,this.isModelSelected=!0}):this.$store.state.toast.showToast(`Model: -`+n.model.name+` -is not installed`,4,!1),Fe(()=>{feather.replace()}))},toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite");const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server. -This may take some time the first time as some libraries need to be installed.`),ne.post("/personalities/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var s,r;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((r=(s=t.response)==null?void 0:s.data)==null?void 0:r.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const s=await ne.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=s.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(s){console.error("Error uploading app:",s),this.error=((t=(e=s.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async mount_personality(n){if(this.$store.state.messageBox.showMessage("Loading personality"),!n)return{status:!1,error:"no personality - mount_personality"};try{const e={client_id:this.$store.state.client_id,language:n.language?n.language:"",category:n.category?n.category:"",folder:n.folder?n.folder:""},t=await ne.post("/mount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(e){console.log(e.message,"mount_personality - settings");return}this.$store.state.messageBox.hideMessage()},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};let e=n.language==null?n.full_path:n.full_path+":"+n.language;console.log("pth",e);const t=this.configFile.personalities.findIndex(r=>r===e),s={client_id:this.$store.state.client_id,id:t};try{const r=await ne.post("/select_personality",s,{headers:this.posts_headers});if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},async mountPersonality(n){if(this.isLoading=!0,console.log("mount pers",n),n.personality.disclaimer!=""&&this.$store.state.messageBox.showMessage(n.personality.disclaimer),!n)return;if(this.configFile.personalities.includes(n.personality.full_path)){this.isLoading=!1,this.$store.state.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(n.personality);console.log("mount_personality res",e),e&&e.status&&e.active_personality_id>-1&&e.personalities.includes(n.personality.full_path)?(this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality mounted",4,!0),n.isMounted=!0,(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: -`+n.personality.name,4,!0),this.$store.dispatch("refreshMountedPersonalities"),window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)):(n.isMounted=!1,this.$store.state.toast.showToast(`Could not mount personality -Error: `+e.error+` -Response: -`+e,4,!1)),this.isLoading=!1},async unmountAll(){await ne.post("/unmount_all_personalities",{client_id:this.$store.state.client_id},{headers:this.posts_headers}),this.$store.dispatch("refreshMountedPersonalities"),this.$store.dispatch("refreshConfig"),this.$store.state.toast.showToast("All personas unmounted",4,!0)},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 ne.post("/unmount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},async unmountPersonality(n){if(this.isLoading=!0,!n)return;const e=await this.unmount_personality(n.personality||n);if(e.status){this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality unmounted",4,!0);const t=this.$store.state.personalities.findIndex(a=>a.full_path==n.full_path),s=this.personalitiesFiltered.findIndex(a=>a.full_path==n.full_path),r=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==n.full_path);console.log("ppp",this.$store.state.personalities[t]),this.$store.state.personalities[t].isMounted=!1,s>-1&&(this.personalitiesFiltered[s].isMounted=!1),r>-1&&(this.$refs.personalitiesZoo[r].isMounted=!1),this.$store.dispatch("refreshMountedPersonalities");const i=this.mountedPersArr[this.mountedPersArr.length-1];console.log(i,this.mountedPersArr.length),(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: -`+i.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality -Error: `+e.error,4,!1);this.isLoading=!1},editPersonality(n){n=n.personality,ne.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)})},copyToCustom(n){n=n.personality,ne.post("/copy_to_custom_personas",{category:n.category,name:n.folder}).then(e=>{e.status?(this.$store.state.messageBox.showMessage(`Personality copied to the custom personalities folder: -Now it's up to you to modify it, enhance it, and maybe even share it. -Feel free to add your name as an author, but please remember to keep the original creator's name as well. -You have the freedom to give, sell, or keep the personas you create for yourself. -The possibilities are endless, they are now yours to mold and customize as you see fit.`),this.$store.dispatch("refreshPersonalitiesZoo")):this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: -Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: -`,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),ne.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality -`+e.message,4,!1),{status:!1}))},async handleOpenFolder(n){await ne.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:n.personality.folder})},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)},loadPersonalities(){this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},mounted(){this.loadFavoritesFromLocalStorage(),this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},YRt={class:"app-zoo mb-100 pb-100 pt-12 background-color w-full p-6 overflow-y-auto h-screen scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},$Rt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},WRt={class:"flex flex-wrap items-center justify-between gap-4"},KRt={key:0},jRt={key:1,class:"error"},QRt={class:"relative flex-grow max-w-md"},XRt={class:"flex items-center space-x-4"},ZRt=["value"],JRt={class:"flex items-center space-x-4"},eAt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},tAt={key:1},nAt={class:"container mx-auto px-4 flex flex-column pb-20"},sAt={key:0},rAt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},iAt={class:"container mx-auto px-4 flex flex-column pb-20"},oAt={class:"text-2xl font-bold my-8"},aAt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},lAt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},cAt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},dAt={class:"flex justify-between items-center mb-4"},uAt={class:"text-2xl font-bold"},pAt=["srcdoc"],fAt={key:1,class:"text-center text-red-500"};function _At(n,e,t,s,r,i){const o=nt("personality-entry");return T(),x("div",YRt,[l("nav",$Rt,[l("div",WRt,[r.message?(T(),x("p",KRt,Y(r.message),1)):B("",!0),r.error?(T(),x("p",jRt,Y(r.error),1)):B("",!0),l("div",QRt,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>r.searchQuery=a),placeholder:"Search personalities...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search personalities"},null,512),[[ae,r.searchQuery]]),e[5]||(e[5]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("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))]),l("div",XRt,[e[7]||(e[7]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>r.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[6]||(e[6]=l("option",{value:"all"},"All Categories",-1)),(T(!0),x(Be,null,Ke(i.categories,a=>(T(),x("option",{key:a,value:a},Y(a),9,ZRt))),128))],512),[[Ot,r.selectedCategory]])]),l("div",JRt,[e[9]||(e[9]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>r.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[8]||(e[8]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[Ot,r.sortBy]]),l("button",{onClick:e[3]||(e[3]=(...a)=>i.toggleSortOrder&&i.toggleSortOrder(...a)),class:"btn btn-secondary"},Y(r.sortOrder==="asc"?"↑":"↓"),1)])])]),r.loading?(T(),x("div",eAt,e[10]||(e[10]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),x("div",tAt,[l("div",nAt,[i.favoriteApps.length>0&&!r.searchQuery?(T(),x("div",sAt,[e[11]||(e[11]=l("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),l("div",rAt,[(T(!0),x(Be,null,Ke(i.favoriteApps,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:i.configFile.active_personality_id==i.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":i.onPersonalitySelected,"on-mount":i.mountPersonality,"on-un-mount":i.unmountPersonality,"on-remount":i.remountPersonality,"on-edit":i.editPersonality,"on-copy-to-custom":i.copyToCustom,"on-reinstall":i.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":i.handleOpenFolder,"on-toggle-favorite":i.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","on-toggle-favorite"]))),128))])])):B("",!0)]),l("div",iAt,[l("h2",oAt,Y(i.currentCategoryName)+" ("+Y(i.sortedAndFilteredApps.length)+")",1),l("div",aAt,[(T(!0),x(Be,null,Ke(i.sortedAndFilteredApps,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:i.configFile.active_personality_id==i.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":i.onPersonalitySelected,"on-mount":i.mountPersonality,"on-un-mount":i.unmountPersonality,"on-remount":i.remountPersonality,"on-edit":i.editPersonality,"on-copy-to-custom":i.copyToCustom,"on-reinstall":i.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":i.handleOpenFolder,"toggle-favorite":i.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","toggle-favorite"]))),128))])])])),r.selectedApp?(T(),x("div",lAt,[l("div",cAt,[l("div",dAt,[l("h2",uAt,Y(r.selectedApp.name),1),l("button",{onClick:e[4]||(e[4]=(...a)=>n.backToZoo&&n.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),r.appCode?(T(),x("iframe",{key:0,srcdoc:r.appCode,class:"flex-grow border-none"},null,8,pAt)):(T(),x("p",fAt,"Please install this app to view its code."))])])):B("",!0),r.message?(T(),x("div",{key:3,class:Le(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":r.successMessage,"bg-red-100 text-red-800":!r.successMessage}])},Y(r.message),3)):B("",!0),e[12]||(e[12]=l("div",{class:"h-20"},null,-1))])}const mAt=rt(qRt,[["render",_At],["__scopeId","data-v-fcb6b036"]]),hAt=$3({history:x3("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:HRt},{path:"/personalities_view/",name:"PersonalitiesZoo",component:mAt},{path:"/auto_sd_view/",name:"AutoSD",component:W2t},{path:"/comfyui_view/",name:"ComfyUI",component:z2t},{path:"/playground/",name:"playground",component:rJe},{path:"/extensions/",name:"extensions",component:fJe},{path:"/help_view/",name:"help_view",component:set},{path:"/settings/",name:"settings",component:Xct},{path:"/training/",name:"training",component:ddt},{path:"/quantizing/",name:"quantizing",component:hdt},{path:"/",name:"discussions",component:Ugt},{path:"/interactive/",name:"interactive",component:YTt},{path:"/nodes/",name:"nodes",component:F2t}]}),vp=GD(e5);function gAt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Ps=fL({state(){return{personalities_ready:!1,is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",leftPanelCollapsed:!1,rightPanelCollapsed:!0,view_mode:localStorage.getItem("lollms_webui_view_mode")||"compact",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{setLeftPanelCollapsed(n,e){n.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(n,e){n.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(n,e){n.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(n,e){n.personalities_ready=e},setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getLeftPanelCollapsed(n){return n.leftPanelCollapsed},getRightPanelCollapsed(n){return n.rightPanelCollapsed},getViewMode(n){return n.view_mode},getpersonalitiesReady(n){return n.personalities_ready},getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await ne.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await qO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await Ks("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){const t=(await ne.get("/is_rt_on")).data.status;n("setisRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await ne.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 ne.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 ne.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ne.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("languages",s),n("setLanguages",s),t=await ne.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const r=t.data;console.log("language",r),n("setLanguage",r),console.log("Language changed successfully:",t.data.message)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await ne.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ne.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("languages",s),n("setLanguages",s),t=await ne.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const r=t.data;console.log("language",r),n("setLanguage",r),console.log("Language changed successfully:",t.data.message)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await Ks("get_all_personalities"),s=Object.keys(t);console.log("Personalities recovered:"+this.state.config.personalities);for(let r=0;r{let d=!1;for(const _ of this.state.config.personalities)if(_.includes(i+"/"+c.folder))if(d=!0,_.includes(":")){const m=_.split(":");c.language=m[1]}else c.language=null;let u={};return u=c,u.category=i,u.full_path=i+"/"+c.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((r,i)=>r.name.localeCompare(i.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 s=0;sa.full_path==r||a.full_path==i[0]);if(o>=0){let a=gAt(this.state.personalities[o]);i.length>1&&(a.language=i[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(c=>c.full_path=="generic/lollms")])}else t.push(s),console.log("Couldn't load personality : ",r)}for(let s=t.length-1;s>=0;s--)console.log("Removing personality : ",this.state.config.personalities[t[s]]),this.state.config.personalities.splice(t[s],1),this.state.config.active_personality_id>t[s]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(s=>s.full_path==this.state.config.personalities[this.state.config.active_personality_id]||s.full_path+":"+s.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:n}){let e=await Ks("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(s=>s.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(s=>s.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){console.log("Fetching models");const t=(await ne.get("/get_available_models")).data.filter(s=>s.variants&&s.variants.length>0);console.log(`get_available_models: ${t}`),n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await Ks("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){console.log("Fetching models");let e=await Ks("list_models");console.log(`Found ${e}`);let t=await Ks("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(r=>{r.isInstalled=e.includes(r.name)}),this.state.installedModels=this.state.modelsZoo.filter(r=>r.isInstalled);const s=this.state.modelsZoo.findIndex(r=>r.name==this.state.config.model_name);s!=-1&&n("setCurrentModel",this.state.modelsZoo[s])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await Ks("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await Ks("ram_usage")},async refreshVramUsage({commit:n}){const e=await Ks("vram_usage"),t=[];if(e.nb_gpus>0){for(let r=0;r - 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}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000}.hovered{transform:scale(1.05);transition:transform .2s ease-in-out}.active{transform:scale(1.1);transition:transform .2s ease-in-out}.dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:root.dark .dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #ffffff1a,0 2px 4px -1px #ffffff0f}select{width:200px}body{background-color:#fafafa;font-family:sans-serif}.container{margin:4px auto;width:800px}.settings{position:fixed;top:0;right:0;width:500px;background-color:#fff;z-index:1000;overflow-y:auto;height:100%}.slider-container{margin-top:20px}.slider-value{display:inline-block;margin-left:10px;color:#6b7280;font-size:14px}.small-button{padding:.5rem .75rem;font-size:.875rem}.active-tab{font-weight:700}.help-view[data-v-8c1798f3]{min-height:100vh}.big-card[data-v-8c1798f3]{margin-left:auto;margin-right:auto;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:2rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.big-card[data-v-8c1798f3]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.help-sections-container[data-v-8c1798f3]{max-height:70vh;overflow-y:auto;padding-right:1rem}.help-section[data-v-8c1798f3]{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.help-content[data-v-8c1798f3]{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.help-content[data-v-8c1798f3]:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar{width:12px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb{background:#888;border-radius:10px;border:3px solid #f1f1f1}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb:hover{background:#555}.help-sections-container[data-v-8c1798f3]{scrollbar-width:thin;scrollbar-color:#888 #f1f1f1}.menu-container{position:relative;display:inline-block}.menu-button{background-color:#007bff;color:#fff;padding:10px;border:none;cursor:pointer;border-radius:4px}.menu-list{position:absolute;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;padding:10px;max-width:500px;z-index:1000}.slide-enter-active,.slide-leave-active{transition:transform .2s}.slide-enter-to,.slide-leave-from{transform:translateY(-10px)}.menu-ul{list-style:none;padding:0;margin:0}.menu-li{cursor:pointer;display:flex;align-items:center;padding:5px}.menu-icon{width:20px;height:20px;margin-right:8px}.menu-command{min-width:200px;text-align:left}.fade-enter-active[data-v-f43216be],.fade-leave-active[data-v-f43216be]{transition:opacity .3s}.fade-enter[data-v-f43216be],.fade-leave-to[data-v-f43216be]{opacity:0}.heartbeat-text[data-v-f29485cf]{font-size:24px;animation:pulsate-f29485cf 1.5s infinite}@keyframes pulsate-f29485cf{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-f29485cf],.list-enter-active[data-v-f29485cf],.list-leave-active[data-v-f29485cf]{transition:all .5s ease}.list-enter-from[data-v-f29485cf]{transform:translatey(-30px)}.list-leave-to[data-v-f29485cf]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-f29485cf]{position:absolute}.bounce-enter-active[data-v-f29485cf]{animation:bounce-in-f29485cf .5s}.bounce-leave-active[data-v-f29485cf]{animation:bounce-in-f29485cf .5s reverse}@keyframes bounce-in-f29485cf{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-f29485cf]{background-color:#0ff}.hover[data-v-f29485cf]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-f29485cf]{font-weight:700}.control-buttons[data-v-5bb76742]{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;transform:translate(100%);transition:transform .3s}.group:hover .control-buttons[data-v-5bb76742]{transform:translate(0)}.control-buttons-inner[data-v-5bb76742]{display:flex;gap:10px;align-items:center;background-color:#fff;padding:8px;border-radius:0 0 0 8px;box-shadow:0 2px 8px #0000001a}.json-tree-view[data-v-40406ec6]{margin-left:16px}.json-item[data-v-40406ec6]{margin-bottom:4px}.json-key[data-v-40406ec6]{cursor:pointer;display:flex;align-items:center}.toggle-icon[data-v-40406ec6]{margin-right:4px;width:12px}.key[data-v-40406ec6]{font-weight:700;margin-right:4px}.value[data-v-40406ec6]{margin-left:4px}.string[data-v-40406ec6]{color:#0b7285}.number[data-v-40406ec6]{color:#d9480f}.boolean[data-v-40406ec6]{color:#5c940d}.null[data-v-40406ec6]{color:#868e96}.json-nested[data-v-40406ec6]{margin-left:16px;border-left:1px dashed #ccc;padding-left:8px}.json-viewer[data-v-83fc9727]{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:14px;line-height:1.5;color:#333}.collapsible-section[data-v-83fc9727]{cursor:pointer;padding:8px;background-color:#f0f0f0;border-radius:4px;display:flex;align-items:center;transition:background-color .2s}.collapsible-section[data-v-83fc9727]:hover{background-color:#e0e0e0}.toggle-icon[data-v-83fc9727]{margin-right:8px;transition:transform .2s}.json-content[data-v-83fc9727]{margin-top:8px;padding-left:16px}.step-container[data-v-78f415f6]{margin-bottom:1rem}.step-wrapper[data-v-78f415f6]{display:flex;align-items:flex-start;border-radius:.5rem;padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.step-icon[data-v-78f415f6]{margin-right:1rem;display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center}.feather-icon[data-v-78f415f6]{height:1.5rem;width:1.5rem;stroke:currentColor;stroke-width:2}.spinner[data-v-78f415f6]{height:1.5rem;width:1.5rem}@keyframes spin-78f415f6{to{transform:rotate(360deg)}}.spinner[data-v-78f415f6]{animation:spin-78f415f6 1s linear infinite;border-radius:9999px;border-width:2px;border-top-width:2px;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.step-content[data-v-78f415f6]{flex-grow:1}.step-text[data-v-78f415f6]{margin-bottom:.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:600}.step-description[data-v-78f415f6]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.step-description[data-v-78f415f6]:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .5s ease-out forwards}details[open] summary~*{animation:slideDown .3s ease-in-out}details summary::marker{display:none}details summary::-webkit-details-marker{display:none}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.custom-scrollbar[data-v-8a34bb65]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.5) transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb{background-color:#9ca3af80;border-radius:3px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb:hover{background-color:#9ca3afb3}.bounce-enter-active[data-v-f44002af]{animation:bounce-in-f44002af .5s}.bounce-leave-active[data-v-f44002af]{animation:bounce-in-f44002af .5s reverse}@keyframes bounce-in-f44002af{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-1a32c141]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-1a32c141]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-1a32c141]{top:calc(-100% - 2rem)}.personalities-hover-area[data-v-e3d676fa]{position:relative;padding-top:10px}.custom-scrollbar[data-v-e3d676fa]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}.chat-bar[data-v-e3d676fa]{transition:all .3s ease}.chat-bar[data-v-e3d676fa]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.list-move[data-v-e3d676fa],.list-enter-active[data-v-e3d676fa],.list-leave-active[data-v-e3d676fa]{transition:all .5s ease}.list-enter-from[data-v-e3d676fa]{transform:translatey(-30px)}.list-leave-to[data-v-e3d676fa]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-e3d676fa]{position:absolute}@keyframes rolling-ball-1756add6{0%{transform:translate(-50px) rotate(0)}25%{transform:translate(0) rotate(90deg)}50%{transform:translate(50px) rotate(180deg)}75%{transform:translate(0) rotate(270deg)}to{transform:translate(-50px) rotate(360deg)}}@keyframes bounce-1756add6{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-1756add6{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-1756add6]{animation:rolling-ball-1756add6 4s infinite ease-in-out,bounce-1756add6 1s infinite ease-in-out}.animate-fade-in-up[data-v-1756add6]{animation:fade-in-up-1756add6 1.5s ease-out}.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}@keyframes giggle-b1ec8349{0%,to{transform:translate(0) rotate(0) scale(1)}25%{transform:translate(-5px) rotate(-10deg) scale(1.05)}50%{transform:translate(5px) rotate(10deg) scale(.95)}75%{transform:translate(-5px) rotate(-10deg) scale(1.05)}}.animate-giggle[data-v-b1ec8349]{animation:giggle-b1ec8349 1.5s infinite ease-in-out}.custom-scrollbar[data-v-b1ec8349]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-b1ec8349]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-b1ec8349]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-b1ec8349]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-b1ec8349{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-b1ec8349]{animation:custom-pulse-b1ec8349 2s infinite}.slide-right-enter-active[data-v-b1ec8349],.slide-right-leave-active[data-v-b1ec8349]{transition:transform .3s ease}.slide-right-enter[data-v-b1ec8349],.slide-right-leave-to[data-v-b1ec8349]{transform:translate(-100%)}.slide-left-enter-active[data-v-b1ec8349],.slide-left-leave-active[data-v-b1ec8349]{transition:transform .3s ease}.slide-left-enter[data-v-b1ec8349],.slide-left-leave-to[data-v-b1ec8349]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-b1ec8349]{animation:fade-and-fly-enter-b1ec8349 .5s ease}.fade-and-fly-leave-active[data-v-b1ec8349]{animation:fade-and-fly-leave-b1ec8349 .5s ease}@keyframes fade-and-fly-enter-b1ec8349{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-b1ec8349{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-b1ec8349],.list-enter-active[data-v-b1ec8349],.list-leave-active[data-v-b1ec8349]{transition:all .5s ease}.list-enter-from[data-v-b1ec8349]{transform:translatey(-30px)}.list-leave-to[data-v-b1ec8349]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-b1ec8349]{position:absolute}@keyframes float-b1ec8349{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-b1ec8349]{animation:float-b1ec8349 linear infinite}@keyframes star-move-b1ec8349{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-b1ec8349]{animation:star-move-b1ec8349 linear infinite}@keyframes fall-b1ec8349{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-b1ec8349]{animation:fall-b1ec8349 linear infinite}@keyframes glow-b1ec8349{0%,to{text-shadow:0 0 5px rgba(66,153,225,.5),0 0 10px rgba(66,153,225,.5)}50%{text-shadow:0 0 20px rgba(66,153,225,.8),0 0 30px rgba(66,153,225,.8)}}.animate-glow[data-v-b1ec8349]{animation:glow-b1ec8349 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-b1ec8349{0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}}}@keyframes roll-b1ec8349{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-b1ec8349]{animation:roll-b1ec8349 4s linear infinite}.toolbar[data-v-b1ec8349]{position:relative;width:100%}.toolbar-container[data-v-b1ec8349]{display:flex;height:2.5rem;align-items:center}.toolbar-button[data-v-b1ec8349]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-b1ec8349]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.menu-container[data-v-b1ec8349]{position:relative}.expandable-menu[data-v-b1ec8349]{position:absolute;top:100%;left:.625rem;flex-direction:column;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.menu-container:hover .expandable-menu[data-v-b1ec8349],.menu-visible[data-v-b1ec8349]{display:flex}.menu-item[data-v-b1ec8349]{background:none;border:none;cursor:pointer;padding:8px;color:#333;transition:background-color .3s}.menu-item[data-v-b1ec8349]:hover{background-color:#f0f0f0}.dot[data-v-b1ec8349]{width:10px;height:10px;border-radius:50%}.dot-green[data-v-b1ec8349]{background-color:green}.dot-red[data-v-b1ec8349]{background-color:red}.animate-pulse[data-v-b1ec8349]{animation:pulse-b1ec8349 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-b1ec8349{0%,to{opacity:1}50%{opacity:.7}}.logo-container[data-v-b1ec8349]{position:relative;width:48px;height:48px}.logo-image[data-v-b1ec8349]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce-b1ec8349{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce[data-v-b1ec8349]{animation:bounce-b1ec8349 1s infinite}@keyframes roll-and-bounce-b1ec8349{0%,to{transform:translate(0) rotate(0)}45%{transform:translate(100px) rotate(360deg)}50%{transform:translate(90px) rotate(390deg)}55%{transform:translate(100px) rotate(360deg)}95%{transform:translate(0) rotate(0)}}@keyframes spin-b1ec8349{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.floating-frame{margin:15px;float:left;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;z-index:5000;position:fixed;cursor:move;bottom:0;right:0}.handle{width:100%;height:20px;background:#ccc;cursor:move;text-align:center}.floating-frame img{width:100%;height:auto}.controls{margin-top:10px}#webglContainer{top:0;left:0}.floating-frame2{margin:15px;width:800px;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;min-height:200px;z-index:5000}:root{--baklava-control-color-primary: #e28b46;--baklava-control-color-error: #d00000;--baklava-control-color-background: #2c3748;--baklava-control-color-foreground: white;--baklava-control-color-hover: #455670;--baklava-control-color-active: #556986;--baklava-control-color-disabled-foreground: #666c75;--baklava-control-border-radius: 3px;--baklava-sidebar-color-background: #1b202c;--baklava-sidebar-color-foreground: white;--baklava-node-color-background: #1b202c;--baklava-node-color-foreground: white;--baklava-node-color-hover: #e28c4677;--baklava-node-color-selected: var(--baklava-control-color-primary);--baklava-node-color-resize-handle: var(--baklava-control-color-background);--baklava-node-title-color-background: #151a24;--baklava-node-title-color-foreground: white;--baklava-group-node-title-color-background: #215636;--baklava-group-node-title-color-foreground: white;--baklava-node-interface-port-tooltip-color-foreground: var(--baklava-control-color-primary);--baklava-node-interface-port-tooltip-color-background: var(--baklava-editor-background-pattern-black);--baklava-node-border-radius: 6px;--baklava-color-connection-default: #737f96;--baklava-color-connection-allowed: #48bc79;--baklava-color-connection-forbidden: #bc4848;--baklava-editor-background-pattern-default: #202b3c;--baklava-editor-background-pattern-line: #263140;--baklava-editor-background-pattern-black: #263140;--baklava-context-menu-background: #1b202c;--baklava-context-menu-shadow: 0 0 8px rgba(0, 0, 0, .65);--baklava-toolbar-background: #1b202caa;--baklava-toolbar-foreground: white;--baklava-node-palette-background: #1b202caa;--baklava-node-palette-foreground: white;--baklava-selectionbox-color-border: var(--baklava-node-color-background);--baklava-selectionbox-color-background: var(--baklava-node-color-hover);--baklava-visual-transition: .1s linear}.baklava-button{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);transition:background-color var(--baklava-visual-transition);border:none;padding:.45em .35em;border-radius:var(--baklava-control-border-radius);font-size:inherit;cursor:pointer;overflow-x:hidden}.baklava-button:hover{background-color:var(--baklava-control-color-hover)}.baklava-button:active{background-color:var(--baklava-control-color-primary)}.baklava-button.--block{width:100%}.baklava-checkbox{display:flex;padding:.35em 0;cursor:pointer;overflow-x:hidden;align-items:center}.baklava-checkbox .__checkmark-container{display:flex;background-color:var(--baklava-control-color-background);border-radius:var(--baklava-control-border-radius);transition:background-color var(--baklava-visual-transition);width:18px;height:18px}.baklava-checkbox:hover .__checkmark-container{background-color:var(--baklava-control-color-hover)}.baklava-checkbox:active .__checkmark-container{background-color:var(--baklava-control-color-active)}.baklava-checkbox .__checkmark{stroke-dasharray:15;stroke-dashoffset:15;stroke:var(--baklava-control-color-foreground);stroke-width:2px;fill:none;transition:stroke-dashoffset var(--baklava-visual-transition)}.baklava-checkbox.--checked .__checkmark{stroke-dashoffset:0}.baklava-checkbox.--checked .__checkmark-container{background-color:var(--baklava-control-color-primary)}.baklava-checkbox .__label{margin-left:.5rem}.baklava-context-menu{color:var(--baklava-control-color-foreground);position:absolute;display:inline-block;z-index:100;background-color:var(--baklava-context-menu-background);box-shadow:var(--baklava-context-menu-shadow);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);min-width:6rem;width:-moz-max-content;width:max-content}.baklava-context-menu>.item{display:flex;align-items:center;padding:.35em 1em;transition:background .05s linear;position:relative}.baklava-context-menu>.item>.__label{flex:1 1 auto}.baklava-context-menu>.item>.__submenu-icon{margin-left:.75rem}.baklava-context-menu>.item.--disabled{color:var(--baklava-control-color-hover)}.baklava-context-menu>.item:not(.--header):not(.--active):not(.--disabled):hover{background:var(--baklava-control-color-primary)}.baklava-context-menu>.item.--active{background:var(--baklava-control-color-primary)}.baklava-context-menu.--nested{left:100%;top:0}.baklava-context-menu.--flipped-x.--nested{left:unset;right:100%}.baklava-context-menu.--flipped-y.--nested{top:unset;bottom:0}.baklava-context-menu>.divider{margin:.35em 0;height:1px;background-color:var(--baklava-control-color-hover)}.baklava-icon{display:block;height:100%}.baklava-icon.--clickable{cursor:pointer;transition:color var(--baklava-visual-transition)}.baklava-icon.--clickable:hover{color:var(--baklava-control-color-primary)}.baklava-input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);border:none;border-radius:var(--baklava-control-border-radius);padding:.45em .75em;width:100%;transition:background-color var(--baklava-visual-transition);font-size:inherit;font:inherit}.baklava-input:hover{background-color:var(--baklava-control-color-hover)}.baklava-input:active{background-color:var(--baklava-control-color-active)}.baklava-input:focus-visible{outline:1px solid var(--baklava-control-color-primary)}.baklava-input[type=number]::-webkit-inner-spin-button,.baklava-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.baklava-input.--invalid{box-shadow:0 0 2px 2px var(--baklava-control-color-error)}.baklava-num-input{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);width:100%;display:grid;grid-template-columns:20px 1fr 20px}.baklava-num-input>.__button{display:flex;flex:0 0 auto;width:20px;justify-content:center;align-items:center;transition:background var(--baklava-visual-transition);cursor:pointer}.baklava-num-input>.__button:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__button:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__button.--dec{grid-area:1/1/span 1/span 1}.baklava-num-input>.__button.--dec>svg{transform:rotate(90deg)}.baklava-num-input>.__button.--inc{grid-area:1/3/span 1/span 1}.baklava-num-input>.__button.--inc>svg{transform:rotate(-90deg)}.baklava-num-input>.__button path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-num-input>.__content{grid-area:1/2/span 1/span 1;display:inline-flex;cursor:pointer;max-width:100%;min-width:0;align-items:center;transition:background-color var(--baklava-visual-transition)}.baklava-num-input>.__content:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__content:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__content>.__label,.baklava-num-input>.__content>.__value{margin:.35em 0;padding:0 .5em}.baklava-num-input>.__content>.__label{flex:1;min-width:0;overflow:hidden}.baklava-num-input>.__content>.__value{text-align:right}.baklava-num-input>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-select{width:100%;position:relative;color:var(--baklava-control-color-foreground)}.baklava-select.--open>.__selected{border-bottom-left-radius:0;border-bottom-right-radius:0}.baklava-select.--open>.__selected>.__icon{transform:rotate(180deg)}.baklava-select>.__selected{background-color:var(--baklava-control-color-background);padding:.35em .75em;border-radius:var(--baklava-control-border-radius);transition:background var(--baklava-visual-transition);min-height:1.7em;display:flex;align-items:center;cursor:pointer}.baklava-select>.__selected:hover{background:var(--baklava-control-color-hover)}.baklava-select>.__selected:active{background:var(--baklava-control-color-active)}.baklava-select>.__selected>.__text{flex:1 0 auto;flex-basis:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baklava-select>.__selected>.__icon{flex:0 0 auto;display:flex;justify-content:center;align-items:center;transition:transform .25s ease;width:18px;height:18px}.baklava-select>.__selected>.__icon path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-select>.__dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background-color:var(--baklava-context-menu-background);filter:drop-shadow(0 0 4px black);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);max-height:15em;overflow-y:scroll}.baklava-select>.__dropdown::-webkit-scrollbar{width:0px;background:transparent}.baklava-select>.__dropdown>.item{padding:.35em .35em .35em 1em;transition:background .05s linear}.baklava-select>.__dropdown>.item:not(.--header):not(.--active){cursor:pointer}.baklava-select>.__dropdown>.item:not(.--header):not(.--active):hover{background:var(--baklava-control-color-hover)}.baklava-select>.__dropdown>.item.--active{background:var(--baklava-control-color-primary)}.baklava-select>.__dropdown>.item.--header{color:var(--baklava-control-color-disabled-foreground);border-bottom:1px solid var(--baklava-control-color-disabled-foreground);padding:.5em .35em .5em 1em}.baklava-slider{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);position:relative;cursor:pointer}.baklava-slider>.__content{display:flex;position:relative}.baklava-slider>.__content>.__label,.baklava-slider>.__content>.__value{flex:1 1 auto;margin:.35em 0;padding:0 .5em;text-overflow:ellipsis}.baklava-slider>.__content>.__value{text-align:right}.baklava-slider>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-slider>.__slider{position:absolute;top:0;bottom:0;left:0;background-color:var(--baklava-control-color-primary);border-radius:var(--baklava-control-border-radius)}.baklava-connection{stroke:var(--baklava-color-connection-default);stroke-width:2px;fill:none}.baklava-connection.--temporary{stroke-width:4px;stroke-dasharray:5 5;stroke-dashoffset:0;animation:dash 1s linear infinite;transform:translateY(-1px)}@keyframes dash{to{stroke-dashoffset:20}}.baklava-connection.--allowed{stroke:var(--baklava-color-connection-allowed)}.baklava-connection.--forbidden{stroke:var(--baklava-color-connection-forbidden)}.baklava-minimap{position:absolute;height:15%;width:15%;min-width:150px;max-width:90%;top:20px;right:20px;z-index:900}.baklava-editor{width:100%;height:100%;position:relative;overflow:hidden;outline:none!important;font-family:Lato,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:15px;touch-action:none}.baklava-editor .background{background-color:var(--baklava-editor-background-pattern-default);background-image:linear-gradient(var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(90deg,var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(var(--baklava-editor-background-pattern-line) 1px,transparent 1px),linear-gradient(90deg,var(--baklava-editor-background-pattern-line) 1px,transparent 1px);background-repeat:repeat;width:100%;height:100%;pointer-events:none!important}.baklava-editor .selection-box{position:absolute;border:1px solid var(--baklava-selectionbox-color-border);background-color:var(--baklava-selectionbox-color-background);pointer-events:none;opacity:.5}.baklava-editor.--start-selection-box{cursor:crosshair}.baklava-editor *:not(input):not(textarea){user-select:none;-moz-user-select:none;-webkit-user-select:none;touch-action:none}.baklava-editor .input-user-select{user-select:auto;-moz-user-select:auto;-webkit-user-select:auto}.baklava-editor *,.baklava-editor *:after,.baklava-editor *:before{box-sizing:border-box}.baklava-editor.--temporary-connection{cursor:crosshair}.baklava-editor .connections-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none!important}.baklava-editor .node-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.baklava-editor .node-container *{pointer-events:all}.baklava-ignore-mouse *{pointer-events:none!important}.baklava-ignore-mouse .__port{pointer-events:all!important}.baklava-node-interface{padding:.25em 0;position:relative}.baklava-node-interface .__port{position:absolute;width:10px;height:10px;background:#fff;border-radius:50%;top:calc(50% - 5px);cursor:crosshair}.baklava-node-interface .__port.--selected{outline:2px var(--baklava-color-connection-default) solid;outline-offset:4px}.baklava-node-interface.--input{text-align:left;padding-left:.5em}.baklava-node-interface.--input .__port{left:-1.1em}.baklava-node-interface.--output{text-align:right;padding-right:.5em}.baklava-node-interface.--output .__port{right:-1.1em}.baklava-node-interface .__tooltip{position:absolute;left:5px;top:15px;transform:translate(-50%);background:var(--baklava-node-interface-port-tooltip-color-background);color:var(--baklava-node-interface-port-tooltip-color-foreground);padding:.25em .5em;text-align:center;z-index:2}.baklava-node-palette{position:absolute;left:0;top:60px;width:250px;height:calc(100% - 60px);z-index:3;padding:2rem;overflow-y:auto;background:var(--baklava-node-palette-background);color:var(--baklava-node-palette-foreground)}.baklava-node-palette h1{margin-top:2rem}.baklava-node.--palette{position:unset;margin:1rem 0;cursor:grab}.baklava-node.--palette:first-child{margin-top:0}.baklava-node.--palette .__title{padding:.5rem;border-radius:var(--baklava-node-border-radius)}.baklava-dragged-node{position:absolute;width:calc(250px - 4rem);height:40px;z-index:4;pointer-events:none}.baklava-node{background:var(--baklava-node-color-background);color:var(--baklava-node-color-foreground);border:1px solid transparent;border-radius:var(--baklava-node-border-radius);position:absolute;box-shadow:0 0 4px #000c;transition:border-color var(--baklava-visual-transition),box-shadow var(--baklava-visual-transition);width:var(--width)}.baklava-node:hover{border-color:var(--baklava-node-color-hover)}.baklava-node:hover .__resize-handle:after{opacity:1}.baklava-node.--selected{z-index:5;border-color:var(--baklava-node-color-selected)}.baklava-node.--dragging{box-shadow:0 0 12px #000c}.baklava-node.--dragging>.__title{cursor:grabbing}.baklava-node>.__title{display:flex;background:var(--baklava-node-title-color-background);color:var(--baklava-node-title-color-foreground);padding:.4em .75em;border-radius:var(--baklava-node-border-radius) var(--baklava-node-border-radius) 0 0;cursor:grab}.baklava-node>.__title>*:first-child{flex-grow:1}.baklava-node>.__title>.__title-label{pointer-events:none}.baklava-node>.__title>.__menu{position:relative;cursor:initial}.baklava-node[data-node-type^=__baklava_]>.__title{background:var(--baklava-group-node-title-color-background);color:var(--baklava-group-node-title-color-foreground)}.baklava-node>.__content{padding:.75em}.baklava-node>.__content.--reverse-y{display:flex;flex-direction:column-reverse}.baklava-node>.__content>div>div{margin:.5em 0}.baklava-node.--two-column>.__content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:". ." ". ."}.baklava-node.--two-column>.__content>.__inputs{grid-row:1;grid-column:1}.baklava-node.--two-column>.__content>.__outputs{grid-row:1;grid-column:2}.baklava-node .__resize-handle{position:absolute;right:0;bottom:0;width:1rem;height:1rem;transform:translate(50%);cursor:ew-resize}.baklava-node .__resize-handle:after{content:"";position:absolute;bottom:0;left:-.5rem;width:1rem;height:1rem;opacity:0;border-bottom-right-radius:var(--baklava-node-border-radius);transition:opacity var(--baklava-visual-transition);background:linear-gradient(-45deg,transparent 10%,var(--baklava-node-color-resize-handle) 10%,var(--baklava-node-color-resize-handle) 15%,transparent 15%,transparent 30%,var(--baklava-node-color-resize-handle) 30%,var(--baklava-node-color-resize-handle) 35%,transparent 35%,transparent 50%,var(--baklava-node-color-resize-handle) 50%,var(--baklava-node-color-resize-handle) 55%,transparent 55%)}.baklava-sidebar{position:absolute;height:100%;width:25%;min-width:300px;max-width:90%;top:0;right:0;z-index:1000;background-color:var(--baklava-sidebar-color-background);color:var(--baklava-sidebar-color-foreground);box-shadow:none;overflow-x:hidden;padding:1em;transform:translate(100%);transition:transform .5s;display:flex;flex-direction:column}.baklava-sidebar.--open{transform:translate(0);box-shadow:0 0 15px #000}.baklava-sidebar .__resizer{position:absolute;left:0;top:0;height:100%;width:4px;cursor:col-resize}.baklava-sidebar .__header{display:flex;align-items:center}.baklava-sidebar .__header .__node-name{margin-left:.5rem}.baklava-sidebar .__close{font-size:2em;border:none;background:none;color:inherit;cursor:pointer}.baklava-sidebar .__interface{margin:.5em 0}.baklava-toolbar{position:absolute;left:0;top:0;width:100%;height:60px;z-index:3;padding:.5rem 2rem;background:var(--baklava-toolbar-background);color:var(--baklava-toolbar-foreground);display:flex;align-items:center}.baklava-toolbar-entry{margin-left:.5rem;margin-right:.5rem}.baklava-toolbar-button{color:var(--baklava-toolbar-foreground);background:none;border:none;transition:color var(--baklava-visual-transition)}.baklava-toolbar-button:not([disabled]){cursor:pointer}.baklava-toolbar-button:hover:not([disabled]){color:var(--baklava-control-color-primary)}.baklava-toolbar-button[disabled]{color:var(--baklava-control-color-disabled-foreground)}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .1s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translateY(5px);opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .1s ease-out!important}.fade-enter-from,.fade-leave-to{opacity:0}.loading-indicator[data-v-fcb6b036]{display:flex;justify-content:center;align-items:center;height:100px;font-size:1.2em;color:#666}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1f2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4b5563}.dark input[type=file]::file-selector-button:hover{background:#6b7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9ca3af}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6b7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9ca3af}.dark input[type=range]:disabled::-moz-range-thumb{background:#6b7280}input[type=range]::-moz-range-progress{background:#3f83f8}input[type=range]::-ms-fill-lower{background:#3f83f8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:#fff;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1c64f2;border-color:#1c64f2}*{scrollbar-color:initial;scrollbar-width:initial}body{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #e0eaff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 234 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #f0e6ff var(--tw-gradient-to-position)}body:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0f2647 var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 38 71 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1e1b4b var(--tw-gradient-to-position)}html{scroll-behavior:smooth}body{font-family:Roboto,sans-serif}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-0\.5{bottom:-.125rem}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1\.5{left:-.375rem}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-6{bottom:1.5rem}.bottom-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-20{left:5rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-20{right:5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3{top:.75rem}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\/6{height:83.333333%}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[200px\]{height:200px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[220px\]{min-height:220px}.min-h-\[500px\]{min-height:500px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[300px\]{width:300px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-80{min-width:20rem}.min-w-96{min-width:24rem}.min-w-\[120px\]{min-width:120px}.min-w-\[14rem\]{min-width:14rem}.min-w-\[15rem\]{min-width:15rem}.min-w-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[14rem\]{max-width:14rem}.max-w-\[15rem\]{max-width:15rem}.max-w-\[23rem\]{max-width:23rem}.max-w-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-left{transform-origin:left}.origin-top{transform-origin:top}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-x-0{--tw-scale-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[50px\,1fr\]{grid-template-columns:50px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-2{border-top-width:2px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{border-color:var(--color-bg-dark)}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(195 221 253 / var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{border-color:var(--color-primary)}.border-primary-light{border-color:var(--color-primary-light)}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{border-color:var(--color-secondary)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.border-t-blue-600{--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.bg-accent{background-color:var(--color-accent)}.bg-bg-dark-tone-panel{background-color:var(--color-bg-dark-tone-panel)}.bg-bg-light{background-color:var(--color-bg-light)}.bg-bg-light-tone{background-color:var(--color-bg-light-tone)}.bg-bg-light-tone-panel{background-color:var(--color-bg-light-tone-panel)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-primary-light{background-color:var(--color-primary-light)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.bg-secondary{background-color:var(--color-secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: var(--color-bg-light) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: var(--color-bg-light-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-400{--tw-gradient-from: #76A9FA var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500\/10{--tw-gradient-from: rgb(63 131 248 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #5850EC var(--tw-gradient-from-position);--tw-gradient-to: rgb(88 80 236 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-light) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #9061F9 var(--tw-gradient-to-position)}.to-purple-500\/10{--tw-gradient-to: rgb(144 97 249 / .1) var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-blue-600{fill:#1c64f2}.fill-current{fill:currentColor}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-secondary{fill:var(--color-secondary)}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-80{padding-bottom:20rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-light-text-panel{color:var(--color-light-text-panel)}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(208 56 1 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{color:var(--color-secondary)}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgb(6 148 162 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: var(--color-bg-light) !important}.scrollbar-track-bg-light-tone{--scrollbar-track: var(--color-bg-light-tone) !important}.scrollbar-track-gray-200{--scrollbar-track: #E5E7EB !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: var(--color-bg-light-tone-panel) !important}.scrollbar-thumb-gray-400{--scrollbar-thumb: #9CA3AF !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{margin-bottom:1.5rem;font-size:2.25rem;line-height:2.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}h1:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}@media (min-width: 768px){h1{font-size:3rem;line-height:1}}h2{margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}h2:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}h3{margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}h3:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}h4{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:500;--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}h4:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}h1,h2{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding-bottom:.5rem}h1:is(.dark *),h2:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}p{overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}p:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}ul{margin-left:0;list-style-type:disc}li{margin-left:1.25rem;list-style-type:disc}ol{margin-left:1.25rem;list-style-type:decimal}:root{--color-primary: #4a90e2;--color-primary-light: #6ab7f1;--color-secondary: #8ab8e0;--color-accent: #3a7ca1;--color-light-text-panel: #ffffff;--color-dark-text-panel: #e0e0e0;--color-bg-light-panel: #f0faff;--color-bg-light: #ffffff;--color-bg-light-tone: #e0f0ff;--color-bg-light-code-block: #f5faff;--color-bg-light-tone-panel: #d0e0f0;--color-bg-light-discussion: #f8faff;--color-bg-light-discussion-odd: #f0faff;--color-bg-dark: #0a0a1a;--color-bg-dark-tone: #151521;--color-bg-dark-tone-panel: #1c1c2a;--color-bg-dark-code-block: #151521;--color-bg-dark-discussion: #0e0e1a;--color-bg-dark-discussion-odd: #0d0d1a}textarea,input,select{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}textarea:is(.dark *),input:is(.dark *),select:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.background-color{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.background-color:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.toolbar-color{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toolbar-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.panels-color{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.unicolor-panels-color{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.unicolor-panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.chatbox-color{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.chatbox-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message{position:relative;margin:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:column;flex-wrap:wrap;overflow:visible;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding:1.25rem 1.25rem .75rem;font-size:1.125rem;line-height:1.75rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.message:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.message{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.message:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #233876 var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1E429F var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.message:hover{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.message:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.message:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.message:nth-child(2n):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.message:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.message:nth-child(odd):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message-header{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.message-content{font-size:1.125rem;line-height:1.75rem;line-height:1.625}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));font-size:1rem;line-height:1.5rem}body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.discussion{margin-right:.5rem;font-size:.75rem;line-height:1rem}.discussion-hilighted{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem}.discussion-hilighted:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.bg-gradient-welcome{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.bg-gradient-welcome:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.bg-gradient-progress{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #C3DDFD var(--tw-gradient-from-position);--tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #A4CAFE var(--tw-gradient-to-position)}.bg-gradient-progress:is(.dark *){--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.text-gradient-title{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}.text-gradient-title:is(.dark *){--tw-gradient-from: #A4CAFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(164 202 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.text-subtitle{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-subtitle:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-author{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-author:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-loading{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-loading:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.text-progress{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-progress:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.btn-primary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.card{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.input{border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));padding:.5rem 1rem}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.input:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.label{margin-bottom:.25rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.label:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.link{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.link:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.link:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.navbar-container{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.navbar-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.game-menu{position:relative;display:flex;align-items:center;justify-content:center}.text-shadow-custom{text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item{margin-bottom:.5rem;padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu-item:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.menu-item:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:.375rem;border-top-right-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item.active-link:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item.active-link:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.menu-item.active-link:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{text-shadow:0 0 10px rgba(128,128,128,.5)}.menu-item.active-link:before{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:5px;background:linear-gradient(to right,#4a90e2,#8ab8e0,#4a90e2);border-radius:10px;animation:shimmer 2s infinite}.dark .menu-item.active-link:before{background:linear-gradient(to right,#6ab7f1,#aaa,#6ab7f1)}@keyframes shimmer{0%{background-position:-100% 0}to{background-position:100% 0}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.feather-emoji{display:inline-block;margin-left:5px;animation:bounce 2s infinite}.app-card{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.app-card:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.app-card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.app-card:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}button{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}button:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar-thin{scrollbar-color:#1C64F2 #1E429F}.scrollbar-thin::-webkit-scrollbar{width:.5rem}.scrollbar-thin::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.btn{display:flex;align-items:center;border-radius:.5rem;padding:.5rem 1rem;font-weight:600;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.btn-primary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.btn-primary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.btn-secondary{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.btn-secondary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.btn-secondary:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.btn-secondary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.btn-secondary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.search-input{width:100%;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));background-color:transparent;padding:.5rem 1rem .5rem 2.5rem;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.search-input:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px}.search-input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.search-input:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar{--scrollbar-track: #C3DDFD;--scrollbar-thumb: #76A9FA;scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar{scrollbar-color:#1C64F2 #1E429F}.scrollbar::-webkit-scrollbar{width:.5rem}.scrollbar::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar{--scrollbar-thumb-hover: #3F83F8}.scrollbar:is(.dark *){--scrollbar-track: #1A56DB;--scrollbar-thumb: #1C64F2;--scrollbar-thumb-hover: #3F83F8}.card-title{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.card-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.card-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.card-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.card-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.card-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.subcard{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity));padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.subcard:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.subcard-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.subcard-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.subcard-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.subcard-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.subcard-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.subcard-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.subcard-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.last\:mb-0:last-child{margin-bottom:0}.last\:\!border-transparent:last-child{border-color:transparent!important}.last\:pb-0:last-child{padding-bottom:0}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{border-color:var(--color-secondary)}.group:hover .group-hover\:bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/item:hover .group-hover\/item\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-x-100:hover{--tw-scale-x: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-green-200:hover{--tw-border-opacity: 1;border-color:rgb(188 240 218 / var(--tw-border-opacity))}.hover\:border-primary:hover{border-color:var(--color-primary)}.hover\:border-primary-light:hover{border-color:var(--color-primary-light)}.hover\:border-secondary:hover{border-color:var(--color-secondary)}.hover\:bg-bg-light-tone:hover{background-color:var(--color-bg-light-tone)}.hover\:bg-bg-light-tone-panel:hover{background-color:var(--color-bg-light-tone-panel)}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-primary:hover{background-color:var(--color-primary)}.hover\:bg-primary-light:hover{background-color:var(--color-primary-light)}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-r:hover{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\:from-blue-50:hover{--tw-gradient-from: #EBF5FF var(--tw-gradient-from-position);--tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:to-purple-50:hover{--tw-gradient-to: #F6F5FF var(--tw-gradient-to-position)}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-green-600:hover{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.hover\:text-indigo-600:hover{--tw-text-opacity: 1;color:rgb(88 80 236 / var(--tw-text-opacity))}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-purple-600:hover{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.hover\:text-secondary:hover{color:var(--color-secondary)}.hover\:text-teal-600:hover{--tw-text-opacity: 1;color:rgb(4 116 129 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-yellow-600:hover{--tw-text-opacity: 1;color:rgb(159 88 10 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-none:hover{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: var(--color-primary) !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{border-color:var(--color-secondary)}.focus\:border-transparent:focus{border-color:transparent}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-500\/50:focus{--tw-ring-color: rgb(63 131 248 / .5)}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-color: var(--color-secondary)}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity: .5}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-gray-300:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: var(--color-secondary) !important}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:border-bg-light:is(.dark *){border-color:var(--color-bg-light)}.dark\:border-blue-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\:border-gray-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.dark\:border-green-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.dark\:border-pink-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}.dark\:border-pink-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}.dark\:border-purple-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}.dark\:border-purple-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}.dark\:border-red-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-yellow-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}.dark\:bg-bg-dark:is(.dark *){background-color:var(--color-bg-dark)}.dark\:bg-bg-dark-tone:is(.dark *){background-color:var(--color-bg-dark-tone)}.dark\:bg-bg-dark-tone-panel:is(.dark *){background-color:var(--color-bg-dark-tone-panel)}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-blue-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.dark\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:bg-blue-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:bg-blue-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:bg-gray-300:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark\:bg-gray-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-800\/30:is(.dark *){background-color:#1f29374d}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-green-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.dark\:bg-green-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:bg-green-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.dark\:bg-green-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.dark\:bg-indigo-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.dark\:bg-indigo-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.dark\:bg-orange-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}.dark\:bg-orange-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}.dark\:bg-pink-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.dark\:bg-pink-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}.dark\:bg-purple-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.dark\:bg-purple-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:bg-purple-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.dark\:bg-red-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.dark\:bg-red-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:bg-red-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:bg-yellow-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.dark\:bg-opacity-70:is(.dark *){--tw-bg-opacity: .7}.dark\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\:from-bg-dark:is(.dark *){--tw-gradient-from: var(--color-bg-dark) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-bg-dark-tone:is(.dark *){--tw-gradient-from: var(--color-bg-dark-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-blue-400\/20:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-indigo-400:is(.dark *){--tw-gradient-from: #8DA2FB var(--tw-gradient-from-position);--tw-gradient-to: rgb(141 162 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:via-bg-dark:is(.dark *){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\:to-purple-400:is(.dark *){--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}.dark\:to-purple-400\/20:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .2) var(--tw-gradient-to-position)}.dark\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.dark\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:text-blue-800:is(.dark *){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.dark\:text-dark-text-panel:is(.dark *){color:var(--color-dark-text-panel)}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.dark\:text-gray-800:is(.dark *){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.dark\:text-green-800:is(.dark *){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.dark\:text-green-900:is(.dark *){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.dark\:text-indigo-500:is(.dark *){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.dark\:text-indigo-900:is(.dark *){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.dark\:text-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.dark\:text-pink-400:is(.dark *){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}.dark\:text-pink-500:is(.dark *){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.dark\:text-pink-900:is(.dark *){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.dark\:text-primary:is(.dark *){color:var(--color-primary)}.dark\:text-purple-400:is(.dark *){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}.dark\:text-purple-500:is(.dark *){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.dark\:text-purple-900:is(.dark *){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.dark\:text-red-800:is(.dark *){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.dark\:text-red-900:is(.dark *){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.dark\:text-slate-50:is(.dark *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.dark\:text-yellow-500:is(.dark *){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.dark\:text-yellow-800:is(.dark *){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.dark\:text-yellow-900:is(.dark *){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.dark\:placeholder-gray-400:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:shadow-lg:is(.dark *){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-blue-800\/80:is(.dark *){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-cyan-800\/80:is(.dark *){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-green-800\/80:is(.dark *){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-lime-800\/80:is(.dark *){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-pink-800\/80:is(.dark *){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-purple-800\/80:is(.dark *){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-red-800\/80:is(.dark *){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-teal-800\/80:is(.dark *){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-gray-500:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:ring-white:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.dark\:ring-opacity-20:is(.dark *){--tw-ring-opacity: .2}.dark\:ring-offset-gray-700:is(.dark *){--tw-ring-offset-color: #374151}.dark\:ring-offset-gray-800:is(.dark *){--tw-ring-offset-color: #1F2937}.dark\:scrollbar-track-bg-dark:is(.dark *){--scrollbar-track: var(--color-bg-dark) !important}.dark\:scrollbar-track-bg-dark-tone:is(.dark *){--scrollbar-track: var(--color-bg-dark-tone) !important}.dark\:scrollbar-track-gray-700:is(.dark *){--scrollbar-track: #374151 !important}.dark\:scrollbar-track-gray-800:is(.dark *){--scrollbar-track: #1F2937 !important}.dark\:scrollbar-thumb-bg-dark-tone:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone) !important}.dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}.dark\:scrollbar-thumb-gray-500:is(.dark *){--scrollbar-thumb: #6B7280 !important}.dark\:scrollbar-thumb-gray-600:is(.dark *){--scrollbar-thumb: #4B5563 !important}.dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n):is(.dark *){background-color:var(--color-bg-dark-discussion-odd)}.group:hover .dark\:group-hover\:bg-gray-800\/60:is(.dark *){background-color:#1f293799}.group:hover .dark\:group-hover\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:focus .dark\:group-focus\:ring-gray-800\/70:is(.dark *){--tw-ring-color: rgb(31 41 55 / .7)}.dark\:hover\:border-blue-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.dark\:hover\:border-gray-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:hover\:border-primary:hover:is(.dark *){border-color:var(--color-primary)}.dark\:hover\:bg-blue-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.dark\:hover\:bg-primary:hover:is(.dark *){background-color:var(--color-primary)}.dark\:hover\:bg-purple-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:hover\:bg-purple-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-400:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.hover\:dark\:bg-bg-dark-tone:is(.dark *):hover{background-color:var(--color-bg-dark-tone)}.hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{background-color:var(--color-bg-dark-tone-panel)}.dark\:hover\:from-blue-900\/30:hover:is(.dark *){--tw-gradient-from: rgb(35 56 118 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:to-purple-900\/30:hover:is(.dark *){--tw-gradient-to: rgb(74 29 150 / .3) var(--tw-gradient-to-position)}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:hover\:text-gray-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.dark\:hover\:text-green-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.dark\:hover\:text-green-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:hover\:text-primary:hover:is(.dark *){color:var(--color-primary)}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:scrollbar-thumb-primary:is(.dark *){--scrollbar-thumb-hover: var(--color-primary) !important}.dark\:focus\:border-blue-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:focus\:border-secondary:focus:is(.dark *){border-color:var(--color-secondary)}.dark\:focus\:text-white:focus:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:ring-blue-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.dark\:focus\:ring-cyan-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.dark\:focus\:ring-green-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.dark\:focus\:ring-lime-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-400:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.dark\:focus\:ring-secondary:focus:is(.dark *){--tw-ring-color: var(--color-secondary)}.dark\:focus\:ring-teal-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}.dark\:focus\:ring-teal-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}.dark\:focus\:ring-yellow-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-offset-gray-700:focus:is(.dark *){--tw-ring-offset-color: #374151}.dark\:active\:bg-gray-600:active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.md\:dark\:hover\:bg-transparent:hover:is(.dark *){background-color:transparent}.md\:dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/assets/index-DBHwToRQ.css b/web/dist/assets/index-DBHwToRQ.css new file mode 100644 index 00000000..eeb0d494 --- /dev/null +++ b/web/dist/assets/index-DBHwToRQ.css @@ -0,0 +1,8 @@ +@import"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap";.topbar-container[data-v-47127057]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-47127057]{background-color:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:transform .3s ease-in-out;display:flex;justify-content:center}.topbar-hidden[data-v-47127057]{transform:translateY(-100%)}.topbar-content[data-v-47127057]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-47127057]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-47127057]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-47127057]{transform:scale(1.2)}.placeholder[data-v-47127057]{height:10px}.toolbar-button[data-v-47127057]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-47127057]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.topbar-container[data-v-47127057]{position:relative;width:100%}.hover-zone[data-v-47127057]{opacity:0}.error[data-v-47127057]{color:red;margin-left:1rem}.toastItem-enter-active[data-v-46f379e5],.toastItem-leave-active[data-v-46f379e5]{transition:all .5s ease}.toastItem-enter-from[data-v-46f379e5],.toastItem-leave-to[data-v-46f379e5]{opacity:0;transform:translate(-30px)}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#ff9da4}.hljs-number,.hljs-built_in,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#d1f1a9}.hljs-title,.hljs-section{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: Tokyo-night-Dark + origin: https://github.com/enkia/tokyo-night-vscode-theme + Description: Original highlight.js style + Author: (c) Henri Vandersleyen + License: see project LICENSE + Touched: 2022 +*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0;outline:none}.katex-display{display:inline-block;margin:0}.katex{display:inline-block;white-space:nowrap}.inline-latex{display:inline!important}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000}.hovered{transform:scale(1.05);transition:transform .2s ease-in-out}.active{transform:scale(1.1);transition:transform .2s ease-in-out}.dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}:root.dark .dropdown-shadow[data-v-6c3ea3a5]{box-shadow:0 4px 6px -1px #ffffff1a,0 2px 4px -1px #ffffff0f}select{width:200px}body{background-color:#fafafa;font-family:sans-serif}.container{margin:4px auto;width:800px}.settings{position:fixed;top:0;right:0;width:500px;background-color:#fff;z-index:1000;overflow-y:auto;height:100%}.slider-container{margin-top:20px}.slider-value{display:inline-block;margin-left:10px;color:#6b7280;font-size:14px}.small-button{padding:.5rem .75rem;font-size:.875rem}.active-tab{font-weight:700}.help-view[data-v-8c1798f3]{min-height:100vh}.big-card[data-v-8c1798f3]{margin-left:auto;margin-right:auto;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:2rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.big-card[data-v-8c1798f3]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.help-sections-container[data-v-8c1798f3]{max-height:70vh;overflow-y:auto;padding-right:1rem}.help-section[data-v-8c1798f3]{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.help-content[data-v-8c1798f3]{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.help-content[data-v-8c1798f3]:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar{width:12px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb{background:#888;border-radius:10px;border:3px solid #f1f1f1}.help-sections-container[data-v-8c1798f3]::-webkit-scrollbar-thumb:hover{background:#555}.help-sections-container[data-v-8c1798f3]{scrollbar-width:thin;scrollbar-color:#888 #f1f1f1}.menu-container{position:relative;display:inline-block}.menu-button{background-color:#007bff;color:#fff;padding:10px;border:none;cursor:pointer;border-radius:4px}.menu-list{position:absolute;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;padding:10px;max-width:500px;z-index:1000}.slide-enter-active,.slide-leave-active{transition:transform .2s}.slide-enter-to,.slide-leave-from{transform:translateY(-10px)}.menu-ul{list-style:none;padding:0;margin:0}.menu-li{cursor:pointer;display:flex;align-items:center;padding:5px}.menu-icon{width:20px;height:20px;margin-right:8px}.menu-command{min-width:200px;text-align:left}.fade-enter-active[data-v-f43216be],.fade-leave-active[data-v-f43216be]{transition:opacity .3s}.fade-enter[data-v-f43216be],.fade-leave-to[data-v-f43216be]{opacity:0}.heartbeat-text[data-v-f29485cf]{font-size:24px;animation:pulsate-f29485cf 1.5s infinite}@keyframes pulsate-f29485cf{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-f29485cf],.list-enter-active[data-v-f29485cf],.list-leave-active[data-v-f29485cf]{transition:all .5s ease}.list-enter-from[data-v-f29485cf]{transform:translatey(-30px)}.list-leave-to[data-v-f29485cf]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-f29485cf]{position:absolute}.bounce-enter-active[data-v-f29485cf]{animation:bounce-in-f29485cf .5s}.bounce-leave-active[data-v-f29485cf]{animation:bounce-in-f29485cf .5s reverse}@keyframes bounce-in-f29485cf{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-f29485cf]{background-color:#0ff}.hover[data-v-f29485cf]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-f29485cf]{font-weight:700}.control-buttons[data-v-5bb76742]{position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;transform:translate(100%);transition:transform .3s}.group:hover .control-buttons[data-v-5bb76742]{transform:translate(0)}.control-buttons-inner[data-v-5bb76742]{display:flex;gap:10px;align-items:center;background-color:#fff;padding:8px;border-radius:0 0 0 8px;box-shadow:0 2px 8px #0000001a}.json-tree-view[data-v-40406ec6]{margin-left:16px}.json-item[data-v-40406ec6]{margin-bottom:4px}.json-key[data-v-40406ec6]{cursor:pointer;display:flex;align-items:center}.toggle-icon[data-v-40406ec6]{margin-right:4px;width:12px}.key[data-v-40406ec6]{font-weight:700;margin-right:4px}.value[data-v-40406ec6]{margin-left:4px}.string[data-v-40406ec6]{color:#0b7285}.number[data-v-40406ec6]{color:#d9480f}.boolean[data-v-40406ec6]{color:#5c940d}.null[data-v-40406ec6]{color:#868e96}.json-nested[data-v-40406ec6]{margin-left:16px;border-left:1px dashed #ccc;padding-left:8px}.json-viewer[data-v-83fc9727]{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:14px;line-height:1.5;color:#333}.collapsible-section[data-v-83fc9727]{cursor:pointer;padding:8px;background-color:#f0f0f0;border-radius:4px;display:flex;align-items:center;transition:background-color .2s}.collapsible-section[data-v-83fc9727]:hover{background-color:#e0e0e0}.toggle-icon[data-v-83fc9727]{margin-right:8px;transition:transform .2s}.json-content[data-v-83fc9727]{margin-top:8px;padding-left:16px}.step-container[data-v-78f415f6]{margin-bottom:1rem}.step-wrapper[data-v-78f415f6]{display:flex;align-items:flex-start;border-radius:.5rem;padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.step-icon[data-v-78f415f6]{margin-right:1rem;display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center}.feather-icon[data-v-78f415f6]{height:1.5rem;width:1.5rem;stroke:currentColor;stroke-width:2}.spinner[data-v-78f415f6]{height:1.5rem;width:1.5rem}@keyframes spin-78f415f6{to{transform:rotate(360deg)}}.spinner[data-v-78f415f6]{animation:spin-78f415f6 1s linear infinite;border-radius:9999px;border-width:2px;border-top-width:2px;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.step-content[data-v-78f415f6]{flex-grow:1}.step-text[data-v-78f415f6]{margin-bottom:.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:600}.step-description[data-v-78f415f6]{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.step-description[data-v-78f415f6]:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .5s ease-out forwards}details[open] summary~*{animation:slideDown .3s ease-in-out}details summary::marker{display:none}details summary::-webkit-details-marker{display:none}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.custom-scrollbar[data-v-8a34bb65]{scrollbar-width:thin;scrollbar-color:rgba(156,163,175,.5) transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb{background-color:#9ca3af80;border-radius:3px}.custom-scrollbar[data-v-8a34bb65]::-webkit-scrollbar-thumb:hover{background-color:#9ca3afb3}.bounce-enter-active[data-v-f44002af]{animation:bounce-in-f44002af .5s}.bounce-leave-active[data-v-f44002af]{animation:bounce-in-f44002af .5s reverse}@keyframes bounce-in-f44002af{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-1a32c141]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-1a32c141]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-1a32c141]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-1a32c141]{top:calc(-100% - 2rem)}.personalities-hover-area[data-v-e3d676fa]{position:relative;padding-top:10px}.custom-scrollbar[data-v-e3d676fa]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-e3d676fa]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}.chat-bar[data-v-e3d676fa]{transition:all .3s ease}.chat-bar[data-v-e3d676fa]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.list-move[data-v-e3d676fa],.list-enter-active[data-v-e3d676fa],.list-leave-active[data-v-e3d676fa]{transition:all .5s ease}.list-enter-from[data-v-e3d676fa]{transform:translatey(-30px)}.list-leave-to[data-v-e3d676fa]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-e3d676fa]{position:absolute}@keyframes rolling-ball-1756add6{0%{transform:translate(-50px) rotate(0)}25%{transform:translate(0) rotate(90deg)}50%{transform:translate(50px) rotate(180deg)}75%{transform:translate(0) rotate(270deg)}to{transform:translate(-50px) rotate(360deg)}}@keyframes bounce-1756add6{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-1756add6{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-1756add6]{animation:rolling-ball-1756add6 4s infinite ease-in-out,bounce-1756add6 1s infinite ease-in-out}.animate-fade-in-up[data-v-1756add6]{animation:fade-in-up-1756add6 1.5s ease-out}.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}@keyframes giggle-aebfa1b8{0%,to{transform:translate(0) rotate(0) scale(1)}25%{transform:translate(-5px) rotate(-10deg) scale(1.05)}50%{transform:translate(5px) rotate(10deg) scale(.95)}75%{transform:translate(-5px) rotate(-10deg) scale(1.05)}}.animate-giggle[data-v-aebfa1b8]{animation:giggle-aebfa1b8 1.5s infinite ease-in-out}.custom-scrollbar[data-v-aebfa1b8]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-aebfa1b8]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-aebfa1b8]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-aebfa1b8]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-aebfa1b8{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-aebfa1b8]{animation:custom-pulse-aebfa1b8 2s infinite}.slide-right-enter-active[data-v-aebfa1b8],.slide-right-leave-active[data-v-aebfa1b8]{transition:transform .3s ease}.slide-right-enter[data-v-aebfa1b8],.slide-right-leave-to[data-v-aebfa1b8]{transform:translate(-100%)}.slide-left-enter-active[data-v-aebfa1b8],.slide-left-leave-active[data-v-aebfa1b8]{transition:transform .3s ease}.slide-left-enter[data-v-aebfa1b8],.slide-left-leave-to[data-v-aebfa1b8]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-aebfa1b8]{animation:fade-and-fly-enter-aebfa1b8 .5s ease}.fade-and-fly-leave-active[data-v-aebfa1b8]{animation:fade-and-fly-leave-aebfa1b8 .5s ease}@keyframes fade-and-fly-enter-aebfa1b8{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-aebfa1b8{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-aebfa1b8],.list-enter-active[data-v-aebfa1b8],.list-leave-active[data-v-aebfa1b8]{transition:all .5s ease}.list-enter-from[data-v-aebfa1b8]{transform:translatey(-30px)}.list-leave-to[data-v-aebfa1b8]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-aebfa1b8]{position:absolute}@keyframes float-aebfa1b8{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-aebfa1b8]{animation:float-aebfa1b8 linear infinite}@keyframes star-move-aebfa1b8{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-aebfa1b8]{animation:star-move-aebfa1b8 linear infinite}@keyframes fall-aebfa1b8{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-aebfa1b8]{animation:fall-aebfa1b8 linear infinite}@keyframes glow-aebfa1b8{0%,to{text-shadow:0 0 5px rgba(66,153,225,.5),0 0 10px rgba(66,153,225,.5)}50%{text-shadow:0 0 20px rgba(66,153,225,.8),0 0 30px rgba(66,153,225,.8)}}.animate-glow[data-v-aebfa1b8]{animation:glow-aebfa1b8 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-aebfa1b8{0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}0%,to{text-shadow:0 0 5px rgba(147,197,253,.5),0 0 10px rgba(147,197,253,.5)}50%{text-shadow:0 0 20px rgba(147,197,253,.8),0 0 30px rgba(147,197,253,.8)}}}@keyframes roll-aebfa1b8{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-aebfa1b8]{animation:roll-aebfa1b8 4s linear infinite}.toolbar[data-v-aebfa1b8]{position:relative;width:100%}.toolbar-container[data-v-aebfa1b8]{display:flex;height:2.5rem;align-items:center}.toolbar-button[data-v-aebfa1b8]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-aebfa1b8]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.menu-container[data-v-aebfa1b8]{position:relative}.expandable-menu[data-v-aebfa1b8]{position:absolute;top:100%;left:.625rem;flex-direction:column;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.menu-container:hover .expandable-menu[data-v-aebfa1b8],.menu-visible[data-v-aebfa1b8]{display:flex}.menu-item[data-v-aebfa1b8]{background:none;border:none;cursor:pointer;padding:8px;color:#333;transition:background-color .3s}.menu-item[data-v-aebfa1b8]:hover{background-color:#f0f0f0}.dot[data-v-aebfa1b8]{width:10px;height:10px;border-radius:50%}.dot-green[data-v-aebfa1b8]{background-color:green}.dot-red[data-v-aebfa1b8]{background-color:red}.animate-pulse[data-v-aebfa1b8]{animation:pulse-aebfa1b8 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse-aebfa1b8{0%,to{opacity:1}50%{opacity:.7}}.logo-container[data-v-aebfa1b8]{position:relative;width:48px;height:48px}.logo-image[data-v-aebfa1b8]{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce-aebfa1b8{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce[data-v-aebfa1b8]{animation:bounce-aebfa1b8 1s infinite}@keyframes roll-and-bounce-aebfa1b8{0%,to{transform:translate(0) rotate(0)}45%{transform:translate(100px) rotate(360deg)}50%{transform:translate(90px) rotate(390deg)}55%{transform:translate(100px) rotate(360deg)}95%{transform:translate(0) rotate(0)}}@keyframes spin-aebfa1b8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.container{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap}.floating-frame{margin:15px;float:left;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;z-index:5000;position:fixed;cursor:move;bottom:0;right:0}.handle{width:100%;height:20px;background:#ccc;cursor:move;text-align:center}.floating-frame img{width:100%;height:auto}.controls{margin-top:10px}#webglContainer{top:0;left:0}.floating-frame2{margin:15px;width:800px;height:auto;border:1px solid #000;border-radius:4px;overflow:hidden;min-height:200px;z-index:5000}:root{--baklava-control-color-primary: #e28b46;--baklava-control-color-error: #d00000;--baklava-control-color-background: #2c3748;--baklava-control-color-foreground: white;--baklava-control-color-hover: #455670;--baklava-control-color-active: #556986;--baklava-control-color-disabled-foreground: #666c75;--baklava-control-border-radius: 3px;--baklava-sidebar-color-background: #1b202c;--baklava-sidebar-color-foreground: white;--baklava-node-color-background: #1b202c;--baklava-node-color-foreground: white;--baklava-node-color-hover: #e28c4677;--baklava-node-color-selected: var(--baklava-control-color-primary);--baklava-node-color-resize-handle: var(--baklava-control-color-background);--baklava-node-title-color-background: #151a24;--baklava-node-title-color-foreground: white;--baklava-group-node-title-color-background: #215636;--baklava-group-node-title-color-foreground: white;--baklava-node-interface-port-tooltip-color-foreground: var(--baklava-control-color-primary);--baklava-node-interface-port-tooltip-color-background: var(--baklava-editor-background-pattern-black);--baklava-node-border-radius: 6px;--baklava-color-connection-default: #737f96;--baklava-color-connection-allowed: #48bc79;--baklava-color-connection-forbidden: #bc4848;--baklava-editor-background-pattern-default: #202b3c;--baklava-editor-background-pattern-line: #263140;--baklava-editor-background-pattern-black: #263140;--baklava-context-menu-background: #1b202c;--baklava-context-menu-shadow: 0 0 8px rgba(0, 0, 0, .65);--baklava-toolbar-background: #1b202caa;--baklava-toolbar-foreground: white;--baklava-node-palette-background: #1b202caa;--baklava-node-palette-foreground: white;--baklava-selectionbox-color-border: var(--baklava-node-color-background);--baklava-selectionbox-color-background: var(--baklava-node-color-hover);--baklava-visual-transition: .1s linear}.baklava-button{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);transition:background-color var(--baklava-visual-transition);border:none;padding:.45em .35em;border-radius:var(--baklava-control-border-radius);font-size:inherit;cursor:pointer;overflow-x:hidden}.baklava-button:hover{background-color:var(--baklava-control-color-hover)}.baklava-button:active{background-color:var(--baklava-control-color-primary)}.baklava-button.--block{width:100%}.baklava-checkbox{display:flex;padding:.35em 0;cursor:pointer;overflow-x:hidden;align-items:center}.baklava-checkbox .__checkmark-container{display:flex;background-color:var(--baklava-control-color-background);border-radius:var(--baklava-control-border-radius);transition:background-color var(--baklava-visual-transition);width:18px;height:18px}.baklava-checkbox:hover .__checkmark-container{background-color:var(--baklava-control-color-hover)}.baklava-checkbox:active .__checkmark-container{background-color:var(--baklava-control-color-active)}.baklava-checkbox .__checkmark{stroke-dasharray:15;stroke-dashoffset:15;stroke:var(--baklava-control-color-foreground);stroke-width:2px;fill:none;transition:stroke-dashoffset var(--baklava-visual-transition)}.baklava-checkbox.--checked .__checkmark{stroke-dashoffset:0}.baklava-checkbox.--checked .__checkmark-container{background-color:var(--baklava-control-color-primary)}.baklava-checkbox .__label{margin-left:.5rem}.baklava-context-menu{color:var(--baklava-control-color-foreground);position:absolute;display:inline-block;z-index:100;background-color:var(--baklava-context-menu-background);box-shadow:var(--baklava-context-menu-shadow);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);min-width:6rem;width:-moz-max-content;width:max-content}.baklava-context-menu>.item{display:flex;align-items:center;padding:.35em 1em;transition:background .05s linear;position:relative}.baklava-context-menu>.item>.__label{flex:1 1 auto}.baklava-context-menu>.item>.__submenu-icon{margin-left:.75rem}.baklava-context-menu>.item.--disabled{color:var(--baklava-control-color-hover)}.baklava-context-menu>.item:not(.--header):not(.--active):not(.--disabled):hover{background:var(--baklava-control-color-primary)}.baklava-context-menu>.item.--active{background:var(--baklava-control-color-primary)}.baklava-context-menu.--nested{left:100%;top:0}.baklava-context-menu.--flipped-x.--nested{left:unset;right:100%}.baklava-context-menu.--flipped-y.--nested{top:unset;bottom:0}.baklava-context-menu>.divider{margin:.35em 0;height:1px;background-color:var(--baklava-control-color-hover)}.baklava-icon{display:block;height:100%}.baklava-icon.--clickable{cursor:pointer;transition:color var(--baklava-visual-transition)}.baklava-icon.--clickable:hover{color:var(--baklava-control-color-primary)}.baklava-input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);border:none;border-radius:var(--baklava-control-border-radius);padding:.45em .75em;width:100%;transition:background-color var(--baklava-visual-transition);font-size:inherit;font:inherit}.baklava-input:hover{background-color:var(--baklava-control-color-hover)}.baklava-input:active{background-color:var(--baklava-control-color-active)}.baklava-input:focus-visible{outline:1px solid var(--baklava-control-color-primary)}.baklava-input[type=number]::-webkit-inner-spin-button,.baklava-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.baklava-input.--invalid{box-shadow:0 0 2px 2px var(--baklava-control-color-error)}.baklava-num-input{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);width:100%;display:grid;grid-template-columns:20px 1fr 20px}.baklava-num-input>.__button{display:flex;flex:0 0 auto;width:20px;justify-content:center;align-items:center;transition:background var(--baklava-visual-transition);cursor:pointer}.baklava-num-input>.__button:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__button:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__button.--dec{grid-area:1/1/span 1/span 1}.baklava-num-input>.__button.--dec>svg{transform:rotate(90deg)}.baklava-num-input>.__button.--inc{grid-area:1/3/span 1/span 1}.baklava-num-input>.__button.--inc>svg{transform:rotate(-90deg)}.baklava-num-input>.__button path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-num-input>.__content{grid-area:1/2/span 1/span 1;display:inline-flex;cursor:pointer;max-width:100%;min-width:0;align-items:center;transition:background-color var(--baklava-visual-transition)}.baklava-num-input>.__content:hover{background-color:var(--baklava-control-color-hover)}.baklava-num-input>.__content:active{background-color:var(--baklava-control-color-active)}.baklava-num-input>.__content>.__label,.baklava-num-input>.__content>.__value{margin:.35em 0;padding:0 .5em}.baklava-num-input>.__content>.__label{flex:1;min-width:0;overflow:hidden}.baklava-num-input>.__content>.__value{text-align:right}.baklava-num-input>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-select{width:100%;position:relative;color:var(--baklava-control-color-foreground)}.baklava-select.--open>.__selected{border-bottom-left-radius:0;border-bottom-right-radius:0}.baklava-select.--open>.__selected>.__icon{transform:rotate(180deg)}.baklava-select>.__selected{background-color:var(--baklava-control-color-background);padding:.35em .75em;border-radius:var(--baklava-control-border-radius);transition:background var(--baklava-visual-transition);min-height:1.7em;display:flex;align-items:center;cursor:pointer}.baklava-select>.__selected:hover{background:var(--baklava-control-color-hover)}.baklava-select>.__selected:active{background:var(--baklava-control-color-active)}.baklava-select>.__selected>.__text{flex:1 0 auto;flex-basis:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.baklava-select>.__selected>.__icon{flex:0 0 auto;display:flex;justify-content:center;align-items:center;transition:transform .25s ease;width:18px;height:18px}.baklava-select>.__selected>.__icon path{stroke:var(--baklava-control-color-foreground);fill:var(--baklava-control-color-foreground)}.baklava-select>.__dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background-color:var(--baklava-context-menu-background);filter:drop-shadow(0 0 4px black);border-radius:0 0 var(--baklava-control-border-radius) var(--baklava-control-border-radius);max-height:15em;overflow-y:scroll}.baklava-select>.__dropdown::-webkit-scrollbar{width:0px;background:transparent}.baklava-select>.__dropdown>.item{padding:.35em .35em .35em 1em;transition:background .05s linear}.baklava-select>.__dropdown>.item:not(.--header):not(.--active){cursor:pointer}.baklava-select>.__dropdown>.item:not(.--header):not(.--active):hover{background:var(--baklava-control-color-hover)}.baklava-select>.__dropdown>.item.--active{background:var(--baklava-control-color-primary)}.baklava-select>.__dropdown>.item.--header{color:var(--baklava-control-color-disabled-foreground);border-bottom:1px solid var(--baklava-control-color-disabled-foreground);padding:.5em .35em .5em 1em}.baklava-slider{background:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);border-radius:var(--baklava-control-border-radius);position:relative;cursor:pointer}.baklava-slider>.__content{display:flex;position:relative}.baklava-slider>.__content>.__label,.baklava-slider>.__content>.__value{flex:1 1 auto;margin:.35em 0;padding:0 .5em;text-overflow:ellipsis}.baklava-slider>.__content>.__value{text-align:right}.baklava-slider>.__content>input{background-color:var(--baklava-control-color-background);color:var(--baklava-control-color-foreground);caret-color:var(--baklava-control-color-primary);padding:.35em;width:100%}.baklava-slider>.__slider{position:absolute;top:0;bottom:0;left:0;background-color:var(--baklava-control-color-primary);border-radius:var(--baklava-control-border-radius)}.baklava-connection{stroke:var(--baklava-color-connection-default);stroke-width:2px;fill:none}.baklava-connection.--temporary{stroke-width:4px;stroke-dasharray:5 5;stroke-dashoffset:0;animation:dash 1s linear infinite;transform:translateY(-1px)}@keyframes dash{to{stroke-dashoffset:20}}.baklava-connection.--allowed{stroke:var(--baklava-color-connection-allowed)}.baklava-connection.--forbidden{stroke:var(--baklava-color-connection-forbidden)}.baklava-minimap{position:absolute;height:15%;width:15%;min-width:150px;max-width:90%;top:20px;right:20px;z-index:900}.baklava-editor{width:100%;height:100%;position:relative;overflow:hidden;outline:none!important;font-family:Lato,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:15px;touch-action:none}.baklava-editor .background{background-color:var(--baklava-editor-background-pattern-default);background-image:linear-gradient(var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(90deg,var(--baklava-editor-background-pattern-black) 2px,transparent 2px),linear-gradient(var(--baklava-editor-background-pattern-line) 1px,transparent 1px),linear-gradient(90deg,var(--baklava-editor-background-pattern-line) 1px,transparent 1px);background-repeat:repeat;width:100%;height:100%;pointer-events:none!important}.baklava-editor .selection-box{position:absolute;border:1px solid var(--baklava-selectionbox-color-border);background-color:var(--baklava-selectionbox-color-background);pointer-events:none;opacity:.5}.baklava-editor.--start-selection-box{cursor:crosshair}.baklava-editor *:not(input):not(textarea){user-select:none;-moz-user-select:none;-webkit-user-select:none;touch-action:none}.baklava-editor .input-user-select{user-select:auto;-moz-user-select:auto;-webkit-user-select:auto}.baklava-editor *,.baklava-editor *:after,.baklava-editor *:before{box-sizing:border-box}.baklava-editor.--temporary-connection{cursor:crosshair}.baklava-editor .connections-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none!important}.baklava-editor .node-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.baklava-editor .node-container *{pointer-events:all}.baklava-ignore-mouse *{pointer-events:none!important}.baklava-ignore-mouse .__port{pointer-events:all!important}.baklava-node-interface{padding:.25em 0;position:relative}.baklava-node-interface .__port{position:absolute;width:10px;height:10px;background:#fff;border-radius:50%;top:calc(50% - 5px);cursor:crosshair}.baklava-node-interface .__port.--selected{outline:2px var(--baklava-color-connection-default) solid;outline-offset:4px}.baklava-node-interface.--input{text-align:left;padding-left:.5em}.baklava-node-interface.--input .__port{left:-1.1em}.baklava-node-interface.--output{text-align:right;padding-right:.5em}.baklava-node-interface.--output .__port{right:-1.1em}.baklava-node-interface .__tooltip{position:absolute;left:5px;top:15px;transform:translate(-50%);background:var(--baklava-node-interface-port-tooltip-color-background);color:var(--baklava-node-interface-port-tooltip-color-foreground);padding:.25em .5em;text-align:center;z-index:2}.baklava-node-palette{position:absolute;left:0;top:60px;width:250px;height:calc(100% - 60px);z-index:3;padding:2rem;overflow-y:auto;background:var(--baklava-node-palette-background);color:var(--baklava-node-palette-foreground)}.baklava-node-palette h1{margin-top:2rem}.baklava-node.--palette{position:unset;margin:1rem 0;cursor:grab}.baklava-node.--palette:first-child{margin-top:0}.baklava-node.--palette .__title{padding:.5rem;border-radius:var(--baklava-node-border-radius)}.baklava-dragged-node{position:absolute;width:calc(250px - 4rem);height:40px;z-index:4;pointer-events:none}.baklava-node{background:var(--baklava-node-color-background);color:var(--baklava-node-color-foreground);border:1px solid transparent;border-radius:var(--baklava-node-border-radius);position:absolute;box-shadow:0 0 4px #000c;transition:border-color var(--baklava-visual-transition),box-shadow var(--baklava-visual-transition);width:var(--width)}.baklava-node:hover{border-color:var(--baklava-node-color-hover)}.baklava-node:hover .__resize-handle:after{opacity:1}.baklava-node.--selected{z-index:5;border-color:var(--baklava-node-color-selected)}.baklava-node.--dragging{box-shadow:0 0 12px #000c}.baklava-node.--dragging>.__title{cursor:grabbing}.baklava-node>.__title{display:flex;background:var(--baklava-node-title-color-background);color:var(--baklava-node-title-color-foreground);padding:.4em .75em;border-radius:var(--baklava-node-border-radius) var(--baklava-node-border-radius) 0 0;cursor:grab}.baklava-node>.__title>*:first-child{flex-grow:1}.baklava-node>.__title>.__title-label{pointer-events:none}.baklava-node>.__title>.__menu{position:relative;cursor:initial}.baklava-node[data-node-type^=__baklava_]>.__title{background:var(--baklava-group-node-title-color-background);color:var(--baklava-group-node-title-color-foreground)}.baklava-node>.__content{padding:.75em}.baklava-node>.__content.--reverse-y{display:flex;flex-direction:column-reverse}.baklava-node>.__content>div>div{margin:.5em 0}.baklava-node.--two-column>.__content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:". ." ". ."}.baklava-node.--two-column>.__content>.__inputs{grid-row:1;grid-column:1}.baklava-node.--two-column>.__content>.__outputs{grid-row:1;grid-column:2}.baklava-node .__resize-handle{position:absolute;right:0;bottom:0;width:1rem;height:1rem;transform:translate(50%);cursor:ew-resize}.baklava-node .__resize-handle:after{content:"";position:absolute;bottom:0;left:-.5rem;width:1rem;height:1rem;opacity:0;border-bottom-right-radius:var(--baklava-node-border-radius);transition:opacity var(--baklava-visual-transition);background:linear-gradient(-45deg,transparent 10%,var(--baklava-node-color-resize-handle) 10%,var(--baklava-node-color-resize-handle) 15%,transparent 15%,transparent 30%,var(--baklava-node-color-resize-handle) 30%,var(--baklava-node-color-resize-handle) 35%,transparent 35%,transparent 50%,var(--baklava-node-color-resize-handle) 50%,var(--baklava-node-color-resize-handle) 55%,transparent 55%)}.baklava-sidebar{position:absolute;height:100%;width:25%;min-width:300px;max-width:90%;top:0;right:0;z-index:1000;background-color:var(--baklava-sidebar-color-background);color:var(--baklava-sidebar-color-foreground);box-shadow:none;overflow-x:hidden;padding:1em;transform:translate(100%);transition:transform .5s;display:flex;flex-direction:column}.baklava-sidebar.--open{transform:translate(0);box-shadow:0 0 15px #000}.baklava-sidebar .__resizer{position:absolute;left:0;top:0;height:100%;width:4px;cursor:col-resize}.baklava-sidebar .__header{display:flex;align-items:center}.baklava-sidebar .__header .__node-name{margin-left:.5rem}.baklava-sidebar .__close{font-size:2em;border:none;background:none;color:inherit;cursor:pointer}.baklava-sidebar .__interface{margin:.5em 0}.baklava-toolbar{position:absolute;left:0;top:0;width:100%;height:60px;z-index:3;padding:.5rem 2rem;background:var(--baklava-toolbar-background);color:var(--baklava-toolbar-foreground);display:flex;align-items:center}.baklava-toolbar-entry{margin-left:.5rem;margin-right:.5rem}.baklava-toolbar-button{color:var(--baklava-toolbar-foreground);background:none;border:none;transition:color var(--baklava-visual-transition)}.baklava-toolbar-button:not([disabled]){cursor:pointer}.baklava-toolbar-button:hover:not([disabled]){color:var(--baklava-control-color-primary)}.baklava-toolbar-button[disabled]{color:var(--baklava-control-color-disabled-foreground)}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .1s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translateY(5px);opacity:0}.fade-enter-active,.fade-leave-active{transition:opacity .1s ease-out!important}.fade-enter-from,.fade-leave-to{opacity:0}.loading-indicator[data-v-fcb6b036]{display:flex;justify-content:center;align-items:center;height:100px;font-size:1.2em;color:#666}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:PTSans,Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1f2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4b5563}.dark input[type=file]::file-selector-button:hover{background:#6b7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9ca3af}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6b7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9ca3af}.dark input[type=range]:disabled::-moz-range-thumb{background:#6b7280}input[type=range]::-moz-range-progress{background:#3f83f8}input[type=range]::-ms-fill-lower{background:#3f83f8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:#fff;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1c64f2;border-color:#1c64f2}*{scrollbar-color:initial;scrollbar-width:initial}body{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #e0eaff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 234 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #f0e6ff var(--tw-gradient-to-position)}body:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #0f2647 var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 38 71 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1e1b4b var(--tw-gradient-to-position)}html{scroll-behavior:smooth}body{font-family:Roboto,sans-serif}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-0\.5{bottom:-.125rem}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1\.5{left:-.375rem}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-6{bottom:1.5rem}.bottom-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-20{left:5rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-20{right:5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3{top:.75rem}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\/5{height:80%}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\/6{height:83.333333%}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[200px\]{height:200px}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[220px\]{min-height:220px}.min-h-\[500px\]{min-height:500px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-11\/12{width:91.666667%}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-36{width:9rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[300px\]{width:300px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-80{min-width:20rem}.min-w-96{min-width:24rem}.min-w-\[120px\]{min-width:120px}.min-w-\[14rem\]{min-width:14rem}.min-w-\[15rem\]{min-width:15rem}.min-w-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[14rem\]{max-width:14rem}.max-w-\[15rem\]{max-width:15rem}.max-w-\[23rem\]{max-width:23rem}.max-w-\[24rem\]{max-width:24rem}.max-w-\[300px\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-left{transform-origin:left}.origin-top{transform-origin:top}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-x-0{--tw-scale-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-\[50px\,1fr\]{grid-template-columns:50px 1fr}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-2{border-top-width:2px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{border-color:var(--color-bg-dark)}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(195 221 253 / var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{border-color:var(--color-primary)}.border-primary-light{border-color:var(--color-primary-light)}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-secondary{border-color:var(--color-secondary)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.border-t-blue-600{--tw-border-opacity: 1;border-top-color:rgb(28 100 242 / var(--tw-border-opacity))}.bg-accent{background-color:var(--color-accent)}.bg-bg-dark-tone-panel{background-color:var(--color-bg-dark-tone-panel)}.bg-bg-light{background-color:var(--color-bg-light)}.bg-bg-light-tone{background-color:var(--color-bg-light-tone)}.bg-bg-light-tone-panel{background-color:var(--color-bg-light-tone-panel)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-primary{background-color:var(--color-primary)}.bg-primary-light{background-color:var(--color-primary-light)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.bg-secondary{background-color:var(--color-secondary)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: var(--color-bg-light) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-bg-light-tone{--tw-gradient-from: var(--color-bg-light-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-400{--tw-gradient-from: #76A9FA var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500\/10{--tw-gradient-from: rgb(63 131 248 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #5850EC var(--tw-gradient-from-position);--tw-gradient-to: rgb(88 80 236 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-light) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #9061F9 var(--tw-gradient-to-position)}.to-purple-500\/10{--tw-gradient-to: rgb(144 97 249 / .1) var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-blue-600{fill:#1c64f2}.fill-current{fill:currentColor}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-secondary{fill:var(--color-secondary)}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-80{padding-bottom:20rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:PTSans,Roboto,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-light-text-panel{color:var(--color-light-text-panel)}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(208 56 1 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(253 232 232 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{color:var(--color-secondary)}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgb(6 148 162 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: var(--color-bg-light) !important}.scrollbar-track-bg-light-tone{--scrollbar-track: var(--color-bg-light-tone) !important}.scrollbar-track-gray-200{--scrollbar-track: #E5E7EB !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: var(--color-bg-light-tone) !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: var(--color-bg-light-tone-panel) !important}.scrollbar-thumb-gray-400{--scrollbar-thumb: #9CA3AF !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{margin-bottom:1.5rem;font-size:2.25rem;line-height:2.5rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}h1:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}@media (min-width: 768px){h1{font-size:3rem;line-height:1}}h2{margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}h2:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}h3{margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}h3:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}h4{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:500;--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}h4:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}h1,h2{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding-bottom:.5rem}h1:is(.dark *),h2:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}p{overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}p:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}ul{margin-left:0;list-style-type:disc}li{margin-left:1.25rem;list-style-type:disc}ol{margin-left:1.25rem;list-style-type:decimal}:root{--color-primary: #4a90e2;--color-primary-light: #6ab7f1;--color-secondary: #8ab8e0;--color-accent: #3a7ca1;--color-light-text-panel: #ffffff;--color-dark-text-panel: #e0e0e0;--color-bg-light-panel: #f0faff;--color-bg-light: #ffffff;--color-bg-light-tone: #e0f0ff;--color-bg-light-code-block: #f5faff;--color-bg-light-tone-panel: #d0e0f0;--color-bg-light-discussion: #f8faff;--color-bg-light-discussion-odd: #f0faff;--color-bg-dark: #0a0a1a;--color-bg-dark-tone: #151521;--color-bg-dark-tone-panel: #1c1c2a;--color-bg-dark-code-block: #151521;--color-bg-dark-discussion: #0e0e1a;--color-bg-dark-discussion-odd: #0d0d1a}textarea,input,select{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}textarea:is(.dark *),input:is(.dark *),select:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.background-color{min-height:100vh;background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.background-color:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.toolbar-color{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.toolbar-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.panels-color{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.unicolor-panels-color{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.unicolor-panels-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.chatbox-color{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.chatbox-color:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message{position:relative;margin:.5rem;display:flex;width:100%;flex-grow:1;flex-direction:column;flex-wrap:wrap;overflow:visible;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));padding:1.25rem 1.25rem .75rem;font-size:1.125rem;line-height:1.75rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.message:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.message{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.message:is(.dark *){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #233876 var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1E429F var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.message:hover{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.message:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.message:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.message:nth-child(2n):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.message:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.message:nth-child(odd):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.message-header{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.message-content{font-size:1.125rem;line-height:1.75rem;line-height:1.625}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));font-size:1rem;line-height:1.5rem}body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.discussion{margin-right:.5rem;font-size:.75rem;line-height:1rem}.discussion-hilighted{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem}.discussion-hilighted:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.bg-gradient-welcome{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #E1EFFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 239 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #CABFFD var(--tw-gradient-to-position)}.bg-gradient-welcome:is(.dark *){--tw-gradient-from: #1E429F var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 66 159 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}.bg-gradient-progress{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #C3DDFD var(--tw-gradient-from-position);--tw-gradient-to: rgb(195 221 253 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #A4CAFE var(--tw-gradient-to-position)}.bg-gradient-progress:is(.dark *){--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.text-gradient-title{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1A56DB var(--tw-gradient-from-position);--tw-gradient-to: rgb(26 86 219 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}.text-gradient-title:is(.dark *){--tw-gradient-from: #A4CAFE var(--tw-gradient-from-position);--tw-gradient-to: rgb(164 202 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.text-subtitle{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-subtitle:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-author{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-author:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-loading{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-loading:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.text-progress{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-progress:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.btn-primary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.card{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.5rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.input{border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));padding:.5rem 1rem}.input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.input:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.label{margin-bottom:.25rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.label:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.link{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.link:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.link:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.navbar-container{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.navbar-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.game-menu{position:relative;display:flex;align-items:center;justify-content:center}.text-shadow-custom{text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item{margin-bottom:.5rem;padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu-item:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.menu-item:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:.375rem;border-top-right-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);text-shadow:1px 1px 0px #e0e0e0,-1px -1px 0px #e0e0e0,1px -1px 0px #e0e0e0,-1px 1px 0px #e0e0e0}.menu-item.active-link:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.menu-item.active-link:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity))}.menu-item.active-link:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.menu-item.active-link{text-shadow:0 0 10px rgba(128,128,128,.5)}.menu-item.active-link:before{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:5px;background:linear-gradient(to right,#4a90e2,#8ab8e0,#4a90e2);border-radius:10px;animation:shimmer 2s infinite}.dark .menu-item.active-link:before{background:linear-gradient(to right,#6ab7f1,#aaa,#6ab7f1)}@keyframes shimmer{0%{background-position:-100% 0}to{background-position:100% 0}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.feather-emoji{display:inline-block;margin-left:5px;animation:bounce 2s infinite}.app-card{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.app-card:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.app-card:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.app-card:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}button{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}button:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar-thin{scrollbar-color:#1C64F2 #1E429F}.scrollbar-thin::-webkit-scrollbar{width:.5rem}.scrollbar-thin::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar-thin:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.btn{display:flex;align-items:center;border-radius:.5rem;padding:.5rem 1rem;font-weight:600;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.btn-primary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.btn-primary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.btn-secondary{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.btn-secondary:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.btn-secondary:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.btn-secondary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.btn-secondary:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.search-input{width:100%;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity));background-color:transparent;padding:.5rem 1rem .5rem 2.5rem;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.search-input:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px}.search-input:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.search-input:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar{--scrollbar-track: #C3DDFD;--scrollbar-thumb: #76A9FA;scrollbar-width:thin;scrollbar-color:#76A9FA #C3DDFD}.dark .scrollbar{scrollbar-color:#1C64F2 #1E429F}.scrollbar::-webkit-scrollbar{width:.5rem}.scrollbar::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.scrollbar{--scrollbar-thumb-hover: #3F83F8}.scrollbar:is(.dark *){--scrollbar-track: #1A56DB;--scrollbar-thumb: #1C64F2;--scrollbar-thumb-hover: #3F83F8}.card-title{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.card-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.card-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.card-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.card-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.card-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.subcard{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity));padding:1rem;--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.subcard:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.subcard-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.subcard-title:is(.dark *){--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.subcard-content{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.subcard-content:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.subcard-footer{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.subcard-footer-button{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:700;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.subcard-footer-button:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.last\:mb-0:last-child{margin-bottom:0}.last\:\!border-transparent:last-child{border-color:transparent!important}.last\:pb-0:last-child{padding-bottom:0}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/item:hover .group-hover\/item\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{border-color:var(--color-secondary)}.group:hover .group-hover\:bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/item:hover .group-hover\/item\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{color:var(--color-primary)}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-x-100:hover{--tw-scale-x: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-green-200:hover{--tw-border-opacity: 1;border-color:rgb(188 240 218 / var(--tw-border-opacity))}.hover\:border-primary:hover{border-color:var(--color-primary)}.hover\:border-primary-light:hover{border-color:var(--color-primary-light)}.hover\:border-secondary:hover{border-color:var(--color-secondary)}.hover\:bg-bg-light-tone:hover{background-color:var(--color-bg-light-tone)}.hover\:bg-bg-light-tone-panel:hover{background-color:var(--color-bg-light-tone-panel)}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-300:hover{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.hover\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-300:hover{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-primary:hover{background-color:var(--color-primary)}.hover\:bg-primary-light:hover{background-color:var(--color-primary-light)}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-300:hover{--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-r:hover{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\:from-blue-50:hover{--tw-gradient-from: #EBF5FF var(--tw-gradient-from-position);--tw-gradient-to: rgb(235 245 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:to-purple-50:hover{--tw-gradient-to: #F6F5FF var(--tw-gradient-to-position)}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-green-600:hover{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.hover\:text-indigo-600:hover{--tw-text-opacity: 1;color:rgb(88 80 236 / var(--tw-text-opacity))}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-purple-600:hover{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.hover\:text-secondary:hover{color:var(--color-secondary)}.hover\:text-teal-600:hover{--tw-text-opacity: 1;color:rgb(4 116 129 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:text-yellow-600:hover{--tw-text-opacity: 1;color:rgb(159 88 10 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-none:hover{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: var(--color-primary) !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{border-color:var(--color-secondary)}.focus\:border-transparent:focus{border-color:transparent}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-500\/50:focus{--tw-ring-color: rgb(63 131 248 / .5)}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-color: var(--color-secondary)}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity: .5}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-gray-300:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: var(--color-secondary) !important}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:border-bg-light:is(.dark *){border-color:var(--color-bg-light)}.dark\:border-blue-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\:border-gray-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.dark\:border-green-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.dark\:border-pink-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}.dark\:border-pink-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}.dark\:border-purple-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}.dark\:border-purple-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}.dark\:border-red-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-yellow-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}.dark\:bg-bg-dark:is(.dark *){background-color:var(--color-bg-dark)}.dark\:bg-bg-dark-tone:is(.dark *){background-color:var(--color-bg-dark-tone)}.dark\:bg-bg-dark-tone-panel:is(.dark *){background-color:var(--color-bg-dark-tone-panel)}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-blue-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.dark\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:bg-blue-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:bg-blue-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:bg-gray-300:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark\:bg-gray-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-800\/30:is(.dark *){background-color:#1f29374d}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-green-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.dark\:bg-green-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:bg-green-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.dark\:bg-green-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}.dark\:bg-indigo-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.dark\:bg-indigo-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.dark\:bg-orange-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}.dark\:bg-orange-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}.dark\:bg-pink-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.dark\:bg-pink-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}.dark\:bg-purple-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.dark\:bg-purple-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:bg-purple-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.dark\:bg-red-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.dark\:bg-red-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:bg-red-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:bg-yellow-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.dark\:bg-opacity-70:is(.dark *){--tw-bg-opacity: .7}.dark\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\:from-bg-dark:is(.dark *){--tw-gradient-from: var(--color-bg-dark) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-bg-dark-tone:is(.dark *){--tw-gradient-from: var(--color-bg-dark-tone) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-blue-400\/20:is(.dark *){--tw-gradient-from: rgb(118 169 250 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(118 169 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:from-indigo-400:is(.dark *){--tw-gradient-from: #8DA2FB var(--tw-gradient-from-position);--tw-gradient-to: rgb(141 162 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:via-bg-dark:is(.dark *){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--color-bg-dark) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\:to-purple-400:is(.dark *){--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}.dark\:to-purple-400\/20:is(.dark *){--tw-gradient-to: rgb(172 148 250 / .2) var(--tw-gradient-to-position)}.dark\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.dark\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:text-blue-800:is(.dark *){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.dark\:text-dark-text-panel:is(.dark *){color:var(--color-dark-text-panel)}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.dark\:text-gray-800:is(.dark *){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.dark\:text-green-800:is(.dark *){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.dark\:text-green-900:is(.dark *){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.dark\:text-indigo-500:is(.dark *){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.dark\:text-indigo-900:is(.dark *){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.dark\:text-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.dark\:text-pink-400:is(.dark *){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}.dark\:text-pink-500:is(.dark *){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.dark\:text-pink-900:is(.dark *){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.dark\:text-primary:is(.dark *){color:var(--color-primary)}.dark\:text-purple-400:is(.dark *){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}.dark\:text-purple-500:is(.dark *){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.dark\:text-purple-900:is(.dark *){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.dark\:text-red-800:is(.dark *){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.dark\:text-red-900:is(.dark *){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.dark\:text-slate-50:is(.dark *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}.dark\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.dark\:text-yellow-500:is(.dark *){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.dark\:text-yellow-800:is(.dark *){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.dark\:text-yellow-900:is(.dark *){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.dark\:placeholder-gray-400:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:shadow-lg:is(.dark *){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-blue-800\/80:is(.dark *){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-cyan-800\/80:is(.dark *){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-green-800\/80:is(.dark *){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-lime-800\/80:is(.dark *){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-pink-800\/80:is(.dark *){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-purple-800\/80:is(.dark *){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-red-800\/80:is(.dark *){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:shadow-teal-800\/80:is(.dark *){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-gray-500:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:ring-white:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.dark\:ring-opacity-20:is(.dark *){--tw-ring-opacity: .2}.dark\:ring-offset-gray-700:is(.dark *){--tw-ring-offset-color: #374151}.dark\:ring-offset-gray-800:is(.dark *){--tw-ring-offset-color: #1F2937}.dark\:scrollbar-track-bg-dark:is(.dark *){--scrollbar-track: var(--color-bg-dark) !important}.dark\:scrollbar-track-bg-dark-tone:is(.dark *){--scrollbar-track: var(--color-bg-dark-tone) !important}.dark\:scrollbar-track-gray-700:is(.dark *){--scrollbar-track: #374151 !important}.dark\:scrollbar-track-gray-800:is(.dark *){--scrollbar-track: #1F2937 !important}.dark\:scrollbar-thumb-bg-dark-tone:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone) !important}.dark\:scrollbar-thumb-bg-dark-tone-panel:is(.dark *){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}.dark\:scrollbar-thumb-gray-500:is(.dark *){--scrollbar-thumb: #6B7280 !important}.dark\:scrollbar-thumb-gray-600:is(.dark *){--scrollbar-thumb: #4B5563 !important}.dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n):is(.dark *){background-color:var(--color-bg-dark-discussion-odd)}.group:hover .dark\:group-hover\:bg-gray-800\/60:is(.dark *){background-color:#1f293799}.group:hover .dark\:group-hover\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:focus .dark\:group-focus\:ring-gray-800\/70:is(.dark *){--tw-ring-color: rgb(31 41 55 / .7)}.dark\:hover\:border-blue-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.dark\:hover\:border-gray-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:hover\:border-primary:hover:is(.dark *){border-color:var(--color-primary)}.dark\:hover\:bg-blue-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.dark\:hover\:bg-blue-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-green-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}.dark\:hover\:bg-pink-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.dark\:hover\:bg-primary:hover:is(.dark *){background-color:var(--color-primary)}.dark\:hover\:bg-purple-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.dark\:hover\:bg-purple-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}.dark\:hover\:bg-yellow-400:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.hover\:dark\:bg-bg-dark-tone:is(.dark *):hover{background-color:var(--color-bg-dark-tone)}.hover\:dark\:bg-bg-dark-tone-panel:is(.dark *):hover{background-color:var(--color-bg-dark-tone-panel)}.dark\:hover\:from-blue-900\/30:hover:is(.dark *){--tw-gradient-from: rgb(35 56 118 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(35 56 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:hover\:to-purple-900\/30:hover:is(.dark *){--tw-gradient-to: rgb(74 29 150 / .3) var(--tw-gradient-to-position)}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:hover\:text-gray-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.dark\:hover\:text-green-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}.dark\:hover\:text-green-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}.dark\:hover\:text-primary:hover:is(.dark *){color:var(--color-primary)}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:scrollbar-thumb-primary:is(.dark *){--scrollbar-thumb-hover: var(--color-primary) !important}.dark\:focus\:border-blue-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.dark\:focus\:border-secondary:focus:is(.dark *){border-color:var(--color-secondary)}.dark\:focus\:text-white:focus:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:ring-blue-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.dark\:focus\:ring-cyan-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.dark\:focus\:ring-green-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.dark\:focus\:ring-lime-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.dark\:focus\:ring-pink-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.dark\:focus\:ring-purple-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-400:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.dark\:focus\:ring-secondary:focus:is(.dark *){--tw-ring-color: var(--color-secondary)}.dark\:focus\:ring-teal-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}.dark\:focus\:ring-teal-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}.dark\:focus\:ring-yellow-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}.dark\:focus\:ring-offset-gray-700:focus:is(.dark *){--tw-ring-offset-color: #374151}.dark\:active\:bg-gray-600:active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-center{text-align:center}.sm\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\:inset-0{top:0;right:0;bottom:0;left:0}.md\:order-2{order:2}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.md\:dark\:hover\:bg-transparent:hover:is(.dark *){background-color:transparent}.md\:dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/assets/index-Fso6Zpfn.js b/web/dist/assets/index-Fso6Zpfn.js new file mode 100644 index 00000000..c4577ae6 --- /dev/null +++ b/web/dist/assets/index-Fso6Zpfn.js @@ -0,0 +1,4257 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/stackoverflow-dark-8CFru5b-.css","assets/stackoverflow-light-CpIvNHzo.css"])))=>i.map(i=>d[i]); +var m5=Object.defineProperty;var f5=(n,e,t)=>e in n?m5(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var pn=(n,e,t)=>f5(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();/** +* @vue/shared v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Z1(n){const e=Object.create(null);for(const t of n.split(","))e[t]=1;return t=>t in e}const hn={},ll=[],Ki=()=>{},g5=()=>!1,uh=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),J1=n=>n.startsWith("onUpdate:"),Ln=Object.assign,ev=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},_5=Object.prototype.hasOwnProperty,en=(n,e)=>_5.call(n,e),vt=Array.isArray,cl=n=>Kl(n)==="[object Map]",Wl=n=>Kl(n)==="[object Set]",RE=n=>Kl(n)==="[object Date]",b5=n=>Kl(n)==="[object RegExp]",kt=n=>typeof n=="function",yn=n=>typeof n=="string",Qi=n=>typeof n=="symbol",cn=n=>n!==null&&typeof n=="object",RM=n=>(cn(n)||kt(n))&&kt(n.then)&&kt(n.catch),MM=Object.prototype.toString,Kl=n=>MM.call(n),v5=n=>Kl(n).slice(8,-1),NM=n=>Kl(n)==="[object Object]",tv=n=>yn(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,Pc=Z1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ph=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},y5=/-(\w)/g,di=ph(n=>n.replace(y5,(e,t)=>t?t.toUpperCase():"")),E5=/\B([A-Z])/g,Io=ph(n=>n.replace(E5,"-$1").toLowerCase()),hh=ph(n=>n.charAt(0).toUpperCase()+n.slice(1)),Zu=ph(n=>n?`on${hh(n)}`:""),Co=(n,e)=>!Object.is(n,e),dl=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:r,value:t})},bp=n=>{const e=parseFloat(n);return isNaN(e)?n:e},S5=n=>{const e=yn(n)?Number(n):NaN;return isNaN(e)?n:e};let ME;const IM=()=>ME||(ME=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function on(n){if(vt(n)){const e={};for(let t=0;t{if(t){const r=t.split(T5);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function qe(n){let e="";if(yn(n))e=n;else if(vt(n))for(let t=0;t_a(t,e))}const DM=n=>!!(n&&n.__v_isRef===!0),X=n=>yn(n)?n:n==null?"":vt(n)||cn(n)&&(n.toString===MM||!kt(n.toString))?DM(n)?X(n.value):JSON.stringify(n,LM,2):String(n),LM=(n,e)=>DM(e)?LM(n,e.value):cl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,i],s)=>(t[Sm(r,s)+" =>"]=i,t),{})}:Wl(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Sm(t))}:Qi(e)?Sm(e):cn(e)&&!vt(e)&&!NM(e)?String(e):e,Sm=(n,e="")=>{var t;return Qi(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/** +* @vue/reactivity v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let mr;class PM{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=mr,!e&&mr&&(this.index=(mr.scopes||(mr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0)return;let n;for(;il;){let e=il,t;for(;e;)e.flags&1||(e.flags&=-9),e=e.next;for(e=il,il=void 0;e;){if(t=e.next,e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){n||(n=r)}e=t}}if(n)throw n}function zM(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function VM(n){let e,t=n.depsTail,r=t;for(;r;){const i=r.prevDep;r.version===-1?(r===t&&(t=i),sv(r),I5(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}n.deps=e,n.depsTail=t}function Lb(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(HM(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function HM(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===td))return;n.globalVersion=td;const e=n.dep;if(n.flags|=2,e.version>0&&!n.isSSR&&n.deps&&!Lb(n)){n.flags&=-3;return}const t=gn,r=Ci;gn=n,Ci=!0;try{zM(n);const i=n.fn(n._value);(e.version===0||Co(i,n._value))&&(n._value=i,e.version++)}catch(i){throw e.version++,i}finally{gn=t,Ci=r,VM(n),n.flags&=-3}}function sv(n,e=!1){const{dep:t,prevSub:r,nextSub:i}=n;if(r&&(r.nextSub=i,n.prevSub=void 0),i&&(i.prevSub=r,n.nextSub=void 0),t.subs===n&&(t.subs=r),!t.subs&&t.computed){t.computed.flags&=-5;for(let s=t.computed.deps;s;s=s.nextDep)sv(s,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function I5(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let Ci=!0;const qM=[];function Oo(){qM.push(Ci),Ci=!1}function Do(){const n=qM.pop();Ci=n===void 0?!0:n}function NE(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=gn;gn=void 0;try{e()}finally{gn=t}}}let td=0;class O5{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class mh{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!gn||!Ci||gn===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==gn)t=this.activeLink=new O5(gn,this),gn.deps?(t.prevDep=gn.depsTail,gn.depsTail.nextDep=t,gn.depsTail=t):gn.deps=gn.depsTail=t,YM(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=gn.depsTail,t.nextDep=void 0,gn.depsTail.nextDep=t,gn.depsTail=t,gn.deps===t&&(gn.deps=r)}return t}trigger(e){this.version++,td++,this.notify(e)}notify(e){rv();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{iv()}}}function YM(n){if(n.dep.sc++,n.sub.flags&4){const e=n.dep.computed;if(e&&!n.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)YM(r)}const t=n.dep.subs;t!==n&&(n.prevSub=t,t&&(t.nextSub=n)),n.dep.subs=n}}const vp=new WeakMap,la=Symbol(""),Pb=Symbol(""),nd=Symbol("");function cr(n,e,t){if(Ci&&gn){let r=vp.get(n);r||vp.set(n,r=new Map);let i=r.get(t);i||(r.set(t,i=new mh),i.target=n,i.map=r,i.key=t),i.track()}}function ws(n,e,t,r,i,s){const o=vp.get(n);if(!o){td++;return}const a=l=>{l&&l.trigger()};if(rv(),e==="clear")o.forEach(a);else{const l=vt(n),d=l&&tv(t);if(l&&t==="length"){const u=Number(r);o.forEach((m,f)=>{(f==="length"||f===nd||!Qi(f)&&f>=u)&&a(m)})}else switch(t!==void 0&&a(o.get(t)),d&&a(o.get(nd)),e){case"add":l?d&&a(o.get("length")):(a(o.get(la)),cl(n)&&a(o.get(Pb)));break;case"delete":l||(a(o.get(la)),cl(n)&&a(o.get(Pb)));break;case"set":cl(n)&&a(o.get(la));break}}iv()}function D5(n,e){const t=vp.get(n);return t&&t.get(e)}function Oa(n){const e=Xt(n);return e===n?e:(cr(e,"iterate",nd),oi(n)?e:e.map(sr))}function fh(n){return cr(n=Xt(n),"iterate",nd),n}const L5={__proto__:null,[Symbol.iterator](){return Tm(this,Symbol.iterator,sr)},concat(...n){return Oa(this).concat(...n.map(e=>vt(e)?Oa(e):e))},entries(){return Tm(this,"entries",n=>(n[1]=sr(n[1]),n))},every(n,e){return ls(this,"every",n,e,void 0,arguments)},filter(n,e){return ls(this,"filter",n,e,t=>t.map(sr),arguments)},find(n,e){return ls(this,"find",n,e,sr,arguments)},findIndex(n,e){return ls(this,"findIndex",n,e,void 0,arguments)},findLast(n,e){return ls(this,"findLast",n,e,sr,arguments)},findLastIndex(n,e){return ls(this,"findLastIndex",n,e,void 0,arguments)},forEach(n,e){return ls(this,"forEach",n,e,void 0,arguments)},includes(...n){return wm(this,"includes",n)},indexOf(...n){return wm(this,"indexOf",n)},join(n){return Oa(this).join(n)},lastIndexOf(...n){return wm(this,"lastIndexOf",n)},map(n,e){return ls(this,"map",n,e,void 0,arguments)},pop(){return hc(this,"pop")},push(...n){return hc(this,"push",n)},reduce(n,...e){return kE(this,"reduce",n,e)},reduceRight(n,...e){return kE(this,"reduceRight",n,e)},shift(){return hc(this,"shift")},some(n,e){return ls(this,"some",n,e,void 0,arguments)},splice(...n){return hc(this,"splice",n)},toReversed(){return Oa(this).toReversed()},toSorted(n){return Oa(this).toSorted(n)},toSpliced(...n){return Oa(this).toSpliced(...n)},unshift(...n){return hc(this,"unshift",n)},values(){return Tm(this,"values",sr)}};function Tm(n,e,t){const r=fh(n),i=r[e]();return r!==n&&!oi(n)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=t(s.value)),s}),i}const P5=Array.prototype;function ls(n,e,t,r,i,s){const o=fh(n),a=o!==n&&!oi(n),l=o[e];if(l!==P5[e]){const m=l.apply(n,s);return a?sr(m):m}let d=t;o!==n&&(a?d=function(m,f){return t.call(this,sr(m),f,n)}:t.length>2&&(d=function(m,f){return t.call(this,m,f,n)}));const u=l.call(o,d,r);return a&&i?i(u):u}function kE(n,e,t,r){const i=fh(n);let s=t;return i!==n&&(oi(n)?t.length>3&&(s=function(o,a,l){return t.call(this,o,a,l,n)}):s=function(o,a,l){return t.call(this,o,sr(a),l,n)}),i[e](s,...r)}function wm(n,e,t){const r=Xt(n);cr(r,"iterate",nd);const i=r[e](...t);return(i===-1||i===!1)&&av(t[0])?(t[0]=Xt(t[0]),r[e](...t)):i}function hc(n,e,t=[]){Oo(),rv();const r=Xt(n)[e].apply(n,t);return iv(),Do(),r}const F5=Z1("__proto__,__v_isRef,__isVue"),$M=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Qi));function U5(n){Qi(n)||(n=String(n));const e=Xt(this);return cr(e,"has",n),e.hasOwnProperty(n)}class WM{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){const i=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(i?s?JM:ZM:s?XM:QM).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=vt(e);if(!i){let l;if(o&&(l=L5[t]))return l;if(t==="hasOwnProperty")return U5}const a=Reflect.get(e,t,Gn(e)?e:r);return(Qi(t)?$M.has(t):F5(t))||(i||cr(e,"get",t),s)?a:Gn(a)?o&&tv(t)?a:a.value:cn(a)?i?t4(a):yr(a):a}}class KM extends WM{constructor(e=!1){super(!1,e)}set(e,t,r,i){let s=e[t];if(!this._isShallow){const l=ba(s);if(!oi(r)&&!ba(r)&&(s=Xt(s),r=Xt(r)),!vt(e)&&Gn(s)&&!Gn(r))return l?!1:(s.value=r,!0)}const o=vt(e)&&tv(t)?Number(t)n,gh=n=>Reflect.getPrototypeOf(n);function Yd(n,e,t=!1,r=!1){n=n.__v_raw;const i=Xt(n),s=Xt(e);t||(Co(e,s)&&cr(i,"get",e),cr(i,"get",s));const{has:o}=gh(i),a=r?ov:t?lv:sr;if(o.call(i,e))return a(n.get(e));if(o.call(i,s))return a(n.get(s));n!==i&&n.get(e)}function $d(n,e=!1){const t=this.__v_raw,r=Xt(t),i=Xt(n);return e||(Co(n,i)&&cr(r,"has",n),cr(r,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function Wd(n,e=!1){return n=n.__v_raw,!e&&cr(Xt(n),"iterate",la),Reflect.get(n,"size",n)}function IE(n,e=!1){!e&&!oi(n)&&!ba(n)&&(n=Xt(n));const t=Xt(this);return gh(t).has.call(t,n)||(t.add(n),ws(t,"add",n,n)),this}function OE(n,e,t=!1){!t&&!oi(e)&&!ba(e)&&(e=Xt(e));const r=Xt(this),{has:i,get:s}=gh(r);let o=i.call(r,n);o||(n=Xt(n),o=i.call(r,n));const a=s.call(r,n);return r.set(n,e),o?Co(e,a)&&ws(r,"set",n,e):ws(r,"add",n,e),this}function DE(n){const e=Xt(this),{has:t,get:r}=gh(e);let i=t.call(e,n);i||(n=Xt(n),i=t.call(e,n)),r&&r.call(e,n);const s=e.delete(n);return i&&ws(e,"delete",n,void 0),s}function LE(){const n=Xt(this),e=n.size!==0,t=n.clear();return e&&ws(n,"clear",void 0,void 0),t}function Kd(n,e){return function(r,i){const s=this,o=s.__v_raw,a=Xt(o),l=e?ov:n?lv:sr;return!n&&cr(a,"iterate",la),o.forEach((d,u)=>r.call(i,l(d),l(u),s))}}function jd(n,e,t){return function(...r){const i=this.__v_raw,s=Xt(i),o=cl(s),a=n==="entries"||n===Symbol.iterator&&o,l=n==="keys"&&o,d=i[n](...r),u=t?ov:e?lv:sr;return!e&&cr(s,"iterate",l?Pb:la),{next(){const{value:m,done:f}=d.next();return f?{value:m,done:f}:{value:a?[u(m[0]),u(m[1])]:u(m),done:f}},[Symbol.iterator](){return this}}}}function Ys(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function H5(){const n={get(s){return Yd(this,s)},get size(){return Wd(this)},has:$d,add:IE,set:OE,delete:DE,clear:LE,forEach:Kd(!1,!1)},e={get(s){return Yd(this,s,!1,!0)},get size(){return Wd(this)},has:$d,add(s){return IE.call(this,s,!0)},set(s,o){return OE.call(this,s,o,!0)},delete:DE,clear:LE,forEach:Kd(!1,!0)},t={get(s){return Yd(this,s,!0)},get size(){return Wd(this,!0)},has(s){return $d.call(this,s,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Kd(!0,!1)},r={get(s){return Yd(this,s,!0,!0)},get size(){return Wd(this,!0)},has(s){return $d.call(this,s,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Kd(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jd(s,!1,!1),t[s]=jd(s,!0,!1),e[s]=jd(s,!1,!0),r[s]=jd(s,!0,!0)}),[n,t,e,r]}const[q5,Y5,$5,W5]=H5();function _h(n,e){const t=e?n?W5:$5:n?Y5:q5;return(r,i,s)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?r:Reflect.get(en(t,i)&&i in r?t:r,i,s)}const K5={get:_h(!1,!1)},j5={get:_h(!1,!0)},Q5={get:_h(!0,!1)},X5={get:_h(!0,!0)},QM=new WeakMap,XM=new WeakMap,ZM=new WeakMap,JM=new WeakMap;function Z5(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function J5(n){return n.__v_skip||!Object.isExtensible(n)?0:Z5(v5(n))}function yr(n){return ba(n)?n:bh(n,!1,B5,K5,QM)}function e4(n){return bh(n,!1,z5,j5,XM)}function t4(n){return bh(n,!0,G5,Q5,ZM)}function eD(n){return bh(n,!0,V5,X5,JM)}function bh(n,e,t,r,i){if(!cn(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const s=i.get(n);if(s)return s;const o=J5(n);if(o===0)return n;const a=new Proxy(n,o===2?r:t);return i.set(n,a),a}function ul(n){return ba(n)?ul(n.__v_raw):!!(n&&n.__v_isReactive)}function ba(n){return!!(n&&n.__v_isReadonly)}function oi(n){return!!(n&&n.__v_isShallow)}function av(n){return n?!!n.__v_raw:!1}function Xt(n){const e=n&&n.__v_raw;return e?Xt(e):n}function vh(n){return!en(n,"__v_skip")&&Object.isExtensible(n)&&kM(n,"__v_skip",!0),n}const sr=n=>cn(n)?yr(n):n,lv=n=>cn(n)?t4(n):n;function Gn(n){return n?n.__v_isRef===!0:!1}function yt(n){return n4(n,!1)}function tD(n){return n4(n,!0)}function n4(n,e){return Gn(n)?n:new nD(n,e)}class nD{constructor(e,t){this.dep=new mh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Xt(e),this._value=t?e:sr(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||oi(e)||ba(e);e=r?e:Xt(e),Co(e,t)&&(this._rawValue=e,this._value=r?e:sr(e),this.dep.trigger())}}function Pt(n){return Gn(n)?n.value:n}const rD={get:(n,e,t)=>e==="__v_raw"?n:Pt(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const i=n[e];return Gn(i)&&!Gn(t)?(i.value=t,!0):Reflect.set(n,e,t,r)}};function r4(n){return ul(n)?n:new Proxy(n,rD)}class iD{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new mh,{get:r,set:i}=e(t.track.bind(t),t.trigger.bind(t));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function sD(n){return new iD(n)}function oD(n){const e=vt(n)?new Array(n.length):{};for(const t in n)e[t]=i4(n,t);return e}class aD{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return D5(Xt(this._object),this._key)}}class lD{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yp(n,e,t){return Gn(n)?n:kt(n)?new lD(n):cn(n)&&arguments.length>1?i4(n,e,t):yt(n)}function i4(n,e,t){const r=n[e];return Gn(r)?r:new aD(n,e,t)}class cD{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new mh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=td-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return GM(this),!0}get value(){const e=this.dep.track();return HM(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function dD(n,e,t=!1){let r,i;return kt(n)?r=n:(r=n.get,i=n.set),new cD(r,i,t)}const Qd={},Ep=new WeakMap;let Xo;function uD(n,e=!1,t=Xo){if(t){let r=Ep.get(t);r||Ep.set(t,r=[]),r.push(n)}}function pD(n,e,t=hn){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=t,d=x=>i?x:oi(x)||i===!1||i===0?Es(x,1):Es(x);let u,m,f,g,h=!1,v=!1;if(Gn(n)?(m=()=>n.value,h=oi(n)):ul(n)?(m=()=>d(n),h=!0):vt(n)?(v=!0,h=n.some(x=>ul(x)||oi(x)),m=()=>n.map(x=>{if(Gn(x))return x.value;if(ul(x))return d(x);if(kt(x))return l?l(x,2):x()})):kt(n)?e?m=l?()=>l(n,2):n:m=()=>{if(f){Oo();try{f()}finally{Do()}}const x=Xo;Xo=u;try{return l?l(n,3,[g]):n(g)}finally{Xo=x}}:m=Ki,e&&i){const x=m,A=i===!0?1/0:i;m=()=>Es(x(),A)}const b=FM(),_=()=>{u.stop(),b&&ev(b.effects,u)};if(s&&e){const x=e;e=(...A)=>{x(...A),_()}}let y=v?new Array(n.length).fill(Qd):Qd;const E=x=>{if(!(!(u.flags&1)||!u.dirty&&!x))if(e){const A=u.run();if(i||h||(v?A.some((w,N)=>Co(w,y[N])):Co(A,y))){f&&f();const w=Xo;Xo=u;try{const N=[A,y===Qd?void 0:v&&y[0]===Qd?[]:y,g];l?l(e,3,N):e(...N),y=A}finally{Xo=w}}}else u.run()};return a&&a(E),u=new UM(m),u.scheduler=o?()=>o(E,!1):E,g=x=>uD(x,!1,u),f=u.onStop=()=>{const x=Ep.get(u);if(x){if(l)l(x,4);else for(const A of x)A();Ep.delete(u)}},e?r?E(!0):y=u.run():o?o(E.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Es(n,e=1/0,t){if(e<=0||!cn(n)||n.__v_skip||(t=t||new Set,t.has(n)))return n;if(t.add(n),e--,Gn(n))Es(n.value,e,t);else if(vt(n))for(let r=0;r{Es(r,e,t)});else if(NM(n)){for(const r in n)Es(n[r],e,t);for(const r of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Es(n[r],e,t)}return n}/** +* @vue/runtime-core v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Sd(n,e,t,r){try{return r?n(...r):n()}catch(i){yh(i,e,t)}}function Ni(n,e,t,r){if(kt(n)){const i=Sd(n,e,t,r);return i&&RM(i)&&i.catch(s=>{yh(s,e,t)}),i}if(vt(n)){const i=[];for(let s=0;s>>1,i=fr[r],s=id(i);s=id(t)?fr.push(n):fr.splice(mD(e),0,n),n.flags|=1,o4()}}function o4(){!rd&&!Fb&&(Fb=!0,cv=s4.then(l4))}function fD(n){vt(n)?pl.push(...n):io&&n.id===-1?io.splice(nl+1,0,n):n.flags&1||(pl.push(n),n.flags|=1),o4()}function PE(n,e,t=rd?Fi+1:0){for(;tid(t)-id(r));if(pl.length=0,io){io.push(...e);return}for(io=e,nl=0;nln.id==null?n.flags&2?-1:1/0:n.id;function l4(n){Fb=!1,rd=!0;try{for(Fi=0;Fi{r._d&&WE(-1);const s=Sp(e);let o;try{o=n(...i)}finally{Sp(s),r._d&&WE(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function F(n,e){if(Wn===null)return n;const t=Ah(Wn),r=n.dirs||(n.dirs=[]);for(let i=0;in.__isTeleport,Fc=n=>n&&(n.disabled||n.disabled===""),gD=n=>n&&(n.defer||n.defer===""),FE=n=>typeof SVGElement<"u"&&n instanceof SVGElement,UE=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Ub=(n,e)=>{const t=n&&n.to;return yn(t)?e?e(t):null:t},_D={name:"Teleport",__isTeleport:!0,process(n,e,t,r,i,s,o,a,l,d){const{mc:u,pc:m,pbc:f,o:{insert:g,querySelector:h,createText:v,createComment:b}}=d,_=Fc(e.props);let{shapeFlag:y,children:E,dynamicChildren:x}=e;if(n==null){const A=e.el=v(""),w=e.anchor=v("");g(A,t,r),g(w,t,r);const N=(C,k)=>{y&16&&(i&&i.isCE&&(i.ce._teleportTarget=C),u(E,C,k,i,s,o,a,l))},L=()=>{const C=e.target=Ub(e.props,h),k=p4(C,e,v,g);C&&(o!=="svg"&&FE(C)?o="svg":o!=="mathml"&&UE(C)&&(o="mathml"),_||(N(C,k),Ju(e)))};_&&(N(t,w),Ju(e)),gD(e.props)?Yn(L,s):L()}else{e.el=n.el,e.targetStart=n.targetStart;const A=e.anchor=n.anchor,w=e.target=n.target,N=e.targetAnchor=n.targetAnchor,L=Fc(n.props),C=L?t:w,k=L?A:N;if(o==="svg"||FE(w)?o="svg":(o==="mathml"||UE(w))&&(o="mathml"),x?(f(n.dynamicChildren,x,C,i,s,o,a),mv(n,e,!0)):l||m(n,e,C,k,i,s,o,a,!1),_)L?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):Xd(e,t,A,d,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const H=e.target=Ub(e.props,h);H&&Xd(e,H,null,d,0)}else L&&Xd(e,w,N,d,1);Ju(e)}},remove(n,e,t,{um:r,o:{remove:i}},s){const{shapeFlag:o,children:a,anchor:l,targetStart:d,targetAnchor:u,target:m,props:f}=n;if(m&&(i(d),i(u)),s&&i(l),o&16){const g=s||!Fc(f);for(let h=0;h{n.isMounted=!0}),jl(()=>{n.isUnmounting=!0}),n}const Wr=[Function,Array],m4={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wr,onEnter:Wr,onAfterEnter:Wr,onEnterCancelled:Wr,onBeforeLeave:Wr,onLeave:Wr,onAfterLeave:Wr,onLeaveCancelled:Wr,onBeforeAppear:Wr,onAppear:Wr,onAfterAppear:Wr,onAppearCancelled:Wr},f4=n=>{const e=n.subTree;return e.component?f4(e.component):e},yD={name:"BaseTransition",props:m4,setup(n,{slots:e}){const t=gv(),r=h4();return()=>{const i=e.default&&uv(e.default(),!0);if(!i||!i.length)return;const s=g4(i),o=Xt(n),{mode:a}=o;if(r.isLeaving)return Cm(s);const l=BE(s);if(!l)return Cm(s);let d=sd(l,o,r,t,f=>d=f);l.type!==ar&&Ao(l,d);const u=t.subTree,m=u&&BE(u);if(m&&m.type!==ar&&!fo(l,m)&&f4(t).type!==ar){const f=sd(m,o,r,t);if(Ao(m,f),a==="out-in"&&l.type!==ar)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,t.job.flags&8||t.update(),delete f.afterLeave},Cm(s);a==="in-out"&&l.type!==ar&&(f.delayLeave=(g,h,v)=>{const b=_4(r,m);b[String(m.key)]=m,g[so]=()=>{h(),g[so]=void 0,delete d.delayedLeave},d.delayedLeave=v})}return s}}};function g4(n){let e=n[0];if(n.length>1){for(const t of n)if(t.type!==ar){e=t;break}}return e}const ED=yD;function _4(n,e){const{leavingVNodes:t}=n;let r=t.get(e.type);return r||(r=Object.create(null),t.set(e.type,r)),r}function sd(n,e,t,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:m,onBeforeLeave:f,onLeave:g,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:b,onAppear:_,onAfterAppear:y,onAppearCancelled:E}=e,x=String(n.key),A=_4(t,n),w=(C,k)=>{C&&Ni(C,r,9,k)},N=(C,k)=>{const H=k[1];w(C,k),vt(C)?C.every(q=>q.length<=1)&&H():C.length<=1&&H()},L={mode:o,persisted:a,beforeEnter(C){let k=l;if(!t.isMounted)if(s)k=b||l;else return;C[so]&&C[so](!0);const H=A[x];H&&fo(n,H)&&H.el[so]&&H.el[so](),w(k,[C])},enter(C){let k=d,H=u,q=m;if(!t.isMounted)if(s)k=_||d,H=y||u,q=E||m;else return;let ie=!1;const D=C[Zd]=$=>{ie||(ie=!0,$?w(q,[C]):w(H,[C]),L.delayedLeave&&L.delayedLeave(),C[Zd]=void 0)};k?N(k,[C,D]):D()},leave(C,k){const H=String(n.key);if(C[Zd]&&C[Zd](!0),t.isUnmounting)return k();w(f,[C]);let q=!1;const ie=C[so]=D=>{q||(q=!0,k(),D?w(v,[C]):w(h,[C]),C[so]=void 0,A[H]===n&&delete A[H])};A[H]=n,g?N(g,[C,ie]):ie()},clone(C){const k=sd(C,e,t,r,i);return i&&i(k),k}};return L}function Cm(n){if(Eh(n))return n=Is(n),n.children=null,n}function BE(n){if(!Eh(n))return u4(n.type)&&n.children?g4(n.children):n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&kt(t.default))return t.default()}}function Ao(n,e){n.shapeFlag&6&&n.component?(n.transition=e,Ao(n.component.subTree,e)):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function uv(n,e=!1,t){let r=[],i=0;for(let s=0;s1)for(let s=0;sBb(h,e&&(vt(e)?e[v]:e),t,r,i));return}if(ca(r)&&!i)return;const s=r.shapeFlag&4?Ah(r.component):r.el,o=i?null:s,{i:a,r:l}=n,d=e&&e.r,u=a.refs===hn?a.refs={}:a.refs,m=a.setupState,f=Xt(m),g=m===hn?()=>!1:h=>en(f,h);if(d!=null&&d!==l&&(yn(d)?(u[d]=null,g(d)&&(m[d]=null)):Gn(d)&&(d.value=null)),kt(l))Sd(l,a,12,[o,u]);else{const h=yn(l),v=Gn(l);if(h||v){const b=()=>{if(n.f){const _=h?g(l)?m[l]:u[l]:l.value;i?vt(_)&&ev(_,s):vt(_)?_.includes(s)||_.push(s):h?(u[l]=[s],g(l)&&(m[l]=u[l])):(l.value=[s],n.k&&(u[n.k]=l.value))}else h?(u[l]=o,g(l)&&(m[l]=o)):v&&(l.value=o,n.k&&(u[n.k]=o))};o?(b.id=-1,Yn(b,t)):b()}}}const ca=n=>!!n.type.__asyncLoader,Eh=n=>n.type.__isKeepAlive,SD={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=gv(),r=t.ctx;if(!r.renderer)return()=>{const y=e.default&&e.default();return y&&y.length===1?y[0]:y};const i=new Map,s=new Set;let o=null;const a=t.suspense,{renderer:{p:l,m:d,um:u,o:{createElement:m}}}=r,f=m("div");r.activate=(y,E,x,A,w)=>{const N=y.component;d(y,E,x,0,a),l(N.vnode,y,E,x,N,a,A,y.slotScopeIds,w),Yn(()=>{N.isDeactivated=!1,N.a&&dl(N.a);const L=y.props&&y.props.onVnodeMounted;L&&jr(L,N.parent,y)},a)},r.deactivate=y=>{const E=y.component;Tp(E.m),Tp(E.a),d(y,f,null,1,a),Yn(()=>{E.da&&dl(E.da);const x=y.props&&y.props.onVnodeUnmounted;x&&jr(x,E.parent,y),E.isDeactivated=!0},a)};function g(y){Am(y),u(y,t,a,!0)}function h(y){i.forEach((E,x)=>{const A=Yb(E.type);A&&!y(A)&&v(x)})}function v(y){const E=i.get(y);E&&(!o||!fo(E,o))?g(E):o&&Am(o),i.delete(y),s.delete(y)}Zn(()=>[n.include,n.exclude],([y,E])=>{y&&h(x=>Nc(y,x)),E&&h(x=>!Nc(E,x))},{flush:"post",deep:!0});let b=null;const _=()=>{b!=null&&(wp(t.subTree.type)?Yn(()=>{i.set(b,Jd(t.subTree))},t.subTree.suspense):i.set(b,Jd(t.subTree)))};return Ji(_),xd(_),jl(()=>{i.forEach(y=>{const{subTree:E,suspense:x}=t,A=Jd(E);if(y.type===A.type&&y.key===A.key){Am(A);const w=A.component.da;w&&Yn(w,x);return}g(y)})}),()=>{if(b=null,!e.default)return o=null;const y=e.default(),E=y[0];if(y.length>1)return o=null,y;if(!El(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let x=Jd(E);if(x.type===ar)return o=null,x;const A=x.type,w=Yb(ca(x)?x.type.__asyncResolved||{}:A),{include:N,exclude:L,max:C}=n;if(N&&(!w||!Nc(N,w))||L&&w&&Nc(L,w))return x.shapeFlag&=-257,o=x,E;const k=x.key==null?A:x.key,H=i.get(k);return x.el&&(x=Is(x),E.shapeFlag&128&&(E.ssContent=x)),b=k,H?(x.el=H.el,x.component=H.component,x.transition&&Ao(x,x.transition),x.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),C&&s.size>parseInt(C,10)&&v(s.values().next().value)),x.shapeFlag|=256,o=x,wp(E.type)?E:x}}},xD=SD;function Nc(n,e){return vt(n)?n.some(t=>Nc(t,e)):yn(n)?n.split(",").includes(e):b5(n)?(n.lastIndex=0,n.test(e)):!1}function TD(n,e){v4(n,"a",e)}function wD(n,e){v4(n,"da",e)}function v4(n,e,t=Xn){const r=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(Sh(e,r,t),t){let i=t.parent;for(;i&&i.parent;)Eh(i.parent.vnode)&&CD(r,e,t,i),i=i.parent}}function CD(n,e,t,r){const i=Sh(e,n,r,!0);y4(()=>{ev(r[e],i)},t)}function Am(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function Jd(n){return n.shapeFlag&128?n.ssContent:n}function Sh(n,e,t=Xn,r=!1){if(t){const i=t[n]||(t[n]=[]),s=e.__weh||(e.__weh=(...o)=>{Oo();const a=Td(t),l=Ni(e,t,n,o);return a(),Do(),l});return r?i.unshift(s):i.push(s),s}}const Us=n=>(e,t=Xn)=>{(!Ch||n==="sp")&&Sh(n,(...r)=>e(...r),t)},AD=Us("bm"),Ji=Us("m"),RD=Us("bu"),xd=Us("u"),jl=Us("bum"),y4=Us("um"),MD=Us("sp"),ND=Us("rtg"),kD=Us("rtc");function ID(n,e=Xn){Sh("ec",n,e)}const E4="components";function gt(n,e){return x4(E4,n,!0,e)||n}const S4=Symbol.for("v-ndc");function xh(n){return yn(n)?x4(E4,n,!1)||n:n||S4}function x4(n,e,t=!0,r=!1){const i=Wn||Xn;if(i){const s=i.type;{const a=Yb(s,!1);if(a&&(a===e||a===di(e)||a===hh(di(e))))return s}const o=GE(i[n]||s[n],e)||GE(i.appContext[n],e);return!o&&r?s:o}}function GE(n,e){return n&&(n[e]||n[di(e)]||n[hh(di(e))])}function at(n,e,t,r){let i;const s=t,o=vt(n);if(o||yn(n)){const a=o&&ul(n);let l=!1;a&&(l=!oi(n),n=fh(n)),i=new Array(n.length);for(let d=0,u=n.length;de(a,l,void 0,s));else{const a=Object.keys(n);i=new Array(a.length);for(let l=0,d=a.length;lEl(e)?!(e.type===ar||e.type===je&&!T4(e.children)):!0)?n:null}function OD(n,e){const t={};for(const r in n)t[/[A-Z]/.test(r)?`on:${r}`:Zu(r)]=n[r];return t}const Gb=n=>n?H4(n)?Ah(n):Gb(n.parent):null,Uc=Ln(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>Gb(n.parent),$root:n=>Gb(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>pv(n),$forceUpdate:n=>n.f||(n.f=()=>{dv(n.update)}),$nextTick:n=>n.n||(n.n=We.bind(n.proxy)),$watch:n=>eL.bind(n)}),Rm=(n,e)=>n!==hn&&!n.__isScriptSetup&&en(n,e),DD={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=n;let d;if(e[0]!=="$"){const g=o[e];if(g!==void 0)switch(g){case 1:return r[e];case 2:return i[e];case 4:return t[e];case 3:return s[e]}else{if(Rm(r,e))return o[e]=1,r[e];if(i!==hn&&en(i,e))return o[e]=2,i[e];if((d=n.propsOptions[0])&&en(d,e))return o[e]=3,s[e];if(t!==hn&&en(t,e))return o[e]=4,t[e];zb&&(o[e]=0)}}const u=Uc[e];let m,f;if(u)return e==="$attrs"&&cr(n.attrs,"get",""),u(n);if((m=a.__cssModules)&&(m=m[e]))return m;if(t!==hn&&en(t,e))return o[e]=4,t[e];if(f=l.config.globalProperties,en(f,e))return f[e]},set({_:n},e,t){const{data:r,setupState:i,ctx:s}=n;return Rm(i,e)?(i[e]=t,!0):r!==hn&&en(r,e)?(r[e]=t,!0):en(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(s[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!t[o]||n!==hn&&en(n,o)||Rm(e,o)||(a=s[0])&&en(a,o)||en(r,o)||en(Uc,o)||en(i.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:en(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function zE(n){return vt(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let zb=!0;function LD(n){const e=pv(n),t=n.proxy,r=n.ctx;zb=!1,e.beforeCreate&&VE(e.beforeCreate,n,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:d,created:u,beforeMount:m,mounted:f,beforeUpdate:g,updated:h,activated:v,deactivated:b,beforeDestroy:_,beforeUnmount:y,destroyed:E,unmounted:x,render:A,renderTracked:w,renderTriggered:N,errorCaptured:L,serverPrefetch:C,expose:k,inheritAttrs:H,components:q,directives:ie,filters:D}=e;if(d&&PD(d,r,null),o)for(const B in o){const Z=o[B];kt(Z)&&(r[B]=Z.bind(t))}if(i){const B=i.call(t,t);cn(B)&&(n.data=yr(B))}if(zb=!0,s)for(const B in s){const Z=s[B],ce=kt(Z)?Z.bind(t,t):kt(Z.get)?Z.get.bind(t,t):Ki,ue=!kt(Z)&&kt(Z.set)?Z.set.bind(t):Ki,xe=ht({get:ce,set:ue});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>xe.value,set:Ce=>xe.value=Ce})}if(a)for(const B in a)w4(a[B],r,t,B);if(l){const B=kt(l)?l.call(t):l;Reflect.ownKeys(B).forEach(Z=>{ml(Z,B[Z])})}u&&VE(u,n,"c");function K(B,Z){vt(Z)?Z.forEach(ce=>B(ce.bind(t))):Z&&B(Z.bind(t))}if(K(AD,m),K(Ji,f),K(RD,g),K(xd,h),K(TD,v),K(wD,b),K(ID,L),K(kD,w),K(ND,N),K(jl,y),K(y4,x),K(MD,C),vt(k))if(k.length){const B=n.exposed||(n.exposed={});k.forEach(Z=>{Object.defineProperty(B,Z,{get:()=>t[Z],set:ce=>t[Z]=ce})})}else n.exposed||(n.exposed={});A&&n.render===Ki&&(n.render=A),H!=null&&(n.inheritAttrs=H),q&&(n.components=q),ie&&(n.directives=ie),C&&b4(n)}function PD(n,e,t=Ki){vt(n)&&(n=Vb(n));for(const r in n){const i=n[r];let s;cn(i)?"default"in i?s=Gr(i.from||r,i.default,!0):s=Gr(i.from||r):s=Gr(i),Gn(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[r]=s}}function VE(n,e,t){Ni(vt(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function w4(n,e,t,r){let i=r.includes(".")?U4(t,r):()=>t[r];if(yn(n)){const s=e[n];kt(s)&&Zn(i,s)}else if(kt(n))Zn(i,n.bind(t));else if(cn(n))if(vt(n))n.forEach(s=>w4(s,e,t,r));else{const s=kt(n.handler)?n.handler.bind(t):e[n.handler];kt(s)&&Zn(i,s,n)}}function pv(n){const e=n.type,{mixins:t,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=n.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!t&&!r?l=e:(l={},i.length&&i.forEach(d=>xp(l,d,o,!0)),xp(l,e,o)),cn(e)&&s.set(e,l),l}function xp(n,e,t,r=!1){const{mixins:i,extends:s}=e;s&&xp(n,s,t,!0),i&&i.forEach(o=>xp(n,o,t,!0));for(const o in e)if(!(r&&o==="expose")){const a=FD[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const FD={data:HE,props:qE,emits:qE,methods:kc,computed:kc,beforeCreate:pr,created:pr,beforeMount:pr,mounted:pr,beforeUpdate:pr,updated:pr,beforeDestroy:pr,beforeUnmount:pr,destroyed:pr,unmounted:pr,activated:pr,deactivated:pr,errorCaptured:pr,serverPrefetch:pr,components:kc,directives:kc,watch:BD,provide:HE,inject:UD};function HE(n,e){return e?n?function(){return Ln(kt(n)?n.call(this,this):n,kt(e)?e.call(this,this):e)}:e:n}function UD(n,e){return kc(Vb(n),Vb(e))}function Vb(n){if(vt(n)){const e={};for(let t=0;t1)return t&&kt(e)?e.call(r&&r.proxy):e}}const A4={},R4=()=>Object.create(A4),M4=n=>Object.getPrototypeOf(n)===A4;function VD(n,e,t,r=!1){const i={},s=R4();n.propsDefaults=Object.create(null),N4(n,e,i,s);for(const o in n.propsOptions[0])o in i||(i[o]=void 0);t?n.props=r?i:e4(i):n.type.props?n.props=i:n.props=s,n.attrs=s}function HD(n,e,t,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=n,a=Xt(i),[l]=n.propsOptions;let d=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=n.vnode.dynamicProps;for(let m=0;m{l=!0;const[f,g]=k4(m,e,!0);Ln(o,f),g&&a.push(...g)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!s&&!l)return cn(n)&&r.set(n,ll),ll;if(vt(s))for(let u=0;un[0]==="_"||n==="$stable",hv=n=>vt(n)?n.map(Bi):[Bi(n)],YD=(n,e,t)=>{if(e._n)return e;const r=Ge((...i)=>hv(e(...i)),t);return r._c=!1,r},O4=(n,e,t)=>{const r=n._ctx;for(const i in n){if(I4(i))continue;const s=n[i];if(kt(s))e[i]=YD(i,s,r);else if(s!=null){const o=hv(s);e[i]=()=>o}}},D4=(n,e)=>{const t=hv(e);n.slots.default=()=>t},L4=(n,e,t)=>{for(const r in e)(t||r!=="_")&&(n[r]=e[r])},$D=(n,e,t)=>{const r=n.slots=R4();if(n.vnode.shapeFlag&32){const i=e._;i?(L4(r,e,t),t&&kM(r,"_",i,!0)):O4(e,r)}else e&&D4(n,e)},WD=(n,e,t)=>{const{vnode:r,slots:i}=n;let s=!0,o=hn;if(r.shapeFlag&32){const a=e._;a?t&&a===1?s=!1:L4(i,e,t):(s=!e.$stable,O4(e,i)),o=e}else e&&(D4(n,e),o={default:1});if(s)for(const a in i)!I4(a)&&o[a]==null&&delete i[a]},Yn=aL;function KD(n){return jD(n)}function jD(n,e){const t=IM();t.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:d,setElementText:u,parentNode:m,nextSibling:f,setScopeId:g=Ki,insertStaticContent:h}=n,v=(V,G,oe,ge=null,Ee=null,Te=null,fe=void 0,Ue=null,Pe=!!G.dynamicChildren)=>{if(V===G)return;V&&!fo(V,G)&&(ge=te(V),Ce(V,Ee,Te,!0),V=null),G.patchFlag===-2&&(Pe=!1,G.dynamicChildren=null);const{type:Re,ref:U,shapeFlag:I}=G;switch(Re){case wh:b(V,G,oe,ge);break;case ar:_(V,G,oe,ge);break;case ep:V==null&&y(G,oe,ge,fe);break;case je:q(V,G,oe,ge,Ee,Te,fe,Ue,Pe);break;default:I&1?A(V,G,oe,ge,Ee,Te,fe,Ue,Pe):I&6?ie(V,G,oe,ge,Ee,Te,fe,Ue,Pe):(I&64||I&128)&&Re.process(V,G,oe,ge,Ee,Te,fe,Ue,Pe,Oe)}U!=null&&Ee&&Bb(U,V&&V.ref,Te,G||V,!G)},b=(V,G,oe,ge)=>{if(V==null)r(G.el=a(G.children),oe,ge);else{const Ee=G.el=V.el;G.children!==V.children&&d(Ee,G.children)}},_=(V,G,oe,ge)=>{V==null?r(G.el=l(G.children||""),oe,ge):G.el=V.el},y=(V,G,oe,ge)=>{[V.el,V.anchor]=h(V.children,G,oe,ge,V.el,V.anchor)},E=({el:V,anchor:G},oe,ge)=>{let Ee;for(;V&&V!==G;)Ee=f(V),r(V,oe,ge),V=Ee;r(G,oe,ge)},x=({el:V,anchor:G})=>{let oe;for(;V&&V!==G;)oe=f(V),i(V),V=oe;i(G)},A=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{G.type==="svg"?fe="svg":G.type==="math"&&(fe="mathml"),V==null?w(G,oe,ge,Ee,Te,fe,Ue,Pe):C(V,G,Ee,Te,fe,Ue,Pe)},w=(V,G,oe,ge,Ee,Te,fe,Ue)=>{let Pe,Re;const{props:U,shapeFlag:I,transition:ee,dirs:we}=V;if(Pe=V.el=o(V.type,Te,U&&U.is,U),I&8?u(Pe,V.children):I&16&&L(V.children,Pe,null,ge,Ee,Mm(V,Te),fe,Ue),we&&Go(V,null,ge,"created"),N(Pe,V,V.scopeId,fe,ge),U){for(const pe in U)pe!=="value"&&!Pc(pe)&&s(Pe,pe,null,U[pe],Te,ge);"value"in U&&s(Pe,"value",null,U.value,Te),(Re=U.onVnodeBeforeMount)&&jr(Re,ge,V)}we&&Go(V,null,ge,"beforeMount");const ne=QD(Ee,ee);ne&&ee.beforeEnter(Pe),r(Pe,G,oe),((Re=U&&U.onVnodeMounted)||ne||we)&&Yn(()=>{Re&&jr(Re,ge,V),ne&&ee.enter(Pe),we&&Go(V,null,ge,"mounted")},Ee)},N=(V,G,oe,ge,Ee)=>{if(oe&&g(V,oe),ge)for(let Te=0;Te{for(let Re=Pe;Re{const Ue=G.el=V.el;let{patchFlag:Pe,dynamicChildren:Re,dirs:U}=G;Pe|=V.patchFlag&16;const I=V.props||hn,ee=G.props||hn;let we;if(oe&&zo(oe,!1),(we=ee.onVnodeBeforeUpdate)&&jr(we,oe,G,V),U&&Go(G,V,oe,"beforeUpdate"),oe&&zo(oe,!0),(I.innerHTML&&ee.innerHTML==null||I.textContent&&ee.textContent==null)&&u(Ue,""),Re?k(V.dynamicChildren,Re,Ue,oe,ge,Mm(G,Ee),Te):fe||Z(V,G,Ue,null,oe,ge,Mm(G,Ee),Te,!1),Pe>0){if(Pe&16)H(Ue,I,ee,oe,Ee);else if(Pe&2&&I.class!==ee.class&&s(Ue,"class",null,ee.class,Ee),Pe&4&&s(Ue,"style",I.style,ee.style,Ee),Pe&8){const ne=G.dynamicProps;for(let pe=0;pe{we&&jr(we,oe,G,V),U&&Go(G,V,oe,"updated")},ge)},k=(V,G,oe,ge,Ee,Te,fe)=>{for(let Ue=0;Ue{if(G!==oe){if(G!==hn)for(const Te in G)!Pc(Te)&&!(Te in oe)&&s(V,Te,G[Te],null,Ee,ge);for(const Te in oe){if(Pc(Te))continue;const fe=oe[Te],Ue=G[Te];fe!==Ue&&Te!=="value"&&s(V,Te,Ue,fe,Ee,ge)}"value"in oe&&s(V,"value",G.value,oe.value,Ee)}},q=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{const Re=G.el=V?V.el:a(""),U=G.anchor=V?V.anchor:a("");let{patchFlag:I,dynamicChildren:ee,slotScopeIds:we}=G;we&&(Ue=Ue?Ue.concat(we):we),V==null?(r(Re,oe,ge),r(U,oe,ge),L(G.children||[],oe,U,Ee,Te,fe,Ue,Pe)):I>0&&I&64&&ee&&V.dynamicChildren?(k(V.dynamicChildren,ee,oe,Ee,Te,fe,Ue),(G.key!=null||Ee&&G===Ee.subTree)&&mv(V,G,!0)):Z(V,G,oe,U,Ee,Te,fe,Ue,Pe)},ie=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{G.slotScopeIds=Ue,V==null?G.shapeFlag&512?Ee.ctx.activate(G,oe,ge,fe,Pe):D(G,oe,ge,Ee,Te,fe,Pe):$(V,G,Pe)},D=(V,G,oe,ge,Ee,Te,fe)=>{const Ue=V.component=hL(V,ge,Ee);if(Eh(V)&&(Ue.ctx.renderer=Oe),mL(Ue,!1,fe),Ue.asyncDep){if(Ee&&Ee.registerDep(Ue,K,fe),!V.el){const Pe=Ue.subTree=W(ar);_(null,Pe,G,oe)}}else K(Ue,V,G,oe,Ee,Te,fe)},$=(V,G,oe)=>{const ge=G.component=V.component;if(sL(V,G,oe))if(ge.asyncDep&&!ge.asyncResolved){B(ge,G,oe);return}else ge.next=G,ge.update();else G.el=V.el,ge.vnode=G},K=(V,G,oe,ge,Ee,Te,fe)=>{const Ue=()=>{if(V.isMounted){let{next:I,bu:ee,u:we,parent:ne,vnode:pe}=V;{const wt=P4(V);if(wt){I&&(I.el=pe.el,B(V,I,fe)),wt.asyncDep.then(()=>{V.isUnmounted||Ue()});return}}let De=I,Le;zo(V,!1),I?(I.el=pe.el,B(V,I,fe)):I=pe,ee&&dl(ee),(Le=I.props&&I.props.onVnodeBeforeUpdate)&&jr(Le,ne,I,pe),zo(V,!0);const Ve=Nm(V),ot=V.subTree;V.subTree=Ve,v(ot,Ve,m(ot.el),te(ot),V,Ee,Te),I.el=Ve.el,De===null&&oL(V,Ve.el),we&&Yn(we,Ee),(Le=I.props&&I.props.onVnodeUpdated)&&Yn(()=>jr(Le,ne,I,pe),Ee)}else{let I;const{el:ee,props:we}=G,{bm:ne,m:pe,parent:De,root:Le,type:Ve}=V,ot=ca(G);if(zo(V,!1),ne&&dl(ne),!ot&&(I=we&&we.onVnodeBeforeMount)&&jr(I,De,G),zo(V,!0),ee&&le){const wt=()=>{V.subTree=Nm(V),le(ee,V.subTree,V,Ee,null)};ot&&Ve.__asyncHydrate?Ve.__asyncHydrate(ee,V,wt):wt()}else{Le.ce&&Le.ce._injectChildStyle(Ve);const wt=V.subTree=Nm(V);v(null,wt,oe,ge,V,Ee,Te),G.el=wt.el}if(pe&&Yn(pe,Ee),!ot&&(I=we&&we.onVnodeMounted)){const wt=G;Yn(()=>jr(I,De,wt),Ee)}(G.shapeFlag&256||De&&ca(De.vnode)&&De.vnode.shapeFlag&256)&&V.a&&Yn(V.a,Ee),V.isMounted=!0,G=oe=ge=null}};V.scope.on();const Pe=V.effect=new UM(Ue);V.scope.off();const Re=V.update=Pe.run.bind(Pe),U=V.job=Pe.runIfDirty.bind(Pe);U.i=V,U.id=V.uid,Pe.scheduler=()=>dv(U),zo(V,!0),Re()},B=(V,G,oe)=>{G.component=V;const ge=V.vnode.props;V.vnode=G,V.next=null,HD(V,G.props,ge,oe),WD(V,G.children,oe),Oo(),PE(V),Do()},Z=(V,G,oe,ge,Ee,Te,fe,Ue,Pe=!1)=>{const Re=V&&V.children,U=V?V.shapeFlag:0,I=G.children,{patchFlag:ee,shapeFlag:we}=G;if(ee>0){if(ee&128){ue(Re,I,oe,ge,Ee,Te,fe,Ue,Pe);return}else if(ee&256){ce(Re,I,oe,ge,Ee,Te,fe,Ue,Pe);return}}we&8?(U&16&&ze(Re,Ee,Te),I!==Re&&u(oe,I)):U&16?we&16?ue(Re,I,oe,ge,Ee,Te,fe,Ue,Pe):ze(Re,Ee,Te,!0):(U&8&&u(oe,""),we&16&&L(I,oe,ge,Ee,Te,fe,Ue,Pe))},ce=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{V=V||ll,G=G||ll;const Re=V.length,U=G.length,I=Math.min(Re,U);let ee;for(ee=0;eeU?ze(V,Ee,Te,!0,!1,I):L(G,oe,ge,Ee,Te,fe,Ue,Pe,I)},ue=(V,G,oe,ge,Ee,Te,fe,Ue,Pe)=>{let Re=0;const U=G.length;let I=V.length-1,ee=U-1;for(;Re<=I&&Re<=ee;){const we=V[Re],ne=G[Re]=Pe?oo(G[Re]):Bi(G[Re]);if(fo(we,ne))v(we,ne,oe,null,Ee,Te,fe,Ue,Pe);else break;Re++}for(;Re<=I&&Re<=ee;){const we=V[I],ne=G[ee]=Pe?oo(G[ee]):Bi(G[ee]);if(fo(we,ne))v(we,ne,oe,null,Ee,Te,fe,Ue,Pe);else break;I--,ee--}if(Re>I){if(Re<=ee){const we=ee+1,ne=weee)for(;Re<=I;)Ce(V[Re],Ee,Te,!0),Re++;else{const we=Re,ne=Re,pe=new Map;for(Re=ne;Re<=ee;Re++){const mt=G[Re]=Pe?oo(G[Re]):Bi(G[Re]);mt.key!=null&&pe.set(mt.key,Re)}let De,Le=0;const Ve=ee-ne+1;let ot=!1,wt=0;const $e=new Array(Ve);for(Re=0;Re=Ve){Ce(mt,Ee,Te,!0);continue}let ft;if(mt.key!=null)ft=pe.get(mt.key);else for(De=ne;De<=ee;De++)if($e[De-ne]===0&&fo(mt,G[De])){ft=De;break}ft===void 0?Ce(mt,Ee,Te,!0):($e[ft-ne]=Re+1,ft>=wt?wt=ft:ot=!0,v(mt,G[ft],oe,null,Ee,Te,fe,Ue,Pe),Le++)}const Kt=ot?XD($e):ll;for(De=Kt.length-1,Re=Ve-1;Re>=0;Re--){const mt=ne+Re,ft=G[mt],et=mt+1{const{el:Te,type:fe,transition:Ue,children:Pe,shapeFlag:Re}=V;if(Re&6){xe(V.component.subTree,G,oe,ge);return}if(Re&128){V.suspense.move(G,oe,ge);return}if(Re&64){fe.move(V,G,oe,Oe);return}if(fe===je){r(Te,G,oe);for(let I=0;IUe.enter(Te),Ee);else{const{leave:I,delayLeave:ee,afterLeave:we}=Ue,ne=()=>r(Te,G,oe),pe=()=>{I(Te,()=>{ne(),we&&we()})};ee?ee(Te,ne,pe):pe()}else r(Te,G,oe)},Ce=(V,G,oe,ge=!1,Ee=!1)=>{const{type:Te,props:fe,ref:Ue,children:Pe,dynamicChildren:Re,shapeFlag:U,patchFlag:I,dirs:ee,cacheIndex:we}=V;if(I===-2&&(Ee=!1),Ue!=null&&Bb(Ue,null,oe,V,!0),we!=null&&(G.renderCache[we]=void 0),U&256){G.ctx.deactivate(V);return}const ne=U&1&&ee,pe=!ca(V);let De;if(pe&&(De=fe&&fe.onVnodeBeforeUnmount)&&jr(De,G,V),U&6)Fe(V.component,oe,ge);else{if(U&128){V.suspense.unmount(oe,ge);return}ne&&Go(V,null,G,"beforeUnmount"),U&64?V.type.remove(V,G,oe,Oe,ge):Re&&!Re.hasOnce&&(Te!==je||I>0&&I&64)?ze(Re,G,oe,!1,!0):(Te===je&&I&384||!Ee&&U&16)&&ze(Pe,G,oe),ge&&me(V)}(pe&&(De=fe&&fe.onVnodeUnmounted)||ne)&&Yn(()=>{De&&jr(De,G,V),ne&&Go(V,null,G,"unmounted")},oe)},me=V=>{const{type:G,el:oe,anchor:ge,transition:Ee}=V;if(G===je){Ae(oe,ge);return}if(G===ep){x(V);return}const Te=()=>{i(oe),Ee&&!Ee.persisted&&Ee.afterLeave&&Ee.afterLeave()};if(V.shapeFlag&1&&Ee&&!Ee.persisted){const{leave:fe,delayLeave:Ue}=Ee,Pe=()=>fe(oe,Te);Ue?Ue(V.el,Te,Pe):Pe()}else Te()},Ae=(V,G)=>{let oe;for(;V!==G;)oe=f(V),i(V),V=oe;i(G)},Fe=(V,G,oe)=>{const{bum:ge,scope:Ee,job:Te,subTree:fe,um:Ue,m:Pe,a:Re}=V;Tp(Pe),Tp(Re),ge&&dl(ge),Ee.stop(),Te&&(Te.flags|=8,Ce(fe,V,G,oe)),Ue&&Yn(Ue,G),Yn(()=>{V.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&V.asyncDep&&!V.asyncResolved&&V.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},ze=(V,G,oe,ge=!1,Ee=!1,Te=0)=>{for(let fe=Te;fe{if(V.shapeFlag&6)return te(V.component.subTree);if(V.shapeFlag&128)return V.suspense.next();const G=f(V.anchor||V.el),oe=G&&G[d4];return oe?f(oe):G};let ye=!1;const Se=(V,G,oe)=>{V==null?G._vnode&&Ce(G._vnode,null,null,!0):v(G._vnode||null,V,G,null,null,null,oe),G._vnode=V,ye||(ye=!0,PE(),a4(),ye=!1)},Oe={p:v,um:Ce,m:xe,r:me,mt:D,mc:L,pc:Z,pbc:k,n:te,o:n};let Ye,le;return{render:Se,hydrate:Ye,createApp:zD(Se,Ye)}}function Mm({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function zo({effect:n,job:e},t){t?(n.flags|=32,e.flags|=4):(n.flags&=-33,e.flags&=-5)}function QD(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function mv(n,e,t=!1){const r=n.children,i=e.children;if(vt(r)&&vt(i))for(let s=0;s>1,n[t[a]]0&&(e[r]=t[s-1]),t[s]=r)}}for(s=t.length,o=t[s-1];s-- >0;)t[s]=o,o=e[o];return t}function P4(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:P4(e)}function Tp(n){if(n)for(let e=0;eGr(ZD);function Zn(n,e,t){return F4(n,e,t)}function F4(n,e,t=hn){const{immediate:r,deep:i,flush:s,once:o}=t,a=Ln({},t);let l;if(Ch)if(s==="sync"){const f=JD();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!e||r)a.once=!0;else{const f=()=>{};return f.stop=Ki,f.resume=Ki,f.pause=Ki,f}const d=Xn;a.call=(f,g,h)=>Ni(f,d,g,h);let u=!1;s==="post"?a.scheduler=f=>{Yn(f,d&&d.suspense)}:s!=="sync"&&(u=!0,a.scheduler=(f,g)=>{g?f():dv(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const m=pD(n,e,a);return l&&l.push(m),m}function eL(n,e,t){const r=this.proxy,i=yn(n)?n.includes(".")?U4(r,n):()=>r[n]:n.bind(r,r);let s;kt(e)?s=e:(s=e.handler,t=e);const o=Td(this),a=F4(i,s.bind(r),t);return o(),a}function U4(n,e){const t=e.split(".");return()=>{let r=n;for(let i=0;ie==="modelValue"||e==="model-value"?n.modelModifiers:n[`${e}Modifiers`]||n[`${di(e)}Modifiers`]||n[`${Io(e)}Modifiers`];function nL(n,e,...t){if(n.isUnmounted)return;const r=n.vnode.props||hn;let i=t;const s=e.startsWith("update:"),o=s&&tL(r,e.slice(7));o&&(o.trim&&(i=t.map(u=>yn(u)?u.trim():u)),o.number&&(i=t.map(bp)));let a,l=r[a=Zu(e)]||r[a=Zu(di(e))];!l&&s&&(l=r[a=Zu(Io(e))]),l&&Ni(l,n,6,i);const d=r[a+"Once"];if(d){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,Ni(d,n,6,i)}}function B4(n,e,t=!1){const r=e.emitsCache,i=r.get(n);if(i!==void 0)return i;const s=n.emits;let o={},a=!1;if(!kt(n)){const l=d=>{const u=B4(d,e,!0);u&&(a=!0,Ln(o,u))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!s&&!a?(cn(n)&&r.set(n,null),null):(vt(s)?s.forEach(l=>o[l]=null):Ln(o,s),cn(n)&&r.set(n,o),o)}function Th(n,e){return!n||!uh(e)?!1:(e=e.slice(2).replace(/Once$/,""),en(n,e[0].toLowerCase()+e.slice(1))||en(n,Io(e))||en(n,e))}function Nm(n){const{type:e,vnode:t,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:d,renderCache:u,props:m,data:f,setupState:g,ctx:h,inheritAttrs:v}=n,b=Sp(n);let _,y;try{if(t.shapeFlag&4){const x=i||r,A=x;_=Bi(d.call(A,x,u,m,g,f,h)),y=a}else{const x=e;_=Bi(x.length>1?x(m,{attrs:a,slots:o,emit:l}):x(m,null)),y=e.props?a:rL(a)}}catch(x){Bc.length=0,yh(x,n,1),_=W(ar)}let E=_;if(y&&v!==!1){const x=Object.keys(y),{shapeFlag:A}=E;x.length&&A&7&&(s&&x.some(J1)&&(y=iL(y,s)),E=Is(E,y,!1,!0))}return t.dirs&&(E=Is(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&Ao(E,t.transition),_=E,Sp(b),_}const rL=n=>{let e;for(const t in n)(t==="class"||t==="style"||uh(t))&&((e||(e={}))[t]=n[t]);return e},iL=(n,e)=>{const t={};for(const r in n)(!J1(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function sL(n,e,t){const{props:r,children:i,component:s}=n,{props:o,children:a,patchFlag:l}=e,d=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return r?$E(r,o,d):!!o;if(l&8){const u=e.dynamicProps;for(let m=0;mn.__isSuspense;function aL(n,e){e&&e.pendingBranch?vt(n)?e.effects.push(...n):e.effects.push(n):fD(n)}const je=Symbol.for("v-fgt"),wh=Symbol.for("v-txt"),ar=Symbol.for("v-cmt"),ep=Symbol.for("v-stc"),Bc=[];let Br=null;function T(n=!1){Bc.push(Br=n?null:[])}function lL(){Bc.pop(),Br=Bc[Bc.length-1]||null}let od=1;function WE(n){od+=n,n<0&&Br&&(Br.hasOnce=!0)}function G4(n){return n.dynamicChildren=od>0?Br||ll:null,lL(),od>0&&Br&&Br.push(n),n}function M(n,e,t,r,i,s){return G4(c(n,e,t,r,i,s,!0))}function Tt(n,e,t,r,i){return G4(W(n,e,t,r,i,!0))}function El(n){return n?n.__v_isVNode===!0:!1}function fo(n,e){return n.type===e.type&&n.key===e.key}const z4=({key:n})=>n??null,tp=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?yn(n)||Gn(n)||kt(n)?{i:Wn,r:n,k:e,f:!!t}:n:null);function c(n,e=null,t=null,r=0,i=null,s=n===je?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&z4(e),ref:e&&tp(e),scopeId:c4,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wn};return a?(fv(l,t),s&128&&n.normalize(l)):t&&(l.shapeFlag|=yn(t)?8:16),od>0&&!o&&Br&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Br.push(l),l}const W=cL;function cL(n,e=null,t=null,r=0,i=null,s=!1){if((!n||n===S4)&&(n=ar),El(n)){const a=Is(n,e,!0);return t&&fv(a,t),od>0&&!s&&Br&&(a.shapeFlag&6?Br[Br.indexOf(n)]=a:Br.push(a)),a.patchFlag=-2,a}if(bL(n)&&(n=n.__vccOpts),e){e=dL(e);let{class:a,style:l}=e;a&&!yn(a)&&(e.class=qe(a)),cn(l)&&(av(l)&&!vt(l)&&(l=Ln({},l)),e.style=on(l))}const o=yn(n)?1:wp(n)?128:u4(n)?64:cn(n)?4:kt(n)?2:0;return c(n,e,t,r,i,o,s,!0)}function dL(n){return n?av(n)||M4(n)?Ln({},n):n:null}function Is(n,e,t=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=n,d=e?V4(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:d,key:d&&z4(d),ref:e&&e.ref?t&&s?vt(s)?s.concat(tp(e)):[s,tp(e)]:tp(e):s,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==je?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:l,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Is(n.ssContent),ssFallback:n.ssFallback&&Is(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return l&&r&&Ao(u,l.clone(u)),u}function pt(n=" ",e=0){return W(wh,null,n,e)}function yo(n,e){const t=W(ep,null,n);return t.staticCount=e,t}function Y(n="",e=!1){return e?(T(),Tt(ar,null,n)):W(ar,null,n)}function Bi(n){return n==null||typeof n=="boolean"?W(ar):vt(n)?W(je,null,n.slice()):El(n)?oo(n):W(wh,null,String(n))}function oo(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Is(n)}function fv(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(vt(e))t=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),fv(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!M4(e)?e._ctx=Wn:i===3&&Wn&&(Wn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else kt(e)?(e={default:e,_ctx:Wn},t=32):(e=String(e),r&64?(t=16,e=[pt(e)]):t=8);n.children=e,n.shapeFlag|=t}function V4(...n){const e={};for(let t=0;tXn||Wn;let Cp,qb;{const n=IM(),e=(t,r)=>{let i;return(i=n[t])||(i=n[t]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};Cp=e("__VUE_INSTANCE_SETTERS__",t=>Xn=t),qb=e("__VUE_SSR_SETTERS__",t=>Ch=t)}const Td=n=>{const e=Xn;return Cp(n),n.scope.on(),()=>{n.scope.off(),Cp(e)}},KE=()=>{Xn&&Xn.scope.off(),Cp(null)};function H4(n){return n.vnode.shapeFlag&4}let Ch=!1;function mL(n,e=!1,t=!1){e&&qb(e);const{props:r,children:i}=n.vnode,s=H4(n);VD(n,r,s,e),$D(n,i,t);const o=s?fL(n,e):void 0;return e&&qb(!1),o}function fL(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,DD);const{setup:r}=t;if(r){const i=n.setupContext=r.length>1?_L(n):null,s=Td(n);Oo();const o=Sd(r,n,0,[n.props,i]);if(Do(),s(),RM(o)){if(ca(n)||b4(n),o.then(KE,KE),e)return o.then(a=>{jE(n,a,e)}).catch(a=>{yh(a,n,0)});n.asyncDep=o}else jE(n,o,e)}else q4(n,e)}function jE(n,e,t){kt(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:cn(e)&&(n.setupState=r4(e)),q4(n,t)}let QE;function q4(n,e,t){const r=n.type;if(!n.render){if(!e&&QE&&!r.render){const i=r.template||pv(n).template;if(i){const{isCustomElement:s,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:l}=r,d=Ln(Ln({isCustomElement:s,delimiters:a},o),l);r.render=QE(i,d)}}n.render=r.render||Ki}{const i=Td(n);Oo();try{LD(n)}finally{Do(),i()}}}const gL={get(n,e){return cr(n,"get",""),n[e]}};function _L(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,gL),slots:n.slots,emit:n.emit,expose:e}}function Ah(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(r4(vh(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Uc)return Uc[t](n)},has(e,t){return t in e||t in Uc}})):n.proxy}function Yb(n,e=!0){return kt(n)?n.displayName||n.name:n.name||e&&n.__name}function bL(n){return kt(n)&&"__vccOpts"in n}const ht=(n,e)=>dD(n,e,Ch);function _v(n,e,t){const r=arguments.length;return r===2?cn(e)&&!vt(e)?El(e)?W(n,null,[e]):W(n,e):W(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&El(t)&&(t=[t]),W(n,e,t))}const vL="3.5.10";/** +* @vue/runtime-dom v3.5.10 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let $b;const XE=typeof window<"u"&&window.trustedTypes;if(XE)try{$b=XE.createPolicy("vue",{createHTML:n=>n})}catch{}const Y4=$b?n=>$b.createHTML(n):n=>n,yL="http://www.w3.org/2000/svg",EL="http://www.w3.org/1998/Math/MathML",vs=typeof document<"u"?document:null,ZE=vs&&vs.createElement("template"),SL={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,r)=>{const i=e==="svg"?vs.createElementNS(yL,n):e==="mathml"?vs.createElementNS(EL,n):t?vs.createElement(n,{is:t}):vs.createElement(n);return n==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:n=>vs.createTextNode(n),createComment:n=>vs.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>vs.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,r,i,s){const o=t?t.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===s||!(i=i.nextSibling)););else{ZE.innerHTML=Y4(r==="svg"?`${n}`:r==="mathml"?`${n}`:n);const a=ZE.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},$s="transition",mc="animation",Sl=Symbol("_vtc"),$4={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},W4=Ln({},m4,$4),xL=n=>(n.displayName="Transition",n.props=W4,n),Cs=xL((n,{slots:e})=>_v(ED,K4(n),e)),Vo=(n,e=[])=>{vt(n)?n.forEach(t=>t(...e)):n&&n(...e)},JE=n=>n?vt(n)?n.some(e=>e.length>1):n.length>1:!1;function K4(n){const e={};for(const q in n)q in $4||(e[q]=n[q]);if(n.css===!1)return e;const{name:t="v",type:r,duration:i,enterFromClass:s=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=s,appearActiveClass:d=o,appearToClass:u=a,leaveFromClass:m=`${t}-leave-from`,leaveActiveClass:f=`${t}-leave-active`,leaveToClass:g=`${t}-leave-to`}=n,h=TL(i),v=h&&h[0],b=h&&h[1],{onBeforeEnter:_,onEnter:y,onEnterCancelled:E,onLeave:x,onLeaveCancelled:A,onBeforeAppear:w=_,onAppear:N=y,onAppearCancelled:L=E}=e,C=(q,ie,D)=>{ro(q,ie?u:a),ro(q,ie?d:o),D&&D()},k=(q,ie)=>{q._isLeaving=!1,ro(q,m),ro(q,g),ro(q,f),ie&&ie()},H=q=>(ie,D)=>{const $=q?N:y,K=()=>C(ie,q,D);Vo($,[ie,K]),eS(()=>{ro(ie,q?l:s),_s(ie,q?u:a),JE($)||tS(ie,r,v,K)})};return Ln(e,{onBeforeEnter(q){Vo(_,[q]),_s(q,s),_s(q,o)},onBeforeAppear(q){Vo(w,[q]),_s(q,l),_s(q,d)},onEnter:H(!1),onAppear:H(!0),onLeave(q,ie){q._isLeaving=!0;const D=()=>k(q,ie);_s(q,m),_s(q,f),Q4(),eS(()=>{q._isLeaving&&(ro(q,m),_s(q,g),JE(x)||tS(q,r,b,D))}),Vo(x,[q,D])},onEnterCancelled(q){C(q,!1),Vo(E,[q])},onAppearCancelled(q){C(q,!0),Vo(L,[q])},onLeaveCancelled(q){k(q),Vo(A,[q])}})}function TL(n){if(n==null)return null;if(cn(n))return[km(n.enter),km(n.leave)];{const e=km(n);return[e,e]}}function km(n){return S5(n)}function _s(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[Sl]||(n[Sl]=new Set)).add(e)}function ro(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[Sl];t&&(t.delete(e),t.size||(n[Sl]=void 0))}function eS(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let wL=0;function tS(n,e,t,r){const i=n._endId=++wL,s=()=>{i===n._endId&&r()};if(t!=null)return setTimeout(s,t);const{type:o,timeout:a,propCount:l}=j4(n,e);if(!o)return r();const d=o+"end";let u=0;const m=()=>{n.removeEventListener(d,f),s()},f=g=>{g.target===n&&++u>=l&&m()};setTimeout(()=>{u(t[h]||"").split(", "),i=r(`${$s}Delay`),s=r(`${$s}Duration`),o=nS(i,s),a=r(`${mc}Delay`),l=r(`${mc}Duration`),d=nS(a,l);let u=null,m=0,f=0;e===$s?o>0&&(u=$s,m=o,f=s.length):e===mc?d>0&&(u=mc,m=d,f=l.length):(m=Math.max(o,d),u=m>0?o>d?$s:mc:null,f=u?u===$s?s.length:l.length:0);const g=u===$s&&/\b(transform|all)(,|$)/.test(r(`${$s}Property`).toString());return{type:u,timeout:m,propCount:f,hasTransform:g}}function nS(n,e){for(;n.lengthrS(t)+rS(n[r])))}function rS(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function Q4(){return document.body.offsetHeight}function CL(n,e,t){const r=n[Sl];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Ap=Symbol("_vod"),X4=Symbol("_vsh"),Dt={beforeMount(n,{value:e},{transition:t}){n[Ap]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):fc(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:r}){!e!=!t&&(r?e?(r.beforeEnter(n),fc(n,!0),r.enter(n)):r.leave(n,()=>{fc(n,!1)}):fc(n,e))},beforeUnmount(n,{value:e}){fc(n,e)}};function fc(n,e){n.style.display=e?n[Ap]:"none",n[X4]=!e}const AL=Symbol(""),RL=/(^|;)\s*display\s*:/;function ML(n,e,t){const r=n.style,i=yn(t);let s=!1;if(t&&!i){if(e)if(yn(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&np(r,a,"")}else for(const o in e)t[o]==null&&np(r,o,"");for(const o in t)o==="display"&&(s=!0),np(r,o,t[o])}else if(i){if(e!==t){const o=r[AL];o&&(t+=";"+o),r.cssText=t,s=RL.test(t)}}else e&&n.removeAttribute("style");Ap in n&&(n[Ap]=s?r.display:"",n[X4]&&(r.display="none"))}const iS=/\s*!important$/;function np(n,e,t){if(vt(t))t.forEach(r=>np(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=NL(n,e);iS.test(t)?n.setProperty(Io(r),t.replace(iS,""),"important"):n[r]=t}}const sS=["Webkit","Moz","ms"],Im={};function NL(n,e){const t=Im[e];if(t)return t;let r=di(e);if(r!=="filter"&&r in n)return Im[e]=r;r=hh(r);for(let i=0;iOm||(DL.then(()=>Om=0),Om=Date.now());function PL(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;Ni(FL(r,t.value),e,5,[r])};return t.value=n,t.attached=LL(),t}function FL(n,e){if(vt(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const uS=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,UL=(n,e,t,r,i,s)=>{const o=i==="svg";e==="class"?CL(n,r,o):e==="style"?ML(n,t,r):uh(e)?J1(e)||IL(n,e,t,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):BL(n,e,r,o))?(lS(n,e,r),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&aS(n,e,r,o,s,e!=="value")):n._isVueCE&&(/[A-Z]/.test(e)||!yn(r))?lS(n,di(e),r):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),aS(n,e,r,o))};function BL(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&uS(e)&&kt(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return uS(e)&&yn(t)?!1:e in n}const Z4=new WeakMap,J4=new WeakMap,Rp=Symbol("_moveCb"),pS=Symbol("_enterCb"),GL=n=>(delete n.props.mode,n),zL=GL({name:"TransitionGroup",props:Ln({},W4,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=gv(),r=h4();let i,s;return xd(()=>{if(!i.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!YL(i[0].el,t.vnode.el,o))return;i.forEach(VL),i.forEach(HL);const a=i.filter(qL);Q4(),a.forEach(l=>{const d=l.el,u=d.style;_s(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const m=d[Rp]=f=>{f&&f.target!==d||(!f||/transform$/.test(f.propertyName))&&(d.removeEventListener("transitionend",m),d[Rp]=null,ro(d,o))};d.addEventListener("transitionend",m)})}),()=>{const o=Xt(n),a=K4(o);let l=o.tag||je;if(i=[],s)for(let d=0;d{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),t.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(r);const{hasTransform:o}=j4(r);return s.removeChild(r),o}const Ro=n=>{const e=n.props["onUpdate:modelValue"]||!1;return vt(e)?t=>dl(e,t):e};function $L(n){n.target.composing=!0}function hS(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ai=Symbol("_assign"),_e={created(n,{modifiers:{lazy:e,trim:t,number:r}},i){n[ai]=Ro(i);const s=r||i.props&&i.props.type==="number";Ss(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),s&&(a=bp(a)),n[ai](a)}),t&&Ss(n,"change",()=>{n.value=n.value.trim()}),e||(Ss(n,"compositionstart",$L),Ss(n,"compositionend",hS),Ss(n,"change",hS))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:r,trim:i,number:s}},o){if(n[ai]=Ro(o),n.composing)return;const a=(s||n.type==="number")&&!/^0\d/.test(n.value)?bp(n.value):n.value,l=e??"";a!==l&&(document.activeElement===n&&n.type!=="range"&&(r&&e===t||i&&n.value.trim()===l)||(n.value=l))}},tt={deep:!0,created(n,e,t){n[ai]=Ro(t),Ss(n,"change",()=>{const r=n._modelValue,i=xl(n),s=n.checked,o=n[ai];if(vt(r)){const a=nv(r,i),l=a!==-1;if(s&&!l)o(r.concat(i));else if(!s&&l){const d=[...r];d.splice(a,1),o(d)}}else if(Wl(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o(e3(n,s))})},mounted:mS,beforeUpdate(n,e,t){n[ai]=Ro(t),mS(n,e,t)}};function mS(n,{value:e},t){n._modelValue=e;let r;vt(e)?r=nv(e,t.props.value)>-1:Wl(e)?r=e.has(t.props.value):r=_a(e,e3(n,!0)),n.checked!==r&&(n.checked=r)}const WL={created(n,{value:e},t){n.checked=_a(e,t.props.value),n[ai]=Ro(t),Ss(n,"change",()=>{n[ai](xl(n))})},beforeUpdate(n,{value:e,oldValue:t},r){n[ai]=Ro(r),e!==t&&(n.checked=_a(e,r.props.value))}},Qt={deep:!0,created(n,{value:e,modifiers:{number:t}},r){const i=Wl(e);Ss(n,"change",()=>{const s=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?bp(xl(o)):xl(o));n[ai](n.multiple?i?new Set(s):s:s[0]),n._assigning=!0,We(()=>{n._assigning=!1})}),n[ai]=Ro(r)},mounted(n,{value:e}){fS(n,e)},beforeUpdate(n,e,t){n[ai]=Ro(t)},updated(n,{value:e}){n._assigning||fS(n,e)}};function fS(n,e){const t=n.multiple,r=vt(e);if(!(t&&!r&&!Wl(e))){for(let i=0,s=n.options.length;iString(d)===String(a)):o.selected=nv(e,a)>-1}else o.selected=e.has(a);else if(_a(xl(o),e)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function xl(n){return"_value"in n?n._value:n.value}function e3(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const KL=["ctrl","shift","alt","meta"],jL={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>KL.some(t=>n[`${t}Key`]&&!e.includes(t))},J=(n,e)=>{const t=n._withMods||(n._withMods={}),r=e.join(".");return t[r]||(t[r]=(i,...s)=>{for(let o=0;o{const t=n._withKeys||(n._withKeys={}),r=e.join(".");return t[r]||(t[r]=i=>{if(!("key"in i))return;const s=Io(i.key);if(e.some(o=>o===s||QL[o]===s))return n(i)})},XL=Ln({patchProp:UL},SL);let gS;function ZL(){return gS||(gS=KD(XL))}const JL=(...n)=>{const e=ZL().createApp(...n),{mount:t}=e;return e.mount=r=>{const i=t6(r);if(!i)return;const s=e._component;!kt(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=t(i,!1,e6(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function e6(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function t6(n){return yn(n)?document.querySelector(n):n}function n6(){return t3().__VUE_DEVTOOLS_GLOBAL_HOOK__}function t3(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const r6=typeof Proxy=="function",i6="devtools-plugin:setup",s6="plugin:settings:set";let Da,Wb;function o6(){var n;return Da!==void 0||(typeof window<"u"&&window.performance?(Da=!0,Wb=window.performance):typeof globalThis<"u"&&(!((n=globalThis.perf_hooks)===null||n===void 0)&&n.performance)?(Da=!0,Wb=globalThis.perf_hooks.performance):Da=!1),Da}function a6(){return o6()?Wb.now():Date.now()}class l6{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const o in e.settings){const a=e.settings[o];r[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},r);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}s=o},now(){return a6()}},t&&t.on(s6,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:a,args:l,resolve:d})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function c6(n,e){const t=n,r=t3(),i=n6(),s=r6&&t.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(i6,n,e);else{const o=s?new l6(t,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! + * vuex v4.1.0 + * (c) 2022 Evan You + * @license MIT + */var n3="store";function d6(n){return n===void 0&&(n=null),Gr(n!==null?n:n3)}function Ql(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function r3(n){return n!==null&&typeof n=="object"}function u6(n){return n&&typeof n.then=="function"}function p6(n,e){return function(){return n(e)}}function i3(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var r=e.indexOf(n);r>-1&&e.splice(r,1)}}function s3(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;Rh(n,t,[],n._modules.root,!0),bv(n,t,e)}function bv(n,e,t){var r=n._state,i=n._scope;n.getters={},n._makeLocalGettersCache=Object.create(null);var s=n._wrappedGetters,o={},a={},l=N5(!0);l.run(function(){Ql(s,function(d,u){o[u]=p6(d,n),a[u]=ht(function(){return o[u]()}),Object.defineProperty(n.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),n._state=yr({data:e}),n._scope=l,n.strict&&_6(n),r&&t&&n._withCommit(function(){r.data=null}),i&&i.stop()}function Rh(n,e,t,r,i){var s=!t.length,o=n._modules.getNamespace(t);if(r.namespaced&&(n._modulesNamespaceMap[o],n._modulesNamespaceMap[o]=r),!s&&!i){var a=vv(e,t.slice(0,-1)),l=t[t.length-1];n._withCommit(function(){a[l]=r.state})}var d=r.context=h6(n,o,t);r.forEachMutation(function(u,m){var f=o+m;m6(n,f,u,d)}),r.forEachAction(function(u,m){var f=u.root?m:o+m,g=u.handler||u;f6(n,f,g,d)}),r.forEachGetter(function(u,m){var f=o+m;g6(n,f,u,d)}),r.forEachChild(function(u,m){Rh(n,e,t.concat(m),u,i)})}function h6(n,e,t){var r=e==="",i={dispatch:r?n.dispatch:function(s,o,a){var l=Mp(s,o,a),d=l.payload,u=l.options,m=l.type;return(!u||!u.root)&&(m=e+m),n.dispatch(m,d)},commit:r?n.commit:function(s,o,a){var l=Mp(s,o,a),d=l.payload,u=l.options,m=l.type;(!u||!u.root)&&(m=e+m),n.commit(m,d,u)}};return Object.defineProperties(i,{getters:{get:r?function(){return n.getters}:function(){return o3(n,e)}},state:{get:function(){return vv(n.state,t)}}}),i}function o3(n,e){if(!n._makeLocalGettersCache[e]){var t={},r=e.length;Object.keys(n.getters).forEach(function(i){if(i.slice(0,r)===e){var s=i.slice(r);Object.defineProperty(t,s,{get:function(){return n.getters[i]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function m6(n,e,t,r){var i=n._mutations[e]||(n._mutations[e]=[]);i.push(function(o){t.call(n,r.state,o)})}function f6(n,e,t,r){var i=n._actions[e]||(n._actions[e]=[]);i.push(function(o){var a=t.call(n,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:n.getters,rootState:n.state},o);return u6(a)||(a=Promise.resolve(a)),n._devtoolHook?a.catch(function(l){throw n._devtoolHook.emit("vuex:error",l),l}):a})}function g6(n,e,t,r){n._wrappedGetters[e]||(n._wrappedGetters[e]=function(s){return t(r.state,r.getters,s.state,s.getters)})}function _6(n){Zn(function(){return n._state.data},function(){},{deep:!0,flush:"sync"})}function vv(n,e){return e.reduce(function(t,r){return t[r]},n)}function Mp(n,e,t){return r3(n)&&n.type&&(t=e,e=n,n=n.type),{type:n,payload:e,options:t}}var b6="vuex bindings",_S="vuex:mutations",Dm="vuex:actions",La="vuex",v6=0;function y6(n,e){c6({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[b6]},function(t){t.addTimelineLayer({id:_S,label:"Vuex Mutations",color:bS}),t.addTimelineLayer({id:Dm,label:"Vuex Actions",color:bS}),t.addInspector({id:La,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(r){if(r.app===n&&r.inspectorId===La)if(r.filter){var i=[];d3(i,e._modules.root,r.filter,""),r.rootNodes=i}else r.rootNodes=[c3(e._modules.root,"")]}),t.on.getInspectorState(function(r){if(r.app===n&&r.inspectorId===La){var i=r.nodeId;o3(e,i),r.state=x6(w6(e._modules,i),i==="root"?e.getters:e._makeLocalGettersCache,i)}}),t.on.editInspectorState(function(r){if(r.app===n&&r.inspectorId===La){var i=r.nodeId,s=r.path;i!=="root"&&(s=i.split("/").filter(Boolean).concat(s)),e._withCommit(function(){r.set(e._state.data,s,r.state.value)})}}),e.subscribe(function(r,i){var s={};r.payload&&(s.payload=r.payload),s.state=i,t.notifyComponentUpdate(),t.sendInspectorTree(La),t.sendInspectorState(La),t.addTimelineEvent({layerId:_S,event:{time:Date.now(),title:r.type,data:s}})}),e.subscribeAction({before:function(r,i){var s={};r.payload&&(s.payload=r.payload),r._id=v6++,r._time=Date.now(),s.state=i,t.addTimelineEvent({layerId:Dm,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:s}})},after:function(r,i){var s={},o=Date.now()-r._time;s.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},r.payload&&(s.payload=r.payload),s.state=i,t.addTimelineEvent({layerId:Dm,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:s}})}})})}var bS=8702998,E6=6710886,S6=16777215,a3={label:"namespaced",textColor:S6,backgroundColor:E6};function l3(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function c3(n,e){return{id:e||"root",label:l3(e),tags:n.namespaced?[a3]:[],children:Object.keys(n._children).map(function(t){return c3(n._children[t],e+t+"/")})}}function d3(n,e,t,r){r.includes(t)&&n.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:e.namespaced?[a3]:[]}),Object.keys(e._children).forEach(function(i){d3(n,e._children[i],t,r+i+"/")})}function x6(n,e,t){e=t==="root"?e:e[t];var r=Object.keys(e),i={state:Object.keys(n.state).map(function(o){return{key:o,editable:!0,value:n.state[o]}})};if(r.length){var s=T6(e);i.getters=Object.keys(s).map(function(o){return{key:o.endsWith("/")?l3(o):o,editable:!1,value:Kb(function(){return s[o]})}})}return i}function T6(n){var e={};return Object.keys(n).forEach(function(t){var r=t.split("/");if(r.length>1){var i=e,s=r.pop();r.forEach(function(o){i[o]||(i[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),i=i[o]._custom.value}),i[s]=Kb(function(){return n[t]})}else e[t]=Kb(function(){return n[t]})}),e}function w6(n,e){var t=e.split("/").filter(function(r){return r});return t.reduce(function(r,i,s){var o=r[i];if(!o)throw new Error('Missing module "'+i+'" for path "'+e+'".');return s===t.length-1?o:o._children},e==="root"?n:n.root._children)}function Kb(n){try{return n()}catch(e){return e}}var Ii=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},u3={namespaced:{configurable:!0}};u3.namespaced.get=function(){return!!this._rawModule.namespaced};Ii.prototype.addChild=function(e,t){this._children[e]=t};Ii.prototype.removeChild=function(e){delete this._children[e]};Ii.prototype.getChild=function(e){return this._children[e]};Ii.prototype.hasChild=function(e){return e in this._children};Ii.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};Ii.prototype.forEachChild=function(e){Ql(this._children,e)};Ii.prototype.forEachGetter=function(e){this._rawModule.getters&&Ql(this._rawModule.getters,e)};Ii.prototype.forEachAction=function(e){this._rawModule.actions&&Ql(this._rawModule.actions,e)};Ii.prototype.forEachMutation=function(e){this._rawModule.mutations&&Ql(this._rawModule.mutations,e)};Object.defineProperties(Ii.prototype,u3);var Ra=function(e){this.register([],e,!1)};Ra.prototype.get=function(e){return e.reduce(function(t,r){return t.getChild(r)},this.root)};Ra.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(r,i){return t=t.getChild(i),r+(t.namespaced?i+"/":"")},"")};Ra.prototype.update=function(e){p3([],this.root,e)};Ra.prototype.register=function(e,t,r){var i=this;r===void 0&&(r=!0);var s=new Ii(t,r);if(e.length===0)this.root=s;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],s)}t.modules&&Ql(t.modules,function(a,l){i.register(e.concat(l),a,r)})};Ra.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],i=t.getChild(r);i&&i.runtime&&t.removeChild(r)};Ra.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return t?t.hasChild(r):!1};function p3(n,e,t){if(e.update(t),t.modules)for(var r in t.modules){if(!e.getChild(r))return;p3(n.concat(r),e.getChild(r),t.modules[r])}}function C6(n){return new Ir(n)}var Ir=function(e){var t=this;e===void 0&&(e={});var r=e.plugins;r===void 0&&(r=[]);var i=e.strict;i===void 0&&(i=!1);var s=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ra(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=s;var o=this,a=this,l=a.dispatch,d=a.commit;this.dispatch=function(f,g){return l.call(o,f,g)},this.commit=function(f,g,h){return d.call(o,f,g,h)},this.strict=i;var u=this._modules.root.state;Rh(this,u,[],this._modules.root),bv(this,u),r.forEach(function(m){return m(t)})},yv={state:{configurable:!0}};Ir.prototype.install=function(e,t){e.provide(t||n3,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&y6(e,this)};yv.state.get=function(){return this._state.data};yv.state.set=function(n){};Ir.prototype.commit=function(e,t,r){var i=this,s=Mp(e,t,r),o=s.type,a=s.payload,l={type:o,payload:a},d=this._mutations[o];d&&(this._withCommit(function(){d.forEach(function(m){m(a)})}),this._subscribers.slice().forEach(function(u){return u(l,i.state)}))};Ir.prototype.dispatch=function(e,t){var r=this,i=Mp(e,t),s=i.type,o=i.payload,a={type:s,payload:o},l=this._actions[s];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,r.state)})}catch{}var d=l.length>1?Promise.all(l.map(function(u){return u(o)})):l[0](o);return new Promise(function(u,m){d.then(function(f){try{r._actionSubscribers.filter(function(g){return g.after}).forEach(function(g){return g.after(a,r.state)})}catch{}u(f)},function(f){try{r._actionSubscribers.filter(function(g){return g.error}).forEach(function(g){return g.error(a,r.state,f)})}catch{}m(f)})})}};Ir.prototype.subscribe=function(e,t){return i3(e,this._subscribers,t)};Ir.prototype.subscribeAction=function(e,t){var r=typeof e=="function"?{before:e}:e;return i3(r,this._actionSubscribers,t)};Ir.prototype.watch=function(e,t,r){var i=this;return Zn(function(){return e(i.state,i.getters)},t,Object.assign({},r))};Ir.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})};Ir.prototype.registerModule=function(e,t,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),Rh(this,this.state,e,this._modules.get(e),r.preserveState),bv(this,this.state)};Ir.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var r=vv(t.state,e.slice(0,-1));delete r[e[e.length-1]]}),s3(this)};Ir.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};Ir.prototype.hotUpdate=function(e){this._modules.update(e),s3(this,!0)};Ir.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t};Object.defineProperties(Ir.prototype,yv);var A6=N6(function(n,e){var t={};return R6(e).forEach(function(r){var i=r.key,s=r.val;t[i]=function(){var a=this.$store.state,l=this.$store.getters;if(n){var d=k6(this.$store,"mapState",n);if(!d)return;a=d.context.state,l=d.context.getters}return typeof s=="function"?s.call(this,a,l):a[s]},t[i].vuex=!0}),t});function R6(n){return M6(n)?Array.isArray(n)?n.map(function(e){return{key:e,val:e}}):Object.keys(n).map(function(e){return{key:e,val:n[e]}}):[]}function M6(n){return Array.isArray(n)||r3(n)}function N6(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function k6(n,e,t){var r=n._modulesNamespaceMap[t];return r}function h3(n,e){return function(){return n.apply(e,arguments)}}const{toString:I6}=Object.prototype,{getPrototypeOf:Ev}=Object,Mh=(n=>e=>{const t=I6.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Oi=n=>(n=n.toLowerCase(),e=>Mh(e)===n),Nh=n=>e=>typeof e===n,{isArray:Xl}=Array,ad=Nh("undefined");function O6(n){return n!==null&&!ad(n)&&n.constructor!==null&&!ad(n.constructor)&&zr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const m3=Oi("ArrayBuffer");function D6(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&m3(n.buffer),e}const L6=Nh("string"),zr=Nh("function"),f3=Nh("number"),kh=n=>n!==null&&typeof n=="object",P6=n=>n===!0||n===!1,rp=n=>{if(Mh(n)!=="object")return!1;const e=Ev(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},F6=Oi("Date"),U6=Oi("File"),B6=Oi("Blob"),G6=Oi("FileList"),z6=n=>kh(n)&&zr(n.pipe),V6=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||zr(n.append)&&((e=Mh(n))==="formdata"||e==="object"&&zr(n.toString)&&n.toString()==="[object FormData]"))},H6=Oi("URLSearchParams"),[q6,Y6,$6,W6]=["ReadableStream","Request","Response","Headers"].map(Oi),K6=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wd(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,i;if(typeof n!="object"&&(n=[n]),Xl(n))for(r=0,i=n.length;r0;)if(i=t[r],e===i.toLowerCase())return i;return null}const sa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_3=n=>!ad(n)&&n!==sa;function jb(){const{caseless:n}=_3(this)&&this||{},e={},t=(r,i)=>{const s=n&&g3(e,i)||i;rp(e[s])&&rp(r)?e[s]=jb(e[s],r):rp(r)?e[s]=jb({},r):Xl(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r(wd(e,(i,s)=>{t&&zr(i)?n[s]=h3(i,t):n[s]=i},{allOwnKeys:r}),n),Q6=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),X6=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},Z6=(n,e,t,r)=>{let i,s,o;const a={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),s=i.length;s-- >0;)o=i[s],(!r||r(o,n,e))&&!a[o]&&(e[o]=n[o],a[o]=!0);n=t!==!1&&Ev(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},J6=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},eP=n=>{if(!n)return null;if(Xl(n))return n;let e=n.length;if(!f3(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},tP=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Ev(Uint8Array)),nP=(n,e)=>{const r=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(n,s[0],s[1])}},rP=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},iP=Oi("HTMLFormElement"),sP=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,i){return r.toUpperCase()+i}),vS=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),oP=Oi("RegExp"),b3=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};wd(t,(i,s)=>{let o;(o=e(i,s,n))!==!1&&(r[s]=o||i)}),Object.defineProperties(n,r)},aP=n=>{b3(n,(e,t)=>{if(zr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(zr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},lP=(n,e)=>{const t={},r=i=>{i.forEach(s=>{t[s]=!0})};return Xl(n)?r(n):r(String(n).split(e)),t},cP=()=>{},dP=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Lm="abcdefghijklmnopqrstuvwxyz",yS="0123456789",v3={DIGIT:yS,ALPHA:Lm,ALPHA_DIGIT:Lm+Lm.toUpperCase()+yS},uP=(n=16,e=v3.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function pP(n){return!!(n&&zr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const hP=n=>{const e=new Array(10),t=(r,i)=>{if(kh(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=Xl(r)?[]:{};return wd(r,(o,a)=>{const l=t(o,i+1);!ad(l)&&(s[a]=l)}),e[i]=void 0,s}}return r};return t(n,0)},mP=Oi("AsyncFunction"),fP=n=>n&&(kh(n)||zr(n))&&zr(n.then)&&zr(n.catch),y3=((n,e)=>n?setImmediate:e?((t,r)=>(sa.addEventListener("message",({source:i,data:s})=>{i===sa&&s===t&&r.length&&r.shift()()},!1),i=>{r.push(i),sa.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",zr(sa.postMessage)),gP=typeof queueMicrotask<"u"?queueMicrotask.bind(sa):typeof process<"u"&&process.nextTick||y3,Ie={isArray:Xl,isArrayBuffer:m3,isBuffer:O6,isFormData:V6,isArrayBufferView:D6,isString:L6,isNumber:f3,isBoolean:P6,isObject:kh,isPlainObject:rp,isReadableStream:q6,isRequest:Y6,isResponse:$6,isHeaders:W6,isUndefined:ad,isDate:F6,isFile:U6,isBlob:B6,isRegExp:oP,isFunction:zr,isStream:z6,isURLSearchParams:H6,isTypedArray:tP,isFileList:G6,forEach:wd,merge:jb,extend:j6,trim:K6,stripBOM:Q6,inherits:X6,toFlatObject:Z6,kindOf:Mh,kindOfTest:Oi,endsWith:J6,toArray:eP,forEachEntry:nP,matchAll:rP,isHTMLForm:iP,hasOwnProperty:vS,hasOwnProp:vS,reduceDescriptors:b3,freezeMethods:aP,toObjectSet:lP,toCamelCase:sP,noop:cP,toFiniteNumber:dP,findKey:g3,global:sa,isContextDefined:_3,ALPHABET:v3,generateString:uP,isSpecCompliantForm:pP,toJSONObject:hP,isAsyncFn:mP,isThenable:fP,setImmediate:y3,asap:gP};function Ft(n,e,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Ie.inherits(Ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ie.toJSONObject(this.config),code:this.code,status:this.status}}});const E3=Ft.prototype,S3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{S3[n]={value:n}});Object.defineProperties(Ft,S3);Object.defineProperty(E3,"isAxiosError",{value:!0});Ft.from=(n,e,t,r,i,s)=>{const o=Object.create(E3);return Ie.toFlatObject(n,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ft.call(o,n.message,e,t,r,i),o.cause=n,o.name=n.name,s&&Object.assign(o,s),o};const _P=null;function Qb(n){return Ie.isPlainObject(n)||Ie.isArray(n)}function x3(n){return Ie.endsWith(n,"[]")?n.slice(0,-2):n}function ES(n,e,t){return n?n.concat(e).map(function(i,s){return i=x3(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}function bP(n){return Ie.isArray(n)&&!n.some(Qb)}const vP=Ie.toFlatObject(Ie,{},null,function(e){return/^is[A-Z]/.test(e)});function Ih(n,e,t){if(!Ie.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=Ie.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!Ie.isUndefined(b[v])});const r=t.metaTokens,i=t.visitor||u,s=t.dots,o=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&Ie.isSpecCompliantForm(e);if(!Ie.isFunction(i))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(Ie.isDate(h))return h.toISOString();if(!l&&Ie.isBlob(h))throw new Ft("Blob is not supported. Use a Buffer instead.");return Ie.isArrayBuffer(h)||Ie.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,v,b){let _=h;if(h&&!b&&typeof h=="object"){if(Ie.endsWith(v,"{}"))v=r?v:v.slice(0,-2),h=JSON.stringify(h);else if(Ie.isArray(h)&&bP(h)||(Ie.isFileList(h)||Ie.endsWith(v,"[]"))&&(_=Ie.toArray(h)))return v=x3(v),_.forEach(function(E,x){!(Ie.isUndefined(E)||E===null)&&e.append(o===!0?ES([v],x,s):o===null?v:v+"[]",d(E))}),!1}return Qb(h)?!0:(e.append(ES(b,v,s),d(h)),!1)}const m=[],f=Object.assign(vP,{defaultVisitor:u,convertValue:d,isVisitable:Qb});function g(h,v){if(!Ie.isUndefined(h)){if(m.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));m.push(h),Ie.forEach(h,function(_,y){(!(Ie.isUndefined(_)||_===null)&&i.call(e,_,Ie.isString(y)?y.trim():y,v,f))===!0&&g(_,v?v.concat(y):[y])}),m.pop()}}if(!Ie.isObject(n))throw new TypeError("data must be an object");return g(n),e}function SS(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Sv(n,e){this._pairs=[],n&&Ih(n,this,e)}const T3=Sv.prototype;T3.append=function(e,t){this._pairs.push([e,t])};T3.toString=function(e){const t=e?function(r){return e.call(this,r,SS)}:SS;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function yP(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w3(n,e,t){if(!e)return n;const r=t&&t.encode||yP,i=t&&t.serialize;let s;if(i?s=i(e,t):s=Ie.isURLSearchParams(e)?e.toString():new Sv(e,t).toString(r),s){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n}class xS{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ie.forEach(this.handlers,function(r){r!==null&&e(r)})}}const C3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},EP=typeof URLSearchParams<"u"?URLSearchParams:Sv,SP=typeof FormData<"u"?FormData:null,xP=typeof Blob<"u"?Blob:null,TP={isBrowser:!0,classes:{URLSearchParams:EP,FormData:SP,Blob:xP},protocols:["http","https","file","blob","url","data"]},xv=typeof window<"u"&&typeof document<"u",Xb=typeof navigator=="object"&&navigator||void 0,wP=xv&&(!Xb||["ReactNative","NativeScript","NS"].indexOf(Xb.product)<0),CP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",AP=xv&&window.location.href||"http://localhost",RP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xv,hasStandardBrowserEnv:wP,hasStandardBrowserWebWorkerEnv:CP,navigator:Xb,origin:AP},Symbol.toStringTag,{value:"Module"})),Ar={...RP,...TP};function MP(n,e){return Ih(n,new Ar.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,s){return Ar.isNode&&Ie.isBuffer(t)?(this.append(r,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function NP(n){return Ie.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function kP(n){const e={},t=Object.keys(n);let r;const i=t.length;let s;for(r=0;r=t.length;return o=!o&&Ie.isArray(i)?i.length:o,l?(Ie.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!Ie.isObject(i[o]))&&(i[o]=[]),e(t,r,i[o],s)&&Ie.isArray(i[o])&&(i[o]=kP(i[o])),!a)}if(Ie.isFormData(n)&&Ie.isFunction(n.entries)){const t={};return Ie.forEachEntry(n,(r,i)=>{e(NP(r),i,t,0)}),t}return null}function IP(n,e,t){if(Ie.isString(n))try{return(e||JSON.parse)(n),Ie.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(n)}const Cd={transitional:C3,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,s=Ie.isObject(e);if(s&&Ie.isHTMLForm(e)&&(e=new FormData(e)),Ie.isFormData(e))return i?JSON.stringify(A3(e)):e;if(Ie.isArrayBuffer(e)||Ie.isBuffer(e)||Ie.isStream(e)||Ie.isFile(e)||Ie.isBlob(e)||Ie.isReadableStream(e))return e;if(Ie.isArrayBufferView(e))return e.buffer;if(Ie.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return MP(e,this.formSerializer).toString();if((a=Ie.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ih(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),IP(e)):e}],transformResponse:[function(e){const t=this.transitional||Cd.transitional,r=t&&t.forcedJSONParsing,i=this.responseType==="json";if(Ie.isResponse(e)||Ie.isReadableStream(e))return e;if(e&&Ie.isString(e)&&(r&&!this.responseType||i)){const o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?Ft.from(a,Ft.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ar.classes.FormData,Blob:Ar.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ie.forEach(["delete","get","head","post","put","patch"],n=>{Cd.headers[n]={}});const OP=Ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),DP=n=>{const e={};let t,r,i;return n&&n.split(` +`).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!t||e[t]&&OP[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},TS=Symbol("internals");function gc(n){return n&&String(n).trim().toLowerCase()}function ip(n){return n===!1||n==null?n:Ie.isArray(n)?n.map(ip):String(n)}function LP(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const PP=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Pm(n,e,t,r,i){if(Ie.isFunction(r))return r.call(this,e,t);if(i&&(e=t),!!Ie.isString(e)){if(Ie.isString(r))return e.indexOf(r)!==-1;if(Ie.isRegExp(r))return r.test(e)}}function FP(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function UP(n,e){const t=Ie.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}class Rr{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function s(a,l,d){const u=gc(l);if(!u)throw new Error("header name must be a non-empty string");const m=Ie.findKey(i,u);(!m||i[m]===void 0||d===!0||d===void 0&&i[m]!==!1)&&(i[m||l]=ip(a))}const o=(a,l)=>Ie.forEach(a,(d,u)=>s(d,u,l));if(Ie.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Ie.isString(e)&&(e=e.trim())&&!PP(e))o(DP(e),t);else if(Ie.isHeaders(e))for(const[a,l]of e.entries())s(l,a,r);else e!=null&&s(t,e,r);return this}get(e,t){if(e=gc(e),e){const r=Ie.findKey(this,e);if(r){const i=this[r];if(!t)return i;if(t===!0)return LP(i);if(Ie.isFunction(t))return t.call(this,i,r);if(Ie.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gc(e),e){const r=Ie.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Pm(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let i=!1;function s(o){if(o=gc(o),o){const a=Ie.findKey(r,o);a&&(!t||Pm(r,r[a],a,t))&&(delete r[a],i=!0)}}return Ie.isArray(e)?e.forEach(s):s(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const s=t[r];(!e||Pm(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const t=this,r={};return Ie.forEach(this,(i,s)=>{const o=Ie.findKey(r,s);if(o){t[o]=ip(i),delete t[s];return}const a=e?FP(s):String(s).trim();a!==s&&delete t[s],t[a]=ip(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ie.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=e&&Ie.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[TS]=this[TS]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=gc(o);r[a]||(UP(i,o),r[a]=!0)}return Ie.isArray(e)?e.forEach(s):s(e),this}}Rr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ie.reduceDescriptors(Rr.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});Ie.freezeMethods(Rr);function Fm(n,e){const t=this||Cd,r=e||t,i=Rr.from(r.headers);let s=r.data;return Ie.forEach(n,function(a){s=a.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function R3(n){return!!(n&&n.__CANCEL__)}function Zl(n,e,t){Ft.call(this,n??"canceled",Ft.ERR_CANCELED,e,t),this.name="CanceledError"}Ie.inherits(Zl,Ft,{__CANCEL__:!0});function M3(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new Ft("Request failed with status code "+t.status,[Ft.ERR_BAD_REQUEST,Ft.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function BP(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function GP(n,e){n=n||10;const t=new Array(n),r=new Array(n);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(l){const d=Date.now(),u=r[s];o||(o=d),t[i]=l,r[i]=d;let m=s,f=0;for(;m!==i;)f+=t[m++],m=m%n;if(i=(i+1)%n,i===s&&(s=(s+1)%n),d-o{t=u,i=null,s&&(clearTimeout(s),s=null),n.apply(null,d)};return[(...d)=>{const u=Date.now(),m=u-t;m>=r?o(d,u):(i=d,s||(s=setTimeout(()=>{s=null,o(i)},r-m)))},()=>i&&o(i)]}const Np=(n,e,t=3)=>{let r=0;const i=GP(50,250);return zP(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,d=i(l),u=o<=a;r=o;const m={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a&&u?(a-o)/d:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(m)},t)},wS=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},CS=n=>(...e)=>Ie.asap(()=>n(...e)),VP=Ar.hasStandardBrowserEnv?function(){const e=Ar.navigator&&/(msie|trident)/i.test(Ar.navigator.userAgent),t=document.createElement("a");let r;function i(s){let o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=i(window.location.href),function(o){const a=Ie.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),HP=Ar.hasStandardBrowserEnv?{write(n,e,t,r,i,s){const o=[n+"="+encodeURIComponent(e)];Ie.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),Ie.isString(r)&&o.push("path="+r),Ie.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qP(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function YP(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function N3(n,e){return n&&!qP(e)?YP(n,e):e}const AS=n=>n instanceof Rr?{...n}:n;function va(n,e){e=e||{};const t={};function r(d,u,m){return Ie.isPlainObject(d)&&Ie.isPlainObject(u)?Ie.merge.call({caseless:m},d,u):Ie.isPlainObject(u)?Ie.merge({},u):Ie.isArray(u)?u.slice():u}function i(d,u,m){if(Ie.isUndefined(u)){if(!Ie.isUndefined(d))return r(void 0,d,m)}else return r(d,u,m)}function s(d,u){if(!Ie.isUndefined(u))return r(void 0,u)}function o(d,u){if(Ie.isUndefined(u)){if(!Ie.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function a(d,u,m){if(m in e)return r(d,u);if(m in n)return r(void 0,d)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(d,u)=>i(AS(d),AS(u),!0)};return Ie.forEach(Object.keys(Object.assign({},n,e)),function(u){const m=l[u]||i,f=m(n[u],e[u],u);Ie.isUndefined(f)&&m!==a||(t[u]=f)}),t}const k3=n=>{const e=va({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=Rr.from(o),e.url=w3(N3(e.baseURL,e.url),n.params,n.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(Ie.isFormData(t)){if(Ar.hasStandardBrowserEnv||Ar.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[d,...u]=l?l.split(";").map(m=>m.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Ar.hasStandardBrowserEnv&&(r&&Ie.isFunction(r)&&(r=r(e)),r||r!==!1&&VP(e.url))){const d=i&&s&&HP.read(s);d&&o.set(i,d)}return e},$P=typeof XMLHttpRequest<"u",WP=$P&&function(n){return new Promise(function(t,r){const i=k3(n);let s=i.data;const o=Rr.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:d}=i,u,m,f,g,h;function v(){g&&g(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function _(){if(!b)return;const E=Rr.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),A={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:E,config:n,request:b};M3(function(N){t(N),v()},function(N){r(N),v()},A),b=null}"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(_)},b.onabort=function(){b&&(r(new Ft("Request aborted",Ft.ECONNABORTED,n,b)),b=null)},b.onerror=function(){r(new Ft("Network Error",Ft.ERR_NETWORK,n,b)),b=null},b.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||C3;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new Ft(x,A.clarifyTimeoutError?Ft.ETIMEDOUT:Ft.ECONNABORTED,n,b)),b=null},s===void 0&&o.setContentType(null),"setRequestHeader"in b&&Ie.forEach(o.toJSON(),function(x,A){b.setRequestHeader(A,x)}),Ie.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),a&&a!=="json"&&(b.responseType=i.responseType),d&&([f,h]=Np(d,!0),b.addEventListener("progress",f)),l&&b.upload&&([m,g]=Np(l),b.upload.addEventListener("progress",m),b.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(u=E=>{b&&(r(!E||E.type?new Zl(null,n,b):E),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const y=BP(i.url);if(y&&Ar.protocols.indexOf(y)===-1){r(new Ft("Unsupported protocol "+y+":",Ft.ERR_BAD_REQUEST,n));return}b.send(s||null)})},KP=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,i;const s=function(d){if(!i){i=!0,a();const u=d instanceof Error?d:this.reason;r.abort(u instanceof Ft?u:new Zl(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{o=null,s(new Ft(`timeout ${e} of ms exceeded`,Ft.ETIMEDOUT))},e);const a=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),n=null)};n.forEach(d=>d.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>Ie.asap(a),l}},jP=function*(n,e){let t=n.byteLength;if(t{const i=QP(n,e);let s=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:d,value:u}=await i.next();if(d){a(),l.close();return}let m=u.byteLength;if(t){let f=s+=m;t(f)}l.enqueue(new Uint8Array(u))}catch(d){throw a(d),d}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Oh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",I3=Oh&&typeof ReadableStream=="function",ZP=Oh&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),O3=(n,...e)=>{try{return!!n(...e)}catch{return!1}},JP=I3&&O3(()=>{let n=!1;const e=new Request(Ar.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),MS=64*1024,Zb=I3&&O3(()=>Ie.isReadableStream(new Response("").body)),kp={stream:Zb&&(n=>n.body)};Oh&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!kp[e]&&(kp[e]=Ie.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new Ft(`Response type '${e}' is not supported`,Ft.ERR_NOT_SUPPORT,r)})})})(new Response);const e7=async n=>{if(n==null)return 0;if(Ie.isBlob(n))return n.size;if(Ie.isSpecCompliantForm(n))return(await new Request(Ar.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(Ie.isArrayBufferView(n)||Ie.isArrayBuffer(n))return n.byteLength;if(Ie.isURLSearchParams(n)&&(n=n+""),Ie.isString(n))return(await ZP(n)).byteLength},t7=async(n,e)=>{const t=Ie.toFiniteNumber(n.getContentLength());return t??e7(e)},n7=Oh&&(async n=>{let{url:e,method:t,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:d,headers:u,withCredentials:m="same-origin",fetchOptions:f}=k3(n);d=d?(d+"").toLowerCase():"text";let g=KP([i,s&&s.toAbortSignal()],o),h;const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(l&&JP&&t!=="get"&&t!=="head"&&(b=await t7(u,r))!==0){let A=new Request(e,{method:"POST",body:r,duplex:"half"}),w;if(Ie.isFormData(r)&&(w=A.headers.get("content-type"))&&u.setContentType(w),A.body){const[N,L]=wS(b,Np(CS(l)));r=RS(A.body,MS,N,L)}}Ie.isString(m)||(m=m?"include":"omit");const _="credentials"in Request.prototype;h=new Request(e,{...f,signal:g,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:_?m:void 0});let y=await fetch(h);const E=Zb&&(d==="stream"||d==="response");if(Zb&&(a||E&&v)){const A={};["status","statusText","headers"].forEach(C=>{A[C]=y[C]});const w=Ie.toFiniteNumber(y.headers.get("content-length")),[N,L]=a&&wS(w,Np(CS(a),!0))||[];y=new Response(RS(y.body,MS,N,()=>{L&&L(),v&&v()}),A)}d=d||"text";let x=await kp[Ie.findKey(kp,d)||"text"](y,n);return!E&&v&&v(),await new Promise((A,w)=>{M3(A,w,{data:x,headers:Rr.from(y.headers),status:y.status,statusText:y.statusText,config:n,request:h})})}catch(_){throw v&&v(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Ft("Network Error",Ft.ERR_NETWORK,n,h),{cause:_.cause||_}):Ft.from(_,_&&_.code,n,h)}}),Jb={http:_P,xhr:WP,fetch:n7};Ie.forEach(Jb,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const NS=n=>`- ${n}`,r7=n=>Ie.isFunction(n)||n===null||n===!1,D3={getAdapter:n=>{n=Ie.isArray(n)?n:[n];const{length:e}=n;let t,r;const i={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since : +`+s.map(NS).join(` +`):" "+NS(s[0]):"as no adapter specified";throw new Ft("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Jb};function Um(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Zl(null,n)}function kS(n){return Um(n),n.headers=Rr.from(n.headers),n.data=Fm.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),D3.getAdapter(n.adapter||Cd.adapter)(n).then(function(r){return Um(n),r.data=Fm.call(n,n.transformResponse,r),r.headers=Rr.from(r.headers),r},function(r){return R3(r)||(Um(n),r&&r.response&&(r.response.data=Fm.call(n,n.transformResponse,r.response),r.response.headers=Rr.from(r.response.headers))),Promise.reject(r)})}const L3="1.7.7",Tv={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Tv[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const IS={};Tv.transitional=function(e,t,r){function i(s,o){return"[Axios v"+L3+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(e===!1)throw new Ft(i(o," has been removed"+(t?" in "+t:"")),Ft.ERR_DEPRECATED);return t&&!IS[o]&&(IS[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,a):!0}};function i7(n,e,t){if(typeof n!="object")throw new Ft("options must be an object",Ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const s=r[i],o=e[s];if(o){const a=n[s],l=a===void 0||o(a,s,n);if(l!==!0)throw new Ft("option "+s+" must be "+l,Ft.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Ft("Unknown option "+s,Ft.ERR_BAD_OPTION)}}const e1={assertOptions:i7,validators:Tv},Ws=e1.validators;class da{constructor(e){this.defaults=e,this.interceptors={request:new xS,response:new xS}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+s):r.stack=s}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=va(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:s}=t;r!==void 0&&e1.assertOptions(r,{silentJSONParsing:Ws.transitional(Ws.boolean),forcedJSONParsing:Ws.transitional(Ws.boolean),clarifyTimeoutError:Ws.transitional(Ws.boolean)},!1),i!=null&&(Ie.isFunction(i)?t.paramsSerializer={serialize:i}:e1.assertOptions(i,{encode:Ws.function,serialize:Ws.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&Ie.merge(s.common,s[t.method]);s&&Ie.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),t.headers=Rr.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const d=[];this.interceptors.response.forEach(function(v){d.push(v.fulfilled,v.rejected)});let u,m=0,f;if(!l){const h=[kS.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,d),f=h.length,u=Promise.resolve(t);m{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},e(function(s,o,a){r.reason||(r.reason=new Zl(s,o,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new wv(function(i){e=i}),cancel:e}}}function s7(n){return function(t){return n.apply(null,t)}}function o7(n){return Ie.isObject(n)&&n.isAxiosError===!0}const t1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(t1).forEach(([n,e])=>{t1[e]=n});function P3(n){const e=new da(n),t=h3(da.prototype.request,e);return Ie.extend(t,da.prototype,e,{allOwnKeys:!0}),Ie.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return P3(va(n,i))},t}const de=P3(Cd);de.Axios=da;de.CanceledError=Zl;de.CancelToken=wv;de.isCancel=R3;de.VERSION=L3;de.toFormData=Ih;de.AxiosError=Ft;de.Cancel=de.CanceledError;de.all=function(e){return Promise.all(e)};de.spread=s7;de.isAxiosError=o7;de.mergeConfig=va;de.AxiosHeaders=Rr;de.formToJSON=n=>A3(Ie.isHTMLForm(n)?new FormData(n):n);de.getAdapter=D3.getAdapter;de.HttpStatusCode=t1;de.default=de;/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const rl=typeof document<"u";function F3(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function a7(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&F3(n.default)}const rn=Object.assign;function Bm(n,e){const t={};for(const r in e){const i=e[r];t[r]=ki(i)?i.map(n):n(i)}return t}const Gc=()=>{},ki=Array.isArray,U3=/#/g,l7=/&/g,c7=/\//g,d7=/=/g,u7=/\?/g,B3=/\+/g,p7=/%5B/g,h7=/%5D/g,G3=/%5E/g,m7=/%60/g,z3=/%7B/g,f7=/%7C/g,V3=/%7D/g,g7=/%20/g;function Cv(n){return encodeURI(""+n).replace(f7,"|").replace(p7,"[").replace(h7,"]")}function _7(n){return Cv(n).replace(z3,"{").replace(V3,"}").replace(G3,"^")}function n1(n){return Cv(n).replace(B3,"%2B").replace(g7,"+").replace(U3,"%23").replace(l7,"%26").replace(m7,"`").replace(z3,"{").replace(V3,"}").replace(G3,"^")}function b7(n){return n1(n).replace(d7,"%3D")}function v7(n){return Cv(n).replace(U3,"%23").replace(u7,"%3F")}function y7(n){return n==null?"":v7(n).replace(c7,"%2F")}function ld(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const E7=/\/$/,S7=n=>n.replace(E7,"");function Gm(n,e,t="/"){let r,i={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),i=n(s)),a>-1&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=C7(r??e,t),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:ld(o)}}function x7(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function OS(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function T7(n,e,t){const r=e.matched.length-1,i=t.matched.length-1;return r>-1&&r===i&&Tl(e.matched[r],t.matched[i])&&H3(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Tl(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function H3(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!w7(n[t],e[t]))return!1;return!0}function w7(n,e){return ki(n)?DS(n,e):ki(e)?DS(e,n):n===e}function DS(n,e){return ki(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function C7(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),r=n.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=t.length-1,o,a;for(o=0;o1&&s--;else break;return t.slice(0,s).join("/")+"/"+r.slice(o).join("/")}const Ks={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var cd;(function(n){n.pop="pop",n.push="push"})(cd||(cd={}));var zc;(function(n){n.back="back",n.forward="forward",n.unknown=""})(zc||(zc={}));function A7(n){if(!n)if(rl){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),S7(n)}const R7=/^[^#]+#/;function M7(n,e){return n.replace(R7,"#")+e}function N7(n,e){const t=document.documentElement.getBoundingClientRect(),r=n.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const Dh=()=>({left:window.scrollX,top:window.scrollY});function k7(n){let e;if("el"in n){const t=n.el,r=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=N7(i,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function LS(n,e){return(history.state?history.state.position-e:-1)+n}const r1=new Map;function I7(n,e){r1.set(n,e)}function O7(n){const e=r1.get(n);return r1.delete(n),e}let D7=()=>location.protocol+"//"+location.host;function q3(n,e){const{pathname:t,search:r,hash:i}=e,s=n.indexOf("#");if(s>-1){let a=i.includes(n.slice(s))?n.slice(s).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),OS(l,"")}return OS(t,n)+r+i}function L7(n,e,t,r){let i=[],s=[],o=null;const a=({state:f})=>{const g=q3(n,location),h=t.value,v=e.value;let b=0;if(f){if(t.value=g,e.value=f,o&&o===h){o=null;return}b=v?f.position-v.position:0}else r(g);i.forEach(_=>{_(t.value,h,{delta:b,type:cd.pop,direction:b?b>0?zc.forward:zc.back:zc.unknown})})};function l(){o=t.value}function d(f){i.push(f);const g=()=>{const h=i.indexOf(f);h>-1&&i.splice(h,1)};return s.push(g),g}function u(){const{history:f}=window;f.state&&f.replaceState(rn({},f.state,{scroll:Dh()}),"")}function m(){for(const f of s)f();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:d,destroy:m}}function PS(n,e,t,r=!1,i=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:i?Dh():null}}function P7(n){const{history:e,location:t}=window,r={value:q3(n,t)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,d,u){const m=n.indexOf("#"),f=m>-1?(t.host&&document.querySelector("base")?n:n.slice(m))+l:D7()+n+l;try{e[u?"replaceState":"pushState"](d,"",f),i.value=d}catch(g){console.error(g),t[u?"replace":"assign"](f)}}function o(l,d){const u=rn({},e.state,PS(i.value.back,l,i.value.forward,!0),d,{position:i.value.position});s(l,u,!0),r.value=l}function a(l,d){const u=rn({},i.value,e.state,{forward:l,scroll:Dh()});s(u.current,u,!0);const m=rn({},PS(r.value,l,null),{position:u.position+1},d);s(l,m,!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function F7(n){n=A7(n);const e=P7(n),t=L7(n,e.state,e.location,e.replace);function r(s,o=!0){o||t.pauseListeners(),history.go(s)}const i=rn({location:"",base:n,go:r,createHref:M7.bind(null,n)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function U7(n){return typeof n=="string"||n&&typeof n=="object"}function Y3(n){return typeof n=="string"||typeof n=="symbol"}const $3=Symbol("");var FS;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(FS||(FS={}));function wl(n,e){return rn(new Error,{type:n,[$3]:!0},e)}function cs(n,e){return n instanceof Error&&$3 in n&&(e==null||!!(n.type&e))}const US="[^/]+?",B7={sensitive:!1,strict:!1,start:!0,end:!0},G7=/[.+*?^${}()[\]/\\]/g;function z7(n,e){const t=rn({},B7,e),r=[];let i=t.start?"^":"";const s=[];for(const d of n){const u=d.length?[]:[90];t.strict&&!d.length&&(i+="/");for(let m=0;me.length?e.length===1&&e[0]===80?1:-1:0}function W3(n,e){let t=0;const r=n.score,i=e.score;for(;t0&&e[e.length-1]<0}const H7={type:0,value:""},q7=/[a-zA-Z0-9_]/;function Y7(n){if(!n)return[[]];if(n==="/")return[[H7]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(g){throw new Error(`ERR (${t})/"${d}": ${g}`)}let t=0,r=t;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,d="",u="";function m(){d&&(t===0?s.push({type:0,value:d}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;a{o(E)}:Gc}function o(m){if(Y3(m)){const f=r.get(m);f&&(r.delete(m),t.splice(t.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=t.indexOf(m);f>-1&&(t.splice(f,1),m.record.name&&r.delete(m.record.name),m.children.forEach(o),m.alias.forEach(o))}}function a(){return t}function l(m){const f=Q7(m,t);t.splice(f,0,m),m.record.name&&!VS(m)&&r.set(m.record.name,m)}function d(m,f){let g,h={},v,b;if("name"in m&&m.name){if(g=r.get(m.name),!g)throw wl(1,{location:m});b=g.record.name,h=rn(GS(f.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),m.params&&GS(m.params,g.keys.map(E=>E.name))),v=g.stringify(h)}else if(m.path!=null)v=m.path,g=t.find(E=>E.re.test(v)),g&&(h=g.parse(v),b=g.record.name);else{if(g=f.name?r.get(f.name):t.find(E=>E.re.test(f.path)),!g)throw wl(1,{location:m,currentLocation:f});b=g.record.name,h=rn({},f.params,m.params),v=g.stringify(h)}const _=[];let y=g;for(;y;)_.unshift(y.record),y=y.parent;return{name:b,path:v,params:h,matched:_,meta:j7(_)}}n.forEach(m=>s(m));function u(){t.length=0,r.clear()}return{addRoute:s,resolve:d,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function GS(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function zS(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:K7(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function K7(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const r in n.components)e[r]=typeof t=="object"?t[r]:t;return e}function VS(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function j7(n){return n.reduce((e,t)=>rn(e,t.meta),{})}function HS(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}function Q7(n,e){let t=0,r=e.length;for(;t!==r;){const s=t+r>>1;W3(n,e[s])<0?r=s:t=s+1}const i=X7(n);return i&&(r=e.lastIndexOf(i,r-1)),r}function X7(n){let e=n;for(;e=e.parent;)if(K3(e)&&W3(n,e)===0)return e}function K3({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function Z7(n){const e={};if(n===""||n==="?")return e;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let i=0;is&&n1(s)):[r&&n1(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function J7(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=ki(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const e8=Symbol(""),YS=Symbol(""),Av=Symbol(""),Rv=Symbol(""),i1=Symbol("");function _c(){let n=[];function e(r){return n.push(r),()=>{const i=n.indexOf(r);i>-1&&n.splice(i,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function ao(n,e,t,r,i,s=o=>o()){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const d=f=>{f===!1?l(wl(4,{from:t,to:e})):f instanceof Error?l(f):U7(f)?l(wl(2,{from:e,to:f})):(o&&r.enterCallbacks[i]===o&&typeof f=="function"&&o.push(f),a())},u=s(()=>n.call(r&&r.instances[i],e,t,d));let m=Promise.resolve(u);n.length<3&&(m=m.then(d)),m.catch(f=>l(f))})}function zm(n,e,t,r,i=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(F3(l)){const u=(l.__vccOpts||l)[e];u&&s.push(ao(u,t,r,o,a,i))}else{let d=l();s.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const m=a7(u)?u.default:u;o.mods[a]=u,o.components[a]=m;const g=(m.__vccOpts||m)[e];return g&&ao(g,t,r,o,a,i)()}))}}return s}function $S(n){const e=Gr(Av),t=Gr(Rv),r=ht(()=>{const l=Pt(n.to);return e.resolve(l)}),i=ht(()=>{const{matched:l}=r.value,{length:d}=l,u=l[d-1],m=t.matched;if(!u||!m.length)return-1;const f=m.findIndex(Tl.bind(null,u));if(f>-1)return f;const g=WS(l[d-2]);return d>1&&WS(u)===g&&m[m.length-1].path!==g?m.findIndex(Tl.bind(null,l[d-2])):f}),s=ht(()=>i.value>-1&&r8(t.params,r.value.params)),o=ht(()=>i.value>-1&&i.value===t.matched.length-1&&H3(t.params,r.value.params));function a(l={}){return n8(l)?e[Pt(n.replace)?"replace":"push"](Pt(n.to)).catch(Gc):Promise.resolve()}return{route:r,href:ht(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const t8=Pn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$S,setup(n,{slots:e}){const t=yr($S(n)),{options:r}=Gr(Av),i=ht(()=>({[KS(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[KS(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return n.custom?s:_v("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},s)}}}),Ip=t8;function n8(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function r8(n,e){for(const t in e){const r=e[t],i=n[t];if(typeof r=="string"){if(r!==i)return!1}else if(!ki(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function WS(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const KS=(n,e,t)=>n??e??t,i8=Pn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=Gr(i1),i=ht(()=>n.route||r.value),s=Gr(YS,0),o=ht(()=>{let d=Pt(s);const{matched:u}=i.value;let m;for(;(m=u[d])&&!m.components;)d++;return d}),a=ht(()=>i.value.matched[o.value]);ml(YS,ht(()=>o.value+1)),ml(e8,a),ml(i1,i);const l=yt();return Zn(()=>[l.value,a.value,n.name],([d,u,m],[f,g,h])=>{u&&(u.instances[m]=d,g&&g!==u&&d&&d===f&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),d&&u&&(!g||!Tl(u,g)||!f)&&(u.enterCallbacks[m]||[]).forEach(v=>v(d))},{flush:"post"}),()=>{const d=i.value,u=n.name,m=a.value,f=m&&m.components[u];if(!f)return jS(t.default,{Component:f,route:d});const g=m.props[u],h=g?g===!0?d.params:typeof g=="function"?g(d):g:null,b=_v(f,rn({},h,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(m.instances[u]=null)},ref:l}));return jS(t.default,{Component:b,route:d})||b}}});function jS(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const j3=i8;function s8(n){const e=W7(n.routes,n),t=n.parseQuery||Z7,r=n.stringifyQuery||qS,i=n.history,s=_c(),o=_c(),a=_c(),l=tD(Ks);let d=Ks;rl&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Bm.bind(null,te=>""+te),m=Bm.bind(null,y7),f=Bm.bind(null,ld);function g(te,ye){let Se,Oe;return Y3(te)?(Se=e.getRecordMatcher(te),Oe=ye):Oe=te,e.addRoute(Oe,Se)}function h(te){const ye=e.getRecordMatcher(te);ye&&e.removeRoute(ye)}function v(){return e.getRoutes().map(te=>te.record)}function b(te){return!!e.getRecordMatcher(te)}function _(te,ye){if(ye=rn({},ye||l.value),typeof te=="string"){const G=Gm(t,te,ye.path),oe=e.resolve({path:G.path},ye),ge=i.createHref(G.fullPath);return rn(G,oe,{params:f(oe.params),hash:ld(G.hash),redirectedFrom:void 0,href:ge})}let Se;if(te.path!=null)Se=rn({},te,{path:Gm(t,te.path,ye.path).path});else{const G=rn({},te.params);for(const oe in G)G[oe]==null&&delete G[oe];Se=rn({},te,{params:m(G)}),ye.params=m(ye.params)}const Oe=e.resolve(Se,ye),Ye=te.hash||"";Oe.params=u(f(Oe.params));const le=x7(r,rn({},te,{hash:_7(Ye),path:Oe.path})),V=i.createHref(le);return rn({fullPath:le,hash:Ye,query:r===qS?J7(te.query):te.query||{}},Oe,{redirectedFrom:void 0,href:V})}function y(te){return typeof te=="string"?Gm(t,te,l.value.path):rn({},te)}function E(te,ye){if(d!==te)return wl(8,{from:ye,to:te})}function x(te){return N(te)}function A(te){return x(rn(y(te),{replace:!0}))}function w(te){const ye=te.matched[te.matched.length-1];if(ye&&ye.redirect){const{redirect:Se}=ye;let Oe=typeof Se=="function"?Se(te):Se;return typeof Oe=="string"&&(Oe=Oe.includes("?")||Oe.includes("#")?Oe=y(Oe):{path:Oe},Oe.params={}),rn({query:te.query,hash:te.hash,params:Oe.path!=null?{}:te.params},Oe)}}function N(te,ye){const Se=d=_(te),Oe=l.value,Ye=te.state,le=te.force,V=te.replace===!0,G=w(Se);if(G)return N(rn(y(G),{state:typeof G=="object"?rn({},Ye,G.state):Ye,force:le,replace:V}),ye||Se);const oe=Se;oe.redirectedFrom=ye;let ge;return!le&&T7(r,Oe,Se)&&(ge=wl(16,{to:oe,from:Oe}),xe(Oe,Oe,!0,!1)),(ge?Promise.resolve(ge):k(oe,Oe)).catch(Ee=>cs(Ee)?cs(Ee,2)?Ee:ue(Ee):Z(Ee,oe,Oe)).then(Ee=>{if(Ee){if(cs(Ee,2))return N(rn({replace:V},y(Ee.to),{state:typeof Ee.to=="object"?rn({},Ye,Ee.to.state):Ye,force:le}),ye||oe)}else Ee=q(oe,Oe,!0,V,Ye);return H(oe,Oe,Ee),Ee})}function L(te,ye){const Se=E(te,ye);return Se?Promise.reject(Se):Promise.resolve()}function C(te){const ye=Ae.values().next().value;return ye&&typeof ye.runWithContext=="function"?ye.runWithContext(te):te()}function k(te,ye){let Se;const[Oe,Ye,le]=o8(te,ye);Se=zm(Oe.reverse(),"beforeRouteLeave",te,ye);for(const G of Oe)G.leaveGuards.forEach(oe=>{Se.push(ao(oe,te,ye))});const V=L.bind(null,te,ye);return Se.push(V),ze(Se).then(()=>{Se=[];for(const G of s.list())Se.push(ao(G,te,ye));return Se.push(V),ze(Se)}).then(()=>{Se=zm(Ye,"beforeRouteUpdate",te,ye);for(const G of Ye)G.updateGuards.forEach(oe=>{Se.push(ao(oe,te,ye))});return Se.push(V),ze(Se)}).then(()=>{Se=[];for(const G of le)if(G.beforeEnter)if(ki(G.beforeEnter))for(const oe of G.beforeEnter)Se.push(ao(oe,te,ye));else Se.push(ao(G.beforeEnter,te,ye));return Se.push(V),ze(Se)}).then(()=>(te.matched.forEach(G=>G.enterCallbacks={}),Se=zm(le,"beforeRouteEnter",te,ye,C),Se.push(V),ze(Se))).then(()=>{Se=[];for(const G of o.list())Se.push(ao(G,te,ye));return Se.push(V),ze(Se)}).catch(G=>cs(G,8)?G:Promise.reject(G))}function H(te,ye,Se){a.list().forEach(Oe=>C(()=>Oe(te,ye,Se)))}function q(te,ye,Se,Oe,Ye){const le=E(te,ye);if(le)return le;const V=ye===Ks,G=rl?history.state:{};Se&&(Oe||V?i.replace(te.fullPath,rn({scroll:V&&G&&G.scroll},Ye)):i.push(te.fullPath,Ye)),l.value=te,xe(te,ye,Se,V),ue()}let ie;function D(){ie||(ie=i.listen((te,ye,Se)=>{if(!Fe.listening)return;const Oe=_(te),Ye=w(Oe);if(Ye){N(rn(Ye,{replace:!0}),Oe).catch(Gc);return}d=Oe;const le=l.value;rl&&I7(LS(le.fullPath,Se.delta),Dh()),k(Oe,le).catch(V=>cs(V,12)?V:cs(V,2)?(N(V.to,Oe).then(G=>{cs(G,20)&&!Se.delta&&Se.type===cd.pop&&i.go(-1,!1)}).catch(Gc),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),Z(V,Oe,le))).then(V=>{V=V||q(Oe,le,!1),V&&(Se.delta&&!cs(V,8)?i.go(-Se.delta,!1):Se.type===cd.pop&&cs(V,20)&&i.go(-1,!1)),H(Oe,le,V)}).catch(Gc)}))}let $=_c(),K=_c(),B;function Z(te,ye,Se){ue(te);const Oe=K.list();return Oe.length?Oe.forEach(Ye=>Ye(te,ye,Se)):console.error(te),Promise.reject(te)}function ce(){return B&&l.value!==Ks?Promise.resolve():new Promise((te,ye)=>{$.add([te,ye])})}function ue(te){return B||(B=!te,D(),$.list().forEach(([ye,Se])=>te?Se(te):ye()),$.reset()),te}function xe(te,ye,Se,Oe){const{scrollBehavior:Ye}=n;if(!rl||!Ye)return Promise.resolve();const le=!Se&&O7(LS(te.fullPath,0))||(Oe||!Se)&&history.state&&history.state.scroll||null;return We().then(()=>Ye(te,ye,le)).then(V=>V&&k7(V)).catch(V=>Z(V,te,ye))}const Ce=te=>i.go(te);let me;const Ae=new Set,Fe={currentRoute:l,listening:!0,addRoute:g,removeRoute:h,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:v,resolve:_,options:n,push:x,replace:A,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:K.add,isReady:ce,install(te){const ye=this;te.component("RouterLink",Ip),te.component("RouterView",j3),te.config.globalProperties.$router=ye,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>Pt(l)}),rl&&!me&&l.value===Ks&&(me=!0,x(i.location).catch(Ye=>{}));const Se={};for(const Ye in Ks)Object.defineProperty(Se,Ye,{get:()=>l.value[Ye],enumerable:!0});te.provide(Av,ye),te.provide(Rv,e4(Se)),te.provide(i1,l);const Oe=te.unmount;Ae.add(te),te.unmount=function(){Ae.delete(te),Ae.size<1&&(d=Ks,ie&&ie(),ie=null,l.value=Ks,me=!1,B=!1),Oe()}}};function ze(te){return te.reduce((ye,Se)=>ye.then(()=>C(Se)),Promise.resolve())}return Fe}function o8(n,e){const t=[],r=[],i=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;oTl(d,a))?r.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(d=>Tl(d,l))||i.push(l))}return[t,r,i]}function a8(n){return Gr(Rv)}const l8="modulepreload",c8=function(n){return"/"+n},QS={},Vm=function(e,t,r){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(t.map(l=>{if(l=c8(l),l in QS)return;QS[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":l8,d||(m.as="script"),m.crossOrigin="",m.href=l,a&&m.setAttribute("nonce",a),document.head.appendChild(m),d)return new Promise((f,g)=>{m.addEventListener("load",f),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})},d8={class:"sticky top-0 z-50 w-full bg-transparent"},u8={class:"container mx-auto px-4"},p8={class:"flex items-center justify-between h-16"},h8={class:"hidden md:block"},m8={class:"flex items-center space-x-4"},f8={class:"flex items-center space-x-1"},g8={key:0,class:"ml-1 text-xs","aria-hidden":"true"},_8={class:"md:hidden"},b8={class:"px-2 pt-2 pb-3 space-y-1"},v8={class:"flex items-center justify-between"},y8={key:0,class:"text-xs","aria-hidden":"true"},E8={name:"Navigation"},S8=Object.assign(E8,{setup(n){const e=a8(),t=yt(0),r=yt([]),i=yt(!1),s=[{active:!0,route:"discussions",text:"Discussions"},{active:!0,route:"playground",text:"Playground"},{active:!0,route:"PersonalitiesZoo",text:"Personalities Zoo"},{active:!0,route:"AppsZoo",text:"Apps Zoo"},{active:!1,route:"AutoSD",text:"Auto111-SD",condition:()=>Ti.state.config.enable_sd_service||Ti.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Ti.state.config.enable_comfyui_service||Ti.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Ti.state.config.active_tts_service!=="None"&&Ti.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],o=ht(()=>Ti.state.ready?s.filter(u=>u.condition?u.condition():u.active):s.filter(u=>u.active));Ji(()=>{a()}),Zn(()=>e.name,a);function a(){const u=o.value.findIndex(m=>m.route===e.name);u!==-1&&(t.value=u)}function l(u){return e.name===u}function d(u){t.value=u}return(u,m)=>(T(),M("div",d8,[c("nav",u8,[c("div",p8,[c("div",h8,[c("div",m8,[(T(!0),M(je,null,at(o.value,(f,g)=>(T(),Tt(Pt(Ip),{key:g,to:{name:f.route},class:qe(["px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":l(f.route)}]),onClick:h=>d(g),ref_for:!0,ref_key:"menuItems",ref:r},{default:Ge(()=>[c("div",f8,[pt(X(f.text)+" ",1),l(f.route)?(T(),M("span",g8," ✨ ")):Y("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])]),c("div",_8,[c("button",{onClick:m[0]||(m[0]=f=>i.value=!i.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none"},[(T(),M("svg",{class:qe(["h-6 w-6",{hidden:i.value,block:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},m[1]||(m[1]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)]),2)),(T(),M("svg",{class:qe(["h-6 w-6",{block:i.value,hidden:!i.value}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},m[2]||(m[2]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)]),2))])])]),c("div",{class:qe([{block:i.value,hidden:!i.value},"md:hidden"])},[c("div",b8,[(T(!0),M(je,null,at(o.value,(f,g)=>(T(),Tt(Pt(Ip),{key:g,to:{name:f.route},class:qe(["block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200 ease-in-out text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700",{"bg-blue-500 text-white hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700":l(f.route)}]),onClick:h=>{d(g),i.value=!1}},{default:Ge(()=>[c("div",v8,[pt(X(f.text)+" ",1),l(f.route)?(T(),M("span",y8," ✨ ")):Y("",!0)])]),_:2},1032,["to","class","onClick"]))),128))])],2)])]))}}),bt=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},x8={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(n){this.href==="#"&&(n.preventDefault(),this.$emit("click"))}}},T8=["href","title"],w8=["data-feather"];function C8(n,e,t,r,i,s){return T(),M("a",{href:t.href,onClick:e[0]||(e[0]=(...o)=>s.onClick&&s.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[c("i",{"data-feather":t.icon},null,8,w8)],8,T8)}const Q3=bt(x8,[["render",C8]]),A8={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},R8=["href","title"],M8=["data-feather"],N8={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},k8={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function I8(n,e,t,r,i,s){return T(),M("a",{href:t.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[t.icon!=="x"&&t.icon!=="discord"?(T(),M("i",{key:0,"data-feather":t.icon},null,8,M8)):t.icon==="x"?(T(),M("svg",N8,e[0]||(e[0]=[c("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)]))):t.icon==="discord"?(T(),M("svg",k8,e[1]||(e[1]=[c("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},null,-1)]))):Y("",!0)],8,R8)}const X3=bt(A8,[["render",I8]]);var Z3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function J3(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var eN={exports:{}};(function(n,e){(function(r,i){n.exports=i()})(typeof self<"u"?self:Z3,function(){return function(t){var r={};function i(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=r,i.d=function(s,o,a){i.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:a})},i.r=function(s){Object.defineProperty(s,"__esModule",{value:!0})},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(t,r,i){var s,o;/*! + Copyright (c) 2016 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function d(_,y){for(var E=y.length,x=0;x1?arguments[1]:void 0,y=_!==void 0,E=0,x=m(h),A,w,N,L;if(y&&(_=s(_,b>2?arguments[2]:void 0,2)),x!=null&&!(v==Array&&l(x)))for(L=x.call(h),w=new v;!(N=L.next()).done;E++)u(w,E,y?a(L,_,[N.value,E],!0):N.value);else for(A=d(h.length),w=new v(A);A>E;E++)u(w,E,y?_(h[E],E):h[E]);return w.length=E,w}},"./node_modules/core-js/internals/array-includes.js":function(t,r,i){var s=i("./node_modules/core-js/internals/to-indexed-object.js"),o=i("./node_modules/core-js/internals/to-length.js"),a=i("./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(l){return function(d,u,m){var f=s(d),g=o(f.length),h=a(m,g),v;if(l&&u!=u){for(;g>h;)if(v=f[h++],v!=v)return!0}else for(;g>h;h++)if((l||h in f)&&f[h]===u)return l||h||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(t,r,i){var s=i("./node_modules/core-js/internals/a-function.js");t.exports=function(o,a,l){if(s(o),a===void 0)return o;switch(l){case 0:return function(){return o.call(a)};case 1:return function(d){return o.call(a,d)};case 2:return function(d,u){return o.call(a,d,u)};case 3:return function(d,u,m){return o.call(a,d,u,m)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(t,r,i){var s=i("./node_modules/core-js/internals/an-object.js");t.exports=function(o,a,l,d){try{return d?a(s(l)[0],l[1]):a(l)}catch(m){var u=o.return;throw u!==void 0&&s(u.call(o)),m}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(t,r,i){var s=i("./node_modules/core-js/internals/well-known-symbol.js"),o=s("iterator"),a=!1;try{var l=0,d={next:function(){return{done:!!l++}},return:function(){a=!0}};d[o]=function(){return this},Array.from(d,function(){throw 2})}catch{}t.exports=function(u,m){if(!m&&!a)return!1;var f=!1;try{var g={};g[o]=function(){return{next:function(){return{done:f=!0}}}},u(g)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(t,r){var i={}.toString;t.exports=function(s){return i.call(s).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,r,i){var s=i("./node_modules/core-js/internals/classof-raw.js"),o=i("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),l=s(function(){return arguments}())=="Arguments",d=function(u,m){try{return u[m]}catch{}};t.exports=function(u){var m,f,g;return u===void 0?"Undefined":u===null?"Null":typeof(f=d(m=Object(u),a))=="string"?f:l?s(m):(g=s(m))=="Object"&&typeof m.callee=="function"?"Arguments":g}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,r,i){var s=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/own-keys.js"),a=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=i("./node_modules/core-js/internals/object-define-property.js");t.exports=function(d,u){for(var m=o(u),f=l.f,g=a.f,h=0;h",A="java"+E+":",w;for(b.style.display="none",d.appendChild(b),b.src=String(A),w=b.contentWindow.document,w.open(),w.write(y+E+x+"document.F=Object"+y+"/"+E+x),w.close(),v=w.F;_--;)delete v[g][a[_]];return v()};t.exports=Object.create||function(_,y){var E;return _!==null?(h[g]=s(_),E=new h,h[g]=null,E[f]=_):E=v(),y===void 0?E:o(E,y)},l[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(t,r,i){var s=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/object-define-property.js"),a=i("./node_modules/core-js/internals/an-object.js"),l=i("./node_modules/core-js/internals/object-keys.js");t.exports=s?Object.defineProperties:function(u,m){a(u);for(var f=l(m),g=f.length,h=0,v;g>h;)o.f(u,v=f[h++],m[v]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(t,r,i){var s=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/ie8-dom-define.js"),a=i("./node_modules/core-js/internals/an-object.js"),l=i("./node_modules/core-js/internals/to-primitive.js"),d=Object.defineProperty;r.f=s?d:function(m,f,g){if(a(m),f=l(f,!0),a(g),o)try{return d(m,f,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(m[f]=g.value),m}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,r,i){var s=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=i("./node_modules/core-js/internals/create-property-descriptor.js"),l=i("./node_modules/core-js/internals/to-indexed-object.js"),d=i("./node_modules/core-js/internals/to-primitive.js"),u=i("./node_modules/core-js/internals/has.js"),m=i("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;r.f=s?f:function(h,v){if(h=l(h),v=d(v,!0),m)try{return f(h,v)}catch{}if(u(h,v))return a(!o.f.call(h,v),h[v])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,r,i){var s=i("./node_modules/core-js/internals/object-keys-internal.js"),o=i("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(d){return s(d,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(t,r){r.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(t,r,i){var s=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/to-object.js"),a=i("./node_modules/core-js/internals/shared-key.js"),l=i("./node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),u=Object.prototype;t.exports=l?Object.getPrototypeOf:function(m){return m=o(m),s(m,d)?m[d]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,r,i){var s=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/to-indexed-object.js"),a=i("./node_modules/core-js/internals/array-includes.js"),l=i("./node_modules/core-js/internals/hidden-keys.js"),d=a(!1);t.exports=function(u,m){var f=o(u),g=0,h=[],v;for(v in f)!s(l,v)&&s(f,v)&&h.push(v);for(;m.length>g;)s(f,v=m[g++])&&(~d(h,v)||h.push(v));return h}},"./node_modules/core-js/internals/object-keys.js":function(t,r,i){var s=i("./node_modules/core-js/internals/object-keys-internal.js"),o=i("./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(l){return s(l,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,r,i){var s={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!s.call({1:2},1);r.f=a?function(d){var u=o(this,d);return!!u&&u.enumerable}:s},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,r,i){var s=i("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),o=a instanceof Array}catch{}return function(u,m){return s(u,m),o?l.call(u,m):u.__proto__=m,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/object-get-own-property-names.js"),a=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=i("./node_modules/core-js/internals/an-object.js"),d=s.Reflect;t.exports=d&&d.ownKeys||function(m){var f=o.f(l(m)),g=a.f;return g?f.concat(g(m)):f}},"./node_modules/core-js/internals/path.js":function(t,r,i){t.exports=i("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/shared.js"),a=i("./node_modules/core-js/internals/hide.js"),l=i("./node_modules/core-js/internals/has.js"),d=i("./node_modules/core-js/internals/set-global.js"),u=i("./node_modules/core-js/internals/function-to-string.js"),m=i("./node_modules/core-js/internals/internal-state.js"),f=m.get,g=m.enforce,h=String(u).split("toString");o("inspectSource",function(v){return u.call(v)}),(t.exports=function(v,b,_,y){var E=y?!!y.unsafe:!1,x=y?!!y.enumerable:!1,A=y?!!y.noTargetGet:!1;if(typeof _=="function"&&(typeof b=="string"&&!l(_,"name")&&a(_,"name",b),g(_).source=h.join(typeof b=="string"?b:"")),v===s){x?v[b]=_:d(b,_);return}else E?!A&&v[b]&&(x=!0):delete v[b];x?v[b]=_:a(v,b,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(t,r){t.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"./node_modules/core-js/internals/set-global.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/hide.js");t.exports=function(a,l){try{o(s,a,l)}catch{s[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,r,i){var s=i("./node_modules/core-js/internals/object-define-property.js").f,o=i("./node_modules/core-js/internals/has.js"),a=i("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");t.exports=function(d,u,m){d&&!o(d=m?d:d.prototype,l)&&s(d,l,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(t,r,i){var s=i("./node_modules/core-js/internals/shared.js"),o=i("./node_modules/core-js/internals/uid.js"),a=s("keys");t.exports=function(l){return a[l]||(a[l]=o(l))}},"./node_modules/core-js/internals/shared.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/set-global.js"),a=i("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",d=s[l]||o(l,{});(t.exports=function(u,m){return d[u]||(d[u]=m!==void 0?m:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(t,r,i){var s=i("./node_modules/core-js/internals/to-integer.js"),o=i("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a,l,d){var u=String(o(a)),m=s(l),f=u.length,g,h;return m<0||m>=f?d?"":void 0:(g=u.charCodeAt(m),g<55296||g>56319||m+1===f||(h=u.charCodeAt(m+1))<56320||h>57343?d?u.charAt(m):g:d?u.slice(m,m+2):(g-55296<<10)+(h-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,r,i){var s=i("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;t.exports=function(l,d){var u=s(l);return u<0?o(u+d,0):a(u,d)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,r,i){var s=i("./node_modules/core-js/internals/indexed-object.js"),o=i("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a){return s(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(t,r){var i=Math.ceil,s=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?s:i)(o)}},"./node_modules/core-js/internals/to-length.js":function(t,r,i){var s=i("./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(a){return a>0?o(s(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,r,i){var s=i("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(o){return Object(s(o))}},"./node_modules/core-js/internals/to-primitive.js":function(t,r,i){var s=i("./node_modules/core-js/internals/is-object.js");t.exports=function(o,a){if(!s(o))return o;var l,d;if(a&&typeof(l=o.toString)=="function"&&!s(d=l.call(o))||typeof(l=o.valueOf)=="function"&&!s(d=l.call(o))||!a&&typeof(l=o.toString)=="function"&&!s(d=l.call(o)))return d;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(t,r){var i=0,s=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++i+s).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(t,r,i){var s=i("./node_modules/core-js/internals/is-object.js"),o=i("./node_modules/core-js/internals/an-object.js");t.exports=function(a,l){if(o(a),!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(t,r,i){var s=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/shared.js"),a=i("./node_modules/core-js/internals/uid.js"),l=i("./node_modules/core-js/internals/native-symbol.js"),d=s.Symbol,u=o("wks");t.exports=function(m){return u[m]||(u[m]=l&&d[m]||(l?d:a)("Symbol."+m))}},"./node_modules/core-js/modules/es.array.from.js":function(t,r,i){var s=i("./node_modules/core-js/internals/export.js"),o=i("./node_modules/core-js/internals/array-from.js"),a=i("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(d){Array.from(d)});s({target:"Array",stat:!0,forced:l},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,r,i){var s=i("./node_modules/core-js/internals/string-at.js"),o=i("./node_modules/core-js/internals/internal-state.js"),a=i("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",d=o.set,u=o.getterFor(l);a(String,"String",function(m){d(this,{type:l,string:String(m),index:0})},function(){var f=u(this),g=f.string,h=f.index,v;return h>=g.length?{value:void 0,done:!0}:(v=s(g,h,!0),f.index+=v.length,{value:v,done:!1})})},"./node_modules/webpack/buildin/global.js":function(t,r){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(i=window)}t.exports=i},"./src/default-attrs.json":function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=Object.assign||function(v){for(var b=1;b2&&arguments[2]!==void 0?arguments[2]:[];f(this,v),this.name=b,this.contents=_,this.tags=y,this.attrs=s({},u.default,{class:"feather feather-"+b})}return o(v,[{key:"toSvg",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=s({},this.attrs,_,{class:(0,l.default)(this.attrs.class,_.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),v}();function h(v){return Object.keys(v).map(function(b){return b+'="'+v[b]+'"'}).join(" ")}r.default=g},"./src/icons.js":function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i("./src/icon.js"),o=m(s),a=i("./dist/icons.json"),l=m(a),d=i("./src/tags.json"),u=m(d);function m(f){return f&&f.__esModule?f:{default:f}}r.default=Object.keys(l.default).map(function(f){return new o.default(f,l.default[f],u.default[f])}).reduce(function(f,g){return f[g.name]=g,f},{})},"./src/index.js":function(t,r,i){var s=i("./src/icons.js"),o=m(s),a=i("./src/to-svg.js"),l=m(a),d=i("./src/replace.js"),u=m(d);function m(f){return f&&f.__esModule?f:{default:f}}t.exports={icons:o.default,toSvg:l.default,replace:u.default}},"./src/replace.js":function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=Object.assign||function(h){for(var v=1;v0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var v=document.querySelectorAll("[data-feather]");Array.from(v).forEach(function(b){return f(b,h)})}function f(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=g(h),_=b["data-feather"];if(delete b["data-feather"],d.default[_]===void 0){console.warn("feather: '"+_+"' is not a valid icon");return}var y=d.default[_].toSvg(s({},v,b,{class:(0,a.default)(v.class,b.class)})),E=new DOMParser().parseFromString(y,"image/svg+xml"),x=E.querySelector("svg");h.parentNode.replaceChild(x,h)}function g(h){return Array.from(h.attributes).reduce(function(v,b){return v[b.name]=b.value,v},{})}r.default=m},"./src/tags.json":function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var s=i("./src/icons.js"),o=a(s);function a(d){return d&&d.__esModule?d:{default:d}}function l(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!d)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[d])throw new Error("No icon matching '"+d+"'. See the complete list of icons at https://feathericons.com");return o.default[d].toSvg(u)}r.default=l},0:function(t,r,i){i("./node_modules/core-js/es/array/from.js"),t.exports=i("./src/index.js")}})})})(eN);var O8=eN.exports;const Ze=Lo(O8),D8={name:"TopBar",components:{Navigation:S8,ActionButton:Q3,SocialIcon:X3},data(){return{themeDropdownOpen:!1,currentTheme:localStorage.getItem("preferred-theme")||"default",availableThemes:["default","strawberry_milkshake","red_dragon","matrix_reborn","borg","amber","sober_gray","strawberry"],isLoading:!1,error:null,isInfosMenuVisible:!1,isVisible:!1,isPinned:!1,selectedLanguage:"",isLanguageMenuVisible:!1,sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},computed:{isModelOK(){return this.$store.state.isModelOk},isDarkMode(){return document.documentElement.classList.contains("dark")},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},async mounted(){try{document.addEventListener("click",this.handleClickOutside);const n=localStorage.getItem("preferred-theme");n&&this.availableThemes.includes(n)&&(this.currentTheme=n);try{await this.loadTheme(this.currentTheme)}catch(e){this.error="Failed to initialize theme system",console.error(e)}}catch(n){this.error="Failed to initialize theme system",console.error(n)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},async created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),console.log(this.userTheme),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),this.$nextTick(()=>{Ze.replace()})},methods:{addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},handleClickOutside(n){this.$el.contains(n.target)||(this.themeDropdownOpen=!1)},getSavedTheme(){try{return localStorage.getItem("preferred-theme")}catch(n){return console.warn("Failed to access localStorage:",n),null}},saveTheme(n){try{this.clearOldStorageItems(),localStorage.setItem("preferred-theme",n)}catch(e){console.warn("Failed to save theme preference:",e)}},clearOldStorageItems(){try{const n=["preferred-theme"];for(let e=0;ePromise.resolve().then(()=>Bje),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle(),window.dispatchEvent(new Event("themeChanged"))},async selectLanguage(n){await this.$store.dispatch("changeLanguage",n),await this.$store.dispatch("changeLanguage",n),this.toggleLanguageMenu(),this.language=n},async deleteLanguage(n){await this.$store.dispatch("deleteLanguage",n),this.toggleLanguageMenu(),this.language=n},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,this.$nextTick(()=>{Ze.replace()})},hideInfosMenu(){this.isInfosMenuVisible=!1,this.$nextTick(()=>{Ze.replace()})},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show(),this.$nextTick(()=>{Ze.replace()})},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),this.$nextTick(()=>{Vm(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}this.$nextTick(()=>{Vm(()=>Promise.resolve({}),__vite__mapDeps([1]))})},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)}}},L8={class:"topbar-content"},P8=["title"],F8=["fill"],U8={class:"relative inline-block"},B8={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},G8={class:"flex gap-3 flex-1 items-center justify-end"},z8={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},V8={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},H8={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},q8={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},Y8={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},$8={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},W8={class:"flex items-center space-x-4"},K8={class:"relative group",title:"Lollms News"},j8={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},Q8={class:"language-selector relative"},X8={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},Z8={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},J8=["onClick"],e9=["onClick"],t9={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},n9={class:"relative inline-flex"},r9={class:"flex items-center space-x-2"},i9={class:"font-medium"},s9={key:0,class:"absolute left-0 z-50 w-full mt-2 overflow-hidden bg-white dark:bg-gray-800 border border-blue-200 dark:border-blue-700 rounded-lg shadow-lg transform origin-top animate-dropdown"},o9={class:"max-h-60 overflow-y-auto"},a9=["onClick"],l9={class:"font-medium"};function c9(n,e,t,r,i,s){const o=gt("Navigation"),a=gt("ActionButton"),l=gt("SocialIcon");return T(),M("div",{ref:"topbar-container",class:qe(["topbar-container",{"h-0":!i.isPinned}])},[c("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...d)=>s.show&&s.show(...d)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),c("div",{class:qe(["topbar",{"topbar-hidden":!i.isVisible}]),onMouseleave:e[14]||(e[14]=(...d)=>s.hide&&s.hide(...d))},[c("div",L8,[On(n.$slots,"navigation",{},void 0,!0),c("button",{class:"pin-button",onClick:e[1]||(e[1]=(...d)=>s.togglePin&&s.togglePin(...d)),title:i.isPinned?"Unpin":"Pin"},[(T(),M("svg",{fill:i.isPinned?"#FF0000":"#000000",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 490.125 490.125","xml:space":"preserve"},e[15]||(e[15]=[c("g",null,[c("path",{d:`M300.625,5.025c-6.7-6.7-17.6-6.7-24.3,0l-72.6,72.6c-6.7,6.7-6.7,17.6,0,24.3l16.3,16.3l-40.3,40.3l-63.5-7\r + c-3-0.3-6-0.5-8.9-0.5c-21.7,0-42.2,8.5-57.5,23.8l-20.8,20.8c-6.7,6.7-6.7,17.6,0,24.3l108.5,108.5l-132.4,132.4\r + c-6.7,6.7-6.7,17.6,0,24.3c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5l132.5-132.5l108.5,108.5c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5\r + l20.8-20.8c17.6-17.6,26.1-41.8,23.3-66.4l-7-63.5l40.3-40.3l16.2,16.2c6.7,6.7,17.6,6.7,24.3,0l72.6-72.6c3.2-3.2,5-7.6,5-12.1\r + s-1.8-8.9-5-12.1L300.625,5.025z M400.425,250.025l-16.2-16.3c-6.4-6.4-17.8-6.4-24.3,0l-58.2,58.3c-3.7,3.7-5.5,8.8-4.9,14\r + l7.9,71.6c1.6,14.3-3.3,28.3-13.5,38.4l-8.7,8.7l-217.1-217.1l8.7-8.6c10.1-10.1,24.2-15,38.4-13.5l71.7,7.9\r + c5.2,0.6,10.3-1.2,14-4.9l58.2-58.2c6.7-6.7,6.7-17.6,0-24.3l-16.3-16.3l48.3-48.3l160.3,160.3L400.425,250.025z`})],-1)]),8,F8))],8,P8),W(o),c("div",{class:"toolbar-button",onMouseleave:e[5]||(e[5]=(...d)=>s.hideInfosMenu&&s.hideInfosMenu(...d))},[c("div",U8,[i.isInfosMenuVisible?(T(),M("div",{key:0,onMouseenter:e[3]||(e[3]=(...d)=>s.showInfosMenu&&s.showInfosMenu(...d)),class:"absolute m-0 p-0 z-50 top-full right-0 transform bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",B8,[c("div",G8,[s.isModelOK?(T(),M("div",z8,e[16]||(e[16]=[c("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(T(),M("div",V8,e[17]||(e[17]=[c("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),c("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),s.isGenerating?(T(),M("div",q8,e[19]||(e[19]=[c("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]))):(T(),M("div",H8,e[18]||(e[18]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})],-1)]))),s.isConnected?(T(),M("div",Y8,e[20]||(e[20]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(T(),M("div",$8,e[21]||(e[21]=[c("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)])))]),c("div",W8,[W(a,{onClick:n.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),W(a,{onClick:s.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),W(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),W(l,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),W(l,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),W(l,{href:"https://x.com/ParisNeo_AI",icon:"x"}),W(l,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),c("div",K8,[c("div",{onClick:e[2]||(e[2]=d=>s.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 text-gray-600 hover:text-primary dark:text-gray-300 dark:hover:text-primary"},e[22]||(e[22]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-full h-full"},[c("path",{d:"M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})],-1)])),e[23]||(e[23]=c("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mt-2 whitespace-nowrap"}," Lollms News ",-1))])])],32)):Y("",!0),c("div",{onMouseenter:e[4]||(e[4]=(...d)=>s.showInfosMenu&&s.showInfosMenu(...d)),class:"infos-hover-area"},e[24]||(e[24]=[yo('',1)]),32)])],32),s.is_fun_mode?(T(),M("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300",onClick:e[6]||(e[6]=d=>s.fun_mode_off())},e[25]||(e[25]=[yo('',1)]))):(T(),M("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-8 h-8 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-300",onClick:e[7]||(e[7]=d=>s.fun_mode_on())},e[26]||(e[26]=[yo('',1)]))),c("span",j8,X(s.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1),c("div",Q8,[c("button",{onClick:e[8]||(e[8]=(...d)=>s.toggleLanguageMenu&&s.toggleLanguageMenu(...d)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},X(n.$store.state.language.slice(0,2)),1),i.isLanguageMenuVisible?(T(),M("div",X8,[c("ul",Z8,[(T(!0),M(je,null,at(s.languages,d=>(T(),M("li",{key:d,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[c("button",{onClick:u=>s.deleteLanguage(d),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,J8),c("div",{onClick:u=>s.selectLanguage(d),class:qe({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":d===n.$store.state.language,"flex-grow":!0})},X(d),11,e9)]))),128)),c("li",t9,[F(c("input",{type:"text","onUpdate:modelValue":e[9]||(e[9]=d=>n.customLanguage=d),onKeyup:e[10]||(e[10]=ui(J((...d)=>s.addCustomLanguage&&s.addCustomLanguage(...d),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[_e,n.customLanguage]])])])],512)):Y("",!0)]),s.isDarkMode?(T(),M("div",{key:2,class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:e[11]||(e[11]=d=>s.themeSwitch())},e[27]||(e[27]=[c("i",{"data-feather":"sun"},null,-1)]))):(T(),M("div",{key:3,class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:e[12]||(e[12]=d=>s.themeSwitch())},e[28]||(e[28]=[c("i",{"data-feather":"moon"},null,-1)]))),c("div",n9,[c("button",{onClick:e[13]||(e[13]=d=>i.themeDropdownOpen=!i.themeDropdownOpen),class:"inline-flex items-center justify-between min-w-[120px] px-4 py-2 bg-gradient-to-r from-blue-500/10 to-purple-500/10 dark:from-blue-400/20 dark:to-purple-400/20 border border-blue-200 dark:border-blue-700 rounded-lg shadow-sm text-gray-700 dark:text-gray-200 hover:border-blue-300 dark:hover:border-blue-600 hover:shadow-md focus:outline-none focus:ring-2 focus:ring-blue-500/50 transition-all duration-300 ease-in-out backdrop-blur-sm"},[c("div",r9,[e[29]||(e[29]=c("svg",{class:"w-5 h-5 text-blue-500 dark:text-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"})],-1)),c("span",i9,X(i.currentTheme),1)]),(T(),M("svg",{class:qe(["w-5 h-5 text-blue-500 dark:text-blue-400 transition-transform duration-300",{"rotate-180":i.themeDropdownOpen}]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e[30]||(e[30]=[c("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)]),2))]),i.themeDropdownOpen?(T(),M("div",s9,[c("div",o9,[(T(!0),M(je,null,at(i.availableThemes,d=>(T(),M("a",{key:d,onClick:u=>{s.loadTheme(d),i.currentTheme=d,i.themeDropdownOpen=!1},class:"flex items-center space-x-2 px-4 py-3 text-gray-700 dark:text-gray-200 hover:bg-gradient-to-r hover:from-blue-50 hover:to-purple-50 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 cursor-pointer transition-colors duration-150 group"},[e[31]||(e[31]=c("div",{class:"w-2 h-2 rounded-full bg-blue-400 group-hover:bg-blue-500 transition-colors duration-150"},null,-1)),c("span",l9,X(d),1)],8,a9))),128))])])):Y("",!0)])])],34)],2)}const d9=bt(D8,[["render",c9],["__scopeId","data-v-47127057"]]),u9={class:"flex overflow-hidden flex-grow w-full"},p9={__name:"App",setup(n){return(e,t)=>(T(),M("div",{class:qe([e.currentTheme,"flex flex-col h-screen font-sans background-color text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full overflow-hidden"])},[W(d9),c("div",u9,[W(Pt(j3),null,{default:Ge(({Component:r})=>[(T(),Tt(xD,null,[(T(),Tt(xh(r)))],1024))]),_:1})])],2))}},Xi=Object.create(null);Xi.open="0";Xi.close="1";Xi.ping="2";Xi.pong="3";Xi.message="4";Xi.upgrade="5";Xi.noop="6";const sp=Object.create(null);Object.keys(Xi).forEach(n=>{sp[Xi[n]]=n});const s1={type:"error",data:"parser error"},tN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",nN=typeof ArrayBuffer=="function",rN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Mv=({type:n,data:e},t,r)=>tN&&e instanceof Blob?t?r(e):XS(e,r):nN&&(e instanceof ArrayBuffer||rN(e))?t?r(e):XS(new Blob([e]),r):r(Xi[n]+(e||"")),XS=(n,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(n)};function ZS(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Hm;function h9(n,e){if(tN&&n.data instanceof Blob)return n.data.arrayBuffer().then(ZS).then(e);if(nN&&(n.data instanceof ArrayBuffer||rN(n.data)))return e(ZS(n.data));Mv(n,!1,t=>{Hm||(Hm=new TextEncoder),e(Hm.encode(t))})}const JS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ic=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,r,i=0,s,o,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(r=0;r>4,u[i++]=(o&15)<<4|a>>2,u[i++]=(a&3)<<6|l&63;return d},f9=typeof ArrayBuffer=="function",Nv=(n,e)=>{if(typeof n!="string")return{type:"message",data:iN(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:g9(n.substring(1),e)}:sp[t]?n.length>1?{type:sp[t],data:n.substring(1)}:{type:sp[t]}:s1},g9=(n,e)=>{if(f9){const t=m9(n);return iN(t,e)}else return{base64:!0,data:n}},iN=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},sN="",_9=(n,e)=>{const t=n.length,r=new Array(t);let i=0;n.forEach((s,o)=>{Mv(s,!1,a=>{r[o]=a,++i===t&&e(r.join(sN))})})},b9=(n,e)=>{const t=n.split(sN),r=[];for(let i=0;i{const r=t.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let qm;function eu(n){return n.reduce((e,t)=>e+t.length,0)}function tu(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(s1);break}i=u*Math.pow(2,32)+d.getUint32(4),r=3}else{if(eu(t)n){a.enqueue(s1);break}}}})}const oN=4;function Dn(n){if(n)return E9(n)}function E9(n){for(var e in Dn.prototype)n[e]=Dn.prototype[e];return n}Dn.prototype.on=Dn.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};Dn.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};Dn.prototype.off=Dn.prototype.removeListener=Dn.prototype.removeAllListeners=Dn.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var r,i=0;iPromise.resolve().then(e):(e,t)=>t(e,0),Xr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),S9="arraybuffer";function aN(n,...e){return e.reduce((t,r)=>(n.hasOwnProperty(r)&&(t[r]=n[r]),t),{})}const x9=Xr.setTimeout,T9=Xr.clearTimeout;function Ph(n,e){e.useNativeTimers?(n.setTimeoutFn=x9.bind(Xr),n.clearTimeoutFn=T9.bind(Xr)):(n.setTimeoutFn=Xr.setTimeout.bind(Xr),n.clearTimeoutFn=Xr.clearTimeout.bind(Xr))}const w9=1.33;function C9(n){return typeof n=="string"?A9(n):Math.ceil((n.byteLength||n.size)*w9)}function A9(n){let e=0,t=0;for(let r=0,i=n.length;r=57344?t+=3:(r++,t+=4);return t}function lN(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function R9(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function M9(n){let e={},t=n.split("&");for(let r=0,i=t.length;r{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};b9(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,_9(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=lN()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let cN=!1;try{cN=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const I9=cN;function O9(){}class D9 extends k9{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}let fl=class op extends Dn{constructor(e,t,r){super(),this.createRequest=e,Ph(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const t=aN(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=op.requestsCount++,op.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=O9,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete op.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};fl.requestsCount=0;fl.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",e2);else if(typeof addEventListener=="function"){const n="onpagehide"in Xr?"pagehide":"unload";addEventListener(n,e2,!1)}}function e2(){for(let n in fl.requests)fl.requests.hasOwnProperty(n)&&fl.requests[n].abort()}const L9=function(){const n=dN({xdomain:!1});return n&&n.responseType!==null}();class P9 extends D9{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=L9&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new fl(dN,this.uri(),e)}}function dN(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||I9))return new XMLHttpRequest}catch{}if(!e)try{return new Xr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const uN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class F9 extends kv{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=uN?{}:aN(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(r,s)}catch{}i&&Lh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=lN()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Ym=Xr.WebSocket||Xr.MozWebSocket;class U9 extends F9{createSocket(e,t,r){return uN?new Ym(e,t,r):t?new Ym(e,t):new Ym(e)}doWrite(e,t){this.ws.send(t)}}class B9 extends kv{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=y9(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=v9();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{i&&Lh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const G9={websocket:U9,webtransport:B9,polling:P9},z9=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,V9=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function o1(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),r=n.indexOf("]");t!=-1&&r!=-1&&(n=n.substring(0,t)+n.substring(t,r).replace(/:/g,";")+n.substring(r,n.length));let i=z9.exec(n||""),s={},o=14;for(;o--;)s[V9[o]]=i[o]||"";return t!=-1&&r!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=H9(s,s.path),s.queryKey=q9(s,s.query),s}function H9(n,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function q9(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(t[i]=s)}),t}const a1=typeof addEventListener=="function"&&typeof removeEventListener=="function",ap=[];a1&&addEventListener("offline",()=>{ap.forEach(n=>n())},!1);class Eo extends Dn{constructor(e,t){if(super(),this.binaryType=S9,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const r=o1(e);t.hostname=r.host,t.secure=r.protocol==="https"||r.protocol==="wss",t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=o1(t.host).host);Ph(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=M9(this.opts.query)),a1&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ap.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=oN,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Eo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",Eo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Lh(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,i){if(typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:e,data:t,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(Eo.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),a1&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=ap.indexOf(this._offlineEventListener);r!==-1&&ap.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Eo.protocol=oN;class Y9 extends Eo{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",m=>{if(!r)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Eo.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=t.name,this.emitReserved("upgradeError",f)}}))};function s(){r||(r=!0,u(),t.close(),t=null)}const o=m=>{const f=new Error("probe error: "+m);f.transport=t.name,s(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function d(m){t&&m.name!==t.name&&s()}const u=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",l),this.off("upgrading",d)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",l),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;rG9[i]).filter(i=>!!i)),super(e,r)}};function W9(n,e="",t){let r=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),r=o1(n)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(t&&t.port===r.port?"":":"+r.port),r}const K9=typeof ArrayBuffer=="function",j9=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,pN=Object.prototype.toString,Q9=typeof Blob=="function"||typeof Blob<"u"&&pN.call(Blob)==="[object BlobConstructor]",X9=typeof File=="function"||typeof File<"u"&&pN.call(File)==="[object FileConstructor]";function Iv(n){return K9&&(n instanceof ArrayBuffer||j9(n))||Q9&&n instanceof Blob||X9&&n instanceof File}function lp(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,r=n.length;t=0&&n.num{delete this.acks[e];for(let a=0;a{this.io.clearTimeoutFn(s),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{const s=(o,a)=>o?i(o):r(a);s.withError=!0,t.push(s),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...s)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Wt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Wt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Wt.EVENT:case Wt.BINARY_EVENT:this.onevent(e);break;case Wt.ACK:case Wt.BINARY_ACK:this.onack(e);break;case Wt.DISCONNECT:this.ondisconnect();break;case Wt.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...i){r||(r=!0,t.packet({type:Wt.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Wt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&n.jitter<=1?n.jitter:0,this.attempts=0}Jl.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};Jl.prototype.reset=function(){this.attempts=0};Jl.prototype.setMin=function(n){this.ms=n};Jl.prototype.setMax=function(n){this.max=n};Jl.prototype.setJitter=function(n){this.jitter=n};class d1 extends Dn{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Ph(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Jl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||iF;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new $9(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Si(t,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Si(t,"error",s);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),t.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Si(e,"ping",this.onping.bind(this)),Si(e,"data",this.ondata.bind(this)),Si(e,"error",this.onerror.bind(this)),Si(e,"close",this.onclose.bind(this)),Si(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Lh(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new hN(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const bc={};function cp(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=W9(n,e.path||"/socket.io"),r=t.source,i=t.id,s=t.path,o=bc[i]&&s in bc[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let l;return a?l=new d1(r,e):(bc[i]||(bc[i]=new d1(r,e)),l=bc[i]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(cp,{Manager:d1,Socket:hN,io:cp,connect:cp});const mN="/";console.log(mN);const rt=new cp(mN,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),oF={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),We(()=>{Ze.replace()})},showToast(n,e=3,t=!0){const r=parseInt((new Date().getTime()*Math.random()).toString()).toString(),i={id:r,log_type:t,message:n,show:!0};this.toastArr.push(i),We(()=>{Ze.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(s=>s.id!=r)},e*1e3)}},watch:{}},aF={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},lF={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"},cF={class:"flex flex-row flex-grow items-center h-auto"},dF={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"},uF={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"},pF={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"},hF={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"},mF=["title"],fF={class:"flex"},gF=["onClick"],_F=["onClick"];function bF(n,e,t,r,i,s){return T(),M("div",aF,[W(As,{name:"toastItem",tag:"div"},{default:Ge(()=>[(T(!0),M(je,null,at(i.toastArr,o=>(T(),M("div",{key:o.id,class:"relative"},[c("div",lF,[c("div",cF,[o.log_type==0?(T(),M("div",dF,e[0]||(e[0]=[c("i",{"data-feather":"x"},null,-1),c("span",{class:"sr-only"},"Cross icon",-1)]))):Y("",!0),o.log_type==1?(T(),M("div",uF,e[1]||(e[1]=[c("i",{"data-feather":"check"},null,-1),c("span",{class:"sr-only"},"Check icon",-1)]))):Y("",!0),o.log_type==2?(T(),M("div",pF,e[2]||(e[2]=[c("i",{"data-feather":"info"},null,-1),c("span",{class:"sr-only"},null,-1)]))):Y("",!0),o.log_type==3?(T(),M("div",hF,e[3]||(e[3]=[c("i",{"data-feather":"alert-triangle"},null,-1),c("span",{class:"sr-only"},null,-1)]))):Y("",!0),c("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},X(o.message),9,mF)]),c("div",fF,[c("button",{type:"button",onClick:J(a=>s.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[4]||(e[4]=[c("span",{class:"sr-only"},"Copy message",-1),c("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,gF),c("button",{type:"button",onClick:a=>s.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[5]||(e[5]=[c("span",{class:"sr-only"},"Close",-1),c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,_F)])])]))),128))]),_:1})])}const Fh=bt(oF,[["render",bF],["__scopeId","data-v-46f379e5"]]);var Jt={};const vF="Á",yF="á",EF="Ă",SF="ă",xF="∾",TF="∿",wF="∾̳",CF="Â",AF="â",RF="´",MF="А",NF="а",kF="Æ",IF="æ",OF="⁡",DF="𝔄",LF="𝔞",PF="À",FF="à",UF="ℵ",BF="ℵ",GF="Α",zF="α",VF="Ā",HF="ā",qF="⨿",YF="&",$F="&",WF="⩕",KF="⩓",jF="∧",QF="⩜",XF="⩘",ZF="⩚",JF="∠",eU="⦤",tU="∠",nU="⦨",rU="⦩",iU="⦪",sU="⦫",oU="⦬",aU="⦭",lU="⦮",cU="⦯",dU="∡",uU="∟",pU="⊾",hU="⦝",mU="∢",fU="Å",gU="⍼",_U="Ą",bU="ą",vU="𝔸",yU="𝕒",EU="⩯",SU="≈",xU="⩰",TU="≊",wU="≋",CU="'",AU="⁡",RU="≈",MU="≊",NU="Å",kU="å",IU="𝒜",OU="𝒶",DU="≔",LU="*",PU="≈",FU="≍",UU="Ã",BU="ã",GU="Ä",zU="ä",VU="∳",HU="⨑",qU="≌",YU="϶",$U="‵",WU="∽",KU="⋍",jU="∖",QU="⫧",XU="⊽",ZU="⌅",JU="⌆",eB="⌅",tB="⎵",nB="⎶",rB="≌",iB="Б",sB="б",oB="„",aB="∵",lB="∵",cB="∵",dB="⦰",uB="϶",pB="ℬ",hB="ℬ",mB="Β",fB="β",gB="ℶ",_B="≬",bB="𝔅",vB="𝔟",yB="⋂",EB="◯",SB="⋃",xB="⨀",TB="⨁",wB="⨂",CB="⨆",AB="★",RB="▽",MB="△",NB="⨄",kB="⋁",IB="⋀",OB="⤍",DB="⧫",LB="▪",PB="▴",FB="▾",UB="◂",BB="▸",GB="␣",zB="▒",VB="░",HB="▓",qB="█",YB="=⃥",$B="≡⃥",WB="⫭",KB="⌐",jB="𝔹",QB="𝕓",XB="⊥",ZB="⊥",JB="⋈",eG="⧉",tG="┐",nG="╕",rG="╖",iG="╗",sG="┌",oG="╒",aG="╓",lG="╔",cG="─",dG="═",uG="┬",pG="╤",hG="╥",mG="╦",fG="┴",gG="╧",_G="╨",bG="╩",vG="⊟",yG="⊞",EG="⊠",SG="┘",xG="╛",TG="╜",wG="╝",CG="└",AG="╘",RG="╙",MG="╚",NG="│",kG="║",IG="┼",OG="╪",DG="╫",LG="╬",PG="┤",FG="╡",UG="╢",BG="╣",GG="├",zG="╞",VG="╟",HG="╠",qG="‵",YG="˘",$G="˘",WG="¦",KG="𝒷",jG="ℬ",QG="⁏",XG="∽",ZG="⋍",JG="⧅",ez="\\",tz="⟈",nz="•",rz="•",iz="≎",sz="⪮",oz="≏",az="≎",lz="≏",cz="Ć",dz="ć",uz="⩄",pz="⩉",hz="⩋",mz="∩",fz="⋒",gz="⩇",_z="⩀",bz="ⅅ",vz="∩︀",yz="⁁",Ez="ˇ",Sz="ℭ",xz="⩍",Tz="Č",wz="č",Cz="Ç",Az="ç",Rz="Ĉ",Mz="ĉ",Nz="∰",kz="⩌",Iz="⩐",Oz="Ċ",Dz="ċ",Lz="¸",Pz="¸",Fz="⦲",Uz="¢",Bz="·",Gz="·",zz="𝔠",Vz="ℭ",Hz="Ч",qz="ч",Yz="✓",$z="✓",Wz="Χ",Kz="χ",jz="ˆ",Qz="≗",Xz="↺",Zz="↻",Jz="⊛",eV="⊚",tV="⊝",nV="⊙",rV="®",iV="Ⓢ",sV="⊖",oV="⊕",aV="⊗",lV="○",cV="⧃",dV="≗",uV="⨐",pV="⫯",hV="⧂",mV="∲",fV="”",gV="’",_V="♣",bV="♣",vV=":",yV="∷",EV="⩴",SV="≔",xV="≔",TV=",",wV="@",CV="∁",AV="∘",RV="∁",MV="ℂ",NV="≅",kV="⩭",IV="≡",OV="∮",DV="∯",LV="∮",PV="𝕔",FV="ℂ",UV="∐",BV="∐",GV="©",zV="©",VV="℗",HV="∳",qV="↵",YV="✗",$V="⨯",WV="𝒞",KV="𝒸",jV="⫏",QV="⫑",XV="⫐",ZV="⫒",JV="⋯",eH="⤸",tH="⤵",nH="⋞",rH="⋟",iH="↶",sH="⤽",oH="⩈",aH="⩆",lH="≍",cH="∪",dH="⋓",uH="⩊",pH="⊍",hH="⩅",mH="∪︀",fH="↷",gH="⤼",_H="⋞",bH="⋟",vH="⋎",yH="⋏",EH="¤",SH="↶",xH="↷",TH="⋎",wH="⋏",CH="∲",AH="∱",RH="⌭",MH="†",NH="‡",kH="ℸ",IH="↓",OH="↡",DH="⇓",LH="‐",PH="⫤",FH="⊣",UH="⤏",BH="˝",GH="Ď",zH="ď",VH="Д",HH="д",qH="‡",YH="⇊",$H="ⅅ",WH="ⅆ",KH="⤑",jH="⩷",QH="°",XH="∇",ZH="Δ",JH="δ",eq="⦱",tq="⥿",nq="𝔇",rq="𝔡",iq="⥥",sq="⇃",oq="⇂",aq="´",lq="˙",cq="˝",dq="`",uq="˜",pq="⋄",hq="⋄",mq="⋄",fq="♦",gq="♦",_q="¨",bq="ⅆ",vq="ϝ",yq="⋲",Eq="÷",Sq="÷",xq="⋇",Tq="⋇",wq="Ђ",Cq="ђ",Aq="⌞",Rq="⌍",Mq="$",Nq="𝔻",kq="𝕕",Iq="¨",Oq="˙",Dq="⃜",Lq="≐",Pq="≑",Fq="≐",Uq="∸",Bq="∔",Gq="⊡",zq="⌆",Vq="∯",Hq="¨",qq="⇓",Yq="⇐",$q="⇔",Wq="⫤",Kq="⟸",jq="⟺",Qq="⟹",Xq="⇒",Zq="⊨",Jq="⇑",eY="⇕",tY="∥",nY="⤓",rY="↓",iY="↓",sY="⇓",oY="⇵",aY="̑",lY="⇊",cY="⇃",dY="⇂",uY="⥐",pY="⥞",hY="⥖",mY="↽",fY="⥟",gY="⥗",_Y="⇁",bY="↧",vY="⊤",yY="⤐",EY="⌟",SY="⌌",xY="𝒟",TY="𝒹",wY="Ѕ",CY="ѕ",AY="⧶",RY="Đ",MY="đ",NY="⋱",kY="▿",IY="▾",OY="⇵",DY="⥯",LY="⦦",PY="Џ",FY="џ",UY="⟿",BY="É",GY="é",zY="⩮",VY="Ě",HY="ě",qY="Ê",YY="ê",$Y="≖",WY="≕",KY="Э",jY="э",QY="⩷",XY="Ė",ZY="ė",JY="≑",e$="ⅇ",t$="≒",n$="𝔈",r$="𝔢",i$="⪚",s$="È",o$="è",a$="⪖",l$="⪘",c$="⪙",d$="∈",u$="⏧",p$="ℓ",h$="⪕",m$="⪗",f$="Ē",g$="ē",_$="∅",b$="∅",v$="◻",y$="∅",E$="▫",S$=" ",x$=" ",T$=" ",w$="Ŋ",C$="ŋ",A$=" ",R$="Ę",M$="ę",N$="𝔼",k$="𝕖",I$="⋕",O$="⧣",D$="⩱",L$="ε",P$="Ε",F$="ε",U$="ϵ",B$="≖",G$="≕",z$="≂",V$="⪖",H$="⪕",q$="⩵",Y$="=",$$="≂",W$="≟",K$="⇌",j$="≡",Q$="⩸",X$="⧥",Z$="⥱",J$="≓",eW="ℯ",tW="ℰ",nW="≐",rW="⩳",iW="≂",sW="Η",oW="η",aW="Ð",lW="ð",cW="Ë",dW="ë",uW="€",pW="!",hW="∃",mW="∃",fW="ℰ",gW="ⅇ",_W="ⅇ",bW="≒",vW="Ф",yW="ф",EW="♀",SW="ffi",xW="ff",TW="ffl",wW="𝔉",CW="𝔣",AW="fi",RW="◼",MW="▪",NW="fj",kW="♭",IW="fl",OW="▱",DW="ƒ",LW="𝔽",PW="𝕗",FW="∀",UW="∀",BW="⋔",GW="⫙",zW="ℱ",VW="⨍",HW="½",qW="⅓",YW="¼",$W="⅕",WW="⅙",KW="⅛",jW="⅔",QW="⅖",XW="¾",ZW="⅗",JW="⅜",eK="⅘",tK="⅚",nK="⅝",rK="⅞",iK="⁄",sK="⌢",oK="𝒻",aK="ℱ",lK="ǵ",cK="Γ",dK="γ",uK="Ϝ",pK="ϝ",hK="⪆",mK="Ğ",fK="ğ",gK="Ģ",_K="Ĝ",bK="ĝ",vK="Г",yK="г",EK="Ġ",SK="ġ",xK="≥",TK="≧",wK="⪌",CK="⋛",AK="≥",RK="≧",MK="⩾",NK="⪩",kK="⩾",IK="⪀",OK="⪂",DK="⪄",LK="⋛︀",PK="⪔",FK="𝔊",UK="𝔤",BK="≫",GK="⋙",zK="⋙",VK="ℷ",HK="Ѓ",qK="ѓ",YK="⪥",$K="≷",WK="⪒",KK="⪤",jK="⪊",QK="⪊",XK="⪈",ZK="≩",JK="⪈",ej="≩",tj="⋧",nj="𝔾",rj="𝕘",ij="`",sj="≥",oj="⋛",aj="≧",lj="⪢",cj="≷",dj="⩾",uj="≳",pj="𝒢",hj="ℊ",mj="≳",fj="⪎",gj="⪐",_j="⪧",bj="⩺",vj=">",yj=">",Ej="≫",Sj="⋗",xj="⦕",Tj="⩼",wj="⪆",Cj="⥸",Aj="⋗",Rj="⋛",Mj="⪌",Nj="≷",kj="≳",Ij="≩︀",Oj="≩︀",Dj="ˇ",Lj=" ",Pj="½",Fj="ℋ",Uj="Ъ",Bj="ъ",Gj="⥈",zj="↔",Vj="⇔",Hj="↭",qj="^",Yj="ℏ",$j="Ĥ",Wj="ĥ",Kj="♥",jj="♥",Qj="…",Xj="⊹",Zj="𝔥",Jj="ℌ",eQ="ℋ",tQ="⤥",nQ="⤦",rQ="⇿",iQ="∻",sQ="↩",oQ="↪",aQ="𝕙",lQ="ℍ",cQ="―",dQ="─",uQ="𝒽",pQ="ℋ",hQ="ℏ",mQ="Ħ",fQ="ħ",gQ="≎",_Q="≏",bQ="⁃",vQ="‐",yQ="Í",EQ="í",SQ="⁣",xQ="Î",TQ="î",wQ="И",CQ="и",AQ="İ",RQ="Е",MQ="е",NQ="¡",kQ="⇔",IQ="𝔦",OQ="ℑ",DQ="Ì",LQ="ì",PQ="ⅈ",FQ="⨌",UQ="∭",BQ="⧜",GQ="℩",zQ="IJ",VQ="ij",HQ="Ī",qQ="ī",YQ="ℑ",$Q="ⅈ",WQ="ℐ",KQ="ℑ",jQ="ı",QQ="ℑ",XQ="⊷",ZQ="Ƶ",JQ="⇒",eX="℅",tX="∞",nX="⧝",rX="ı",iX="⊺",sX="∫",oX="∬",aX="ℤ",lX="∫",cX="⊺",dX="⋂",uX="⨗",pX="⨼",hX="⁣",mX="⁢",fX="Ё",gX="ё",_X="Į",bX="į",vX="𝕀",yX="𝕚",EX="Ι",SX="ι",xX="⨼",TX="¿",wX="𝒾",CX="ℐ",AX="∈",RX="⋵",MX="⋹",NX="⋴",kX="⋳",IX="∈",OX="⁢",DX="Ĩ",LX="ĩ",PX="І",FX="і",UX="Ï",BX="ï",GX="Ĵ",zX="ĵ",VX="Й",HX="й",qX="𝔍",YX="𝔧",$X="ȷ",WX="𝕁",KX="𝕛",jX="𝒥",QX="𝒿",XX="Ј",ZX="ј",JX="Є",eZ="є",tZ="Κ",nZ="κ",rZ="ϰ",iZ="Ķ",sZ="ķ",oZ="К",aZ="к",lZ="𝔎",cZ="𝔨",dZ="ĸ",uZ="Х",pZ="х",hZ="Ќ",mZ="ќ",fZ="𝕂",gZ="𝕜",_Z="𝒦",bZ="𝓀",vZ="⇚",yZ="Ĺ",EZ="ĺ",SZ="⦴",xZ="ℒ",TZ="Λ",wZ="λ",CZ="⟨",AZ="⟪",RZ="⦑",MZ="⟨",NZ="⪅",kZ="ℒ",IZ="«",OZ="⇤",DZ="⤟",LZ="←",PZ="↞",FZ="⇐",UZ="⤝",BZ="↩",GZ="↫",zZ="⤹",VZ="⥳",HZ="↢",qZ="⤙",YZ="⤛",$Z="⪫",WZ="⪭",KZ="⪭︀",jZ="⤌",QZ="⤎",XZ="❲",ZZ="{",JZ="[",eJ="⦋",tJ="⦏",nJ="⦍",rJ="Ľ",iJ="ľ",sJ="Ļ",oJ="ļ",aJ="⌈",lJ="{",cJ="Л",dJ="л",uJ="⤶",pJ="“",hJ="„",mJ="⥧",fJ="⥋",gJ="↲",_J="≤",bJ="≦",vJ="⟨",yJ="⇤",EJ="←",SJ="←",xJ="⇐",TJ="⇆",wJ="↢",CJ="⌈",AJ="⟦",RJ="⥡",MJ="⥙",NJ="⇃",kJ="⌊",IJ="↽",OJ="↼",DJ="⇇",LJ="↔",PJ="↔",FJ="⇔",UJ="⇆",BJ="⇋",GJ="↭",zJ="⥎",VJ="↤",HJ="⊣",qJ="⥚",YJ="⋋",$J="⧏",WJ="⊲",KJ="⊴",jJ="⥑",QJ="⥠",XJ="⥘",ZJ="↿",JJ="⥒",eee="↼",tee="⪋",nee="⋚",ree="≤",iee="≦",see="⩽",oee="⪨",aee="⩽",lee="⩿",cee="⪁",dee="⪃",uee="⋚︀",pee="⪓",hee="⪅",mee="⋖",fee="⋚",gee="⪋",_ee="⋚",bee="≦",vee="≶",yee="≶",Eee="⪡",See="≲",xee="⩽",Tee="≲",wee="⥼",Cee="⌊",Aee="𝔏",Ree="𝔩",Mee="≶",Nee="⪑",kee="⥢",Iee="↽",Oee="↼",Dee="⥪",Lee="▄",Pee="Љ",Fee="љ",Uee="⇇",Bee="≪",Gee="⋘",zee="⌞",Vee="⇚",Hee="⥫",qee="◺",Yee="Ŀ",$ee="ŀ",Wee="⎰",Kee="⎰",jee="⪉",Qee="⪉",Xee="⪇",Zee="≨",Jee="⪇",ete="≨",tte="⋦",nte="⟬",rte="⇽",ite="⟦",ste="⟵",ote="⟵",ate="⟸",lte="⟷",cte="⟷",dte="⟺",ute="⟼",pte="⟶",hte="⟶",mte="⟹",fte="↫",gte="↬",_te="⦅",bte="𝕃",vte="𝕝",yte="⨭",Ete="⨴",Ste="∗",xte="_",Tte="↙",wte="↘",Cte="◊",Ate="◊",Rte="⧫",Mte="(",Nte="⦓",kte="⇆",Ite="⌟",Ote="⇋",Dte="⥭",Lte="‎",Pte="⊿",Fte="‹",Ute="𝓁",Bte="ℒ",Gte="↰",zte="↰",Vte="≲",Hte="⪍",qte="⪏",Yte="[",$te="‘",Wte="‚",Kte="Ł",jte="ł",Qte="⪦",Xte="⩹",Zte="<",Jte="<",ene="≪",tne="⋖",nne="⋋",rne="⋉",ine="⥶",sne="⩻",one="◃",ane="⊴",lne="◂",cne="⦖",dne="⥊",une="⥦",pne="≨︀",hne="≨︀",mne="¯",fne="♂",gne="✠",_ne="✠",bne="↦",vne="↦",yne="↧",Ene="↤",Sne="↥",xne="▮",Tne="⨩",wne="М",Cne="м",Ane="—",Rne="∺",Mne="∡",Nne=" ",kne="ℳ",Ine="𝔐",One="𝔪",Dne="℧",Lne="µ",Pne="*",Fne="⫰",Une="∣",Bne="·",Gne="⊟",zne="−",Vne="∸",Hne="⨪",qne="∓",Yne="⫛",$ne="…",Wne="∓",Kne="⊧",jne="𝕄",Qne="𝕞",Xne="∓",Zne="𝓂",Jne="ℳ",ere="∾",tre="Μ",nre="μ",rre="⊸",ire="⊸",sre="∇",ore="Ń",are="ń",lre="∠⃒",cre="≉",dre="⩰̸",ure="≋̸",pre="ʼn",hre="≉",mre="♮",fre="ℕ",gre="♮",_re=" ",bre="≎̸",vre="≏̸",yre="⩃",Ere="Ň",Sre="ň",xre="Ņ",Tre="ņ",wre="≇",Cre="⩭̸",Are="⩂",Rre="Н",Mre="н",Nre="–",kre="⤤",Ire="↗",Ore="⇗",Dre="↗",Lre="≠",Pre="≐̸",Fre="​",Ure="​",Bre="​",Gre="​",zre="≢",Vre="⤨",Hre="≂̸",qre="≫",Yre="≪",$re=` +`,Wre="∄",Kre="∄",jre="𝔑",Qre="𝔫",Xre="≧̸",Zre="≱",Jre="≱",eie="≧̸",tie="⩾̸",nie="⩾̸",rie="⋙̸",iie="≵",sie="≫⃒",oie="≯",aie="≯",lie="≫̸",cie="↮",die="⇎",uie="⫲",pie="∋",hie="⋼",mie="⋺",fie="∋",gie="Њ",_ie="њ",bie="↚",vie="⇍",yie="‥",Eie="≦̸",Sie="≰",xie="↚",Tie="⇍",wie="↮",Cie="⇎",Aie="≰",Rie="≦̸",Mie="⩽̸",Nie="⩽̸",kie="≮",Iie="⋘̸",Oie="≴",Die="≪⃒",Lie="≮",Pie="⋪",Fie="⋬",Uie="≪̸",Bie="∤",Gie="⁠",zie=" ",Vie="𝕟",Hie="ℕ",qie="⫬",Yie="¬",$ie="≢",Wie="≭",Kie="∦",jie="∉",Qie="≠",Xie="≂̸",Zie="∄",Jie="≯",ese="≱",tse="≧̸",nse="≫̸",rse="≹",ise="⩾̸",sse="≵",ose="≎̸",ase="≏̸",lse="∉",cse="⋵̸",dse="⋹̸",use="∉",pse="⋷",hse="⋶",mse="⧏̸",fse="⋪",gse="⋬",_se="≮",bse="≰",vse="≸",yse="≪̸",Ese="⩽̸",Sse="≴",xse="⪢̸",Tse="⪡̸",wse="∌",Cse="∌",Ase="⋾",Rse="⋽",Mse="⊀",Nse="⪯̸",kse="⋠",Ise="∌",Ose="⧐̸",Dse="⋫",Lse="⋭",Pse="⊏̸",Fse="⋢",Use="⊐̸",Bse="⋣",Gse="⊂⃒",zse="⊈",Vse="⊁",Hse="⪰̸",qse="⋡",Yse="≿̸",$se="⊃⃒",Wse="⊉",Kse="≁",jse="≄",Qse="≇",Xse="≉",Zse="∤",Jse="∦",eoe="∦",toe="⫽⃥",noe="∂̸",roe="⨔",ioe="⊀",soe="⋠",ooe="⊀",aoe="⪯̸",loe="⪯̸",coe="⤳̸",doe="↛",uoe="⇏",poe="↝̸",hoe="↛",moe="⇏",foe="⋫",goe="⋭",_oe="⊁",boe="⋡",voe="⪰̸",yoe="𝒩",Eoe="𝓃",Soe="∤",xoe="∦",Toe="≁",woe="≄",Coe="≄",Aoe="∤",Roe="∦",Moe="⋢",Noe="⋣",koe="⊄",Ioe="⫅̸",Ooe="⊈",Doe="⊂⃒",Loe="⊈",Poe="⫅̸",Foe="⊁",Uoe="⪰̸",Boe="⊅",Goe="⫆̸",zoe="⊉",Voe="⊃⃒",Hoe="⊉",qoe="⫆̸",Yoe="≹",$oe="Ñ",Woe="ñ",Koe="≸",joe="⋪",Qoe="⋬",Xoe="⋫",Zoe="⋭",Joe="Ν",eae="ν",tae="#",nae="№",rae=" ",iae="≍⃒",sae="⊬",oae="⊭",aae="⊮",lae="⊯",cae="≥⃒",dae=">⃒",uae="⤄",pae="⧞",hae="⤂",mae="≤⃒",fae="<⃒",gae="⊴⃒",_ae="⤃",bae="⊵⃒",vae="∼⃒",yae="⤣",Eae="↖",Sae="⇖",xae="↖",Tae="⤧",wae="Ó",Cae="ó",Aae="⊛",Rae="Ô",Mae="ô",Nae="⊚",kae="О",Iae="о",Oae="⊝",Dae="Ő",Lae="ő",Pae="⨸",Fae="⊙",Uae="⦼",Bae="Œ",Gae="œ",zae="⦿",Vae="𝔒",Hae="𝔬",qae="˛",Yae="Ò",$ae="ò",Wae="⧁",Kae="⦵",jae="Ω",Qae="∮",Xae="↺",Zae="⦾",Jae="⦻",ele="‾",tle="⧀",nle="Ō",rle="ō",ile="Ω",sle="ω",ole="Ο",ale="ο",lle="⦶",cle="⊖",dle="𝕆",ule="𝕠",ple="⦷",hle="“",mle="‘",fle="⦹",gle="⊕",_le="↻",ble="⩔",vle="∨",yle="⩝",Ele="ℴ",Sle="ℴ",xle="ª",Tle="º",wle="⊶",Cle="⩖",Ale="⩗",Rle="⩛",Mle="Ⓢ",Nle="𝒪",kle="ℴ",Ile="Ø",Ole="ø",Dle="⊘",Lle="Õ",Ple="õ",Fle="⨶",Ule="⨷",Ble="⊗",Gle="Ö",zle="ö",Vle="⌽",Hle="‾",qle="⏞",Yle="⎴",$le="⏜",Wle="¶",Kle="∥",jle="∥",Qle="⫳",Xle="⫽",Zle="∂",Jle="∂",ece="П",tce="п",nce="%",rce=".",ice="‰",sce="⊥",oce="‱",ace="𝔓",lce="𝔭",cce="Φ",dce="φ",uce="ϕ",pce="ℳ",hce="☎",mce="Π",fce="π",gce="⋔",_ce="ϖ",bce="ℏ",vce="ℎ",yce="ℏ",Ece="⨣",Sce="⊞",xce="⨢",Tce="+",wce="∔",Cce="⨥",Ace="⩲",Rce="±",Mce="±",Nce="⨦",kce="⨧",Ice="±",Oce="ℌ",Dce="⨕",Lce="𝕡",Pce="ℙ",Fce="£",Uce="⪷",Bce="⪻",Gce="≺",zce="≼",Vce="⪷",Hce="≺",qce="≼",Yce="≺",$ce="⪯",Wce="≼",Kce="≾",jce="⪯",Qce="⪹",Xce="⪵",Zce="⋨",Jce="⪯",ede="⪳",tde="≾",nde="′",rde="″",ide="ℙ",sde="⪹",ode="⪵",ade="⋨",lde="∏",cde="∏",dde="⌮",ude="⌒",pde="⌓",hde="∝",mde="∝",fde="∷",gde="∝",_de="≾",bde="⊰",vde="𝒫",yde="𝓅",Ede="Ψ",Sde="ψ",xde=" ",Tde="𝔔",wde="𝔮",Cde="⨌",Ade="𝕢",Rde="ℚ",Mde="⁗",Nde="𝒬",kde="𝓆",Ide="ℍ",Ode="⨖",Dde="?",Lde="≟",Pde='"',Fde='"',Ude="⇛",Bde="∽̱",Gde="Ŕ",zde="ŕ",Vde="√",Hde="⦳",qde="⟩",Yde="⟫",$de="⦒",Wde="⦥",Kde="⟩",jde="»",Qde="⥵",Xde="⇥",Zde="⤠",Jde="⤳",eue="→",tue="↠",nue="⇒",rue="⤞",iue="↪",sue="↬",oue="⥅",aue="⥴",lue="⤖",cue="↣",due="↝",uue="⤚",pue="⤜",hue="∶",mue="ℚ",fue="⤍",gue="⤏",_ue="⤐",bue="❳",vue="}",yue="]",Eue="⦌",Sue="⦎",xue="⦐",Tue="Ř",wue="ř",Cue="Ŗ",Aue="ŗ",Rue="⌉",Mue="}",Nue="Р",kue="р",Iue="⤷",Oue="⥩",Due="”",Lue="”",Pue="↳",Fue="ℜ",Uue="ℛ",Bue="ℜ",Gue="ℝ",zue="ℜ",Vue="▭",Hue="®",que="®",Yue="∋",$ue="⇋",Wue="⥯",Kue="⥽",jue="⌋",Que="𝔯",Xue="ℜ",Zue="⥤",Jue="⇁",epe="⇀",tpe="⥬",npe="Ρ",rpe="ρ",ipe="ϱ",spe="⟩",ope="⇥",ape="→",lpe="→",cpe="⇒",dpe="⇄",upe="↣",ppe="⌉",hpe="⟧",mpe="⥝",fpe="⥕",gpe="⇂",_pe="⌋",bpe="⇁",vpe="⇀",ype="⇄",Epe="⇌",Spe="⇉",xpe="↝",Tpe="↦",wpe="⊢",Cpe="⥛",Ape="⋌",Rpe="⧐",Mpe="⊳",Npe="⊵",kpe="⥏",Ipe="⥜",Ope="⥔",Dpe="↾",Lpe="⥓",Ppe="⇀",Fpe="˚",Upe="≓",Bpe="⇄",Gpe="⇌",zpe="‏",Vpe="⎱",Hpe="⎱",qpe="⫮",Ype="⟭",$pe="⇾",Wpe="⟧",Kpe="⦆",jpe="𝕣",Qpe="ℝ",Xpe="⨮",Zpe="⨵",Jpe="⥰",ehe=")",the="⦔",nhe="⨒",rhe="⇉",ihe="⇛",she="›",ohe="𝓇",ahe="ℛ",lhe="↱",che="↱",dhe="]",uhe="’",phe="’",hhe="⋌",mhe="⋊",fhe="▹",ghe="⊵",_he="▸",bhe="⧎",vhe="⧴",yhe="⥨",Ehe="℞",She="Ś",xhe="ś",The="‚",whe="⪸",Che="Š",Ahe="š",Rhe="⪼",Mhe="≻",Nhe="≽",khe="⪰",Ihe="⪴",Ohe="Ş",Dhe="ş",Lhe="Ŝ",Phe="ŝ",Fhe="⪺",Uhe="⪶",Bhe="⋩",Ghe="⨓",zhe="≿",Vhe="С",Hhe="с",qhe="⊡",Yhe="⋅",$he="⩦",Whe="⤥",Khe="↘",jhe="⇘",Qhe="↘",Xhe="§",Zhe=";",Jhe="⤩",eme="∖",tme="∖",nme="✶",rme="𝔖",ime="𝔰",sme="⌢",ome="♯",ame="Щ",lme="щ",cme="Ш",dme="ш",ume="↓",pme="←",hme="∣",mme="∥",fme="→",gme="↑",_me="­",bme="Σ",vme="σ",yme="ς",Eme="ς",Sme="∼",xme="⩪",Tme="≃",wme="≃",Cme="⪞",Ame="⪠",Rme="⪝",Mme="⪟",Nme="≆",kme="⨤",Ime="⥲",Ome="←",Dme="∘",Lme="∖",Pme="⨳",Fme="⧤",Ume="∣",Bme="⌣",Gme="⪪",zme="⪬",Vme="⪬︀",Hme="Ь",qme="ь",Yme="⌿",$me="⧄",Wme="/",Kme="𝕊",jme="𝕤",Qme="♠",Xme="♠",Zme="∥",Jme="⊓",efe="⊓︀",tfe="⊔",nfe="⊔︀",rfe="√",ife="⊏",sfe="⊑",ofe="⊏",afe="⊑",lfe="⊐",cfe="⊒",dfe="⊐",ufe="⊒",pfe="□",hfe="□",mfe="⊓",ffe="⊏",gfe="⊑",_fe="⊐",bfe="⊒",vfe="⊔",yfe="▪",Efe="□",Sfe="▪",xfe="→",Tfe="𝒮",wfe="𝓈",Cfe="∖",Afe="⌣",Rfe="⋆",Mfe="⋆",Nfe="☆",kfe="★",Ife="ϵ",Ofe="ϕ",Dfe="¯",Lfe="⊂",Pfe="⋐",Ffe="⪽",Ufe="⫅",Bfe="⊆",Gfe="⫃",zfe="⫁",Vfe="⫋",Hfe="⊊",qfe="⪿",Yfe="⥹",$fe="⊂",Wfe="⋐",Kfe="⊆",jfe="⫅",Qfe="⊆",Xfe="⊊",Zfe="⫋",Jfe="⫇",ege="⫕",tge="⫓",nge="⪸",rge="≻",ige="≽",sge="≻",oge="⪰",age="≽",lge="≿",cge="⪰",dge="⪺",uge="⪶",pge="⋩",hge="≿",mge="∋",fge="∑",gge="∑",_ge="♪",bge="¹",vge="²",yge="³",Ege="⊃",Sge="⋑",xge="⪾",Tge="⫘",wge="⫆",Cge="⊇",Age="⫄",Rge="⊃",Mge="⊇",Nge="⟉",kge="⫗",Ige="⥻",Oge="⫂",Dge="⫌",Lge="⊋",Pge="⫀",Fge="⊃",Uge="⋑",Bge="⊇",Gge="⫆",zge="⊋",Vge="⫌",Hge="⫈",qge="⫔",Yge="⫖",$ge="⤦",Wge="↙",Kge="⇙",jge="↙",Qge="⤪",Xge="ß",Zge=" ",Jge="⌖",e_e="Τ",t_e="τ",n_e="⎴",r_e="Ť",i_e="ť",s_e="Ţ",o_e="ţ",a_e="Т",l_e="т",c_e="⃛",d_e="⌕",u_e="𝔗",p_e="𝔱",h_e="∴",m_e="∴",f_e="∴",g_e="Θ",__e="θ",b_e="ϑ",v_e="ϑ",y_e="≈",E_e="∼",S_e="  ",x_e=" ",T_e=" ",w_e="≈",C_e="∼",A_e="Þ",R_e="þ",M_e="˜",N_e="∼",k_e="≃",I_e="≅",O_e="≈",D_e="⨱",L_e="⊠",P_e="×",F_e="⨰",U_e="∭",B_e="⤨",G_e="⌶",z_e="⫱",V_e="⊤",H_e="𝕋",q_e="𝕥",Y_e="⫚",$_e="⤩",W_e="‴",K_e="™",j_e="™",Q_e="▵",X_e="▿",Z_e="◃",J_e="⊴",e0e="≜",t0e="▹",n0e="⊵",r0e="◬",i0e="≜",s0e="⨺",o0e="⃛",a0e="⨹",l0e="⧍",c0e="⨻",d0e="⏢",u0e="𝒯",p0e="𝓉",h0e="Ц",m0e="ц",f0e="Ћ",g0e="ћ",_0e="Ŧ",b0e="ŧ",v0e="≬",y0e="↞",E0e="↠",S0e="Ú",x0e="ú",T0e="↑",w0e="↟",C0e="⇑",A0e="⥉",R0e="Ў",M0e="ў",N0e="Ŭ",k0e="ŭ",I0e="Û",O0e="û",D0e="У",L0e="у",P0e="⇅",F0e="Ű",U0e="ű",B0e="⥮",G0e="⥾",z0e="𝔘",V0e="𝔲",H0e="Ù",q0e="ù",Y0e="⥣",$0e="↿",W0e="↾",K0e="▀",j0e="⌜",Q0e="⌜",X0e="⌏",Z0e="◸",J0e="Ū",ebe="ū",tbe="¨",nbe="_",rbe="⏟",ibe="⎵",sbe="⏝",obe="⋃",abe="⊎",lbe="Ų",cbe="ų",dbe="𝕌",ube="𝕦",pbe="⤒",hbe="↑",mbe="↑",fbe="⇑",gbe="⇅",_be="↕",bbe="↕",vbe="⇕",ybe="⥮",Ebe="↿",Sbe="↾",xbe="⊎",Tbe="↖",wbe="↗",Cbe="υ",Abe="ϒ",Rbe="ϒ",Mbe="Υ",Nbe="υ",kbe="↥",Ibe="⊥",Obe="⇈",Dbe="⌝",Lbe="⌝",Pbe="⌎",Fbe="Ů",Ube="ů",Bbe="◹",Gbe="𝒰",zbe="𝓊",Vbe="⋰",Hbe="Ũ",qbe="ũ",Ybe="▵",$be="▴",Wbe="⇈",Kbe="Ü",jbe="ü",Qbe="⦧",Xbe="⦜",Zbe="ϵ",Jbe="ϰ",e1e="∅",t1e="ϕ",n1e="ϖ",r1e="∝",i1e="↕",s1e="⇕",o1e="ϱ",a1e="ς",l1e="⊊︀",c1e="⫋︀",d1e="⊋︀",u1e="⫌︀",p1e="ϑ",h1e="⊲",m1e="⊳",f1e="⫨",g1e="⫫",_1e="⫩",b1e="В",v1e="в",y1e="⊢",E1e="⊨",S1e="⊩",x1e="⊫",T1e="⫦",w1e="⊻",C1e="∨",A1e="⋁",R1e="≚",M1e="⋮",N1e="|",k1e="‖",I1e="|",O1e="‖",D1e="∣",L1e="|",P1e="❘",F1e="≀",U1e=" ",B1e="𝔙",G1e="𝔳",z1e="⊲",V1e="⊂⃒",H1e="⊃⃒",q1e="𝕍",Y1e="𝕧",$1e="∝",W1e="⊳",K1e="𝒱",j1e="𝓋",Q1e="⫋︀",X1e="⊊︀",Z1e="⫌︀",J1e="⊋︀",eve="⊪",tve="⦚",nve="Ŵ",rve="ŵ",ive="⩟",sve="∧",ove="⋀",ave="≙",lve="℘",cve="𝔚",dve="𝔴",uve="𝕎",pve="𝕨",hve="℘",mve="≀",fve="≀",gve="𝒲",_ve="𝓌",bve="⋂",vve="◯",yve="⋃",Eve="▽",Sve="𝔛",xve="𝔵",Tve="⟷",wve="⟺",Cve="Ξ",Ave="ξ",Rve="⟵",Mve="⟸",Nve="⟼",kve="⋻",Ive="⨀",Ove="𝕏",Dve="𝕩",Lve="⨁",Pve="⨂",Fve="⟶",Uve="⟹",Bve="𝒳",Gve="𝓍",zve="⨆",Vve="⨄",Hve="△",qve="⋁",Yve="⋀",$ve="Ý",Wve="ý",Kve="Я",jve="я",Qve="Ŷ",Xve="ŷ",Zve="Ы",Jve="ы",eye="¥",tye="𝔜",nye="𝔶",rye="Ї",iye="ї",sye="𝕐",oye="𝕪",aye="𝒴",lye="𝓎",cye="Ю",dye="ю",uye="ÿ",pye="Ÿ",hye="Ź",mye="ź",fye="Ž",gye="ž",_ye="З",bye="з",vye="Ż",yye="ż",Eye="ℨ",Sye="​",xye="Ζ",Tye="ζ",wye="𝔷",Cye="ℨ",Aye="Ж",Rye="ж",Mye="⇝",Nye="𝕫",kye="ℤ",Iye="𝒵",Oye="𝓏",Dye="‍",Lye="‌",Pye={Aacute:vF,aacute:yF,Abreve:EF,abreve:SF,ac:xF,acd:TF,acE:wF,Acirc:CF,acirc:AF,acute:RF,Acy:MF,acy:NF,AElig:kF,aelig:IF,af:OF,Afr:DF,afr:LF,Agrave:PF,agrave:FF,alefsym:UF,aleph:BF,Alpha:GF,alpha:zF,Amacr:VF,amacr:HF,amalg:qF,amp:YF,AMP:$F,andand:WF,And:KF,and:jF,andd:QF,andslope:XF,andv:ZF,ang:JF,ange:eU,angle:tU,angmsdaa:nU,angmsdab:rU,angmsdac:iU,angmsdad:sU,angmsdae:oU,angmsdaf:aU,angmsdag:lU,angmsdah:cU,angmsd:dU,angrt:uU,angrtvb:pU,angrtvbd:hU,angsph:mU,angst:fU,angzarr:gU,Aogon:_U,aogon:bU,Aopf:vU,aopf:yU,apacir:EU,ap:SU,apE:xU,ape:TU,apid:wU,apos:CU,ApplyFunction:AU,approx:RU,approxeq:MU,Aring:NU,aring:kU,Ascr:IU,ascr:OU,Assign:DU,ast:LU,asymp:PU,asympeq:FU,Atilde:UU,atilde:BU,Auml:GU,auml:zU,awconint:VU,awint:HU,backcong:qU,backepsilon:YU,backprime:$U,backsim:WU,backsimeq:KU,Backslash:jU,Barv:QU,barvee:XU,barwed:ZU,Barwed:JU,barwedge:eB,bbrk:tB,bbrktbrk:nB,bcong:rB,Bcy:iB,bcy:sB,bdquo:oB,becaus:aB,because:lB,Because:cB,bemptyv:dB,bepsi:uB,bernou:pB,Bernoullis:hB,Beta:mB,beta:fB,beth:gB,between:_B,Bfr:bB,bfr:vB,bigcap:yB,bigcirc:EB,bigcup:SB,bigodot:xB,bigoplus:TB,bigotimes:wB,bigsqcup:CB,bigstar:AB,bigtriangledown:RB,bigtriangleup:MB,biguplus:NB,bigvee:kB,bigwedge:IB,bkarow:OB,blacklozenge:DB,blacksquare:LB,blacktriangle:PB,blacktriangledown:FB,blacktriangleleft:UB,blacktriangleright:BB,blank:GB,blk12:zB,blk14:VB,blk34:HB,block:qB,bne:YB,bnequiv:$B,bNot:WB,bnot:KB,Bopf:jB,bopf:QB,bot:XB,bottom:ZB,bowtie:JB,boxbox:eG,boxdl:tG,boxdL:nG,boxDl:rG,boxDL:iG,boxdr:sG,boxdR:oG,boxDr:aG,boxDR:lG,boxh:cG,boxH:dG,boxhd:uG,boxHd:pG,boxhD:hG,boxHD:mG,boxhu:fG,boxHu:gG,boxhU:_G,boxHU:bG,boxminus:vG,boxplus:yG,boxtimes:EG,boxul:SG,boxuL:xG,boxUl:TG,boxUL:wG,boxur:CG,boxuR:AG,boxUr:RG,boxUR:MG,boxv:NG,boxV:kG,boxvh:IG,boxvH:OG,boxVh:DG,boxVH:LG,boxvl:PG,boxvL:FG,boxVl:UG,boxVL:BG,boxvr:GG,boxvR:zG,boxVr:VG,boxVR:HG,bprime:qG,breve:YG,Breve:$G,brvbar:WG,bscr:KG,Bscr:jG,bsemi:QG,bsim:XG,bsime:ZG,bsolb:JG,bsol:ez,bsolhsub:tz,bull:nz,bullet:rz,bump:iz,bumpE:sz,bumpe:oz,Bumpeq:az,bumpeq:lz,Cacute:cz,cacute:dz,capand:uz,capbrcup:pz,capcap:hz,cap:mz,Cap:fz,capcup:gz,capdot:_z,CapitalDifferentialD:bz,caps:vz,caret:yz,caron:Ez,Cayleys:Sz,ccaps:xz,Ccaron:Tz,ccaron:wz,Ccedil:Cz,ccedil:Az,Ccirc:Rz,ccirc:Mz,Cconint:Nz,ccups:kz,ccupssm:Iz,Cdot:Oz,cdot:Dz,cedil:Lz,Cedilla:Pz,cemptyv:Fz,cent:Uz,centerdot:Bz,CenterDot:Gz,cfr:zz,Cfr:Vz,CHcy:Hz,chcy:qz,check:Yz,checkmark:$z,Chi:Wz,chi:Kz,circ:jz,circeq:Qz,circlearrowleft:Xz,circlearrowright:Zz,circledast:Jz,circledcirc:eV,circleddash:tV,CircleDot:nV,circledR:rV,circledS:iV,CircleMinus:sV,CirclePlus:oV,CircleTimes:aV,cir:lV,cirE:cV,cire:dV,cirfnint:uV,cirmid:pV,cirscir:hV,ClockwiseContourIntegral:mV,CloseCurlyDoubleQuote:fV,CloseCurlyQuote:gV,clubs:_V,clubsuit:bV,colon:vV,Colon:yV,Colone:EV,colone:SV,coloneq:xV,comma:TV,commat:wV,comp:CV,compfn:AV,complement:RV,complexes:MV,cong:NV,congdot:kV,Congruent:IV,conint:OV,Conint:DV,ContourIntegral:LV,copf:PV,Copf:FV,coprod:UV,Coproduct:BV,copy:GV,COPY:zV,copysr:VV,CounterClockwiseContourIntegral:HV,crarr:qV,cross:YV,Cross:$V,Cscr:WV,cscr:KV,csub:jV,csube:QV,csup:XV,csupe:ZV,ctdot:JV,cudarrl:eH,cudarrr:tH,cuepr:nH,cuesc:rH,cularr:iH,cularrp:sH,cupbrcap:oH,cupcap:aH,CupCap:lH,cup:cH,Cup:dH,cupcup:uH,cupdot:pH,cupor:hH,cups:mH,curarr:fH,curarrm:gH,curlyeqprec:_H,curlyeqsucc:bH,curlyvee:vH,curlywedge:yH,curren:EH,curvearrowleft:SH,curvearrowright:xH,cuvee:TH,cuwed:wH,cwconint:CH,cwint:AH,cylcty:RH,dagger:MH,Dagger:NH,daleth:kH,darr:IH,Darr:OH,dArr:DH,dash:LH,Dashv:PH,dashv:FH,dbkarow:UH,dblac:BH,Dcaron:GH,dcaron:zH,Dcy:VH,dcy:HH,ddagger:qH,ddarr:YH,DD:$H,dd:WH,DDotrahd:KH,ddotseq:jH,deg:QH,Del:XH,Delta:ZH,delta:JH,demptyv:eq,dfisht:tq,Dfr:nq,dfr:rq,dHar:iq,dharl:sq,dharr:oq,DiacriticalAcute:aq,DiacriticalDot:lq,DiacriticalDoubleAcute:cq,DiacriticalGrave:dq,DiacriticalTilde:uq,diam:pq,diamond:hq,Diamond:mq,diamondsuit:fq,diams:gq,die:_q,DifferentialD:bq,digamma:vq,disin:yq,div:Eq,divide:Sq,divideontimes:xq,divonx:Tq,DJcy:wq,djcy:Cq,dlcorn:Aq,dlcrop:Rq,dollar:Mq,Dopf:Nq,dopf:kq,Dot:Iq,dot:Oq,DotDot:Dq,doteq:Lq,doteqdot:Pq,DotEqual:Fq,dotminus:Uq,dotplus:Bq,dotsquare:Gq,doublebarwedge:zq,DoubleContourIntegral:Vq,DoubleDot:Hq,DoubleDownArrow:qq,DoubleLeftArrow:Yq,DoubleLeftRightArrow:$q,DoubleLeftTee:Wq,DoubleLongLeftArrow:Kq,DoubleLongLeftRightArrow:jq,DoubleLongRightArrow:Qq,DoubleRightArrow:Xq,DoubleRightTee:Zq,DoubleUpArrow:Jq,DoubleUpDownArrow:eY,DoubleVerticalBar:tY,DownArrowBar:nY,downarrow:rY,DownArrow:iY,Downarrow:sY,DownArrowUpArrow:oY,DownBreve:aY,downdownarrows:lY,downharpoonleft:cY,downharpoonright:dY,DownLeftRightVector:uY,DownLeftTeeVector:pY,DownLeftVectorBar:hY,DownLeftVector:mY,DownRightTeeVector:fY,DownRightVectorBar:gY,DownRightVector:_Y,DownTeeArrow:bY,DownTee:vY,drbkarow:yY,drcorn:EY,drcrop:SY,Dscr:xY,dscr:TY,DScy:wY,dscy:CY,dsol:AY,Dstrok:RY,dstrok:MY,dtdot:NY,dtri:kY,dtrif:IY,duarr:OY,duhar:DY,dwangle:LY,DZcy:PY,dzcy:FY,dzigrarr:UY,Eacute:BY,eacute:GY,easter:zY,Ecaron:VY,ecaron:HY,Ecirc:qY,ecirc:YY,ecir:$Y,ecolon:WY,Ecy:KY,ecy:jY,eDDot:QY,Edot:XY,edot:ZY,eDot:JY,ee:e$,efDot:t$,Efr:n$,efr:r$,eg:i$,Egrave:s$,egrave:o$,egs:a$,egsdot:l$,el:c$,Element:d$,elinters:u$,ell:p$,els:h$,elsdot:m$,Emacr:f$,emacr:g$,empty:_$,emptyset:b$,EmptySmallSquare:v$,emptyv:y$,EmptyVerySmallSquare:E$,emsp13:S$,emsp14:x$,emsp:T$,ENG:w$,eng:C$,ensp:A$,Eogon:R$,eogon:M$,Eopf:N$,eopf:k$,epar:I$,eparsl:O$,eplus:D$,epsi:L$,Epsilon:P$,epsilon:F$,epsiv:U$,eqcirc:B$,eqcolon:G$,eqsim:z$,eqslantgtr:V$,eqslantless:H$,Equal:q$,equals:Y$,EqualTilde:$$,equest:W$,Equilibrium:K$,equiv:j$,equivDD:Q$,eqvparsl:X$,erarr:Z$,erDot:J$,escr:eW,Escr:tW,esdot:nW,Esim:rW,esim:iW,Eta:sW,eta:oW,ETH:aW,eth:lW,Euml:cW,euml:dW,euro:uW,excl:pW,exist:hW,Exists:mW,expectation:fW,exponentiale:gW,ExponentialE:_W,fallingdotseq:bW,Fcy:vW,fcy:yW,female:EW,ffilig:SW,fflig:xW,ffllig:TW,Ffr:wW,ffr:CW,filig:AW,FilledSmallSquare:RW,FilledVerySmallSquare:MW,fjlig:NW,flat:kW,fllig:IW,fltns:OW,fnof:DW,Fopf:LW,fopf:PW,forall:FW,ForAll:UW,fork:BW,forkv:GW,Fouriertrf:zW,fpartint:VW,frac12:HW,frac13:qW,frac14:YW,frac15:$W,frac16:WW,frac18:KW,frac23:jW,frac25:QW,frac34:XW,frac35:ZW,frac38:JW,frac45:eK,frac56:tK,frac58:nK,frac78:rK,frasl:iK,frown:sK,fscr:oK,Fscr:aK,gacute:lK,Gamma:cK,gamma:dK,Gammad:uK,gammad:pK,gap:hK,Gbreve:mK,gbreve:fK,Gcedil:gK,Gcirc:_K,gcirc:bK,Gcy:vK,gcy:yK,Gdot:EK,gdot:SK,ge:xK,gE:TK,gEl:wK,gel:CK,geq:AK,geqq:RK,geqslant:MK,gescc:NK,ges:kK,gesdot:IK,gesdoto:OK,gesdotol:DK,gesl:LK,gesles:PK,Gfr:FK,gfr:UK,gg:BK,Gg:GK,ggg:zK,gimel:VK,GJcy:HK,gjcy:qK,gla:YK,gl:$K,glE:WK,glj:KK,gnap:jK,gnapprox:QK,gne:XK,gnE:ZK,gneq:JK,gneqq:ej,gnsim:tj,Gopf:nj,gopf:rj,grave:ij,GreaterEqual:sj,GreaterEqualLess:oj,GreaterFullEqual:aj,GreaterGreater:lj,GreaterLess:cj,GreaterSlantEqual:dj,GreaterTilde:uj,Gscr:pj,gscr:hj,gsim:mj,gsime:fj,gsiml:gj,gtcc:_j,gtcir:bj,gt:vj,GT:yj,Gt:Ej,gtdot:Sj,gtlPar:xj,gtquest:Tj,gtrapprox:wj,gtrarr:Cj,gtrdot:Aj,gtreqless:Rj,gtreqqless:Mj,gtrless:Nj,gtrsim:kj,gvertneqq:Ij,gvnE:Oj,Hacek:Dj,hairsp:Lj,half:Pj,hamilt:Fj,HARDcy:Uj,hardcy:Bj,harrcir:Gj,harr:zj,hArr:Vj,harrw:Hj,Hat:qj,hbar:Yj,Hcirc:$j,hcirc:Wj,hearts:Kj,heartsuit:jj,hellip:Qj,hercon:Xj,hfr:Zj,Hfr:Jj,HilbertSpace:eQ,hksearow:tQ,hkswarow:nQ,hoarr:rQ,homtht:iQ,hookleftarrow:sQ,hookrightarrow:oQ,hopf:aQ,Hopf:lQ,horbar:cQ,HorizontalLine:dQ,hscr:uQ,Hscr:pQ,hslash:hQ,Hstrok:mQ,hstrok:fQ,HumpDownHump:gQ,HumpEqual:_Q,hybull:bQ,hyphen:vQ,Iacute:yQ,iacute:EQ,ic:SQ,Icirc:xQ,icirc:TQ,Icy:wQ,icy:CQ,Idot:AQ,IEcy:RQ,iecy:MQ,iexcl:NQ,iff:kQ,ifr:IQ,Ifr:OQ,Igrave:DQ,igrave:LQ,ii:PQ,iiiint:FQ,iiint:UQ,iinfin:BQ,iiota:GQ,IJlig:zQ,ijlig:VQ,Imacr:HQ,imacr:qQ,image:YQ,ImaginaryI:$Q,imagline:WQ,imagpart:KQ,imath:jQ,Im:QQ,imof:XQ,imped:ZQ,Implies:JQ,incare:eX,in:"∈",infin:tX,infintie:nX,inodot:rX,intcal:iX,int:sX,Int:oX,integers:aX,Integral:lX,intercal:cX,Intersection:dX,intlarhk:uX,intprod:pX,InvisibleComma:hX,InvisibleTimes:mX,IOcy:fX,iocy:gX,Iogon:_X,iogon:bX,Iopf:vX,iopf:yX,Iota:EX,iota:SX,iprod:xX,iquest:TX,iscr:wX,Iscr:CX,isin:AX,isindot:RX,isinE:MX,isins:NX,isinsv:kX,isinv:IX,it:OX,Itilde:DX,itilde:LX,Iukcy:PX,iukcy:FX,Iuml:UX,iuml:BX,Jcirc:GX,jcirc:zX,Jcy:VX,jcy:HX,Jfr:qX,jfr:YX,jmath:$X,Jopf:WX,jopf:KX,Jscr:jX,jscr:QX,Jsercy:XX,jsercy:ZX,Jukcy:JX,jukcy:eZ,Kappa:tZ,kappa:nZ,kappav:rZ,Kcedil:iZ,kcedil:sZ,Kcy:oZ,kcy:aZ,Kfr:lZ,kfr:cZ,kgreen:dZ,KHcy:uZ,khcy:pZ,KJcy:hZ,kjcy:mZ,Kopf:fZ,kopf:gZ,Kscr:_Z,kscr:bZ,lAarr:vZ,Lacute:yZ,lacute:EZ,laemptyv:SZ,lagran:xZ,Lambda:TZ,lambda:wZ,lang:CZ,Lang:AZ,langd:RZ,langle:MZ,lap:NZ,Laplacetrf:kZ,laquo:IZ,larrb:OZ,larrbfs:DZ,larr:LZ,Larr:PZ,lArr:FZ,larrfs:UZ,larrhk:BZ,larrlp:GZ,larrpl:zZ,larrsim:VZ,larrtl:HZ,latail:qZ,lAtail:YZ,lat:$Z,late:WZ,lates:KZ,lbarr:jZ,lBarr:QZ,lbbrk:XZ,lbrace:ZZ,lbrack:JZ,lbrke:eJ,lbrksld:tJ,lbrkslu:nJ,Lcaron:rJ,lcaron:iJ,Lcedil:sJ,lcedil:oJ,lceil:aJ,lcub:lJ,Lcy:cJ,lcy:dJ,ldca:uJ,ldquo:pJ,ldquor:hJ,ldrdhar:mJ,ldrushar:fJ,ldsh:gJ,le:_J,lE:bJ,LeftAngleBracket:vJ,LeftArrowBar:yJ,leftarrow:EJ,LeftArrow:SJ,Leftarrow:xJ,LeftArrowRightArrow:TJ,leftarrowtail:wJ,LeftCeiling:CJ,LeftDoubleBracket:AJ,LeftDownTeeVector:RJ,LeftDownVectorBar:MJ,LeftDownVector:NJ,LeftFloor:kJ,leftharpoondown:IJ,leftharpoonup:OJ,leftleftarrows:DJ,leftrightarrow:LJ,LeftRightArrow:PJ,Leftrightarrow:FJ,leftrightarrows:UJ,leftrightharpoons:BJ,leftrightsquigarrow:GJ,LeftRightVector:zJ,LeftTeeArrow:VJ,LeftTee:HJ,LeftTeeVector:qJ,leftthreetimes:YJ,LeftTriangleBar:$J,LeftTriangle:WJ,LeftTriangleEqual:KJ,LeftUpDownVector:jJ,LeftUpTeeVector:QJ,LeftUpVectorBar:XJ,LeftUpVector:ZJ,LeftVectorBar:JJ,LeftVector:eee,lEg:tee,leg:nee,leq:ree,leqq:iee,leqslant:see,lescc:oee,les:aee,lesdot:lee,lesdoto:cee,lesdotor:dee,lesg:uee,lesges:pee,lessapprox:hee,lessdot:mee,lesseqgtr:fee,lesseqqgtr:gee,LessEqualGreater:_ee,LessFullEqual:bee,LessGreater:vee,lessgtr:yee,LessLess:Eee,lesssim:See,LessSlantEqual:xee,LessTilde:Tee,lfisht:wee,lfloor:Cee,Lfr:Aee,lfr:Ree,lg:Mee,lgE:Nee,lHar:kee,lhard:Iee,lharu:Oee,lharul:Dee,lhblk:Lee,LJcy:Pee,ljcy:Fee,llarr:Uee,ll:Bee,Ll:Gee,llcorner:zee,Lleftarrow:Vee,llhard:Hee,lltri:qee,Lmidot:Yee,lmidot:$ee,lmoustache:Wee,lmoust:Kee,lnap:jee,lnapprox:Qee,lne:Xee,lnE:Zee,lneq:Jee,lneqq:ete,lnsim:tte,loang:nte,loarr:rte,lobrk:ite,longleftarrow:ste,LongLeftArrow:ote,Longleftarrow:ate,longleftrightarrow:lte,LongLeftRightArrow:cte,Longleftrightarrow:dte,longmapsto:ute,longrightarrow:pte,LongRightArrow:hte,Longrightarrow:mte,looparrowleft:fte,looparrowright:gte,lopar:_te,Lopf:bte,lopf:vte,loplus:yte,lotimes:Ete,lowast:Ste,lowbar:xte,LowerLeftArrow:Tte,LowerRightArrow:wte,loz:Cte,lozenge:Ate,lozf:Rte,lpar:Mte,lparlt:Nte,lrarr:kte,lrcorner:Ite,lrhar:Ote,lrhard:Dte,lrm:Lte,lrtri:Pte,lsaquo:Fte,lscr:Ute,Lscr:Bte,lsh:Gte,Lsh:zte,lsim:Vte,lsime:Hte,lsimg:qte,lsqb:Yte,lsquo:$te,lsquor:Wte,Lstrok:Kte,lstrok:jte,ltcc:Qte,ltcir:Xte,lt:Zte,LT:Jte,Lt:ene,ltdot:tne,lthree:nne,ltimes:rne,ltlarr:ine,ltquest:sne,ltri:one,ltrie:ane,ltrif:lne,ltrPar:cne,lurdshar:dne,luruhar:une,lvertneqq:pne,lvnE:hne,macr:mne,male:fne,malt:gne,maltese:_ne,Map:"⤅",map:bne,mapsto:vne,mapstodown:yne,mapstoleft:Ene,mapstoup:Sne,marker:xne,mcomma:Tne,Mcy:wne,mcy:Cne,mdash:Ane,mDDot:Rne,measuredangle:Mne,MediumSpace:Nne,Mellintrf:kne,Mfr:Ine,mfr:One,mho:Dne,micro:Lne,midast:Pne,midcir:Fne,mid:Une,middot:Bne,minusb:Gne,minus:zne,minusd:Vne,minusdu:Hne,MinusPlus:qne,mlcp:Yne,mldr:$ne,mnplus:Wne,models:Kne,Mopf:jne,mopf:Qne,mp:Xne,mscr:Zne,Mscr:Jne,mstpos:ere,Mu:tre,mu:nre,multimap:rre,mumap:ire,nabla:sre,Nacute:ore,nacute:are,nang:lre,nap:cre,napE:dre,napid:ure,napos:pre,napprox:hre,natural:mre,naturals:fre,natur:gre,nbsp:_re,nbump:bre,nbumpe:vre,ncap:yre,Ncaron:Ere,ncaron:Sre,Ncedil:xre,ncedil:Tre,ncong:wre,ncongdot:Cre,ncup:Are,Ncy:Rre,ncy:Mre,ndash:Nre,nearhk:kre,nearr:Ire,neArr:Ore,nearrow:Dre,ne:Lre,nedot:Pre,NegativeMediumSpace:Fre,NegativeThickSpace:Ure,NegativeThinSpace:Bre,NegativeVeryThinSpace:Gre,nequiv:zre,nesear:Vre,nesim:Hre,NestedGreaterGreater:qre,NestedLessLess:Yre,NewLine:$re,nexist:Wre,nexists:Kre,Nfr:jre,nfr:Qre,ngE:Xre,nge:Zre,ngeq:Jre,ngeqq:eie,ngeqslant:tie,nges:nie,nGg:rie,ngsim:iie,nGt:sie,ngt:oie,ngtr:aie,nGtv:lie,nharr:cie,nhArr:die,nhpar:uie,ni:pie,nis:hie,nisd:mie,niv:fie,NJcy:gie,njcy:_ie,nlarr:bie,nlArr:vie,nldr:yie,nlE:Eie,nle:Sie,nleftarrow:xie,nLeftarrow:Tie,nleftrightarrow:wie,nLeftrightarrow:Cie,nleq:Aie,nleqq:Rie,nleqslant:Mie,nles:Nie,nless:kie,nLl:Iie,nlsim:Oie,nLt:Die,nlt:Lie,nltri:Pie,nltrie:Fie,nLtv:Uie,nmid:Bie,NoBreak:Gie,NonBreakingSpace:zie,nopf:Vie,Nopf:Hie,Not:qie,not:Yie,NotCongruent:$ie,NotCupCap:Wie,NotDoubleVerticalBar:Kie,NotElement:jie,NotEqual:Qie,NotEqualTilde:Xie,NotExists:Zie,NotGreater:Jie,NotGreaterEqual:ese,NotGreaterFullEqual:tse,NotGreaterGreater:nse,NotGreaterLess:rse,NotGreaterSlantEqual:ise,NotGreaterTilde:sse,NotHumpDownHump:ose,NotHumpEqual:ase,notin:lse,notindot:cse,notinE:dse,notinva:use,notinvb:pse,notinvc:hse,NotLeftTriangleBar:mse,NotLeftTriangle:fse,NotLeftTriangleEqual:gse,NotLess:_se,NotLessEqual:bse,NotLessGreater:vse,NotLessLess:yse,NotLessSlantEqual:Ese,NotLessTilde:Sse,NotNestedGreaterGreater:xse,NotNestedLessLess:Tse,notni:wse,notniva:Cse,notnivb:Ase,notnivc:Rse,NotPrecedes:Mse,NotPrecedesEqual:Nse,NotPrecedesSlantEqual:kse,NotReverseElement:Ise,NotRightTriangleBar:Ose,NotRightTriangle:Dse,NotRightTriangleEqual:Lse,NotSquareSubset:Pse,NotSquareSubsetEqual:Fse,NotSquareSuperset:Use,NotSquareSupersetEqual:Bse,NotSubset:Gse,NotSubsetEqual:zse,NotSucceeds:Vse,NotSucceedsEqual:Hse,NotSucceedsSlantEqual:qse,NotSucceedsTilde:Yse,NotSuperset:$se,NotSupersetEqual:Wse,NotTilde:Kse,NotTildeEqual:jse,NotTildeFullEqual:Qse,NotTildeTilde:Xse,NotVerticalBar:Zse,nparallel:Jse,npar:eoe,nparsl:toe,npart:noe,npolint:roe,npr:ioe,nprcue:soe,nprec:ooe,npreceq:aoe,npre:loe,nrarrc:coe,nrarr:doe,nrArr:uoe,nrarrw:poe,nrightarrow:hoe,nRightarrow:moe,nrtri:foe,nrtrie:goe,nsc:_oe,nsccue:boe,nsce:voe,Nscr:yoe,nscr:Eoe,nshortmid:Soe,nshortparallel:xoe,nsim:Toe,nsime:woe,nsimeq:Coe,nsmid:Aoe,nspar:Roe,nsqsube:Moe,nsqsupe:Noe,nsub:koe,nsubE:Ioe,nsube:Ooe,nsubset:Doe,nsubseteq:Loe,nsubseteqq:Poe,nsucc:Foe,nsucceq:Uoe,nsup:Boe,nsupE:Goe,nsupe:zoe,nsupset:Voe,nsupseteq:Hoe,nsupseteqq:qoe,ntgl:Yoe,Ntilde:$oe,ntilde:Woe,ntlg:Koe,ntriangleleft:joe,ntrianglelefteq:Qoe,ntriangleright:Xoe,ntrianglerighteq:Zoe,Nu:Joe,nu:eae,num:tae,numero:nae,numsp:rae,nvap:iae,nvdash:sae,nvDash:oae,nVdash:aae,nVDash:lae,nvge:cae,nvgt:dae,nvHarr:uae,nvinfin:pae,nvlArr:hae,nvle:mae,nvlt:fae,nvltrie:gae,nvrArr:_ae,nvrtrie:bae,nvsim:vae,nwarhk:yae,nwarr:Eae,nwArr:Sae,nwarrow:xae,nwnear:Tae,Oacute:wae,oacute:Cae,oast:Aae,Ocirc:Rae,ocirc:Mae,ocir:Nae,Ocy:kae,ocy:Iae,odash:Oae,Odblac:Dae,odblac:Lae,odiv:Pae,odot:Fae,odsold:Uae,OElig:Bae,oelig:Gae,ofcir:zae,Ofr:Vae,ofr:Hae,ogon:qae,Ograve:Yae,ograve:$ae,ogt:Wae,ohbar:Kae,ohm:jae,oint:Qae,olarr:Xae,olcir:Zae,olcross:Jae,oline:ele,olt:tle,Omacr:nle,omacr:rle,Omega:ile,omega:sle,Omicron:ole,omicron:ale,omid:lle,ominus:cle,Oopf:dle,oopf:ule,opar:ple,OpenCurlyDoubleQuote:hle,OpenCurlyQuote:mle,operp:fle,oplus:gle,orarr:_le,Or:ble,or:vle,ord:yle,order:Ele,orderof:Sle,ordf:xle,ordm:Tle,origof:wle,oror:Cle,orslope:Ale,orv:Rle,oS:Mle,Oscr:Nle,oscr:kle,Oslash:Ile,oslash:Ole,osol:Dle,Otilde:Lle,otilde:Ple,otimesas:Fle,Otimes:Ule,otimes:Ble,Ouml:Gle,ouml:zle,ovbar:Vle,OverBar:Hle,OverBrace:qle,OverBracket:Yle,OverParenthesis:$le,para:Wle,parallel:Kle,par:jle,parsim:Qle,parsl:Xle,part:Zle,PartialD:Jle,Pcy:ece,pcy:tce,percnt:nce,period:rce,permil:ice,perp:sce,pertenk:oce,Pfr:ace,pfr:lce,Phi:cce,phi:dce,phiv:uce,phmmat:pce,phone:hce,Pi:mce,pi:fce,pitchfork:gce,piv:_ce,planck:bce,planckh:vce,plankv:yce,plusacir:Ece,plusb:Sce,pluscir:xce,plus:Tce,plusdo:wce,plusdu:Cce,pluse:Ace,PlusMinus:Rce,plusmn:Mce,plussim:Nce,plustwo:kce,pm:Ice,Poincareplane:Oce,pointint:Dce,popf:Lce,Popf:Pce,pound:Fce,prap:Uce,Pr:Bce,pr:Gce,prcue:zce,precapprox:Vce,prec:Hce,preccurlyeq:qce,Precedes:Yce,PrecedesEqual:$ce,PrecedesSlantEqual:Wce,PrecedesTilde:Kce,preceq:jce,precnapprox:Qce,precneqq:Xce,precnsim:Zce,pre:Jce,prE:ede,precsim:tde,prime:nde,Prime:rde,primes:ide,prnap:sde,prnE:ode,prnsim:ade,prod:lde,Product:cde,profalar:dde,profline:ude,profsurf:pde,prop:hde,Proportional:mde,Proportion:fde,propto:gde,prsim:_de,prurel:bde,Pscr:vde,pscr:yde,Psi:Ede,psi:Sde,puncsp:xde,Qfr:Tde,qfr:wde,qint:Cde,qopf:Ade,Qopf:Rde,qprime:Mde,Qscr:Nde,qscr:kde,quaternions:Ide,quatint:Ode,quest:Dde,questeq:Lde,quot:Pde,QUOT:Fde,rAarr:Ude,race:Bde,Racute:Gde,racute:zde,radic:Vde,raemptyv:Hde,rang:qde,Rang:Yde,rangd:$de,range:Wde,rangle:Kde,raquo:jde,rarrap:Qde,rarrb:Xde,rarrbfs:Zde,rarrc:Jde,rarr:eue,Rarr:tue,rArr:nue,rarrfs:rue,rarrhk:iue,rarrlp:sue,rarrpl:oue,rarrsim:aue,Rarrtl:lue,rarrtl:cue,rarrw:due,ratail:uue,rAtail:pue,ratio:hue,rationals:mue,rbarr:fue,rBarr:gue,RBarr:_ue,rbbrk:bue,rbrace:vue,rbrack:yue,rbrke:Eue,rbrksld:Sue,rbrkslu:xue,Rcaron:Tue,rcaron:wue,Rcedil:Cue,rcedil:Aue,rceil:Rue,rcub:Mue,Rcy:Nue,rcy:kue,rdca:Iue,rdldhar:Oue,rdquo:Due,rdquor:Lue,rdsh:Pue,real:Fue,realine:Uue,realpart:Bue,reals:Gue,Re:zue,rect:Vue,reg:Hue,REG:que,ReverseElement:Yue,ReverseEquilibrium:$ue,ReverseUpEquilibrium:Wue,rfisht:Kue,rfloor:jue,rfr:Que,Rfr:Xue,rHar:Zue,rhard:Jue,rharu:epe,rharul:tpe,Rho:npe,rho:rpe,rhov:ipe,RightAngleBracket:spe,RightArrowBar:ope,rightarrow:ape,RightArrow:lpe,Rightarrow:cpe,RightArrowLeftArrow:dpe,rightarrowtail:upe,RightCeiling:ppe,RightDoubleBracket:hpe,RightDownTeeVector:mpe,RightDownVectorBar:fpe,RightDownVector:gpe,RightFloor:_pe,rightharpoondown:bpe,rightharpoonup:vpe,rightleftarrows:ype,rightleftharpoons:Epe,rightrightarrows:Spe,rightsquigarrow:xpe,RightTeeArrow:Tpe,RightTee:wpe,RightTeeVector:Cpe,rightthreetimes:Ape,RightTriangleBar:Rpe,RightTriangle:Mpe,RightTriangleEqual:Npe,RightUpDownVector:kpe,RightUpTeeVector:Ipe,RightUpVectorBar:Ope,RightUpVector:Dpe,RightVectorBar:Lpe,RightVector:Ppe,ring:Fpe,risingdotseq:Upe,rlarr:Bpe,rlhar:Gpe,rlm:zpe,rmoustache:Vpe,rmoust:Hpe,rnmid:qpe,roang:Ype,roarr:$pe,robrk:Wpe,ropar:Kpe,ropf:jpe,Ropf:Qpe,roplus:Xpe,rotimes:Zpe,RoundImplies:Jpe,rpar:ehe,rpargt:the,rppolint:nhe,rrarr:rhe,Rrightarrow:ihe,rsaquo:she,rscr:ohe,Rscr:ahe,rsh:lhe,Rsh:che,rsqb:dhe,rsquo:uhe,rsquor:phe,rthree:hhe,rtimes:mhe,rtri:fhe,rtrie:ghe,rtrif:_he,rtriltri:bhe,RuleDelayed:vhe,ruluhar:yhe,rx:Ehe,Sacute:She,sacute:xhe,sbquo:The,scap:whe,Scaron:Che,scaron:Ahe,Sc:Rhe,sc:Mhe,sccue:Nhe,sce:khe,scE:Ihe,Scedil:Ohe,scedil:Dhe,Scirc:Lhe,scirc:Phe,scnap:Fhe,scnE:Uhe,scnsim:Bhe,scpolint:Ghe,scsim:zhe,Scy:Vhe,scy:Hhe,sdotb:qhe,sdot:Yhe,sdote:$he,searhk:Whe,searr:Khe,seArr:jhe,searrow:Qhe,sect:Xhe,semi:Zhe,seswar:Jhe,setminus:eme,setmn:tme,sext:nme,Sfr:rme,sfr:ime,sfrown:sme,sharp:ome,SHCHcy:ame,shchcy:lme,SHcy:cme,shcy:dme,ShortDownArrow:ume,ShortLeftArrow:pme,shortmid:hme,shortparallel:mme,ShortRightArrow:fme,ShortUpArrow:gme,shy:_me,Sigma:bme,sigma:vme,sigmaf:yme,sigmav:Eme,sim:Sme,simdot:xme,sime:Tme,simeq:wme,simg:Cme,simgE:Ame,siml:Rme,simlE:Mme,simne:Nme,simplus:kme,simrarr:Ime,slarr:Ome,SmallCircle:Dme,smallsetminus:Lme,smashp:Pme,smeparsl:Fme,smid:Ume,smile:Bme,smt:Gme,smte:zme,smtes:Vme,SOFTcy:Hme,softcy:qme,solbar:Yme,solb:$me,sol:Wme,Sopf:Kme,sopf:jme,spades:Qme,spadesuit:Xme,spar:Zme,sqcap:Jme,sqcaps:efe,sqcup:tfe,sqcups:nfe,Sqrt:rfe,sqsub:ife,sqsube:sfe,sqsubset:ofe,sqsubseteq:afe,sqsup:lfe,sqsupe:cfe,sqsupset:dfe,sqsupseteq:ufe,square:pfe,Square:hfe,SquareIntersection:mfe,SquareSubset:ffe,SquareSubsetEqual:gfe,SquareSuperset:_fe,SquareSupersetEqual:bfe,SquareUnion:vfe,squarf:yfe,squ:Efe,squf:Sfe,srarr:xfe,Sscr:Tfe,sscr:wfe,ssetmn:Cfe,ssmile:Afe,sstarf:Rfe,Star:Mfe,star:Nfe,starf:kfe,straightepsilon:Ife,straightphi:Ofe,strns:Dfe,sub:Lfe,Sub:Pfe,subdot:Ffe,subE:Ufe,sube:Bfe,subedot:Gfe,submult:zfe,subnE:Vfe,subne:Hfe,subplus:qfe,subrarr:Yfe,subset:$fe,Subset:Wfe,subseteq:Kfe,subseteqq:jfe,SubsetEqual:Qfe,subsetneq:Xfe,subsetneqq:Zfe,subsim:Jfe,subsub:ege,subsup:tge,succapprox:nge,succ:rge,succcurlyeq:ige,Succeeds:sge,SucceedsEqual:oge,SucceedsSlantEqual:age,SucceedsTilde:lge,succeq:cge,succnapprox:dge,succneqq:uge,succnsim:pge,succsim:hge,SuchThat:mge,sum:fge,Sum:gge,sung:_ge,sup1:bge,sup2:vge,sup3:yge,sup:Ege,Sup:Sge,supdot:xge,supdsub:Tge,supE:wge,supe:Cge,supedot:Age,Superset:Rge,SupersetEqual:Mge,suphsol:Nge,suphsub:kge,suplarr:Ige,supmult:Oge,supnE:Dge,supne:Lge,supplus:Pge,supset:Fge,Supset:Uge,supseteq:Bge,supseteqq:Gge,supsetneq:zge,supsetneqq:Vge,supsim:Hge,supsub:qge,supsup:Yge,swarhk:$ge,swarr:Wge,swArr:Kge,swarrow:jge,swnwar:Qge,szlig:Xge,Tab:Zge,target:Jge,Tau:e_e,tau:t_e,tbrk:n_e,Tcaron:r_e,tcaron:i_e,Tcedil:s_e,tcedil:o_e,Tcy:a_e,tcy:l_e,tdot:c_e,telrec:d_e,Tfr:u_e,tfr:p_e,there4:h_e,therefore:m_e,Therefore:f_e,Theta:g_e,theta:__e,thetasym:b_e,thetav:v_e,thickapprox:y_e,thicksim:E_e,ThickSpace:S_e,ThinSpace:x_e,thinsp:T_e,thkap:w_e,thksim:C_e,THORN:A_e,thorn:R_e,tilde:M_e,Tilde:N_e,TildeEqual:k_e,TildeFullEqual:I_e,TildeTilde:O_e,timesbar:D_e,timesb:L_e,times:P_e,timesd:F_e,tint:U_e,toea:B_e,topbot:G_e,topcir:z_e,top:V_e,Topf:H_e,topf:q_e,topfork:Y_e,tosa:$_e,tprime:W_e,trade:K_e,TRADE:j_e,triangle:Q_e,triangledown:X_e,triangleleft:Z_e,trianglelefteq:J_e,triangleq:e0e,triangleright:t0e,trianglerighteq:n0e,tridot:r0e,trie:i0e,triminus:s0e,TripleDot:o0e,triplus:a0e,trisb:l0e,tritime:c0e,trpezium:d0e,Tscr:u0e,tscr:p0e,TScy:h0e,tscy:m0e,TSHcy:f0e,tshcy:g0e,Tstrok:_0e,tstrok:b0e,twixt:v0e,twoheadleftarrow:y0e,twoheadrightarrow:E0e,Uacute:S0e,uacute:x0e,uarr:T0e,Uarr:w0e,uArr:C0e,Uarrocir:A0e,Ubrcy:R0e,ubrcy:M0e,Ubreve:N0e,ubreve:k0e,Ucirc:I0e,ucirc:O0e,Ucy:D0e,ucy:L0e,udarr:P0e,Udblac:F0e,udblac:U0e,udhar:B0e,ufisht:G0e,Ufr:z0e,ufr:V0e,Ugrave:H0e,ugrave:q0e,uHar:Y0e,uharl:$0e,uharr:W0e,uhblk:K0e,ulcorn:j0e,ulcorner:Q0e,ulcrop:X0e,ultri:Z0e,Umacr:J0e,umacr:ebe,uml:tbe,UnderBar:nbe,UnderBrace:rbe,UnderBracket:ibe,UnderParenthesis:sbe,Union:obe,UnionPlus:abe,Uogon:lbe,uogon:cbe,Uopf:dbe,uopf:ube,UpArrowBar:pbe,uparrow:hbe,UpArrow:mbe,Uparrow:fbe,UpArrowDownArrow:gbe,updownarrow:_be,UpDownArrow:bbe,Updownarrow:vbe,UpEquilibrium:ybe,upharpoonleft:Ebe,upharpoonright:Sbe,uplus:xbe,UpperLeftArrow:Tbe,UpperRightArrow:wbe,upsi:Cbe,Upsi:Abe,upsih:Rbe,Upsilon:Mbe,upsilon:Nbe,UpTeeArrow:kbe,UpTee:Ibe,upuparrows:Obe,urcorn:Dbe,urcorner:Lbe,urcrop:Pbe,Uring:Fbe,uring:Ube,urtri:Bbe,Uscr:Gbe,uscr:zbe,utdot:Vbe,Utilde:Hbe,utilde:qbe,utri:Ybe,utrif:$be,uuarr:Wbe,Uuml:Kbe,uuml:jbe,uwangle:Qbe,vangrt:Xbe,varepsilon:Zbe,varkappa:Jbe,varnothing:e1e,varphi:t1e,varpi:n1e,varpropto:r1e,varr:i1e,vArr:s1e,varrho:o1e,varsigma:a1e,varsubsetneq:l1e,varsubsetneqq:c1e,varsupsetneq:d1e,varsupsetneqq:u1e,vartheta:p1e,vartriangleleft:h1e,vartriangleright:m1e,vBar:f1e,Vbar:g1e,vBarv:_1e,Vcy:b1e,vcy:v1e,vdash:y1e,vDash:E1e,Vdash:S1e,VDash:x1e,Vdashl:T1e,veebar:w1e,vee:C1e,Vee:A1e,veeeq:R1e,vellip:M1e,verbar:N1e,Verbar:k1e,vert:I1e,Vert:O1e,VerticalBar:D1e,VerticalLine:L1e,VerticalSeparator:P1e,VerticalTilde:F1e,VeryThinSpace:U1e,Vfr:B1e,vfr:G1e,vltri:z1e,vnsub:V1e,vnsup:H1e,Vopf:q1e,vopf:Y1e,vprop:$1e,vrtri:W1e,Vscr:K1e,vscr:j1e,vsubnE:Q1e,vsubne:X1e,vsupnE:Z1e,vsupne:J1e,Vvdash:eve,vzigzag:tve,Wcirc:nve,wcirc:rve,wedbar:ive,wedge:sve,Wedge:ove,wedgeq:ave,weierp:lve,Wfr:cve,wfr:dve,Wopf:uve,wopf:pve,wp:hve,wr:mve,wreath:fve,Wscr:gve,wscr:_ve,xcap:bve,xcirc:vve,xcup:yve,xdtri:Eve,Xfr:Sve,xfr:xve,xharr:Tve,xhArr:wve,Xi:Cve,xi:Ave,xlarr:Rve,xlArr:Mve,xmap:Nve,xnis:kve,xodot:Ive,Xopf:Ove,xopf:Dve,xoplus:Lve,xotime:Pve,xrarr:Fve,xrArr:Uve,Xscr:Bve,xscr:Gve,xsqcup:zve,xuplus:Vve,xutri:Hve,xvee:qve,xwedge:Yve,Yacute:$ve,yacute:Wve,YAcy:Kve,yacy:jve,Ycirc:Qve,ycirc:Xve,Ycy:Zve,ycy:Jve,yen:eye,Yfr:tye,yfr:nye,YIcy:rye,yicy:iye,Yopf:sye,yopf:oye,Yscr:aye,yscr:lye,YUcy:cye,yucy:dye,yuml:uye,Yuml:pye,Zacute:hye,zacute:mye,Zcaron:fye,zcaron:gye,Zcy:_ye,zcy:bye,Zdot:vye,zdot:yye,zeetrf:Eye,ZeroWidthSpace:Sye,Zeta:xye,zeta:Tye,zfr:wye,Zfr:Cye,ZHcy:Aye,zhcy:Rye,zigrarr:Mye,zopf:Nye,Zopf:kye,Zscr:Iye,zscr:Oye,zwj:Dye,zwnj:Lye};var fN=Pye,Dv=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,ec={},n2={};function Fye(n){var e,t,r=n2[n];if(r)return r;for(r=n2[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?r.push(t):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(t=!0),a=Fye(e),r=0,i=n.length;r=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1=56320&&o<=57343)){l+=encodeURIComponent(n[r]+n[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(n[r])}return l}Uh.defaultChars=";/?:@&=+$,-_.!~*'()#";Uh.componentChars="-_.!~*'()";var Uye=Uh,r2={};function Bye(n){var e,t,r=r2[n];if(r)return r;for(r=r2[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),r.push(t);for(e=0;e=55296&&u<=57343?m+="���":m+=String.fromCharCode(u),i+=6;continue}if((o&248)===240&&i+91114111?m+="����":(u-=65536,m+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),i+=9;continue}m+="�"}return m})}Bh.defaultChars=";/?:@&=+$,#";Bh.componentChars="";var Gye=Bh,zye=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t};function Op(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Vye=/^([a-z0-9.+-]+:)/i,Hye=/:[0-9]*$/,qye=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Yye=["<",">",'"',"`"," ","\r",` +`," "],$ye=["{","}","|","\\","^","`"].concat(Yye),Wye=["'"].concat($ye),i2=["%","/","?",";","#"].concat(Wye),s2=["/","?","#"],Kye=255,o2=/^[+a-z0-9A-Z_-]{0,63}$/,jye=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,a2={javascript:!0,"javascript:":!0},l2={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Qye(n,e){if(n&&n instanceof Op)return n;var t=new Op;return t.parse(n,e),t}Op.prototype.parse=function(n,e){var t,r,i,s,o,a=n;if(a=a.trim(),!e&&n.split("#").length===1){var l=qye.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var d=Vye.exec(a);if(d&&(d=d[0],i=d.toLowerCase(),this.protocol=d,a=a.substr(d.length)),(e||d||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(d&&a2[d])&&(a=a.substr(2),this.slashes=!0)),!a2[d]&&(o||d&&!l2[d])){var u=-1;for(t=0;t127?_+="x":_+=b[y];if(!_.match(o2)){var x=v.slice(0,t),A=v.slice(t+1),w=b.match(jye);w&&(x.push(w[1]),A.unshift(w[2])),A.length&&(a=A.join(".")+a),this.hostname=x.join(".");break}}}}this.hostname.length>Kye&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var N=a.indexOf("#");N!==-1&&(this.hash=a.substr(N),a=a.slice(0,N));var L=a.indexOf("?");return L!==-1&&(this.search=a.substr(L),a=a.slice(0,L)),a&&(this.pathname=a),l2[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Op.prototype.parseHost=function(n){var e=Hye.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 Xye=Qye;ec.encode=Uye;ec.decode=Gye;ec.format=zye;ec.parse=Xye;var Ho={},$m,c2;function gN(){return c2||(c2=1,$m=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),$m}var Wm,d2;function _N(){return d2||(d2=1,Wm=/[\0-\x1F\x7F-\x9F]/),Wm}var Km,u2;function Zye(){return u2||(u2=1,Km=/[\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]/),Km}var jm,p2;function bN(){return p2||(p2=1,jm=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),jm}var h2;function Jye(){return h2||(h2=1,Ho.Any=gN(),Ho.Cc=_N(),Ho.Cf=Zye(),Ho.P=Dv,Ho.Z=bN()),Ho}(function(n){function e(D){return Object.prototype.toString.call(D)}function t(D){return e(D)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(D,$){return r.call(D,$)}function s(D){var $=Array.prototype.slice.call(arguments,1);return $.forEach(function(K){if(K){if(typeof K!="object")throw new TypeError(K+"must be object");Object.keys(K).forEach(function(B){D[B]=K[B]})}}),D}function o(D,$,K){return[].concat(D.slice(0,$),K,D.slice($+1))}function a(D){return!(D>=55296&&D<=57343||D>=64976&&D<=65007||(D&65535)===65535||(D&65535)===65534||D>=0&&D<=8||D===11||D>=14&&D<=31||D>=127&&D<=159||D>1114111)}function l(D){if(D>65535){D-=65536;var $=55296+(D>>10),K=56320+(D&1023);return String.fromCharCode($,K)}return String.fromCharCode(D)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,m=new RegExp(d.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,g=fN;function h(D,$){var K;return i(g,$)?g[$]:$.charCodeAt(0)===35&&f.test($)&&(K=$[1].toLowerCase()==="x"?parseInt($.slice(2),16):parseInt($.slice(1),10),a(K))?l(K):D}function v(D){return D.indexOf("\\")<0?D:D.replace(d,"$1")}function b(D){return D.indexOf("\\")<0&&D.indexOf("&")<0?D:D.replace(m,function($,K,B){return K||h($,B)})}var _=/[&<>"]/,y=/[&<>"]/g,E={"&":"&","<":"<",">":">",'"':"""};function x(D){return E[D]}function A(D){return _.test(D)?D.replace(y,x):D}var w=/[.?*+^$[\]\\(){}|-]/g;function N(D){return D.replace(w,"\\$&")}function L(D){switch(D){case 9:case 32:return!0}return!1}function C(D){if(D>=8192&&D<=8202)return!0;switch(D){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var k=Dv;function H(D){return k.test(D)}function q(D){switch(D){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ie(D){return D=D.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(D=D.replace(/ẞ/g,"ß")),D.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=ec,n.lib.ucmicro=Jye(),n.assign=s,n.isString=t,n.has=i,n.unescapeMd=v,n.unescapeAll=b,n.isValidEntityCode=a,n.fromCodePoint=l,n.escapeHtml=A,n.arrayReplaceAt=o,n.isSpace=L,n.isWhiteSpace=C,n.isMdAsciiPunct=q,n.isPunctChar=H,n.escapeRE=N,n.normalizeReference=ie})(Jt);var Gh={},eEe=function(e,t,r){var i,s,o,a,l=-1,d=e.posMax,u=e.pos;for(e.pos=t+1,i=1;e.pos32))return a;if(i===41){if(s===0)break;s--}o++}return t===o||s!==0||(a.str=m2(e.slice(t,o)),a.pos=o,a.ok=!0),a},nEe=Jt.unescapeAll,rEe=function(e,t,r){var i,s,o=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(a>=r||(s=e.charCodeAt(a),s!==34&&s!==39&&s!==40))return l;for(a++,s===40&&(s=41);a"+ya(s.content)+""};es.code_block=function(n,e,t,r,i){var s=n[e];return""+ya(n[e].content)+` +`};es.fence=function(n,e,t,r,i){var s=n[e],o=s.info?sEe(s.info).trim():"",a="",l="",d,u,m,f,g;return o&&(m=o.split(/(\s+)/g),a=m[0],l=m.slice(2).join("")),t.highlight?d=t.highlight(s.content,a,l)||ya(s.content):d=ya(s.content),d.indexOf(""+d+` +`):"
    "+d+`
    +`};es.image=function(n,e,t,r,i){var s=n[e];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,t,r),i.renderToken(n,e,t)};es.hardbreak=function(n,e,t){return t.xhtmlOut?`
    +`:`
    +`};es.softbreak=function(n,e,t){return t.breaks?t.xhtmlOut?`
    +`:`
    +`:` +`};es.text=function(n,e){return ya(n[e].content)};es.html_block=function(n,e){return n[e].content};es.html_inline=function(n,e){return n[e].content};function tc(){this.rules=iEe({},es)}tc.prototype.renderAttrs=function(e){var t,r,i;if(!e.attrs)return"";for(i="",t=0,r=e.attrs.length;t +`:">",s)};tc.prototype.renderInline=function(n,e,t){for(var r,i="",s=this.rules,o=0,a=n.length;o\s]/i.test(n)}function mEe(n){return/^<\/a\s*>/i.test(n)}var fEe=function(e){var t,r,i,s,o,a,l,d,u,m,f,g,h,v,b,_,y=e.tokens,E;if(e.md.options.linkify){for(r=0,i=y.length;r=0;t--){if(a=s[t],a.type==="link_close"){for(t--;s[t].level!==a.level&&s[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(hEe(a.content)&&h>0&&h--,mEe(a.content)&&h++),!(h>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,E=e.md.linkify.match(u),l=[],g=a.level,f=0,E.length>0&&E[0].index===0&&t>0&&s[t-1].type==="text_special"&&(E=E.slice(1)),d=0;df&&(o=new e.Token("text","",0),o.content=u.slice(f,m),o.level=g,l.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=g++,o.markup="linkify",o.info="auto",l.push(o),o=new e.Token("text","",0),o.content=_,o.level=g,l.push(o),o=new e.Token("link_close","a",-1),o.level=--g,o.markup="linkify",o.info="auto",l.push(o),f=E[d].lastIndex);f=0;e--)t=n[e],t.type==="text"&&!r&&(t.content=t.content.replace(_Ee,vEe)),t.type==="link_open"&&t.info==="auto"&&r--,t.type==="link_close"&&t.info==="auto"&&r++}function EEe(n){var e,t,r=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!r&&vN.test(t.content)&&(t.content=t.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),t.type==="link_open"&&t.info==="auto"&&r--,t.type==="link_close"&&t.info==="auto"&&r++}var SEe=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(gEe.test(e.tokens[t].content)&&yEe(e.tokens[t].children),vN.test(e.tokens[t].content)&&EEe(e.tokens[t].children))},f2=Jt.isWhiteSpace,g2=Jt.isPunctChar,_2=Jt.isMdAsciiPunct,xEe=/['"]/,b2=/['"]/g,v2="’";function nu(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function TEe(n,e){var t,r,i,s,o,a,l,d,u,m,f,g,h,v,b,_,y,E,x,A,w;for(x=[],t=0;t=0&&!(x[y].level<=l);y--);if(x.length=y+1,r.type==="text"){i=r.content,o=0,a=i.length;e:for(;o=0)u=i.charCodeAt(s.index-1);else for(y=t-1;y>=0&&!(n[y].type==="softbreak"||n[y].type==="hardbreak");y--)if(n[y].content){u=n[y].content.charCodeAt(n[y].content.length-1);break}if(m=32,o=48&&u<=57&&(_=b=!1),b&&_&&(b=f,_=g),!b&&!_){E&&(r.content=nu(r.content,s.index,v2));continue}if(_){for(y=x.length-1;y>=0&&(d=x[y],!(x[y].level=0;t--)e.tokens[t].type!=="inline"||!xEe.test(e.tokens[t].content)||TEe(e.tokens[t].children,e)},CEe=function(e){var t,r,i,s,o,a,l=e.tokens;for(t=0,r=l.length;t=0&&(r=this.attrs[t][1]),r};nc.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};var Pv=nc,AEe=Pv;function yN(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}yN.prototype.Token=AEe;var REe=yN,MEe=Lv,Qm=[["normalize",cEe],["block",dEe],["inline",uEe],["linkify",fEe],["replacements",SEe],["smartquotes",wEe],["text_join",CEe]];function Fv(){this.ruler=new MEe;for(var n=0;nr||(u=t+1,e.sCount[u]=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(A=e.src.charCodeAt(a++),A!==124&&A!==45&&A!==58)||a>=e.eMarks[u]||(w=e.src.charCodeAt(a++),w!==124&&w!==45&&w!==58&&!Xm(w))||A===45&&Xm(w))return!1;for(;a=4||(m=y2(o),m.length&&m[0]===""&&m.shift(),m.length&&m[m.length-1]===""&&m.pop(),f=m.length,f===0||f!==h.length))return!1;if(i)return!0;for(y=e.parentType,e.parentType="table",x=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),g.map=b=[t,0],g=e.push("thead_open","thead",1),g.map=[t,t+1],g=e.push("tr_open","tr",1),g.map=[t,t+1],l=0;l=4)break;for(m=y2(o),m.length&&m[0]===""&&m.shift(),m.length&&m[m.length-1]===""&&m.pop(),u===t+2&&(g=e.push("tbody_open","tbody",1),g.map=_=[t+2,0]),g=e.push("tr_open","tr",1),g.map=[u,u+1],l=0;l=4){i++,s=i;continue}break}return e.line=s,o=e.push("code_block","code",0),o.content=e.getLines(t,s,4+e.blkIndent,!1)+` +`,o.map=[t,e.line],!0},OEe=function(e,t,r,i){var s,o,a,l,d,u,m,f=!1,g=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||g+3>h||(s=e.src.charCodeAt(g),s!==126&&s!==96)||(d=g,g=e.skipChars(g,s),o=g-d,o<3)||(m=e.src.slice(d,g),a=e.src.slice(g,h),s===96&&a.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(l=t;l++,!(l>=r||(g=d=e.bMarks[l]+e.tShift[l],h=e.eMarks[l],g=4)&&(g=e.skipChars(g,s),!(g-d=4||e.src.charCodeAt(k)!==62)return!1;if(i)return!0;for(h=[],v=[],y=[],E=[],w=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",f=t;f=H));f++){if(e.src.charCodeAt(k++)===62&&!L){for(l=e.sCount[f]+1,e.src.charCodeAt(k)===32?(k++,l++,s=!1,x=!0):e.src.charCodeAt(k)===9?(x=!0,(e.bsCount[f]+l)%4===3?(k++,l++,s=!1):s=!0):x=!1,g=l,h.push(e.bMarks[f]),e.bMarks[f]=k;k=H,v.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(x?1:0),y.push(e.sCount[f]),e.sCount[f]=g-l,E.push(e.tShift[f]),e.tShift[f]=k-e.bMarks[f];continue}if(u)break;for(A=!1,a=0,d=w.length;a",N.map=m=[t,0],e.md.block.tokenize(e,t,f),N=e.push("blockquote_close","blockquote",-1),N.markup=">",e.lineMax=C,e.parentType=_,m[1]=e.line,a=0;a=4||(s=e.src.charCodeAt(d++),s!==42&&s!==45&&s!==95))return!1;for(o=1;d=s||(t=n.src.charCodeAt(i++),t<48||t>57))return-1;for(;;){if(i>=s)return-1;if(t=n.src.charCodeAt(i++),t>=48&&t<=57){if(i-r>=10)return-1;continue}if(t===41||t===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[K]-e.listIndent>=4&&e.sCount[K]=e.blkIndent&&(B=!0),(k=S2(e,K))>=0){if(m=!0,q=e.bMarks[K]+e.tShift[K],_=Number(e.src.slice(q,k-1)),B&&_!==1)return!1}else if((k=E2(e,K))>=0)m=!1;else return!1;if(B&&e.skipSpaces(k)>=e.eMarks[K])return!1;if(i)return!0;for(b=e.src.charCodeAt(k-1),v=e.tokens.length,m?($=e.push("ordered_list_open","ol",1),_!==1&&($.attrs=[["start",_]])):$=e.push("bullet_list_open","ul",1),$.map=h=[K,0],$.markup=String.fromCharCode(b),H=!1,D=e.md.block.ruler.getRules("list"),A=e.parentType,e.parentType="list";K=y?d=1:d=E-u,d>4&&(d=1),l=u+d,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(b),$.map=f=[K,0],m&&($.info=e.src.slice(q,k-1)),L=e.tight,N=e.tShift[K],w=e.sCount[K],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[K]=o-e.bMarks[K],e.sCount[K]=E,o>=y&&e.isEmpty(K+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,K,r,!0),(!e.tight||H)&&(Z=!1),H=e.line-K>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[K]=N,e.sCount[K]=w,e.tight=L,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(b),K=e.line,f[1]=K,K>=r||e.sCount[K]=4)break;for(ie=!1,a=0,g=D.length;a=4||e.src.charCodeAt(w)!==91)return!1;for(;++w3)&&!(e.sCount[L]<0)){for(y=!1,u=0,m=E.length;u"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:x,href:d}),e.parentType=h,e.line=t+A+1),!0)},VEe=["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"],zh={},HEe="[a-zA-Z_:][a-zA-Z0-9:._-]*",qEe="[^\"'=<>`\\x00-\\x20]+",YEe="'[^']*'",$Ee='"[^"]*"',WEe="(?:"+qEe+"|"+YEe+"|"+$Ee+")",KEe="(?:\\s+"+HEe+"(?:\\s*=\\s*"+WEe+")?)",SN="<[A-Za-z][A-Za-z0-9\\-]*"+KEe+"*\\s*\\/?>",xN="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",jEe="|",QEe="<[?][\\s\\S]*?[?]>",XEe="]*>",ZEe="",JEe=new RegExp("^(?:"+SN+"|"+xN+"|"+jEe+"|"+QEe+"|"+XEe+"|"+ZEe+")"),eSe=new RegExp("^(?:"+SN+"|"+xN+")");zh.HTML_TAG_RE=JEe;zh.HTML_OPEN_CLOSE_TAG_RE=eSe;var tSe=VEe,nSe=zh.HTML_OPEN_CLOSE_TAG_RE,Pa=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(nSe.source+"\\s*$"),/^$/,!1]],rSe=function(e,t,r,i){var s,o,a,l,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(l=e.src.slice(d,u),s=0;s=4||(s=e.src.charCodeAt(d),s!==35||d>=u))return!1;for(o=1,s=e.src.charCodeAt(++d);s===35&&d6||dd&&x2(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,l=e.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(d,u).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)},sSe=function(e,t,r){var i,s,o,a,l,d,u,m,f,g=t+1,h,v=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";g3)){if(e.sCount[g]>=e.blkIndent&&(d=e.bMarks[g]+e.tShift[g],u=e.eMarks[g],d=u)))){m=f===61?1:2;break}if(!(e.sCount[g]<0)){for(s=!1,o=0,a=v.length;o3)&&!(e.sCount[u]<0)){for(s=!1,o=0,a=m.length;o0&&this.level++,this.tokens.push(r),r};ts.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ts.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!Vh(this.src.charCodeAt(--e)))return e+1;return e};ts.prototype.skipChars=function(e,t){for(var r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e};ts.prototype.getLines=function(e,t,r,i){var s,o,a,l,d,u,m,f=e;if(e>=t)return"";for(u=new Array(t-e),s=0;fr?u[s]=new Array(o-r+1).join(" ")+this.src.slice(l,d):u[s]=this.src.slice(l,d)}return u.join("")};ts.prototype.Token=TN;var aSe=ts,lSe=Lv,iu=[["table",kEe,["paragraph","reference"]],["code",IEe],["fence",OEe,["paragraph","reference","blockquote","list"]],["blockquote",LEe,["paragraph","reference","blockquote","list"]],["hr",FEe,["paragraph","reference","blockquote","list"]],["list",BEe,["paragraph","reference","blockquote"]],["reference",zEe],["html_block",rSe,["paragraph","reference","blockquote"]],["heading",iSe,["paragraph","reference","blockquote"]],["lheading",sSe],["paragraph",oSe]];function Hh(){this.ruler=new lSe;for(var n=0;n=t||n.sCount[l]=u){n.line=t;break}for(s=n.line,i=0;i=n.line)throw new Error("block rule didn't increment state.line");break}if(!r)throw new Error("none of the block rules matched");n.tight=!d,n.isEmpty(n.line-1)&&(d=!0),l=n.line,l0||(r=e.pos,i=e.posMax,r+3>i)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(s=e.pending.match(pSe),!s)||(o=s[1],a=e.md.linkify.matchAtStart(e.src.slice(r-o.length)),!a)||(l=a.url,l.length<=o.length)||(l=l.replace(/\*+$/,""),d=e.md.normalizeLink(l),!e.md.validateLink(d))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(l),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=l.length-o.length,!0)},mSe=Jt.isSpace,fSe=function(e,t){var r,i,s,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(r=e.pending.length-1,i=e.posMax,!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){Uv[n.charCodeAt(0)]=1});var _Se=function(e,t){var r,i,s,o,a,l=e.pos,d=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=d))return!1;if(r=e.src.charCodeAt(l),r===10){for(t||e.push("hardbreak","br",0),l++;l=55296&&r<=56319&&l+1=56320&&i<=57343&&(o+=e.src[l+1],l++)),s="\\"+o,t||(a=e.push("text_special","",0),r<256&&Uv[r]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"),e.pos=l+1,!0},bSe=function(e,t){var r,i,s,o,a,l,d,u,m=e.pos,f=e.src.charCodeAt(m);if(f!==96)return!1;for(r=m,m++,i=e.posMax;m=0;t--)r=e[t],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],a=t>0&&e[t-1].end===r.end+1&&e[t-1].marker===r.marker&&e[t-1].token===r.token-1&&e[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=n.tokens[r.token],s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?o+o:o,s.content="",s=n.tokens[i.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?o+o:o,s.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[r.end+1].token].content="",t--))}Yh.postProcess=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(C2(e,e.delimiters),t=0;t=v)return!1;if(b=l,d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),d.ok){for(f=e.md.normalizeLink(d.str),e.md.validateLink(f)?l=d.pos:f="",b=l;l=v||e.src.charCodeAt(l)!==41)&&(_=!0),l++}if(_){if(typeof e.env.references>"u")return!1;if(l=0?s=e.src.slice(b,l++):l=o+1):l=o+1,s||(s=e.src.slice(a,o)),u=e.env.references[vSe(s)],!u)return e.pos=h,!1;f=u.href,g=u.title}return t||(e.pos=a,e.posMax=o,m=e.push("link_open","a",1),m.attrs=r=[["href",f]],g&&r.push(["title",g]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,m=e.push("link_close","a",-1)),e.pos=l,e.posMax=v,!0},ESe=Jt.normalizeReference,ef=Jt.isSpace,SSe=function(e,t){var r,i,s,o,a,l,d,u,m,f,g,h,v,b="",_=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d=y)return!1;for(v=d,m=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),m.ok&&(b=e.md.normalizeLink(m.str),e.md.validateLink(b)?d=m.pos:b=""),v=d;d=y||e.src.charCodeAt(d)!==41)return e.pos=_,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d=0?o=e.src.slice(v,d++):d=a+1):d=a+1,o||(o=e.src.slice(l,a)),u=e.env.references[ESe(o)],!u)return e.pos=_,!1;b=u.href,f=u.title}return t||(s=e.src.slice(l,a),e.md.inline.parse(s,e.md,e.env,h=[]),g=e.push("image","img",0),g.attrs=r=[["src",b],["alt",""]],g.children=h,g.content=s,f&&r.push(["title",f])),e.pos=d,e.posMax=y,!0},xSe=/^([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])?)*)$/,TSe=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,wSe=function(e,t){var r,i,s,o,a,l,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++d>=l||(o=e.src.charCodeAt(d),o===60))return!1;if(o===62)break}return r=e.src.slice(a+1,d),TSe.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):xSe.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},CSe=zh.HTML_TAG_RE;function ASe(n){return/^\s]/i.test(n)}function RSe(n){return/^<\/a\s*>/i.test(n)}function MSe(n){var e=n|32;return e>=97&&e<=122}var NSe=function(e,t){var r,i,s,o,a=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(a)!==60||a+2>=s)||(r=e.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!MSe(r))||(i=e.src.slice(a).match(CSe),!i)?!1:(t||(o=e.push("html_inline","",0),o.content=i[0],ASe(o.content)&&e.linkLevel++,RSe(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},A2=fN,kSe=Jt.has,ISe=Jt.isValidEntityCode,R2=Jt.fromCodePoint,OSe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,DSe=/^&([a-z][a-z0-9]{1,31});/i,LSe=function(e,t){var r,i,s,o,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(r=e.src.charCodeAt(a+1),r===35){if(s=e.src.slice(a).match(OSe),s)return t||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),o=e.push("text_special","",0),o.content=ISe(i)?R2(i):R2(65533),o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(a).match(DSe),s&&kSe(A2,s[1]))return t||(o=e.push("text_special","",0),o.content=A2[s[1]],o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0;return!1};function M2(n){var e,t,r,i,s,o,a,l,d={},u=n.length;if(u){var m=0,f=-2,g=[];for(e=0;es;t-=g[t]+1)if(i=n[t],i.marker===r.marker&&i.open&&i.end<0&&(a=!1,(i.close||r.open)&&(i.length+r.length)%3===0&&(i.length%3!==0||r.length%3!==0)&&(a=!0),!a)){l=t>0&&!n[t-1].open?g[t-1]+1:0,g[e]=e-t+l,g[t]=l,r.open=!1,i.end=e,i.close=!1,o=-1,f=-2;break}o!==-1&&(d[r.marker][(r.open?3:0)+(r.length||0)%3]=o)}}}var PSe=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(M2(e.delimiters),t=0;t0&&i++,s[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};Ad.prototype.scanDelims=function(n,e){var t=n,r,i,s,o,a,l,d,u,m,f=!0,g=!0,h=this.posMax,v=this.src.charCodeAt(n);for(r=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[r]=n.pos};Rd.prototype.tokenize=function(n){for(var e,t,r,i=this.ruler.getRules(""),s=i.length,o=n.posMax,a=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};Rd.prototype.parse=function(n,e,t,r){var i,s,o,a=new this.State(n,e,t,r);for(this.tokenize(a),s=this.ruler2.getRules(""),o=s.length,i=0;i|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),rf}function u1(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(r){n[r]=t[r]})}),n}function $h(n){return Object.prototype.toString.call(n)}function zSe(n){return $h(n)==="[object String]"}function VSe(n){return $h(n)==="[object Object]"}function HSe(n){return $h(n)==="[object RegExp]"}function L2(n){return $h(n)==="[object Function]"}function qSe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var wN={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function YSe(n){return Object.keys(n||{}).reduce(function(e,t){return e||wN.hasOwnProperty(t)},!1)}var $Se={"http:":{validate:function(n,e,t){var r=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(r)?r.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var r=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(r)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:r.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var r=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(r)?r.match(t.re.mailto)[0].length:0}}},WSe="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]",KSe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function jSe(n){n.__index__=-1,n.__text_cache__=""}function QSe(n){return function(e,t){var r=e.slice(t);return n.test(r)?r.match(n)[0].length:0}}function P2(){return function(n,e){e.normalize(n)}}function Dp(n){var e=n.re=GSe()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(WSe),t.push(e.src_xn),e.src_tlds=t.join("|");function r(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];n.__compiled__={};function s(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(n.__schemas__).forEach(function(a){var l=n.__schemas__[a];if(l!==null){var d={validate:null,link:null};if(n.__compiled__[a]=d,VSe(l)){HSe(l.validate)?d.validate=QSe(l.validate):L2(l.validate)?d.validate=l.validate:s(a,l),L2(l.normalize)?d.normalize=l.normalize:l.normalize?s(a,l):d.normalize=P2();return}if(zSe(l)){i.push(a);return}s(a,l)}}),i.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:P2()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(qSe).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"),jSe(n)}function XSe(n,e){var t=n.__index__,r=n.__last_index__,i=n.__text_cache__.slice(t,r);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function p1(n,e){var t=new XSe(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function Vr(n,e){if(!(this instanceof Vr))return new Vr(n,e);e||YSe(n)&&(e=n,n={}),this.__opts__=u1({},wN,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=u1({},$Se,n),this.__compiled__={},this.__tlds__=KSe,this.__tlds_replaced__=!1,this.re={},Dp(this)}Vr.prototype.add=function(e,t){return this.__schemas__[e]=t,Dp(this),this};Vr.prototype.set=function(e){return this.__opts__=u1(this.__opts__,e),this};Vr.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,i,s,o,a,l,d,u;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(t=l.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],l.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};Vr.prototype.pretest=function(e){return this.re.pretest.test(e)};Vr.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0};Vr.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(p1(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)r.push(p1(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null};Vr.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,p1(this,0)):null};Vr.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,s){return r!==s[i-1]}).reverse(),Dp(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Dp(this),this)};Vr.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Vr.prototype.onCompile=function(){};var ZSe=Vr;const gl=2147483647,qi=36,Gv=1,dd=26,JSe=38,e2e=700,CN=72,AN=128,RN="-",t2e=/^xn--/,n2e=/[^\0-\x7F]/,r2e=/[\x2E\u3002\uFF0E\uFF61]/g,i2e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sf=qi-Gv,Yi=Math.floor,of=String.fromCharCode;function lo(n){throw new RangeError(i2e[n])}function s2e(n,e){const t=[];let r=n.length;for(;r--;)t[r]=e(n[r]);return t}function MN(n,e){const t=n.split("@");let r="";t.length>1&&(r=t[0]+"@",n=t[1]),n=n.replace(r2e,".");const i=n.split("."),s=s2e(i,e).join(".");return r+s}function zv(n){const e=[];let t=0;const r=n.length;for(;t=55296&&i<=56319&&tString.fromCodePoint(...n),o2e=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:qi},F2=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},kN=function(n,e,t){let r=0;for(n=t?Yi(n/e2e):n>>1,n+=Yi(n/e);n>sf*dd>>1;r+=qi)n=Yi(n/sf);return Yi(r+(sf+1)*n/(n+JSe))},Vv=function(n){const e=[],t=n.length;let r=0,i=AN,s=CN,o=n.lastIndexOf(RN);o<0&&(o=0);for(let a=0;a=128&&lo("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a=t&&lo("invalid-input");const f=o2e(n.charCodeAt(a++));f>=qi&&lo("invalid-input"),f>Yi((gl-r)/u)&&lo("overflow"),r+=f*u;const g=m<=s?Gv:m>=s+dd?dd:m-s;if(fYi(gl/h)&&lo("overflow"),u*=h}const d=e.length+1;s=kN(r-l,d,l==0),Yi(r/d)>gl-i&&lo("overflow"),i+=Yi(r/d),r%=d,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Hv=function(n){const e=[];n=zv(n);const t=n.length;let r=AN,i=0,s=CN;for(const l of n)l<128&&e.push(of(l));const o=e.length;let a=o;for(o&&e.push(RN);a=r&&uYi((gl-i)/d)&&lo("overflow"),i+=(l-r)*d,r=l;for(const u of n)if(ugl&&lo("overflow"),u===r){let m=i;for(let f=qi;;f+=qi){const g=f<=s?Gv:f>=s+dd?dd:f-s;if(m=0))try{e.hostname=DN.toASCII(e.hostname)}catch{}return oa.encode(oa.format(e))}function T2e(n){var e=oa.parse(n,!0);if(e.hostname&&(!e.protocol||LN.indexOf(e.protocol)>=0))try{e.hostname=DN.toUnicode(e.hostname)}catch{}return oa.decode(oa.format(e),oa.decode.defaultChars+"%")}function pi(n,e){if(!(this instanceof pi))return new pi(n,e);e||Vc.isString(n)||(e=n||{},n="default"),this.inline=new _2e,this.block=new g2e,this.core=new f2e,this.renderer=new m2e,this.linkify=new b2e,this.validateLink=S2e,this.normalizeLink=x2e,this.normalizeLinkText=T2e,this.utils=Vc,this.helpers=Vc.assign({},h2e),this.options={},this.configure(n),e&&this.set(e)}pi.prototype.set=function(n){return Vc.assign(this.options,n),this};pi.prototype.configure=function(n){var e=this,t;if(Vc.isString(n)&&(t=n,n=v2e[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(r){n.components[r].rules&&e[r].ruler.enableOnly(n.components[r].rules),n.components[r].rules2&&e[r].ruler2.enableOnly(n.components[r].rules2)}),this};pi.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var r=n.filter(function(i){return t.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};pi.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var r=n.filter(function(i){return t.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};pi.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};pi.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};pi.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};pi.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};pi.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var w2e=pi,C2e=w2e;const A2e=Lo(C2e),R2e="😀",M2e="😃",N2e="😄",k2e="😁",I2e="😆",O2e="😆",D2e="😅",L2e="🤣",P2e="😂",F2e="🙂",U2e="🙃",B2e="😉",G2e="😊",z2e="😇",V2e="🥰",H2e="😍",q2e="🤩",Y2e="😘",$2e="😗",W2e="☺️",K2e="😚",j2e="😙",Q2e="🥲",X2e="😋",Z2e="😛",J2e="😜",exe="🤪",txe="😝",nxe="🤑",rxe="🤗",ixe="🤭",sxe="🤫",oxe="🤔",axe="🤐",lxe="🤨",cxe="😐",dxe="😑",uxe="😶",pxe="😏",hxe="😒",mxe="🙄",fxe="😬",gxe="🤥",_xe="😌",bxe="😔",vxe="😪",yxe="🤤",Exe="😴",Sxe="😷",xxe="🤒",Txe="🤕",wxe="🤢",Cxe="🤮",Axe="🤧",Rxe="🥵",Mxe="🥶",Nxe="🥴",kxe="😵",Ixe="🤯",Oxe="🤠",Dxe="🥳",Lxe="🥸",Pxe="😎",Fxe="🤓",Uxe="🧐",Bxe="😕",Gxe="😟",zxe="🙁",Vxe="☹️",Hxe="😮",qxe="😯",Yxe="😲",$xe="😳",Wxe="🥺",Kxe="😦",jxe="😧",Qxe="😨",Xxe="😰",Zxe="😥",Jxe="😢",eTe="😭",tTe="😱",nTe="😖",rTe="😣",iTe="😞",sTe="😓",oTe="😩",aTe="😫",lTe="🥱",cTe="😤",dTe="😡",uTe="😡",pTe="😠",hTe="🤬",mTe="😈",fTe="👿",gTe="💀",_Te="☠️",bTe="💩",vTe="💩",yTe="💩",ETe="🤡",STe="👹",xTe="👺",TTe="👻",wTe="👽",CTe="👾",ATe="🤖",RTe="😺",MTe="😸",NTe="😹",kTe="😻",ITe="😼",OTe="😽",DTe="🙀",LTe="😿",PTe="😾",FTe="🙈",UTe="🙉",BTe="🙊",GTe="💋",zTe="💌",VTe="💘",HTe="💝",qTe="💖",YTe="💗",$Te="💓",WTe="💞",KTe="💕",jTe="💟",QTe="❣️",XTe="💔",ZTe="❤️",JTe="🧡",ewe="💛",twe="💚",nwe="💙",rwe="💜",iwe="🤎",swe="🖤",owe="🤍",awe="💢",lwe="💥",cwe="💥",dwe="💫",uwe="💦",pwe="💨",hwe="🕳️",mwe="💣",fwe="💬",gwe="👁️‍🗨️",_we="🗨️",bwe="🗯️",vwe="💭",ywe="💤",Ewe="👋",Swe="🤚",xwe="🖐️",Twe="✋",wwe="✋",Cwe="🖖",Awe="👌",Rwe="🤌",Mwe="🤏",Nwe="✌️",kwe="🤞",Iwe="🤟",Owe="🤘",Dwe="🤙",Lwe="👈",Pwe="👉",Fwe="👆",Uwe="🖕",Bwe="🖕",Gwe="👇",zwe="☝️",Vwe="👍",Hwe="👎",qwe="✊",Ywe="✊",$we="👊",Wwe="👊",Kwe="👊",jwe="🤛",Qwe="🤜",Xwe="👏",Zwe="🙌",Jwe="👐",eCe="🤲",tCe="🤝",nCe="🙏",rCe="✍️",iCe="💅",sCe="🤳",oCe="💪",aCe="🦾",lCe="🦿",cCe="🦵",dCe="🦶",uCe="👂",pCe="🦻",hCe="👃",mCe="🧠",fCe="🫀",gCe="🫁",_Ce="🦷",bCe="🦴",vCe="👀",yCe="👁️",ECe="👅",SCe="👄",xCe="👶",TCe="🧒",wCe="👦",CCe="👧",ACe="🧑",RCe="👱",MCe="👨",NCe="🧔",kCe="👨‍🦰",ICe="👨‍🦱",OCe="👨‍🦳",DCe="👨‍🦲",LCe="👩",PCe="👩‍🦰",FCe="🧑‍🦰",UCe="👩‍🦱",BCe="🧑‍🦱",GCe="👩‍🦳",zCe="🧑‍🦳",VCe="👩‍🦲",HCe="🧑‍🦲",qCe="👱‍♀️",YCe="👱‍♀️",$Ce="👱‍♂️",WCe="🧓",KCe="👴",jCe="👵",QCe="🙍",XCe="🙍‍♂️",ZCe="🙍‍♀️",JCe="🙎",eAe="🙎‍♂️",tAe="🙎‍♀️",nAe="🙅",rAe="🙅‍♂️",iAe="🙅‍♂️",sAe="🙅‍♀️",oAe="🙅‍♀️",aAe="🙆",lAe="🙆‍♂️",cAe="🙆‍♀️",dAe="💁",uAe="💁",pAe="💁‍♂️",hAe="💁‍♂️",mAe="💁‍♀️",fAe="💁‍♀️",gAe="🙋",_Ae="🙋‍♂️",bAe="🙋‍♀️",vAe="🧏",yAe="🧏‍♂️",EAe="🧏‍♀️",SAe="🙇",xAe="🙇‍♂️",TAe="🙇‍♀️",wAe="🤦",CAe="🤦‍♂️",AAe="🤦‍♀️",RAe="🤷",MAe="🤷‍♂️",NAe="🤷‍♀️",kAe="🧑‍⚕️",IAe="👨‍⚕️",OAe="👩‍⚕️",DAe="🧑‍🎓",LAe="👨‍🎓",PAe="👩‍🎓",FAe="🧑‍🏫",UAe="👨‍🏫",BAe="👩‍🏫",GAe="🧑‍⚖️",zAe="👨‍⚖️",VAe="👩‍⚖️",HAe="🧑‍🌾",qAe="👨‍🌾",YAe="👩‍🌾",$Ae="🧑‍🍳",WAe="👨‍🍳",KAe="👩‍🍳",jAe="🧑‍🔧",QAe="👨‍🔧",XAe="👩‍🔧",ZAe="🧑‍🏭",JAe="👨‍🏭",eRe="👩‍🏭",tRe="🧑‍💼",nRe="👨‍💼",rRe="👩‍💼",iRe="🧑‍🔬",sRe="👨‍🔬",oRe="👩‍🔬",aRe="🧑‍💻",lRe="👨‍💻",cRe="👩‍💻",dRe="🧑‍🎤",uRe="👨‍🎤",pRe="👩‍🎤",hRe="🧑‍🎨",mRe="👨‍🎨",fRe="👩‍🎨",gRe="🧑‍✈️",_Re="👨‍✈️",bRe="👩‍✈️",vRe="🧑‍🚀",yRe="👨‍🚀",ERe="👩‍🚀",SRe="🧑‍🚒",xRe="👨‍🚒",TRe="👩‍🚒",wRe="👮",CRe="👮",ARe="👮‍♂️",RRe="👮‍♀️",MRe="🕵️",NRe="🕵️‍♂️",kRe="🕵️‍♀️",IRe="💂",ORe="💂‍♂️",DRe="💂‍♀️",LRe="🥷",PRe="👷",FRe="👷‍♂️",URe="👷‍♀️",BRe="🤴",GRe="👸",zRe="👳",VRe="👳‍♂️",HRe="👳‍♀️",qRe="👲",YRe="🧕",$Re="🤵",WRe="🤵‍♂️",KRe="🤵‍♀️",jRe="👰",QRe="👰‍♂️",XRe="👰‍♀️",ZRe="👰‍♀️",JRe="🤰",eMe="🤱",tMe="👩‍🍼",nMe="👨‍🍼",rMe="🧑‍🍼",iMe="👼",sMe="🎅",oMe="🤶",aMe="🧑‍🎄",lMe="🦸",cMe="🦸‍♂️",dMe="🦸‍♀️",uMe="🦹",pMe="🦹‍♂️",hMe="🦹‍♀️",mMe="🧙",fMe="🧙‍♂️",gMe="🧙‍♀️",_Me="🧚",bMe="🧚‍♂️",vMe="🧚‍♀️",yMe="🧛",EMe="🧛‍♂️",SMe="🧛‍♀️",xMe="🧜",TMe="🧜‍♂️",wMe="🧜‍♀️",CMe="🧝",AMe="🧝‍♂️",RMe="🧝‍♀️",MMe="🧞",NMe="🧞‍♂️",kMe="🧞‍♀️",IMe="🧟",OMe="🧟‍♂️",DMe="🧟‍♀️",LMe="💆",PMe="💆‍♂️",FMe="💆‍♀️",UMe="💇",BMe="💇‍♂️",GMe="💇‍♀️",zMe="🚶",VMe="🚶‍♂️",HMe="🚶‍♀️",qMe="🧍",YMe="🧍‍♂️",$Me="🧍‍♀️",WMe="🧎",KMe="🧎‍♂️",jMe="🧎‍♀️",QMe="🧑‍🦯",XMe="👨‍🦯",ZMe="👩‍🦯",JMe="🧑‍🦼",e4e="👨‍🦼",t4e="👩‍🦼",n4e="🧑‍🦽",r4e="👨‍🦽",i4e="👩‍🦽",s4e="🏃",o4e="🏃",a4e="🏃‍♂️",l4e="🏃‍♀️",c4e="💃",d4e="💃",u4e="🕺",p4e="🕴️",h4e="👯",m4e="👯‍♂️",f4e="👯‍♀️",g4e="🧖",_4e="🧖‍♂️",b4e="🧖‍♀️",v4e="🧗",y4e="🧗‍♂️",E4e="🧗‍♀️",S4e="🤺",x4e="🏇",T4e="⛷️",w4e="🏂",C4e="🏌️",A4e="🏌️‍♂️",R4e="🏌️‍♀️",M4e="🏄",N4e="🏄‍♂️",k4e="🏄‍♀️",I4e="🚣",O4e="🚣‍♂️",D4e="🚣‍♀️",L4e="🏊",P4e="🏊‍♂️",F4e="🏊‍♀️",U4e="⛹️",B4e="⛹️‍♂️",G4e="⛹️‍♂️",z4e="⛹️‍♀️",V4e="⛹️‍♀️",H4e="🏋️",q4e="🏋️‍♂️",Y4e="🏋️‍♀️",$4e="🚴",W4e="🚴‍♂️",K4e="🚴‍♀️",j4e="🚵",Q4e="🚵‍♂️",X4e="🚵‍♀️",Z4e="🤸",J4e="🤸‍♂️",e3e="🤸‍♀️",t3e="🤼",n3e="🤼‍♂️",r3e="🤼‍♀️",i3e="🤽",s3e="🤽‍♂️",o3e="🤽‍♀️",a3e="🤾",l3e="🤾‍♂️",c3e="🤾‍♀️",d3e="🤹",u3e="🤹‍♂️",p3e="🤹‍♀️",h3e="🧘",m3e="🧘‍♂️",f3e="🧘‍♀️",g3e="🛀",_3e="🛌",b3e="🧑‍🤝‍🧑",v3e="👭",y3e="👫",E3e="👬",S3e="💏",x3e="👩‍❤️‍💋‍👨",T3e="👨‍❤️‍💋‍👨",w3e="👩‍❤️‍💋‍👩",C3e="💑",A3e="👩‍❤️‍👨",R3e="👨‍❤️‍👨",M3e="👩‍❤️‍👩",N3e="👪",k3e="👨‍👩‍👦",I3e="👨‍👩‍👧",O3e="👨‍👩‍👧‍👦",D3e="👨‍👩‍👦‍👦",L3e="👨‍👩‍👧‍👧",P3e="👨‍👨‍👦",F3e="👨‍👨‍👧",U3e="👨‍👨‍👧‍👦",B3e="👨‍👨‍👦‍👦",G3e="👨‍👨‍👧‍👧",z3e="👩‍👩‍👦",V3e="👩‍👩‍👧",H3e="👩‍👩‍👧‍👦",q3e="👩‍👩‍👦‍👦",Y3e="👩‍👩‍👧‍👧",$3e="👨‍👦",W3e="👨‍👦‍👦",K3e="👨‍👧",j3e="👨‍👧‍👦",Q3e="👨‍👧‍👧",X3e="👩‍👦",Z3e="👩‍👦‍👦",J3e="👩‍👧",eNe="👩‍👧‍👦",tNe="👩‍👧‍👧",nNe="🗣️",rNe="👤",iNe="👥",sNe="🫂",oNe="👣",aNe="🐵",lNe="🐒",cNe="🦍",dNe="🦧",uNe="🐶",pNe="🐕",hNe="🦮",mNe="🐕‍🦺",fNe="🐩",gNe="🐺",_Ne="🦊",bNe="🦝",vNe="🐱",yNe="🐈",ENe="🐈‍⬛",SNe="🦁",xNe="🐯",TNe="🐅",wNe="🐆",CNe="🐴",ANe="🐎",RNe="🦄",MNe="🦓",NNe="🦌",kNe="🦬",INe="🐮",ONe="🐂",DNe="🐃",LNe="🐄",PNe="🐷",FNe="🐖",UNe="🐗",BNe="🐽",GNe="🐏",zNe="🐑",VNe="🐐",HNe="🐪",qNe="🐫",YNe="🦙",$Ne="🦒",WNe="🐘",KNe="🦣",jNe="🦏",QNe="🦛",XNe="🐭",ZNe="🐁",JNe="🐀",eke="🐹",tke="🐰",nke="🐇",rke="🐿️",ike="🦫",ske="🦔",oke="🦇",ake="🐻",lke="🐻‍❄️",cke="🐨",dke="🐼",uke="🦥",pke="🦦",hke="🦨",mke="🦘",fke="🦡",gke="🐾",_ke="🐾",bke="🦃",vke="🐔",yke="🐓",Eke="🐣",Ske="🐤",xke="🐥",Tke="🐦",wke="🐧",Cke="🕊️",Ake="🦅",Rke="🦆",Mke="🦢",Nke="🦉",kke="🦤",Ike="🪶",Oke="🦩",Dke="🦚",Lke="🦜",Pke="🐸",Fke="🐊",Uke="🐢",Bke="🦎",Gke="🐍",zke="🐲",Vke="🐉",Hke="🦕",qke="🐳",Yke="🐋",$ke="🐬",Wke="🐬",Kke="🦭",jke="🐟",Qke="🐠",Xke="🐡",Zke="🦈",Jke="🐙",eIe="🐚",tIe="🐌",nIe="🦋",rIe="🐛",iIe="🐜",sIe="🐝",oIe="🐝",aIe="🪲",lIe="🐞",cIe="🦗",dIe="🪳",uIe="🕷️",pIe="🕸️",hIe="🦂",mIe="🦟",fIe="🪰",gIe="🪱",_Ie="🦠",bIe="💐",vIe="🌸",yIe="💮",EIe="🏵️",SIe="🌹",xIe="🥀",TIe="🌺",wIe="🌻",CIe="🌼",AIe="🌷",RIe="🌱",MIe="🪴",NIe="🌲",kIe="🌳",IIe="🌴",OIe="🌵",DIe="🌾",LIe="🌿",PIe="☘️",FIe="🍀",UIe="🍁",BIe="🍂",GIe="🍃",zIe="🍇",VIe="🍈",HIe="🍉",qIe="🍊",YIe="🍊",$Ie="🍊",WIe="🍋",KIe="🍌",jIe="🍍",QIe="🥭",XIe="🍎",ZIe="🍏",JIe="🍐",eOe="🍑",tOe="🍒",nOe="🍓",rOe="🫐",iOe="🥝",sOe="🍅",oOe="🫒",aOe="🥥",lOe="🥑",cOe="🍆",dOe="🥔",uOe="🥕",pOe="🌽",hOe="🌶️",mOe="🫑",fOe="🥒",gOe="🥬",_Oe="🥦",bOe="🧄",vOe="🧅",yOe="🍄",EOe="🥜",SOe="🌰",xOe="🍞",TOe="🥐",wOe="🥖",COe="🫓",AOe="🥨",ROe="🥯",MOe="🥞",NOe="🧇",kOe="🧀",IOe="🍖",OOe="🍗",DOe="🥩",LOe="🥓",POe="🍔",FOe="🍟",UOe="🍕",BOe="🌭",GOe="🥪",zOe="🌮",VOe="🌯",HOe="🫔",qOe="🥙",YOe="🧆",$Oe="🥚",WOe="🍳",KOe="🥘",jOe="🍲",QOe="🫕",XOe="🥣",ZOe="🥗",JOe="🍿",e5e="🧈",t5e="🧂",n5e="🥫",r5e="🍱",i5e="🍘",s5e="🍙",o5e="🍚",a5e="🍛",l5e="🍜",c5e="🍝",d5e="🍠",u5e="🍢",p5e="🍣",h5e="🍤",m5e="🍥",f5e="🥮",g5e="🍡",_5e="🥟",b5e="🥠",v5e="🥡",y5e="🦀",E5e="🦞",S5e="🦐",x5e="🦑",T5e="🦪",w5e="🍦",C5e="🍧",A5e="🍨",R5e="🍩",M5e="🍪",N5e="🎂",k5e="🍰",I5e="🧁",O5e="🥧",D5e="🍫",L5e="🍬",P5e="🍭",F5e="🍮",U5e="🍯",B5e="🍼",G5e="🥛",z5e="☕",V5e="🫖",H5e="🍵",q5e="🍶",Y5e="🍾",$5e="🍷",W5e="🍸",K5e="🍹",j5e="🍺",Q5e="🍻",X5e="🥂",Z5e="🥃",J5e="🥤",eDe="🧋",tDe="🧃",nDe="🧉",rDe="🧊",iDe="🥢",sDe="🍽️",oDe="🍴",aDe="🥄",lDe="🔪",cDe="🔪",dDe="🏺",uDe="🌍",pDe="🌎",hDe="🌏",mDe="🌐",fDe="🗺️",gDe="🗾",_De="🧭",bDe="🏔️",vDe="⛰️",yDe="🌋",EDe="🗻",SDe="🏕️",xDe="🏖️",TDe="🏜️",wDe="🏝️",CDe="🏞️",ADe="🏟️",RDe="🏛️",MDe="🏗️",NDe="🧱",kDe="🪨",IDe="🪵",ODe="🛖",DDe="🏘️",LDe="🏚️",PDe="🏠",FDe="🏡",UDe="🏢",BDe="🏣",GDe="🏤",zDe="🏥",VDe="🏦",HDe="🏨",qDe="🏩",YDe="🏪",$De="🏫",WDe="🏬",KDe="🏭",jDe="🏯",QDe="🏰",XDe="💒",ZDe="🗼",JDe="🗽",eLe="⛪",tLe="🕌",nLe="🛕",rLe="🕍",iLe="⛩️",sLe="🕋",oLe="⛲",aLe="⛺",lLe="🌁",cLe="🌃",dLe="🏙️",uLe="🌄",pLe="🌅",hLe="🌆",mLe="🌇",fLe="🌉",gLe="♨️",_Le="🎠",bLe="🎡",vLe="🎢",yLe="💈",ELe="🎪",SLe="🚂",xLe="🚃",TLe="🚄",wLe="🚅",CLe="🚆",ALe="🚇",RLe="🚈",MLe="🚉",NLe="🚊",kLe="🚝",ILe="🚞",OLe="🚋",DLe="🚌",LLe="🚍",PLe="🚎",FLe="🚐",ULe="🚑",BLe="🚒",GLe="🚓",zLe="🚔",VLe="🚕",HLe="🚖",qLe="🚗",YLe="🚗",$Le="🚘",WLe="🚙",KLe="🛻",jLe="🚚",QLe="🚛",XLe="🚜",ZLe="🏎️",JLe="🏍️",e6e="🛵",t6e="🦽",n6e="🦼",r6e="🛺",i6e="🚲",s6e="🛴",o6e="🛹",a6e="🛼",l6e="🚏",c6e="🛣️",d6e="🛤️",u6e="🛢️",p6e="⛽",h6e="🚨",m6e="🚥",f6e="🚦",g6e="🛑",_6e="🚧",b6e="⚓",v6e="⛵",y6e="⛵",E6e="🛶",S6e="🚤",x6e="🛳️",T6e="⛴️",w6e="🛥️",C6e="🚢",A6e="✈️",R6e="🛩️",M6e="🛫",N6e="🛬",k6e="🪂",I6e="💺",O6e="🚁",D6e="🚟",L6e="🚠",P6e="🚡",F6e="🛰️",U6e="🚀",B6e="🛸",G6e="🛎️",z6e="🧳",V6e="⌛",H6e="⏳",q6e="⌚",Y6e="⏰",$6e="⏱️",W6e="⏲️",K6e="🕰️",j6e="🕛",Q6e="🕧",X6e="🕐",Z6e="🕜",J6e="🕑",ePe="🕝",tPe="🕒",nPe="🕞",rPe="🕓",iPe="🕟",sPe="🕔",oPe="🕠",aPe="🕕",lPe="🕡",cPe="🕖",dPe="🕢",uPe="🕗",pPe="🕣",hPe="🕘",mPe="🕤",fPe="🕙",gPe="🕥",_Pe="🕚",bPe="🕦",vPe="🌑",yPe="🌒",EPe="🌓",SPe="🌔",xPe="🌔",TPe="🌕",wPe="🌖",CPe="🌗",APe="🌘",RPe="🌙",MPe="🌚",NPe="🌛",kPe="🌜",IPe="🌡️",OPe="☀️",DPe="🌝",LPe="🌞",PPe="🪐",FPe="⭐",UPe="🌟",BPe="🌠",GPe="🌌",zPe="☁️",VPe="⛅",HPe="⛈️",qPe="🌤️",YPe="🌥️",$Pe="🌦️",WPe="🌧️",KPe="🌨️",jPe="🌩️",QPe="🌪️",XPe="🌫️",ZPe="🌬️",JPe="🌀",e7e="🌈",t7e="🌂",n7e="☂️",r7e="☔",i7e="⛱️",s7e="⚡",o7e="❄️",a7e="☃️",l7e="⛄",c7e="☄️",d7e="🔥",u7e="💧",p7e="🌊",h7e="🎃",m7e="🎄",f7e="🎆",g7e="🎇",_7e="🧨",b7e="✨",v7e="🎈",y7e="🎉",E7e="🎊",S7e="🎋",x7e="🎍",T7e="🎎",w7e="🎏",C7e="🎐",A7e="🎑",R7e="🧧",M7e="🎀",N7e="🎁",k7e="🎗️",I7e="🎟️",O7e="🎫",D7e="🎖️",L7e="🏆",P7e="🏅",F7e="⚽",U7e="⚾",B7e="🥎",G7e="🏀",z7e="🏐",V7e="🏈",H7e="🏉",q7e="🎾",Y7e="🥏",$7e="🎳",W7e="🏏",K7e="🏑",j7e="🏒",Q7e="🥍",X7e="🏓",Z7e="🏸",J7e="🥊",e8e="🥋",t8e="🥅",n8e="⛳",r8e="⛸️",i8e="🎣",s8e="🤿",o8e="🎽",a8e="🎿",l8e="🛷",c8e="🥌",d8e="🎯",u8e="🪀",p8e="🪁",h8e="🔮",m8e="🪄",f8e="🧿",g8e="🎮",_8e="🕹️",b8e="🎰",v8e="🎲",y8e="🧩",E8e="🧸",S8e="🪅",x8e="🪆",T8e="♠️",w8e="♥️",C8e="♦️",A8e="♣️",R8e="♟️",M8e="🃏",N8e="🀄",k8e="🎴",I8e="🎭",O8e="🖼️",D8e="🎨",L8e="🧵",P8e="🪡",F8e="🧶",U8e="🪢",B8e="👓",G8e="🕶️",z8e="🥽",V8e="🥼",H8e="🦺",q8e="👔",Y8e="👕",$8e="👕",W8e="👖",K8e="🧣",j8e="🧤",Q8e="🧥",X8e="🧦",Z8e="👗",J8e="👘",e9e="🥻",t9e="🩱",n9e="🩲",r9e="🩳",i9e="👙",s9e="👚",o9e="👛",a9e="👜",l9e="👝",c9e="🛍️",d9e="🎒",u9e="🩴",p9e="👞",h9e="👞",m9e="👟",f9e="🥾",g9e="🥿",_9e="👠",b9e="👡",v9e="🩰",y9e="👢",E9e="👑",S9e="👒",x9e="🎩",T9e="🎓",w9e="🧢",C9e="🪖",A9e="⛑️",R9e="📿",M9e="💄",N9e="💍",k9e="💎",I9e="🔇",O9e="🔈",D9e="🔉",L9e="🔊",P9e="📢",F9e="📣",U9e="📯",B9e="🔔",G9e="🔕",z9e="🎼",V9e="🎵",H9e="🎶",q9e="🎙️",Y9e="🎚️",$9e="🎛️",W9e="🎤",K9e="🎧",j9e="📻",Q9e="🎷",X9e="🪗",Z9e="🎸",J9e="🎹",eFe="🎺",tFe="🎻",nFe="🪕",rFe="🥁",iFe="🪘",sFe="📱",oFe="📲",aFe="☎️",lFe="☎️",cFe="📞",dFe="📟",uFe="📠",pFe="🔋",hFe="🔌",mFe="💻",fFe="🖥️",gFe="🖨️",_Fe="⌨️",bFe="🖱️",vFe="🖲️",yFe="💽",EFe="💾",SFe="💿",xFe="📀",TFe="🧮",wFe="🎥",CFe="🎞️",AFe="📽️",RFe="🎬",MFe="📺",NFe="📷",kFe="📸",IFe="📹",OFe="📼",DFe="🔍",LFe="🔎",PFe="🕯️",FFe="💡",UFe="🔦",BFe="🏮",GFe="🏮",zFe="🪔",VFe="📔",HFe="📕",qFe="📖",YFe="📖",$Fe="📗",WFe="📘",KFe="📙",jFe="📚",QFe="📓",XFe="📒",ZFe="📃",JFe="📜",eUe="📄",tUe="📰",nUe="🗞️",rUe="📑",iUe="🔖",sUe="🏷️",oUe="💰",aUe="🪙",lUe="💴",cUe="💵",dUe="💶",uUe="💷",pUe="💸",hUe="💳",mUe="🧾",fUe="💹",gUe="✉️",_Ue="📧",bUe="📨",vUe="📩",yUe="📤",EUe="📥",SUe="📫",xUe="📪",TUe="📬",wUe="📭",CUe="📮",AUe="🗳️",RUe="✏️",MUe="✒️",NUe="🖋️",kUe="🖊️",IUe="🖌️",OUe="🖍️",DUe="📝",LUe="📝",PUe="💼",FUe="📁",UUe="📂",BUe="🗂️",GUe="📅",zUe="📆",VUe="🗒️",HUe="🗓️",qUe="📇",YUe="📈",$Ue="📉",WUe="📊",KUe="📋",jUe="📌",QUe="📍",XUe="📎",ZUe="🖇️",JUe="📏",eBe="📐",tBe="✂️",nBe="🗃️",rBe="🗄️",iBe="🗑️",sBe="🔒",oBe="🔓",aBe="🔏",lBe="🔐",cBe="🔑",dBe="🗝️",uBe="🔨",pBe="🪓",hBe="⛏️",mBe="⚒️",fBe="🛠️",gBe="🗡️",_Be="⚔️",bBe="🔫",vBe="🪃",yBe="🏹",EBe="🛡️",SBe="🪚",xBe="🔧",TBe="🪛",wBe="🔩",CBe="⚙️",ABe="🗜️",RBe="⚖️",MBe="🦯",NBe="🔗",kBe="⛓️",IBe="🪝",OBe="🧰",DBe="🧲",LBe="🪜",PBe="⚗️",FBe="🧪",UBe="🧫",BBe="🧬",GBe="🔬",zBe="🔭",VBe="📡",HBe="💉",qBe="🩸",YBe="💊",$Be="🩹",WBe="🩺",KBe="🚪",jBe="🛗",QBe="🪞",XBe="🪟",ZBe="🛏️",JBe="🛋️",eGe="🪑",tGe="🚽",nGe="🪠",rGe="🚿",iGe="🛁",sGe="🪤",oGe="🪒",aGe="🧴",lGe="🧷",cGe="🧹",dGe="🧺",uGe="🧻",pGe="🪣",hGe="🧼",mGe="🪥",fGe="🧽",gGe="🧯",_Ge="🛒",bGe="🚬",vGe="⚰️",yGe="🪦",EGe="⚱️",SGe="🗿",xGe="🪧",TGe="🏧",wGe="🚮",CGe="🚰",AGe="♿",RGe="🚹",MGe="🚺",NGe="🚻",kGe="🚼",IGe="🚾",OGe="🛂",DGe="🛃",LGe="🛄",PGe="🛅",FGe="⚠️",UGe="🚸",BGe="⛔",GGe="🚫",zGe="🚳",VGe="🚭",HGe="🚯",qGe="🚷",YGe="📵",$Ge="🔞",WGe="☢️",KGe="☣️",jGe="⬆️",QGe="↗️",XGe="➡️",ZGe="↘️",JGe="⬇️",eze="↙️",tze="⬅️",nze="↖️",rze="↕️",ize="↔️",sze="↩️",oze="↪️",aze="⤴️",lze="⤵️",cze="🔃",dze="🔄",uze="🔙",pze="🔚",hze="🔛",mze="🔜",fze="🔝",gze="🛐",_ze="⚛️",bze="🕉️",vze="✡️",yze="☸️",Eze="☯️",Sze="✝️",xze="☦️",Tze="☪️",wze="☮️",Cze="🕎",Aze="🔯",Rze="♈",Mze="♉",Nze="♊",kze="♋",Ize="♌",Oze="♍",Dze="♎",Lze="♏",Pze="♐",Fze="♑",Uze="♒",Bze="♓",Gze="⛎",zze="🔀",Vze="🔁",Hze="🔂",qze="▶️",Yze="⏩",$ze="⏭️",Wze="⏯️",Kze="◀️",jze="⏪",Qze="⏮️",Xze="🔼",Zze="⏫",Jze="🔽",eVe="⏬",tVe="⏸️",nVe="⏹️",rVe="⏺️",iVe="⏏️",sVe="🎦",oVe="🔅",aVe="🔆",lVe="📶",cVe="📳",dVe="📴",uVe="♀️",pVe="♂️",hVe="⚧️",mVe="✖️",fVe="➕",gVe="➖",_Ve="➗",bVe="♾️",vVe="‼️",yVe="⁉️",EVe="❓",SVe="❔",xVe="❕",TVe="❗",wVe="❗",CVe="〰️",AVe="💱",RVe="💲",MVe="⚕️",NVe="♻️",kVe="⚜️",IVe="🔱",OVe="📛",DVe="🔰",LVe="⭕",PVe="✅",FVe="☑️",UVe="✔️",BVe="❌",GVe="❎",zVe="➰",VVe="➿",HVe="〽️",qVe="✳️",YVe="✴️",$Ve="❇️",WVe="©️",KVe="®️",jVe="™️",QVe="#️⃣",XVe="*️⃣",ZVe="0️⃣",JVe="1️⃣",eHe="2️⃣",tHe="3️⃣",nHe="4️⃣",rHe="5️⃣",iHe="6️⃣",sHe="7️⃣",oHe="8️⃣",aHe="9️⃣",lHe="🔟",cHe="🔠",dHe="🔡",uHe="🔣",pHe="🔤",hHe="🅰️",mHe="🆎",fHe="🅱️",gHe="🆑",_He="🆒",bHe="🆓",vHe="ℹ️",yHe="🆔",EHe="Ⓜ️",SHe="🆖",xHe="🅾️",THe="🆗",wHe="🅿️",CHe="🆘",AHe="🆙",RHe="🆚",MHe="🈁",NHe="🈂️",kHe="🉐",IHe="🉑",OHe="㊗️",DHe="㊙️",LHe="🈵",PHe="🔴",FHe="🟠",UHe="🟡",BHe="🟢",GHe="🔵",zHe="🟣",VHe="🟤",HHe="⚫",qHe="⚪",YHe="🟥",$He="🟧",WHe="🟨",KHe="🟩",jHe="🟦",QHe="🟪",XHe="🟫",ZHe="⬛",JHe="⬜",eqe="◼️",tqe="◻️",nqe="◾",rqe="◽",iqe="▪️",sqe="▫️",oqe="🔶",aqe="🔷",lqe="🔸",cqe="🔹",dqe="🔺",uqe="🔻",pqe="💠",hqe="🔘",mqe="🔳",fqe="🔲",gqe="🏁",_qe="🚩",bqe="🎌",vqe="🏴",yqe="🏳️",Eqe="🏳️‍🌈",Sqe="🏳️‍⚧️",xqe="🏴‍☠️",Tqe="🇦🇨",wqe="🇦🇩",Cqe="🇦🇪",Aqe="🇦🇫",Rqe="🇦🇬",Mqe="🇦🇮",Nqe="🇦🇱",kqe="🇦🇲",Iqe="🇦🇴",Oqe="🇦🇶",Dqe="🇦🇷",Lqe="🇦🇸",Pqe="🇦🇹",Fqe="🇦🇺",Uqe="🇦🇼",Bqe="🇦🇽",Gqe="🇦🇿",zqe="🇧🇦",Vqe="🇧🇧",Hqe="🇧🇩",qqe="🇧🇪",Yqe="🇧🇫",$qe="🇧🇬",Wqe="🇧🇭",Kqe="🇧🇮",jqe="🇧🇯",Qqe="🇧🇱",Xqe="🇧🇲",Zqe="🇧🇳",Jqe="🇧🇴",eYe="🇧🇶",tYe="🇧🇷",nYe="🇧🇸",rYe="🇧🇹",iYe="🇧🇻",sYe="🇧🇼",oYe="🇧🇾",aYe="🇧🇿",lYe="🇨🇦",cYe="🇨🇨",dYe="🇨🇩",uYe="🇨🇫",pYe="🇨🇬",hYe="🇨🇭",mYe="🇨🇮",fYe="🇨🇰",gYe="🇨🇱",_Ye="🇨🇲",bYe="🇨🇳",vYe="🇨🇴",yYe="🇨🇵",EYe="🇨🇷",SYe="🇨🇺",xYe="🇨🇻",TYe="🇨🇼",wYe="🇨🇽",CYe="🇨🇾",AYe="🇨🇿",RYe="🇩🇪",MYe="🇩🇬",NYe="🇩🇯",kYe="🇩🇰",IYe="🇩🇲",OYe="🇩🇴",DYe="🇩🇿",LYe="🇪🇦",PYe="🇪🇨",FYe="🇪🇪",UYe="🇪🇬",BYe="🇪🇭",GYe="🇪🇷",zYe="🇪🇸",VYe="🇪🇹",HYe="🇪🇺",qYe="🇪🇺",YYe="🇫🇮",$Ye="🇫🇯",WYe="🇫🇰",KYe="🇫🇲",jYe="🇫🇴",QYe="🇫🇷",XYe="🇬🇦",ZYe="🇬🇧",JYe="🇬🇧",e$e="🇬🇩",t$e="🇬🇪",n$e="🇬🇫",r$e="🇬🇬",i$e="🇬🇭",s$e="🇬🇮",o$e="🇬🇱",a$e="🇬🇲",l$e="🇬🇳",c$e="🇬🇵",d$e="🇬🇶",u$e="🇬🇷",p$e="🇬🇸",h$e="🇬🇹",m$e="🇬🇺",f$e="🇬🇼",g$e="🇬🇾",_$e="🇭🇰",b$e="🇭🇲",v$e="🇭🇳",y$e="🇭🇷",E$e="🇭🇹",S$e="🇭🇺",x$e="🇮🇨",T$e="🇮🇩",w$e="🇮🇪",C$e="🇮🇱",A$e="🇮🇲",R$e="🇮🇳",M$e="🇮🇴",N$e="🇮🇶",k$e="🇮🇷",I$e="🇮🇸",O$e="🇮🇹",D$e="🇯🇪",L$e="🇯🇲",P$e="🇯🇴",F$e="🇯🇵",U$e="🇰🇪",B$e="🇰🇬",G$e="🇰🇭",z$e="🇰🇮",V$e="🇰🇲",H$e="🇰🇳",q$e="🇰🇵",Y$e="🇰🇷",$$e="🇰🇼",W$e="🇰🇾",K$e="🇰🇿",j$e="🇱🇦",Q$e="🇱🇧",X$e="🇱🇨",Z$e="🇱🇮",J$e="🇱🇰",eWe="🇱🇷",tWe="🇱🇸",nWe="🇱🇹",rWe="🇱🇺",iWe="🇱🇻",sWe="🇱🇾",oWe="🇲🇦",aWe="🇲🇨",lWe="🇲🇩",cWe="🇲🇪",dWe="🇲🇫",uWe="🇲🇬",pWe="🇲🇭",hWe="🇲🇰",mWe="🇲🇱",fWe="🇲🇲",gWe="🇲🇳",_We="🇲🇴",bWe="🇲🇵",vWe="🇲🇶",yWe="🇲🇷",EWe="🇲🇸",SWe="🇲🇹",xWe="🇲🇺",TWe="🇲🇻",wWe="🇲🇼",CWe="🇲🇽",AWe="🇲🇾",RWe="🇲🇿",MWe="🇳🇦",NWe="🇳🇨",kWe="🇳🇪",IWe="🇳🇫",OWe="🇳🇬",DWe="🇳🇮",LWe="🇳🇱",PWe="🇳🇴",FWe="🇳🇵",UWe="🇳🇷",BWe="🇳🇺",GWe="🇳🇿",zWe="🇴🇲",VWe="🇵🇦",HWe="🇵🇪",qWe="🇵🇫",YWe="🇵🇬",$We="🇵🇭",WWe="🇵🇰",KWe="🇵🇱",jWe="🇵🇲",QWe="🇵🇳",XWe="🇵🇷",ZWe="🇵🇸",JWe="🇵🇹",eKe="🇵🇼",tKe="🇵🇾",nKe="🇶🇦",rKe="🇷🇪",iKe="🇷🇴",sKe="🇷🇸",oKe="🇷🇺",aKe="🇷🇼",lKe="🇸🇦",cKe="🇸🇧",dKe="🇸🇨",uKe="🇸🇩",pKe="🇸🇪",hKe="🇸🇬",mKe="🇸🇭",fKe="🇸🇮",gKe="🇸🇯",_Ke="🇸🇰",bKe="🇸🇱",vKe="🇸🇲",yKe="🇸🇳",EKe="🇸🇴",SKe="🇸🇷",xKe="🇸🇸",TKe="🇸🇹",wKe="🇸🇻",CKe="🇸🇽",AKe="🇸🇾",RKe="🇸🇿",MKe="🇹🇦",NKe="🇹🇨",kKe="🇹🇩",IKe="🇹🇫",OKe="🇹🇬",DKe="🇹🇭",LKe="🇹🇯",PKe="🇹🇰",FKe="🇹🇱",UKe="🇹🇲",BKe="🇹🇳",GKe="🇹🇴",zKe="🇹🇷",VKe="🇹🇹",HKe="🇹🇻",qKe="🇹🇼",YKe="🇹🇿",$Ke="🇺🇦",WKe="🇺🇬",KKe="🇺🇲",jKe="🇺🇳",QKe="🇺🇸",XKe="🇺🇾",ZKe="🇺🇿",JKe="🇻🇦",eje="🇻🇨",tje="🇻🇪",nje="🇻🇬",rje="🇻🇮",ije="🇻🇳",sje="🇻🇺",oje="🇼🇫",aje="🇼🇸",lje="🇽🇰",cje="🇾🇪",dje="🇾🇹",uje="🇿🇦",pje="🇿🇲",hje="🇿🇼",mje="🏴󠁧󠁢󠁥󠁮󠁧󠁿",fje="🏴󠁧󠁢󠁳󠁣󠁴󠁿",gje="🏴󠁧󠁢󠁷󠁬󠁳󠁿",_je={100:"💯",1234:"🔢",grinning:R2e,smiley:M2e,smile:N2e,grin:k2e,laughing:I2e,satisfied:O2e,sweat_smile:D2e,rofl:L2e,joy:P2e,slightly_smiling_face:F2e,upside_down_face:U2e,wink:B2e,blush:G2e,innocent:z2e,smiling_face_with_three_hearts:V2e,heart_eyes:H2e,star_struck:q2e,kissing_heart:Y2e,kissing:$2e,relaxed:W2e,kissing_closed_eyes:K2e,kissing_smiling_eyes:j2e,smiling_face_with_tear:Q2e,yum:X2e,stuck_out_tongue:Z2e,stuck_out_tongue_winking_eye:J2e,zany_face:exe,stuck_out_tongue_closed_eyes:txe,money_mouth_face:nxe,hugs:rxe,hand_over_mouth:ixe,shushing_face:sxe,thinking:oxe,zipper_mouth_face:axe,raised_eyebrow:lxe,neutral_face:cxe,expressionless:dxe,no_mouth:uxe,smirk:pxe,unamused:hxe,roll_eyes:mxe,grimacing:fxe,lying_face:gxe,relieved:_xe,pensive:bxe,sleepy:vxe,drooling_face:yxe,sleeping:Exe,mask:Sxe,face_with_thermometer:xxe,face_with_head_bandage:Txe,nauseated_face:wxe,vomiting_face:Cxe,sneezing_face:Axe,hot_face:Rxe,cold_face:Mxe,woozy_face:Nxe,dizzy_face:kxe,exploding_head:Ixe,cowboy_hat_face:Oxe,partying_face:Dxe,disguised_face:Lxe,sunglasses:Pxe,nerd_face:Fxe,monocle_face:Uxe,confused:Bxe,worried:Gxe,slightly_frowning_face:zxe,frowning_face:Vxe,open_mouth:Hxe,hushed:qxe,astonished:Yxe,flushed:$xe,pleading_face:Wxe,frowning:Kxe,anguished:jxe,fearful:Qxe,cold_sweat:Xxe,disappointed_relieved:Zxe,cry:Jxe,sob:eTe,scream:tTe,confounded:nTe,persevere:rTe,disappointed:iTe,sweat:sTe,weary:oTe,tired_face:aTe,yawning_face:lTe,triumph:cTe,rage:dTe,pout:uTe,angry:pTe,cursing_face:hTe,smiling_imp:mTe,imp:fTe,skull:gTe,skull_and_crossbones:_Te,hankey:bTe,poop:vTe,shit:yTe,clown_face:ETe,japanese_ogre:STe,japanese_goblin:xTe,ghost:TTe,alien:wTe,space_invader:CTe,robot:ATe,smiley_cat:RTe,smile_cat:MTe,joy_cat:NTe,heart_eyes_cat:kTe,smirk_cat:ITe,kissing_cat:OTe,scream_cat:DTe,crying_cat_face:LTe,pouting_cat:PTe,see_no_evil:FTe,hear_no_evil:UTe,speak_no_evil:BTe,kiss:GTe,love_letter:zTe,cupid:VTe,gift_heart:HTe,sparkling_heart:qTe,heartpulse:YTe,heartbeat:$Te,revolving_hearts:WTe,two_hearts:KTe,heart_decoration:jTe,heavy_heart_exclamation:QTe,broken_heart:XTe,heart:ZTe,orange_heart:JTe,yellow_heart:ewe,green_heart:twe,blue_heart:nwe,purple_heart:rwe,brown_heart:iwe,black_heart:swe,white_heart:owe,anger:awe,boom:lwe,collision:cwe,dizzy:dwe,sweat_drops:uwe,dash:pwe,hole:hwe,bomb:mwe,speech_balloon:fwe,eye_speech_bubble:gwe,left_speech_bubble:_we,right_anger_bubble:bwe,thought_balloon:vwe,zzz:ywe,wave:Ewe,raised_back_of_hand:Swe,raised_hand_with_fingers_splayed:xwe,hand:Twe,raised_hand:wwe,vulcan_salute:Cwe,ok_hand:Awe,pinched_fingers:Rwe,pinching_hand:Mwe,v:Nwe,crossed_fingers:kwe,love_you_gesture:Iwe,metal:Owe,call_me_hand:Dwe,point_left:Lwe,point_right:Pwe,point_up_2:Fwe,middle_finger:Uwe,fu:Bwe,point_down:Gwe,point_up:zwe,"+1":"👍",thumbsup:Vwe,"-1":"👎",thumbsdown:Hwe,fist_raised:qwe,fist:Ywe,fist_oncoming:$we,facepunch:Wwe,punch:Kwe,fist_left:jwe,fist_right:Qwe,clap:Xwe,raised_hands:Zwe,open_hands:Jwe,palms_up_together:eCe,handshake:tCe,pray:nCe,writing_hand:rCe,nail_care:iCe,selfie:sCe,muscle:oCe,mechanical_arm:aCe,mechanical_leg:lCe,leg:cCe,foot:dCe,ear:uCe,ear_with_hearing_aid:pCe,nose:hCe,brain:mCe,anatomical_heart:fCe,lungs:gCe,tooth:_Ce,bone:bCe,eyes:vCe,eye:yCe,tongue:ECe,lips:SCe,baby:xCe,child:TCe,boy:wCe,girl:CCe,adult:ACe,blond_haired_person:RCe,man:MCe,bearded_person:NCe,red_haired_man:kCe,curly_haired_man:ICe,white_haired_man:OCe,bald_man:DCe,woman:LCe,red_haired_woman:PCe,person_red_hair:FCe,curly_haired_woman:UCe,person_curly_hair:BCe,white_haired_woman:GCe,person_white_hair:zCe,bald_woman:VCe,person_bald:HCe,blond_haired_woman:qCe,blonde_woman:YCe,blond_haired_man:$Ce,older_adult:WCe,older_man:KCe,older_woman:jCe,frowning_person:QCe,frowning_man:XCe,frowning_woman:ZCe,pouting_face:JCe,pouting_man:eAe,pouting_woman:tAe,no_good:nAe,no_good_man:rAe,ng_man:iAe,no_good_woman:sAe,ng_woman:oAe,ok_person:aAe,ok_man:lAe,ok_woman:cAe,tipping_hand_person:dAe,information_desk_person:uAe,tipping_hand_man:pAe,sassy_man:hAe,tipping_hand_woman:mAe,sassy_woman:fAe,raising_hand:gAe,raising_hand_man:_Ae,raising_hand_woman:bAe,deaf_person:vAe,deaf_man:yAe,deaf_woman:EAe,bow:SAe,bowing_man:xAe,bowing_woman:TAe,facepalm:wAe,man_facepalming:CAe,woman_facepalming:AAe,shrug:RAe,man_shrugging:MAe,woman_shrugging:NAe,health_worker:kAe,man_health_worker:IAe,woman_health_worker:OAe,student:DAe,man_student:LAe,woman_student:PAe,teacher:FAe,man_teacher:UAe,woman_teacher:BAe,judge:GAe,man_judge:zAe,woman_judge:VAe,farmer:HAe,man_farmer:qAe,woman_farmer:YAe,cook:$Ae,man_cook:WAe,woman_cook:KAe,mechanic:jAe,man_mechanic:QAe,woman_mechanic:XAe,factory_worker:ZAe,man_factory_worker:JAe,woman_factory_worker:eRe,office_worker:tRe,man_office_worker:nRe,woman_office_worker:rRe,scientist:iRe,man_scientist:sRe,woman_scientist:oRe,technologist:aRe,man_technologist:lRe,woman_technologist:cRe,singer:dRe,man_singer:uRe,woman_singer:pRe,artist:hRe,man_artist:mRe,woman_artist:fRe,pilot:gRe,man_pilot:_Re,woman_pilot:bRe,astronaut:vRe,man_astronaut:yRe,woman_astronaut:ERe,firefighter:SRe,man_firefighter:xRe,woman_firefighter:TRe,police_officer:wRe,cop:CRe,policeman:ARe,policewoman:RRe,detective:MRe,male_detective:NRe,female_detective:kRe,guard:IRe,guardsman:ORe,guardswoman:DRe,ninja:LRe,construction_worker:PRe,construction_worker_man:FRe,construction_worker_woman:URe,prince:BRe,princess:GRe,person_with_turban:zRe,man_with_turban:VRe,woman_with_turban:HRe,man_with_gua_pi_mao:qRe,woman_with_headscarf:YRe,person_in_tuxedo:$Re,man_in_tuxedo:WRe,woman_in_tuxedo:KRe,person_with_veil:jRe,man_with_veil:QRe,woman_with_veil:XRe,bride_with_veil:ZRe,pregnant_woman:JRe,breast_feeding:eMe,woman_feeding_baby:tMe,man_feeding_baby:nMe,person_feeding_baby:rMe,angel:iMe,santa:sMe,mrs_claus:oMe,mx_claus:aMe,superhero:lMe,superhero_man:cMe,superhero_woman:dMe,supervillain:uMe,supervillain_man:pMe,supervillain_woman:hMe,mage:mMe,mage_man:fMe,mage_woman:gMe,fairy:_Me,fairy_man:bMe,fairy_woman:vMe,vampire:yMe,vampire_man:EMe,vampire_woman:SMe,merperson:xMe,merman:TMe,mermaid:wMe,elf:CMe,elf_man:AMe,elf_woman:RMe,genie:MMe,genie_man:NMe,genie_woman:kMe,zombie:IMe,zombie_man:OMe,zombie_woman:DMe,massage:LMe,massage_man:PMe,massage_woman:FMe,haircut:UMe,haircut_man:BMe,haircut_woman:GMe,walking:zMe,walking_man:VMe,walking_woman:HMe,standing_person:qMe,standing_man:YMe,standing_woman:$Me,kneeling_person:WMe,kneeling_man:KMe,kneeling_woman:jMe,person_with_probing_cane:QMe,man_with_probing_cane:XMe,woman_with_probing_cane:ZMe,person_in_motorized_wheelchair:JMe,man_in_motorized_wheelchair:e4e,woman_in_motorized_wheelchair:t4e,person_in_manual_wheelchair:n4e,man_in_manual_wheelchair:r4e,woman_in_manual_wheelchair:i4e,runner:s4e,running:o4e,running_man:a4e,running_woman:l4e,woman_dancing:c4e,dancer:d4e,man_dancing:u4e,business_suit_levitating:p4e,dancers:h4e,dancing_men:m4e,dancing_women:f4e,sauna_person:g4e,sauna_man:_4e,sauna_woman:b4e,climbing:v4e,climbing_man:y4e,climbing_woman:E4e,person_fencing:S4e,horse_racing:x4e,skier:T4e,snowboarder:w4e,golfing:C4e,golfing_man:A4e,golfing_woman:R4e,surfer:M4e,surfing_man:N4e,surfing_woman:k4e,rowboat:I4e,rowing_man:O4e,rowing_woman:D4e,swimmer:L4e,swimming_man:P4e,swimming_woman:F4e,bouncing_ball_person:U4e,bouncing_ball_man:B4e,basketball_man:G4e,bouncing_ball_woman:z4e,basketball_woman:V4e,weight_lifting:H4e,weight_lifting_man:q4e,weight_lifting_woman:Y4e,bicyclist:$4e,biking_man:W4e,biking_woman:K4e,mountain_bicyclist:j4e,mountain_biking_man:Q4e,mountain_biking_woman:X4e,cartwheeling:Z4e,man_cartwheeling:J4e,woman_cartwheeling:e3e,wrestling:t3e,men_wrestling:n3e,women_wrestling:r3e,water_polo:i3e,man_playing_water_polo:s3e,woman_playing_water_polo:o3e,handball_person:a3e,man_playing_handball:l3e,woman_playing_handball:c3e,juggling_person:d3e,man_juggling:u3e,woman_juggling:p3e,lotus_position:h3e,lotus_position_man:m3e,lotus_position_woman:f3e,bath:g3e,sleeping_bed:_3e,people_holding_hands:b3e,two_women_holding_hands:v3e,couple:y3e,two_men_holding_hands:E3e,couplekiss:S3e,couplekiss_man_woman:x3e,couplekiss_man_man:T3e,couplekiss_woman_woman:w3e,couple_with_heart:C3e,couple_with_heart_woman_man:A3e,couple_with_heart_man_man:R3e,couple_with_heart_woman_woman:M3e,family:N3e,family_man_woman_boy:k3e,family_man_woman_girl:I3e,family_man_woman_girl_boy:O3e,family_man_woman_boy_boy:D3e,family_man_woman_girl_girl:L3e,family_man_man_boy:P3e,family_man_man_girl:F3e,family_man_man_girl_boy:U3e,family_man_man_boy_boy:B3e,family_man_man_girl_girl:G3e,family_woman_woman_boy:z3e,family_woman_woman_girl:V3e,family_woman_woman_girl_boy:H3e,family_woman_woman_boy_boy:q3e,family_woman_woman_girl_girl:Y3e,family_man_boy:$3e,family_man_boy_boy:W3e,family_man_girl:K3e,family_man_girl_boy:j3e,family_man_girl_girl:Q3e,family_woman_boy:X3e,family_woman_boy_boy:Z3e,family_woman_girl:J3e,family_woman_girl_boy:eNe,family_woman_girl_girl:tNe,speaking_head:nNe,bust_in_silhouette:rNe,busts_in_silhouette:iNe,people_hugging:sNe,footprints:oNe,monkey_face:aNe,monkey:lNe,gorilla:cNe,orangutan:dNe,dog:uNe,dog2:pNe,guide_dog:hNe,service_dog:mNe,poodle:fNe,wolf:gNe,fox_face:_Ne,raccoon:bNe,cat:vNe,cat2:yNe,black_cat:ENe,lion:SNe,tiger:xNe,tiger2:TNe,leopard:wNe,horse:CNe,racehorse:ANe,unicorn:RNe,zebra:MNe,deer:NNe,bison:kNe,cow:INe,ox:ONe,water_buffalo:DNe,cow2:LNe,pig:PNe,pig2:FNe,boar:UNe,pig_nose:BNe,ram:GNe,sheep:zNe,goat:VNe,dromedary_camel:HNe,camel:qNe,llama:YNe,giraffe:$Ne,elephant:WNe,mammoth:KNe,rhinoceros:jNe,hippopotamus:QNe,mouse:XNe,mouse2:ZNe,rat:JNe,hamster:eke,rabbit:tke,rabbit2:nke,chipmunk:rke,beaver:ike,hedgehog:ske,bat:oke,bear:ake,polar_bear:lke,koala:cke,panda_face:dke,sloth:uke,otter:pke,skunk:hke,kangaroo:mke,badger:fke,feet:gke,paw_prints:_ke,turkey:bke,chicken:vke,rooster:yke,hatching_chick:Eke,baby_chick:Ske,hatched_chick:xke,bird:Tke,penguin:wke,dove:Cke,eagle:Ake,duck:Rke,swan:Mke,owl:Nke,dodo:kke,feather:Ike,flamingo:Oke,peacock:Dke,parrot:Lke,frog:Pke,crocodile:Fke,turtle:Uke,lizard:Bke,snake:Gke,dragon_face:zke,dragon:Vke,sauropod:Hke,"t-rex":"🦖",whale:qke,whale2:Yke,dolphin:$ke,flipper:Wke,seal:Kke,fish:jke,tropical_fish:Qke,blowfish:Xke,shark:Zke,octopus:Jke,shell:eIe,snail:tIe,butterfly:nIe,bug:rIe,ant:iIe,bee:sIe,honeybee:oIe,beetle:aIe,lady_beetle:lIe,cricket:cIe,cockroach:dIe,spider:uIe,spider_web:pIe,scorpion:hIe,mosquito:mIe,fly:fIe,worm:gIe,microbe:_Ie,bouquet:bIe,cherry_blossom:vIe,white_flower:yIe,rosette:EIe,rose:SIe,wilted_flower:xIe,hibiscus:TIe,sunflower:wIe,blossom:CIe,tulip:AIe,seedling:RIe,potted_plant:MIe,evergreen_tree:NIe,deciduous_tree:kIe,palm_tree:IIe,cactus:OIe,ear_of_rice:DIe,herb:LIe,shamrock:PIe,four_leaf_clover:FIe,maple_leaf:UIe,fallen_leaf:BIe,leaves:GIe,grapes:zIe,melon:VIe,watermelon:HIe,tangerine:qIe,orange:YIe,mandarin:$Ie,lemon:WIe,banana:KIe,pineapple:jIe,mango:QIe,apple:XIe,green_apple:ZIe,pear:JIe,peach:eOe,cherries:tOe,strawberry:nOe,blueberries:rOe,kiwi_fruit:iOe,tomato:sOe,olive:oOe,coconut:aOe,avocado:lOe,eggplant:cOe,potato:dOe,carrot:uOe,corn:pOe,hot_pepper:hOe,bell_pepper:mOe,cucumber:fOe,leafy_green:gOe,broccoli:_Oe,garlic:bOe,onion:vOe,mushroom:yOe,peanuts:EOe,chestnut:SOe,bread:xOe,croissant:TOe,baguette_bread:wOe,flatbread:COe,pretzel:AOe,bagel:ROe,pancakes:MOe,waffle:NOe,cheese:kOe,meat_on_bone:IOe,poultry_leg:OOe,cut_of_meat:DOe,bacon:LOe,hamburger:POe,fries:FOe,pizza:UOe,hotdog:BOe,sandwich:GOe,taco:zOe,burrito:VOe,tamale:HOe,stuffed_flatbread:qOe,falafel:YOe,egg:$Oe,fried_egg:WOe,shallow_pan_of_food:KOe,stew:jOe,fondue:QOe,bowl_with_spoon:XOe,green_salad:ZOe,popcorn:JOe,butter:e5e,salt:t5e,canned_food:n5e,bento:r5e,rice_cracker:i5e,rice_ball:s5e,rice:o5e,curry:a5e,ramen:l5e,spaghetti:c5e,sweet_potato:d5e,oden:u5e,sushi:p5e,fried_shrimp:h5e,fish_cake:m5e,moon_cake:f5e,dango:g5e,dumpling:_5e,fortune_cookie:b5e,takeout_box:v5e,crab:y5e,lobster:E5e,shrimp:S5e,squid:x5e,oyster:T5e,icecream:w5e,shaved_ice:C5e,ice_cream:A5e,doughnut:R5e,cookie:M5e,birthday:N5e,cake:k5e,cupcake:I5e,pie:O5e,chocolate_bar:D5e,candy:L5e,lollipop:P5e,custard:F5e,honey_pot:U5e,baby_bottle:B5e,milk_glass:G5e,coffee:z5e,teapot:V5e,tea:H5e,sake:q5e,champagne:Y5e,wine_glass:$5e,cocktail:W5e,tropical_drink:K5e,beer:j5e,beers:Q5e,clinking_glasses:X5e,tumbler_glass:Z5e,cup_with_straw:J5e,bubble_tea:eDe,beverage_box:tDe,mate:nDe,ice_cube:rDe,chopsticks:iDe,plate_with_cutlery:sDe,fork_and_knife:oDe,spoon:aDe,hocho:lDe,knife:cDe,amphora:dDe,earth_africa:uDe,earth_americas:pDe,earth_asia:hDe,globe_with_meridians:mDe,world_map:fDe,japan:gDe,compass:_De,mountain_snow:bDe,mountain:vDe,volcano:yDe,mount_fuji:EDe,camping:SDe,beach_umbrella:xDe,desert:TDe,desert_island:wDe,national_park:CDe,stadium:ADe,classical_building:RDe,building_construction:MDe,bricks:NDe,rock:kDe,wood:IDe,hut:ODe,houses:DDe,derelict_house:LDe,house:PDe,house_with_garden:FDe,office:UDe,post_office:BDe,european_post_office:GDe,hospital:zDe,bank:VDe,hotel:HDe,love_hotel:qDe,convenience_store:YDe,school:$De,department_store:WDe,factory:KDe,japanese_castle:jDe,european_castle:QDe,wedding:XDe,tokyo_tower:ZDe,statue_of_liberty:JDe,church:eLe,mosque:tLe,hindu_temple:nLe,synagogue:rLe,shinto_shrine:iLe,kaaba:sLe,fountain:oLe,tent:aLe,foggy:lLe,night_with_stars:cLe,cityscape:dLe,sunrise_over_mountains:uLe,sunrise:pLe,city_sunset:hLe,city_sunrise:mLe,bridge_at_night:fLe,hotsprings:gLe,carousel_horse:_Le,ferris_wheel:bLe,roller_coaster:vLe,barber:yLe,circus_tent:ELe,steam_locomotive:SLe,railway_car:xLe,bullettrain_side:TLe,bullettrain_front:wLe,train2:CLe,metro:ALe,light_rail:RLe,station:MLe,tram:NLe,monorail:kLe,mountain_railway:ILe,train:OLe,bus:DLe,oncoming_bus:LLe,trolleybus:PLe,minibus:FLe,ambulance:ULe,fire_engine:BLe,police_car:GLe,oncoming_police_car:zLe,taxi:VLe,oncoming_taxi:HLe,car:qLe,red_car:YLe,oncoming_automobile:$Le,blue_car:WLe,pickup_truck:KLe,truck:jLe,articulated_lorry:QLe,tractor:XLe,racing_car:ZLe,motorcycle:JLe,motor_scooter:e6e,manual_wheelchair:t6e,motorized_wheelchair:n6e,auto_rickshaw:r6e,bike:i6e,kick_scooter:s6e,skateboard:o6e,roller_skate:a6e,busstop:l6e,motorway:c6e,railway_track:d6e,oil_drum:u6e,fuelpump:p6e,rotating_light:h6e,traffic_light:m6e,vertical_traffic_light:f6e,stop_sign:g6e,construction:_6e,anchor:b6e,boat:v6e,sailboat:y6e,canoe:E6e,speedboat:S6e,passenger_ship:x6e,ferry:T6e,motor_boat:w6e,ship:C6e,airplane:A6e,small_airplane:R6e,flight_departure:M6e,flight_arrival:N6e,parachute:k6e,seat:I6e,helicopter:O6e,suspension_railway:D6e,mountain_cableway:L6e,aerial_tramway:P6e,artificial_satellite:F6e,rocket:U6e,flying_saucer:B6e,bellhop_bell:G6e,luggage:z6e,hourglass:V6e,hourglass_flowing_sand:H6e,watch:q6e,alarm_clock:Y6e,stopwatch:$6e,timer_clock:W6e,mantelpiece_clock:K6e,clock12:j6e,clock1230:Q6e,clock1:X6e,clock130:Z6e,clock2:J6e,clock230:ePe,clock3:tPe,clock330:nPe,clock4:rPe,clock430:iPe,clock5:sPe,clock530:oPe,clock6:aPe,clock630:lPe,clock7:cPe,clock730:dPe,clock8:uPe,clock830:pPe,clock9:hPe,clock930:mPe,clock10:fPe,clock1030:gPe,clock11:_Pe,clock1130:bPe,new_moon:vPe,waxing_crescent_moon:yPe,first_quarter_moon:EPe,moon:SPe,waxing_gibbous_moon:xPe,full_moon:TPe,waning_gibbous_moon:wPe,last_quarter_moon:CPe,waning_crescent_moon:APe,crescent_moon:RPe,new_moon_with_face:MPe,first_quarter_moon_with_face:NPe,last_quarter_moon_with_face:kPe,thermometer:IPe,sunny:OPe,full_moon_with_face:DPe,sun_with_face:LPe,ringed_planet:PPe,star:FPe,star2:UPe,stars:BPe,milky_way:GPe,cloud:zPe,partly_sunny:VPe,cloud_with_lightning_and_rain:HPe,sun_behind_small_cloud:qPe,sun_behind_large_cloud:YPe,sun_behind_rain_cloud:$Pe,cloud_with_rain:WPe,cloud_with_snow:KPe,cloud_with_lightning:jPe,tornado:QPe,fog:XPe,wind_face:ZPe,cyclone:JPe,rainbow:e7e,closed_umbrella:t7e,open_umbrella:n7e,umbrella:r7e,parasol_on_ground:i7e,zap:s7e,snowflake:o7e,snowman_with_snow:a7e,snowman:l7e,comet:c7e,fire:d7e,droplet:u7e,ocean:p7e,jack_o_lantern:h7e,christmas_tree:m7e,fireworks:f7e,sparkler:g7e,firecracker:_7e,sparkles:b7e,balloon:v7e,tada:y7e,confetti_ball:E7e,tanabata_tree:S7e,bamboo:x7e,dolls:T7e,flags:w7e,wind_chime:C7e,rice_scene:A7e,red_envelope:R7e,ribbon:M7e,gift:N7e,reminder_ribbon:k7e,tickets:I7e,ticket:O7e,medal_military:D7e,trophy:L7e,medal_sports:P7e,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:F7e,baseball:U7e,softball:B7e,basketball:G7e,volleyball:z7e,football:V7e,rugby_football:H7e,tennis:q7e,flying_disc:Y7e,bowling:$7e,cricket_game:W7e,field_hockey:K7e,ice_hockey:j7e,lacrosse:Q7e,ping_pong:X7e,badminton:Z7e,boxing_glove:J7e,martial_arts_uniform:e8e,goal_net:t8e,golf:n8e,ice_skate:r8e,fishing_pole_and_fish:i8e,diving_mask:s8e,running_shirt_with_sash:o8e,ski:a8e,sled:l8e,curling_stone:c8e,dart:d8e,yo_yo:u8e,kite:p8e,"8ball":"🎱",crystal_ball:h8e,magic_wand:m8e,nazar_amulet:f8e,video_game:g8e,joystick:_8e,slot_machine:b8e,game_die:v8e,jigsaw:y8e,teddy_bear:E8e,pinata:S8e,nesting_dolls:x8e,spades:T8e,hearts:w8e,diamonds:C8e,clubs:A8e,chess_pawn:R8e,black_joker:M8e,mahjong:N8e,flower_playing_cards:k8e,performing_arts:I8e,framed_picture:O8e,art:D8e,thread:L8e,sewing_needle:P8e,yarn:F8e,knot:U8e,eyeglasses:B8e,dark_sunglasses:G8e,goggles:z8e,lab_coat:V8e,safety_vest:H8e,necktie:q8e,shirt:Y8e,tshirt:$8e,jeans:W8e,scarf:K8e,gloves:j8e,coat:Q8e,socks:X8e,dress:Z8e,kimono:J8e,sari:e9e,one_piece_swimsuit:t9e,swim_brief:n9e,shorts:r9e,bikini:i9e,womans_clothes:s9e,purse:o9e,handbag:a9e,pouch:l9e,shopping:c9e,school_satchel:d9e,thong_sandal:u9e,mans_shoe:p9e,shoe:h9e,athletic_shoe:m9e,hiking_boot:f9e,flat_shoe:g9e,high_heel:_9e,sandal:b9e,ballet_shoes:v9e,boot:y9e,crown:E9e,womans_hat:S9e,tophat:x9e,mortar_board:T9e,billed_cap:w9e,military_helmet:C9e,rescue_worker_helmet:A9e,prayer_beads:R9e,lipstick:M9e,ring:N9e,gem:k9e,mute:I9e,speaker:O9e,sound:D9e,loud_sound:L9e,loudspeaker:P9e,mega:F9e,postal_horn:U9e,bell:B9e,no_bell:G9e,musical_score:z9e,musical_note:V9e,notes:H9e,studio_microphone:q9e,level_slider:Y9e,control_knobs:$9e,microphone:W9e,headphones:K9e,radio:j9e,saxophone:Q9e,accordion:X9e,guitar:Z9e,musical_keyboard:J9e,trumpet:eFe,violin:tFe,banjo:nFe,drum:rFe,long_drum:iFe,iphone:sFe,calling:oFe,phone:aFe,telephone:lFe,telephone_receiver:cFe,pager:dFe,fax:uFe,battery:pFe,electric_plug:hFe,computer:mFe,desktop_computer:fFe,printer:gFe,keyboard:_Fe,computer_mouse:bFe,trackball:vFe,minidisc:yFe,floppy_disk:EFe,cd:SFe,dvd:xFe,abacus:TFe,movie_camera:wFe,film_strip:CFe,film_projector:AFe,clapper:RFe,tv:MFe,camera:NFe,camera_flash:kFe,video_camera:IFe,vhs:OFe,mag:DFe,mag_right:LFe,candle:PFe,bulb:FFe,flashlight:UFe,izakaya_lantern:BFe,lantern:GFe,diya_lamp:zFe,notebook_with_decorative_cover:VFe,closed_book:HFe,book:qFe,open_book:YFe,green_book:$Fe,blue_book:WFe,orange_book:KFe,books:jFe,notebook:QFe,ledger:XFe,page_with_curl:ZFe,scroll:JFe,page_facing_up:eUe,newspaper:tUe,newspaper_roll:nUe,bookmark_tabs:rUe,bookmark:iUe,label:sUe,moneybag:oUe,coin:aUe,yen:lUe,dollar:cUe,euro:dUe,pound:uUe,money_with_wings:pUe,credit_card:hUe,receipt:mUe,chart:fUe,envelope:gUe,email:_Ue,"e-mail":"📧",incoming_envelope:bUe,envelope_with_arrow:vUe,outbox_tray:yUe,inbox_tray:EUe,package:"📦",mailbox:SUe,mailbox_closed:xUe,mailbox_with_mail:TUe,mailbox_with_no_mail:wUe,postbox:CUe,ballot_box:AUe,pencil2:RUe,black_nib:MUe,fountain_pen:NUe,pen:kUe,paintbrush:IUe,crayon:OUe,memo:DUe,pencil:LUe,briefcase:PUe,file_folder:FUe,open_file_folder:UUe,card_index_dividers:BUe,date:GUe,calendar:zUe,spiral_notepad:VUe,spiral_calendar:HUe,card_index:qUe,chart_with_upwards_trend:YUe,chart_with_downwards_trend:$Ue,bar_chart:WUe,clipboard:KUe,pushpin:jUe,round_pushpin:QUe,paperclip:XUe,paperclips:ZUe,straight_ruler:JUe,triangular_ruler:eBe,scissors:tBe,card_file_box:nBe,file_cabinet:rBe,wastebasket:iBe,lock:sBe,unlock:oBe,lock_with_ink_pen:aBe,closed_lock_with_key:lBe,key:cBe,old_key:dBe,hammer:uBe,axe:pBe,pick:hBe,hammer_and_pick:mBe,hammer_and_wrench:fBe,dagger:gBe,crossed_swords:_Be,gun:bBe,boomerang:vBe,bow_and_arrow:yBe,shield:EBe,carpentry_saw:SBe,wrench:xBe,screwdriver:TBe,nut_and_bolt:wBe,gear:CBe,clamp:ABe,balance_scale:RBe,probing_cane:MBe,link:NBe,chains:kBe,hook:IBe,toolbox:OBe,magnet:DBe,ladder:LBe,alembic:PBe,test_tube:FBe,petri_dish:UBe,dna:BBe,microscope:GBe,telescope:zBe,satellite:VBe,syringe:HBe,drop_of_blood:qBe,pill:YBe,adhesive_bandage:$Be,stethoscope:WBe,door:KBe,elevator:jBe,mirror:QBe,window:XBe,bed:ZBe,couch_and_lamp:JBe,chair:eGe,toilet:tGe,plunger:nGe,shower:rGe,bathtub:iGe,mouse_trap:sGe,razor:oGe,lotion_bottle:aGe,safety_pin:lGe,broom:cGe,basket:dGe,roll_of_paper:uGe,bucket:pGe,soap:hGe,toothbrush:mGe,sponge:fGe,fire_extinguisher:gGe,shopping_cart:_Ge,smoking:bGe,coffin:vGe,headstone:yGe,funeral_urn:EGe,moyai:SGe,placard:xGe,atm:TGe,put_litter_in_its_place:wGe,potable_water:CGe,wheelchair:AGe,mens:RGe,womens:MGe,restroom:NGe,baby_symbol:kGe,wc:IGe,passport_control:OGe,customs:DGe,baggage_claim:LGe,left_luggage:PGe,warning:FGe,children_crossing:UGe,no_entry:BGe,no_entry_sign:GGe,no_bicycles:zGe,no_smoking:VGe,do_not_litter:HGe,"non-potable_water":"🚱",no_pedestrians:qGe,no_mobile_phones:YGe,underage:$Ge,radioactive:WGe,biohazard:KGe,arrow_up:jGe,arrow_upper_right:QGe,arrow_right:XGe,arrow_lower_right:ZGe,arrow_down:JGe,arrow_lower_left:eze,arrow_left:tze,arrow_upper_left:nze,arrow_up_down:rze,left_right_arrow:ize,leftwards_arrow_with_hook:sze,arrow_right_hook:oze,arrow_heading_up:aze,arrow_heading_down:lze,arrows_clockwise:cze,arrows_counterclockwise:dze,back:uze,end:pze,on:hze,soon:mze,top:fze,place_of_worship:gze,atom_symbol:_ze,om:bze,star_of_david:vze,wheel_of_dharma:yze,yin_yang:Eze,latin_cross:Sze,orthodox_cross:xze,star_and_crescent:Tze,peace_symbol:wze,menorah:Cze,six_pointed_star:Aze,aries:Rze,taurus:Mze,gemini:Nze,cancer:kze,leo:Ize,virgo:Oze,libra:Dze,scorpius:Lze,sagittarius:Pze,capricorn:Fze,aquarius:Uze,pisces:Bze,ophiuchus:Gze,twisted_rightwards_arrows:zze,repeat:Vze,repeat_one:Hze,arrow_forward:qze,fast_forward:Yze,next_track_button:$ze,play_or_pause_button:Wze,arrow_backward:Kze,rewind:jze,previous_track_button:Qze,arrow_up_small:Xze,arrow_double_up:Zze,arrow_down_small:Jze,arrow_double_down:eVe,pause_button:tVe,stop_button:nVe,record_button:rVe,eject_button:iVe,cinema:sVe,low_brightness:oVe,high_brightness:aVe,signal_strength:lVe,vibration_mode:cVe,mobile_phone_off:dVe,female_sign:uVe,male_sign:pVe,transgender_symbol:hVe,heavy_multiplication_x:mVe,heavy_plus_sign:fVe,heavy_minus_sign:gVe,heavy_division_sign:_Ve,infinity:bVe,bangbang:vVe,interrobang:yVe,question:EVe,grey_question:SVe,grey_exclamation:xVe,exclamation:TVe,heavy_exclamation_mark:wVe,wavy_dash:CVe,currency_exchange:AVe,heavy_dollar_sign:RVe,medical_symbol:MVe,recycle:NVe,fleur_de_lis:kVe,trident:IVe,name_badge:OVe,beginner:DVe,o:LVe,white_check_mark:PVe,ballot_box_with_check:FVe,heavy_check_mark:UVe,x:BVe,negative_squared_cross_mark:GVe,curly_loop:zVe,loop:VVe,part_alternation_mark:HVe,eight_spoked_asterisk:qVe,eight_pointed_black_star:YVe,sparkle:$Ve,copyright:WVe,registered:KVe,tm:jVe,hash:QVe,asterisk:XVe,zero:ZVe,one:JVe,two:eHe,three:tHe,four:nHe,five:rHe,six:iHe,seven:sHe,eight:oHe,nine:aHe,keycap_ten:lHe,capital_abcd:cHe,abcd:dHe,symbols:uHe,abc:pHe,a:hHe,ab:mHe,b:fHe,cl:gHe,cool:_He,free:bHe,information_source:vHe,id:yHe,m:EHe,new:"🆕",ng:SHe,o2:xHe,ok:THe,parking:wHe,sos:CHe,up:AHe,vs:RHe,koko:MHe,sa:NHe,ideograph_advantage:kHe,accept:IHe,congratulations:OHe,secret:DHe,u6e80:LHe,red_circle:PHe,orange_circle:FHe,yellow_circle:UHe,green_circle:BHe,large_blue_circle:GHe,purple_circle:zHe,brown_circle:VHe,black_circle:HHe,white_circle:qHe,red_square:YHe,orange_square:$He,yellow_square:WHe,green_square:KHe,blue_square:jHe,purple_square:QHe,brown_square:XHe,black_large_square:ZHe,white_large_square:JHe,black_medium_square:eqe,white_medium_square:tqe,black_medium_small_square:nqe,white_medium_small_square:rqe,black_small_square:iqe,white_small_square:sqe,large_orange_diamond:oqe,large_blue_diamond:aqe,small_orange_diamond:lqe,small_blue_diamond:cqe,small_red_triangle:dqe,small_red_triangle_down:uqe,diamond_shape_with_a_dot_inside:pqe,radio_button:hqe,white_square_button:mqe,black_square_button:fqe,checkered_flag:gqe,triangular_flag_on_post:_qe,crossed_flags:bqe,black_flag:vqe,white_flag:yqe,rainbow_flag:Eqe,transgender_flag:Sqe,pirate_flag:xqe,ascension_island:Tqe,andorra:wqe,united_arab_emirates:Cqe,afghanistan:Aqe,antigua_barbuda:Rqe,anguilla:Mqe,albania:Nqe,armenia:kqe,angola:Iqe,antarctica:Oqe,argentina:Dqe,american_samoa:Lqe,austria:Pqe,australia:Fqe,aruba:Uqe,aland_islands:Bqe,azerbaijan:Gqe,bosnia_herzegovina:zqe,barbados:Vqe,bangladesh:Hqe,belgium:qqe,burkina_faso:Yqe,bulgaria:$qe,bahrain:Wqe,burundi:Kqe,benin:jqe,st_barthelemy:Qqe,bermuda:Xqe,brunei:Zqe,bolivia:Jqe,caribbean_netherlands:eYe,brazil:tYe,bahamas:nYe,bhutan:rYe,bouvet_island:iYe,botswana:sYe,belarus:oYe,belize:aYe,canada:lYe,cocos_islands:cYe,congo_kinshasa:dYe,central_african_republic:uYe,congo_brazzaville:pYe,switzerland:hYe,cote_divoire:mYe,cook_islands:fYe,chile:gYe,cameroon:_Ye,cn:bYe,colombia:vYe,clipperton_island:yYe,costa_rica:EYe,cuba:SYe,cape_verde:xYe,curacao:TYe,christmas_island:wYe,cyprus:CYe,czech_republic:AYe,de:RYe,diego_garcia:MYe,djibouti:NYe,denmark:kYe,dominica:IYe,dominican_republic:OYe,algeria:DYe,ceuta_melilla:LYe,ecuador:PYe,estonia:FYe,egypt:UYe,western_sahara:BYe,eritrea:GYe,es:zYe,ethiopia:VYe,eu:HYe,european_union:qYe,finland:YYe,fiji:$Ye,falkland_islands:WYe,micronesia:KYe,faroe_islands:jYe,fr:QYe,gabon:XYe,gb:ZYe,uk:JYe,grenada:e$e,georgia:t$e,french_guiana:n$e,guernsey:r$e,ghana:i$e,gibraltar:s$e,greenland:o$e,gambia:a$e,guinea:l$e,guadeloupe:c$e,equatorial_guinea:d$e,greece:u$e,south_georgia_south_sandwich_islands:p$e,guatemala:h$e,guam:m$e,guinea_bissau:f$e,guyana:g$e,hong_kong:_$e,heard_mcdonald_islands:b$e,honduras:v$e,croatia:y$e,haiti:E$e,hungary:S$e,canary_islands:x$e,indonesia:T$e,ireland:w$e,israel:C$e,isle_of_man:A$e,india:R$e,british_indian_ocean_territory:M$e,iraq:N$e,iran:k$e,iceland:I$e,it:O$e,jersey:D$e,jamaica:L$e,jordan:P$e,jp:F$e,kenya:U$e,kyrgyzstan:B$e,cambodia:G$e,kiribati:z$e,comoros:V$e,st_kitts_nevis:H$e,north_korea:q$e,kr:Y$e,kuwait:$$e,cayman_islands:W$e,kazakhstan:K$e,laos:j$e,lebanon:Q$e,st_lucia:X$e,liechtenstein:Z$e,sri_lanka:J$e,liberia:eWe,lesotho:tWe,lithuania:nWe,luxembourg:rWe,latvia:iWe,libya:sWe,morocco:oWe,monaco:aWe,moldova:lWe,montenegro:cWe,st_martin:dWe,madagascar:uWe,marshall_islands:pWe,macedonia:hWe,mali:mWe,myanmar:fWe,mongolia:gWe,macau:_We,northern_mariana_islands:bWe,martinique:vWe,mauritania:yWe,montserrat:EWe,malta:SWe,mauritius:xWe,maldives:TWe,malawi:wWe,mexico:CWe,malaysia:AWe,mozambique:RWe,namibia:MWe,new_caledonia:NWe,niger:kWe,norfolk_island:IWe,nigeria:OWe,nicaragua:DWe,netherlands:LWe,norway:PWe,nepal:FWe,nauru:UWe,niue:BWe,new_zealand:GWe,oman:zWe,panama:VWe,peru:HWe,french_polynesia:qWe,papua_new_guinea:YWe,philippines:$We,pakistan:WWe,poland:KWe,st_pierre_miquelon:jWe,pitcairn_islands:QWe,puerto_rico:XWe,palestinian_territories:ZWe,portugal:JWe,palau:eKe,paraguay:tKe,qatar:nKe,reunion:rKe,romania:iKe,serbia:sKe,ru:oKe,rwanda:aKe,saudi_arabia:lKe,solomon_islands:cKe,seychelles:dKe,sudan:uKe,sweden:pKe,singapore:hKe,st_helena:mKe,slovenia:fKe,svalbard_jan_mayen:gKe,slovakia:_Ke,sierra_leone:bKe,san_marino:vKe,senegal:yKe,somalia:EKe,suriname:SKe,south_sudan:xKe,sao_tome_principe:TKe,el_salvador:wKe,sint_maarten:CKe,syria:AKe,swaziland:RKe,tristan_da_cunha:MKe,turks_caicos_islands:NKe,chad:kKe,french_southern_territories:IKe,togo:OKe,thailand:DKe,tajikistan:LKe,tokelau:PKe,timor_leste:FKe,turkmenistan:UKe,tunisia:BKe,tonga:GKe,tr:zKe,trinidad_tobago:VKe,tuvalu:HKe,taiwan:qKe,tanzania:YKe,ukraine:$Ke,uganda:WKe,us_outlying_islands:KKe,united_nations:jKe,us:QKe,uruguay:XKe,uzbekistan:ZKe,vatican_city:JKe,st_vincent_grenadines:eje,venezuela:tje,british_virgin_islands:nje,us_virgin_islands:rje,vietnam:ije,vanuatu:sje,wallis_futuna:oje,samoa:aje,kosovo:lje,yemen:cje,mayotte:dje,south_africa:uje,zambia:pje,zimbabwe:hje,england:mje,scotland:fje,wales:gje};var bje={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!l.test(y[_-1])||_+b.lengthh&&(g=new f("text","",0),g.content=u.slice(h,_),v.push(g)),g=new f("emoji","",0),g.markup=E,g.content=t[E],v.push(g),h=_+b.length}),h=0;f--)b=v[f],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&i.test(b.content)&&(_[g].children=v=o(v,f,d(b.content,b.level,m.Token)))}};function Eje(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Sje=function(e){var t=e.defs,r;e.enabled.length&&(t=Object.keys(t).reduce(function(l,d){return e.enabled.indexOf(d)>=0&&(l[d]=t[d]),l},{})),r=Object.keys(e.shortcuts).reduce(function(l,d){return t[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){l[u]=d}),l):(l[e.shortcuts[d]]=d,l):l},{});var i=Object.keys(t),s;i.length===0?s="^$":s=i.map(function(l){return":"+l+":"}).concat(Object.keys(r)).sort().reverse().map(function(l){return Eje(l)}).join("|");var o=RegExp(s),a=RegExp(s,"g");return{defs:t,shortcuts:r,scanRE:o,replaceRE:a}},xje=vje,Tje=yje,wje=Sje,Cje=function(e,t){var r={defs:{},shortcuts:{},enabled:[]},i=wje(e.utils.assign({},r,t||{}));e.renderer.rules.emoji=xje,e.core.ruler.after("linkify","emoji",Tje(e,i.defs,i.shortcuts,i.scanRE,i.replaceRE))},Aje=_je,Rje=bje,Mje=Cje,Nje=function(e,t){var r={defs:Aje,shortcuts:Rje,enabled:[]},i=e.utils.assign({},r,t||{});Mje(e,i)};const kje=Lo(Nje);var U2=!1,Cl={false:"push",true:"unshift",after:"push",before:"unshift"},Lp={isPermalinkSymbol:!0};function h1(n,e,t,r){var i;if(!U2){var s="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(s):console.warn(s),U2=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:Lp}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[r+1].children[Cl[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(i=t.tokens[r+1].children)[Cl[e.permalinkBefore]].apply(i,o)}function PN(n){return"#"+n}function FN(n){return{}}var Ije={class:"header-anchor",symbol:"#",renderHref:PN,renderAttrs:FN};function Md(n){function e(t){return t=Object.assign({},e.defaults,t),function(r,i,s,o){return n(r,t,i,s,o)}}return e.defaults=Object.assign({},Ije),e.renderPermalinkImpl=n,e}var Wh=Md(function(n,e,t,r,i){var s,o=[Object.assign(new r.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,r)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,r)))}),Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}),new r.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";r.tokens[i+1].children[Cl[e.placement]](Object.assign(new r.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(s=r.tokens[i+1].children)[Cl[e.placement]].apply(s,o)});Object.assign(Wh.defaults,{space:!0,placement:"after",ariaHidden:!1});var Zo=Md(Wh.renderPermalinkImpl);Zo.defaults=Object.assign({},Wh.defaults,{ariaHidden:!0});var UN=Md(function(n,e,t,r,i){var s=[Object.assign(new r.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,r)]],Object.entries(e.renderAttrs(n,r)))})].concat(e.safariReaderFix?[new r.Token("span_open","span",1)]:[],r.tokens[i+1].children,e.safariReaderFix?[new r.Token("span_close","span",-1)]:[],[new r.Token("link_close","a",-1)]);r.tokens[i+1]=Object.assign(new r.Token("inline","",0),{children:s})});Object.assign(UN.defaults,{safariReaderFix:!1});var B2=Md(function(n,e,t,r,i){var s;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter(function(m){return m.type==="text"||m.type==="code_inline"}).reduce(function(m,f){return m+f.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(n,r)]),l.push.apply(l,Object.entries(e.renderAttrs(n,r))),e.style==="visually-hidden"){if(a.push(Object.assign(new r.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new r.Token("text","",0),{content:e.assistiveText(o)}),new r.Token("span_close","span",-1)),e.space){var d=typeof e.space=="string"?e.space:" ";a[Cl[e.placement]](Object.assign(new r.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[Cl[e.placement]](Object.assign(new r.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}),new r.Token("span_close","span",-1))}else a.push(Object.assign(new r.Token("html_inline","",0),{content:e.symbol,meta:Lp}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,n]);var u=[Object.assign(new r.Token("link_open","a",1),{attrs:l})].concat(a,[new r.Token("link_close","a",-1)]);(s=r.tokens).splice.apply(s,[i+3,0].concat(u)),e.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token("html_block","",0),{content:e.wrapper[0]+` +`})),r.tokens.splice(i+3+u.length+1,0,Object.assign(new r.Token("html_block","",0),{content:e.wrapper[1]+` +`})))});function G2(n,e,t,r){var i=n,s=r;if(t&&Object.prototype.hasOwnProperty.call(e,i))throw new Error("User defined `id` attribute `"+n+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,i);)i=n+"-"+s,s+=1;return e[i]=!0,i}function sl(n,e){e=Object.assign({},sl.defaults,e),n.core.ruler.push("anchor",function(t){for(var r,i={},s=t.tokens,o=Array.isArray(e.level)?(r=e.level,function(m){return r.includes(m)}):function(m){return function(f){return f>=m}}(e.level),a=0;a0&&!(t&i&&this.__match_alphabets__[i].call(this,r,t,i));i>>=4);if(this.__actions__(r,t,i),i===0)break;t=this.__transitions__[t][i]||0}return!!this.__accept_states__[t]};var Oje=Bs,Dje=Oje,Lje=function(e,t){var r={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};t=e.utils.assign({},r,t||{});function i(u,m){var f=u.bMarks[m]+u.sCount[m],g=u.bMarks[m]+u.blkIndent,h=u.skipSpacesBack(u.eMarks[m],g),v=[],b,_,y=!1,E=!1,x=0;for(b=f;bb?(E||(x===0?x=_-b:x===_-b&&(x=0)),b=_):(E||!y&&!x)&&(E=!E),y=!1;break;case 124:!E&&!y&&v.push(b),y=!1;break;default:y=!1;break}return v.length===0||(v[0]>g&&v.unshift(g-1),v[v.length-1]=4||h.length===0)return!1;for(b=0;bf||(y=new u.Token("table_open","table",1),y.meta={sep:null,cap:null,tr:[]},h.set_highest_alphabet(65536),h.set_initial_state(65792),h.set_accept_states([65552,65553,0]),h.set_match_alphabets({65536:s.bind(this,u,!0),4096:a.bind(this,u,!0),256:o.bind(this,u,!0),16:o.bind(this,u,!0),1:l.bind(this,u,!0)}),h.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),t.headerless&&(h.set_initial_state(69888),h.update_transition(69888,{65536:4352,4096:65552,256:4352}),E=new u.Token("tr_placeholder","tr",0),E.meta=Object()),t.multibody||h.update_transition(65552,{65536:0,16:65552}),h.set_actions(function(ue,xe,Ce){switch(Ce){case 65536:if(y.meta.cap)break;y.meta.cap=s(u,!1,ue),y.meta.cap.map=[ue,ue+1],y.meta.cap.first=ue===m;break;case 4096:y.meta.sep=a(u,!1,ue),y.meta.sep.map=[ue,ue+1],E.meta.grp|=1,v=16;break;case 256:case 16:E=new u.Token("tr_open","tr",1),E.map=[ue,ue+1],E.meta=o(u,!1,ue),E.meta.type=Ce,E.meta.grp=v,v=0,y.meta.tr.push(E),t.multiline&&(E.meta.multiline&&b<0?b=y.meta.tr.length-1:!E.meta.multiline&&b>=0&&(_=y.meta.tr[b],_.meta.mbounds=y.meta.tr.slice(b).map(function(me){return me.meta.bounds}),_.map[1]=E.map[1],y.meta.tr=y.meta.tr.slice(0,b+1),b=-1));break;case 1:E.meta.grp|=1,v=16;break}}),h.execute(m,f)===!1)||!y.meta.tr.length)return!1;if(g)return!0;if(y.meta.tr[y.meta.tr.length-1].meta.grp|=1,y.map=L=[m,0],y.block=!0,y.level=u.level++,u.tokens.push(y),y.meta.cap){_=u.push("caption_open","caption",1),_.map=y.meta.cap.map;var Z=[],ce=y.meta.cap.first?"top":"bottom";y.meta.cap.label!==null&&Z.push(["id",y.meta.cap.label]),ce!=="top"&&Z.push(["style","caption-side: "+ce]),_.attrs=Z,_=u.push("inline","",0),_.content=y.meta.cap.text,_.map=y.meta.cap.map,_.children=[],_=u.push("caption_close","caption",-1)}for(ie=0;ieE.meta.mbounds[$].length-2||(q=[E.meta.mbounds[$][D]+1,E.meta.mbounds[$][D+1]],H.push(u.src.slice.apply(u.src,q).trimRight()));for(B=new u.md.block.State(H.join(` +`),u.md,u.env,[]),B.level=E.level+1,u.md.block.tokenize(B,E.map[0],B.lineMax),K=0;Kf.match(m))}t.tabindex==!0&&(i.tokens[o-1].attrPush(["tabindex",s]),s++),t.lazyLoading==!0&&u.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",r)};const Uje=Lo(Fje),Bje=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Po={};Po.getAttrs=function(n,e,t){const r=/[^\t\n\f />"'=]/,i=" ",s="=",o=".",a="#",l=[];let d="",u="",m=!0,f=!1;for(let g=e+t.leftDelimiter.length;g=r+1:u.length>=r}let s,o,a,l;const d=r-e.rightDelimiter.length;switch(n){case"start":a=t.slice(0,e.leftDelimiter.length),s=a===e.leftDelimiter?0:-1,o=s===-1?-1:t.indexOf(e.rightDelimiter,d),l=t.charAt(o+e.rightDelimiter.length),l&&e.rightDelimiter.indexOf(l)!==-1&&(o=-1);break;case"end":s=t.lastIndexOf(e.leftDelimiter),o=s===-1?-1:t.indexOf(e.rightDelimiter,s+d),o=o===t.length-e.rightDelimiter.length?o:-1;break;case"only":a=t.slice(0,e.leftDelimiter.length),s=a===e.leftDelimiter?0:-1,a=t.slice(t.length-e.rightDelimiter.length),o=a===e.rightDelimiter?t.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${n}, expected 'start', 'end' or 'only'`)}return s!==-1&&o!==-1&&i(t.substring(s,o+e.rightDelimiter.length))}};Po.removeDelimiter=function(n,e){const t=m1(e.leftDelimiter),r=m1(e.rightDelimiter),i=new RegExp("[ \\n]?"+t+"[^"+t+r+"]+"+r+"$"),s=n.search(i);return s!==-1?n.slice(0,s):n};function m1(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Po.escapeRegExp=m1;Po.getMatchingOpeningToken=function(n,e){if(n[e].type==="softbreak")return!1;if(n[e].nesting===0)return n[e];const t=n[e].level,r=n[e].type.replace("_close","_open");for(;e>=0;--e)if(n[e].type===r&&n[e].level===t)return n[e];return!1};const Gje=/[&<>"]/,zje=/[&<>"]/g,Vje={"&":"&","<":"<",">":">",'"':"""};function Hje(n){return Vje[n]}Po.escapeHtml=function(n){return Gje.test(n)?n.replace(zje,Hje):n};const qt=Po;var qje=n=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+qt.escapeRegExp(n.leftDelimiter)+"[^"+qt.escapeRegExp(n.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:qt.hasDelimiters("end",n)}],transform:(t,r)=>{const i=t[r],s=i.info.lastIndexOf(n.leftDelimiter),o=qt.getAttrs(i.info,s,n);qt.addAttrs(o,i),i.info=qt.removeDelimiter(i.info,n)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:t=>t==="image"||t==="code_inline"},{shift:0,type:"text",content:qt.hasDelimiters("start",n)}]}],transform:(t,r,i)=>{const s=t[r].children[i],o=s.content.indexOf(n.rightDelimiter),a=t[r].children[i-1],l=qt.getAttrs(s.content,0,n);qt.addAttrs(l,a),s.content.length===o+n.rightDelimiter.length?t[r].children.splice(i,1):s.content=s.content.slice(o+n.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:qt.hasDelimiters("only",n)}],transform:(t,r)=>{const i=t[r+2],s=qt.getMatchingOpeningToken(t,r),o=qt.getAttrs(i.content,0,n);qt.addAttrs(o,s),t.splice(r+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:qt.hasDelimiters("start",n)}]}],transform:(t,r,i)=>{const s=t[r].children[i],o=s.content,a=qt.getAttrs(o,0,n),l=qt.getMatchingOpeningToken(t[r].children,i-1);qt.addAttrs(a,l),s.content=o.slice(o.indexOf(n.rightDelimiter)+n.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:qt.hasDelimiters("only",n)}]}],transform:(t,r,i)=>{const o=t[r].children[i].content,a=qt.getAttrs(o,0,n);let l=r-2;for(;t[l-1]&&t[l-1].type!=="ordered_list_open"&&t[l-1].type!=="bullet_list_open";)l--;qt.addAttrs(a,t[l-1]),t[r].children=t[r].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:t=>t==="bullet_list_close"||t==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:qt.hasDelimiters("only",n),children:t=>t.length===1},{shift:3,type:"paragraph_close"}],transform:(t,r)=>{const s=t[r+2].content,o=qt.getAttrs(s,0,n),a=qt.getMatchingOpeningToken(t,r);qt.addAttrs(o,a),t.splice(r+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:qt.hasDelimiters("end",n)}]}],transform:(t,r,i)=>{const s=t[r].children[i],o=s.content,a=qt.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);qt.addAttrs(a,t[r-2]);const l=o.slice(0,o.lastIndexOf(n.leftDelimiter));s.content=z2(l)!==" "?l:l.slice(0,-1)}},{name:` +{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:qt.hasDelimiters("only",n)}]}],transform:(t,r,i)=>{const s=t[r].children[i],o=qt.getAttrs(s.content,0,n);let a=r+1;for(;t[a+1]&&t[a+1].nesting===-1;)a++;const l=qt.getMatchingOpeningToken(t,a);qt.addAttrs(o,l),t[r].children=t[r].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:t=>t.length===1,content:t=>t.match(e)!==null},{shift:2,type:"paragraph_close"}],transform:(t,r)=>{const i=t[r];i.type="hr",i.tag="hr",i.nesting=0;const s=t[r+1].content,o=s.lastIndexOf(n.leftDelimiter),a=qt.getAttrs(s,o,n);qt.addAttrs(a,i),i.markup=s,t.splice(r+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:qt.hasDelimiters("end",n),type:t=>t!=="code_inline"&&t!=="math_inline"}]}],transform:(t,r,i)=>{const s=t[r].children[i],o=s.content,a=qt.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);let l=r+1;do if(t[l]&&t[l].nesting===-1)break;while(l++{const h=f1(a,l,g);return h.j!==null&&(m=h.j),h.match})&&(u.transform(a,l,m),(u.name==="inline attributes"||u.name==="inline nesting 0")&&d--)}}e.core.ruler.before("linkify","curly_attributes",s)};function f1(n,e,t){const r={match:!1,j:null},i=t.shift!==void 0?e+t.shift:t.position;if(t.shift!==void 0&&i<0)return r;const s=Qje(n,i);if(s===void 0)return r;for(const o of Object.keys(t))if(!(o==="shift"||o==="position")){if(s[o]===void 0)return r;if(o==="children"&&Kje(t.children)){if(s.children.length===0)return r;let a;const l=t.children,d=s.children;if(l.every(u=>u.position!==void 0)){if(a=l.every(u=>f1(d,u.position,u).match),a){const u=Xje(l).position;r.j=u>=0?u:d.length+u}}else for(let u=0;uf1(d,u,m).match),a){r.j=u;break}if(a===!1)return r;continue}switch(typeof t[o]){case"boolean":case"number":case"string":if(s[o]!==t[o])return r;break;case"function":if(!t[o](s[o]))return r;break;case"object":if(jje(t[o])){if(t[o].every(l=>l(s[o]))===!1)return r;break}default:throw new Error(`Unknown type of pattern test (key: ${o}). Test should be of type boolean, number, string, function or array of functions.`)}}return r.match=!0,r}function Kje(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="object")}function jje(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="function")}function Qje(n,e){return e>=0?n[e]:n[n.length+e]}function Xje(n){return n.slice(-1)[0]||{}}const Zje=Lo(Wje);function BN(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],r=typeof t;(r==="object"||r==="function")&&!Object.isFrozen(t)&&BN(t)}),n}let V2=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function GN(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function go(n,...e){const t=Object.create(null);for(const r in n)t[r]=n[r];return e.forEach(function(r){for(const i in r)t[i]=r[i]}),t}const Jje="
    ",H2=n=>!!n.scope,eQe=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${n}`};class tQe{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=GN(e)}openNode(e){if(!H2(e))return;const t=eQe(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){H2(e)&&(this.buffer+=Jje)}value(){return this.buffer}span(e){this.buffer+=``}}const q2=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class qv{constructor(){this.rootNode=q2(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=q2({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(r=>this._walk(e,r)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{qv._collapse(t)}))}}class nQe extends qv{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const r=e.root;t&&(r.scope=`language:${t}`),this.add(r)}toHTML(){return new tQe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ud(n){return n?typeof n=="string"?n:n.source:null}function zN(n){return Ma("(?=",n,")")}function rQe(n){return Ma("(?:",n,")*")}function iQe(n){return Ma("(?:",n,")?")}function Ma(...n){return n.map(t=>ud(t)).join("")}function sQe(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Yv(...n){return"("+(sQe(n).capture?"":"?:")+n.map(r=>ud(r)).join("|")+")"}function VN(n){return new RegExp(n.toString()+"|").exec("").length-1}function oQe(n,e){const t=n&&n.exec(e);return t&&t.index===0}const aQe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function $v(n,{joinWith:e}){let t=0;return n.map(r=>{t+=1;const i=t;let s=ud(r),o="";for(;s.length>0;){const a=aQe.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&t++)}return o}).map(r=>`(${r})`).join(e)}const lQe=/\b\B/,HN="[a-zA-Z]\\w*",Wv="[a-zA-Z_]\\w*",qN="\\b\\d+(\\.\\d+)?",YN="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$N="\\b(0b[01]+)",cQe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",dQe=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=Ma(e,/.*\b/,n.binary,/\b.*/)),go({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,r)=>{t.index!==0&&r.ignoreMatch()}},n)},pd={begin:"\\\\[\\s\\S]",relevance:0},uQe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[pd]},pQe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[pd]},hQe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Kh=function(n,e,t={}){const r=go({scope:"comment",begin:n,end:e,contains:[]},t);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Yv("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Ma(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},mQe=Kh("//","$"),fQe=Kh("/\\*","\\*/"),gQe=Kh("#","$"),_Qe={scope:"number",begin:qN,relevance:0},bQe={scope:"number",begin:YN,relevance:0},vQe={scope:"number",begin:$N,relevance:0},yQe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[pd,{begin:/\[/,end:/\]/,relevance:0,contains:[pd]}]},EQe={scope:"title",begin:HN,relevance:0},SQe={scope:"title",begin:Wv,relevance:0},xQe={begin:"\\.\\s*"+Wv,relevance:0},TQe=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var su=Object.freeze({__proto__:null,APOS_STRING_MODE:uQe,BACKSLASH_ESCAPE:pd,BINARY_NUMBER_MODE:vQe,BINARY_NUMBER_RE:$N,COMMENT:Kh,C_BLOCK_COMMENT_MODE:fQe,C_LINE_COMMENT_MODE:mQe,C_NUMBER_MODE:bQe,C_NUMBER_RE:YN,END_SAME_AS_BEGIN:TQe,HASH_COMMENT_MODE:gQe,IDENT_RE:HN,MATCH_NOTHING_RE:lQe,METHOD_GUARD:xQe,NUMBER_MODE:_Qe,NUMBER_RE:qN,PHRASAL_WORDS_MODE:hQe,QUOTE_STRING_MODE:pQe,REGEXP_MODE:yQe,RE_STARTERS_RE:cQe,SHEBANG:dQe,TITLE_MODE:EQe,UNDERSCORE_IDENT_RE:Wv,UNDERSCORE_TITLE_MODE:SQe});function wQe(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function CQe(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function AQe(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=wQe,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function RQe(n,e){Array.isArray(n.illegal)&&(n.illegal=Yv(...n.illegal))}function MQe(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function NQe(n,e){n.relevance===void 0&&(n.relevance=1)}const kQe=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(r=>{delete n[r]}),n.keywords=t.keywords,n.begin=Ma(t.beforeMatch,zN(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},IQe=["of","and","for","in","not","or","if","then","parent","list","value"],OQe="keyword";function WN(n,e,t=OQe){const r=Object.create(null);return typeof n=="string"?i(t,n.split(" ")):Array.isArray(n)?i(t,n):Object.keys(n).forEach(function(s){Object.assign(r,WN(n[s],e,s))}),r;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const l=a.split("|");r[l[0]]=[s,DQe(l[0],l[1])]})}}function DQe(n,e){return e?Number(e):LQe(n)?0:1}function LQe(n){return IQe.includes(n.toLowerCase())}const Y2={},ua=n=>{console.error(n)},$2=(n,...e)=>{console.log(`WARN: ${n}`,...e)},Fa=(n,e)=>{Y2[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Y2[`${n}/${e}`]=!0)},Pp=new Error;function KN(n,e,{key:t}){let r=0;const i=n[t],s={},o={};for(let a=1;a<=e.length;a++)o[a+r]=i[a],s[a+r]=!0,r+=VN(e[a-1]);n[t]=o,n[t]._emit=s,n[t]._multi=!0}function PQe(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw ua("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Pp;if(typeof n.beginScope!="object"||n.beginScope===null)throw ua("beginScope must be object"),Pp;KN(n,n.begin,{key:"beginScope"}),n.begin=$v(n.begin,{joinWith:""})}}function FQe(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw ua("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Pp;if(typeof n.endScope!="object"||n.endScope===null)throw ua("endScope must be object"),Pp;KN(n,n.end,{key:"endScope"}),n.end=$v(n.end,{joinWith:""})}}function UQe(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function BQe(n){UQe(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),PQe(n),FQe(n)}function GQe(n){function e(o,a){return new RegExp(ud(o),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=VN(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e($v(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const d=l.findIndex((m,f)=>f>0&&m!==void 0),u=this.matchIndexes[d];return l.splice(0,d),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([d,u])=>l.addRule(d,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let d=l.exec(a);if(this.resumingScanAtSamePosition()&&!(d&&d.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,d=u.exec(a)}return d&&(this.regexIndex+=d.position+1,this.regexIndex===this.count&&this.considerAll()),d}}function i(o){const a=new r;return o.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const l=o;if(o.isCompiled)return l;[CQe,MQe,BQe,kQe].forEach(u=>u(o,a)),n.compilerExtensions.forEach(u=>u(o,a)),o.__beforeBegin=null,[AQe,RQe,NQe].forEach(u=>u(o,a)),o.isCompiled=!0;let d=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),d=o.keywords.$pattern,delete o.keywords.$pattern),d=d||/\w+/,o.keywords&&(o.keywords=WN(o.keywords,n.case_insensitive)),l.keywordPatternRe=e(d,!0),a&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=ud(l.end)||"",o.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return zQe(u==="self"?o:u)})),o.contains.forEach(function(u){s(u,l)}),o.starts&&s(o.starts,a),l.matcher=i(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=go(n.classNameAliases||{}),s(n)}function jN(n){return n?n.endsWithParent||jN(n.starts):!1}function zQe(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return go(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:jN(n)?go(n,{starts:n.starts?go(n.starts):null}):Object.isFrozen(n)?go(n):n}var VQe="11.10.0";class HQe extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const af=GN,W2=go,K2=Symbol("nomatch"),qQe=7,QN=function(n){const e=Object.create(null),t=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:nQe};function l(B){return a.noHighlightRe.test(B)}function d(B){let Z=B.className+" ";Z+=B.parentNode?B.parentNode.className:"";const ce=a.languageDetectRe.exec(Z);if(ce){const ue=C(ce[1]);return ue||($2(s.replace("{}",ce[1])),$2("Falling back to no-highlight mode for this block.",B)),ue?ce[1]:"no-highlight"}return Z.split(/\s+/).find(ue=>l(ue)||C(ue))}function u(B,Z,ce){let ue="",xe="";typeof Z=="object"?(ue=B,ce=Z.ignoreIllegals,xe=Z.language):(Fa("10.7.0","highlight(lang, code, ...args) has been deprecated."),Fa("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),xe=B,ue=Z),ce===void 0&&(ce=!0);const Ce={code:ue,language:xe};$("before:highlight",Ce);const me=Ce.result?Ce.result:m(Ce.language,Ce.code,ce);return me.code=Ce.code,$("after:highlight",me),me}function m(B,Z,ce,ue){const xe=Object.create(null);function Ce(ne,pe){return ne.keywords[pe]}function me(){if(!fe.keywords){Pe.addText(Re);return}let ne=0;fe.keywordPatternRe.lastIndex=0;let pe=fe.keywordPatternRe.exec(Re),De="";for(;pe;){De+=Re.substring(ne,pe.index);const Le=ge.case_insensitive?pe[0].toLowerCase():pe[0],Ve=Ce(fe,Le);if(Ve){const[ot,wt]=Ve;if(Pe.addText(De),De="",xe[Le]=(xe[Le]||0)+1,xe[Le]<=qQe&&(U+=wt),ot.startsWith("_"))De+=pe[0];else{const $e=ge.classNameAliases[ot]||ot;ze(pe[0],$e)}}else De+=pe[0];ne=fe.keywordPatternRe.lastIndex,pe=fe.keywordPatternRe.exec(Re)}De+=Re.substring(ne),Pe.addText(De)}function Ae(){if(Re==="")return;let ne=null;if(typeof fe.subLanguage=="string"){if(!e[fe.subLanguage]){Pe.addText(Re);return}ne=m(fe.subLanguage,Re,!0,Ue[fe.subLanguage]),Ue[fe.subLanguage]=ne._top}else ne=g(Re,fe.subLanguage.length?fe.subLanguage:null);fe.relevance>0&&(U+=ne.relevance),Pe.__addSublanguage(ne._emitter,ne.language)}function Fe(){fe.subLanguage!=null?Ae():me(),Re=""}function ze(ne,pe){ne!==""&&(Pe.startScope(pe),Pe.addText(ne),Pe.endScope())}function te(ne,pe){let De=1;const Le=pe.length-1;for(;De<=Le;){if(!ne._emit[De]){De++;continue}const Ve=ge.classNameAliases[ne[De]]||ne[De],ot=pe[De];Ve?ze(ot,Ve):(Re=ot,me(),Re=""),De++}}function ye(ne,pe){return ne.scope&&typeof ne.scope=="string"&&Pe.openNode(ge.classNameAliases[ne.scope]||ne.scope),ne.beginScope&&(ne.beginScope._wrap?(ze(Re,ge.classNameAliases[ne.beginScope._wrap]||ne.beginScope._wrap),Re=""):ne.beginScope._multi&&(te(ne.beginScope,pe),Re="")),fe=Object.create(ne,{parent:{value:fe}}),fe}function Se(ne,pe,De){let Le=oQe(ne.endRe,De);if(Le){if(ne["on:end"]){const Ve=new V2(ne);ne["on:end"](pe,Ve),Ve.isMatchIgnored&&(Le=!1)}if(Le){for(;ne.endsParent&&ne.parent;)ne=ne.parent;return ne}}if(ne.endsWithParent)return Se(ne.parent,pe,De)}function Oe(ne){return fe.matcher.regexIndex===0?(Re+=ne[0],1):(we=!0,0)}function Ye(ne){const pe=ne[0],De=ne.rule,Le=new V2(De),Ve=[De.__beforeBegin,De["on:begin"]];for(const ot of Ve)if(ot&&(ot(ne,Le),Le.isMatchIgnored))return Oe(pe);return De.skip?Re+=pe:(De.excludeBegin&&(Re+=pe),Fe(),!De.returnBegin&&!De.excludeBegin&&(Re=pe)),ye(De,ne),De.returnBegin?0:pe.length}function le(ne){const pe=ne[0],De=Z.substring(ne.index),Le=Se(fe,ne,De);if(!Le)return K2;const Ve=fe;fe.endScope&&fe.endScope._wrap?(Fe(),ze(pe,fe.endScope._wrap)):fe.endScope&&fe.endScope._multi?(Fe(),te(fe.endScope,ne)):Ve.skip?Re+=pe:(Ve.returnEnd||Ve.excludeEnd||(Re+=pe),Fe(),Ve.excludeEnd&&(Re=pe));do fe.scope&&Pe.closeNode(),!fe.skip&&!fe.subLanguage&&(U+=fe.relevance),fe=fe.parent;while(fe!==Le.parent);return Le.starts&&ye(Le.starts,ne),Ve.returnEnd?0:pe.length}function V(){const ne=[];for(let pe=fe;pe!==ge;pe=pe.parent)pe.scope&&ne.unshift(pe.scope);ne.forEach(pe=>Pe.openNode(pe))}let G={};function oe(ne,pe){const De=pe&&pe[0];if(Re+=ne,De==null)return Fe(),0;if(G.type==="begin"&&pe.type==="end"&&G.index===pe.index&&De===""){if(Re+=Z.slice(pe.index,pe.index+1),!i){const Le=new Error(`0 width match regex (${B})`);throw Le.languageName=B,Le.badRule=G.rule,Le}return 1}if(G=pe,pe.type==="begin")return Ye(pe);if(pe.type==="illegal"&&!ce){const Le=new Error('Illegal lexeme "'+De+'" for mode "'+(fe.scope||"")+'"');throw Le.mode=fe,Le}else if(pe.type==="end"){const Le=le(pe);if(Le!==K2)return Le}if(pe.type==="illegal"&&De==="")return 1;if(ee>1e5&&ee>pe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Re+=De,De.length}const ge=C(B);if(!ge)throw ua(s.replace("{}",B)),new Error('Unknown language: "'+B+'"');const Ee=GQe(ge);let Te="",fe=ue||Ee;const Ue={},Pe=new a.__emitter(a);V();let Re="",U=0,I=0,ee=0,we=!1;try{if(ge.__emitTokens)ge.__emitTokens(Z,Pe);else{for(fe.matcher.considerAll();;){ee++,we?we=!1:fe.matcher.considerAll(),fe.matcher.lastIndex=I;const ne=fe.matcher.exec(Z);if(!ne)break;const pe=Z.substring(I,ne.index),De=oe(pe,ne);I=ne.index+De}oe(Z.substring(I))}return Pe.finalize(),Te=Pe.toHTML(),{language:B,value:Te,relevance:U,illegal:!1,_emitter:Pe,_top:fe}}catch(ne){if(ne.message&&ne.message.includes("Illegal"))return{language:B,value:af(Z),illegal:!0,relevance:0,_illegalBy:{message:ne.message,index:I,context:Z.slice(I-100,I+100),mode:ne.mode,resultSoFar:Te},_emitter:Pe};if(i)return{language:B,value:af(Z),illegal:!1,relevance:0,errorRaised:ne,_emitter:Pe,_top:fe};throw ne}}function f(B){const Z={value:af(B),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return Z._emitter.addText(B),Z}function g(B,Z){Z=Z||a.languages||Object.keys(e);const ce=f(B),ue=Z.filter(C).filter(H).map(Fe=>m(Fe,B,!1));ue.unshift(ce);const xe=ue.sort((Fe,ze)=>{if(Fe.relevance!==ze.relevance)return ze.relevance-Fe.relevance;if(Fe.language&&ze.language){if(C(Fe.language).supersetOf===ze.language)return 1;if(C(ze.language).supersetOf===Fe.language)return-1}return 0}),[Ce,me]=xe,Ae=Ce;return Ae.secondBest=me,Ae}function h(B,Z,ce){const ue=Z&&t[Z]||ce;B.classList.add("hljs"),B.classList.add(`language-${ue}`)}function v(B){let Z=null;const ce=d(B);if(l(ce))return;if($("before:highlightElement",{el:B,language:ce}),B.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",B);return}if(B.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(B)),a.throwUnescapedHTML))throw new HQe("One of your code blocks includes unescaped HTML.",B.innerHTML);Z=B;const ue=Z.textContent,xe=ce?u(ue,{language:ce,ignoreIllegals:!0}):g(ue);B.innerHTML=xe.value,B.dataset.highlighted="yes",h(B,ce,xe.language),B.result={language:xe.language,re:xe.relevance,relevance:xe.relevance},xe.secondBest&&(B.secondBest={language:xe.secondBest.language,relevance:xe.secondBest.relevance}),$("after:highlightElement",{el:B,result:xe,text:ue})}function b(B){a=W2(a,B)}const _=()=>{x(),Fa("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){x(),Fa("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let E=!1;function x(){if(document.readyState==="loading"){E=!0;return}document.querySelectorAll(a.cssSelector).forEach(v)}function A(){E&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",A,!1);function w(B,Z){let ce=null;try{ce=Z(n)}catch(ue){if(ua("Language definition for '{}' could not be registered.".replace("{}",B)),i)ua(ue);else throw ue;ce=o}ce.name||(ce.name=B),e[B]=ce,ce.rawDefinition=Z.bind(null,n),ce.aliases&&k(ce.aliases,{languageName:B})}function N(B){delete e[B];for(const Z of Object.keys(t))t[Z]===B&&delete t[Z]}function L(){return Object.keys(e)}function C(B){return B=(B||"").toLowerCase(),e[B]||e[t[B]]}function k(B,{languageName:Z}){typeof B=="string"&&(B=[B]),B.forEach(ce=>{t[ce.toLowerCase()]=Z})}function H(B){const Z=C(B);return Z&&!Z.disableAutodetect}function q(B){B["before:highlightBlock"]&&!B["before:highlightElement"]&&(B["before:highlightElement"]=Z=>{B["before:highlightBlock"](Object.assign({block:Z.el},Z))}),B["after:highlightBlock"]&&!B["after:highlightElement"]&&(B["after:highlightElement"]=Z=>{B["after:highlightBlock"](Object.assign({block:Z.el},Z))})}function ie(B){q(B),r.push(B)}function D(B){const Z=r.indexOf(B);Z!==-1&&r.splice(Z,1)}function $(B,Z){const ce=B;r.forEach(function(ue){ue[ce]&&ue[ce](Z)})}function K(B){return Fa("10.7.0","highlightBlock will be removed entirely in v12.0"),Fa("10.7.0","Please use highlightElement now."),v(B)}Object.assign(n,{highlight:u,highlightAuto:g,highlightAll:x,highlightElement:v,highlightBlock:K,configure:b,initHighlighting:_,initHighlightingOnLoad:y,registerLanguage:w,unregisterLanguage:N,listLanguages:L,getLanguage:C,registerAliases:k,autoDetection:H,inherit:W2,addPlugin:ie,removePlugin:D}),n.debugMode=function(){i=!1},n.safeMode=function(){i=!0},n.versionString=VQe,n.regex={concat:Ma,lookahead:zN,either:Yv,optional:iQe,anyNumberOfTimes:rQe};for(const B in su)typeof su[B]=="object"&&BN(su[B]);return Object.assign(n,su),n},Al=QN({});Al.newInstance=()=>QN({});var YQe=Al;Al.HighlightJS=Al;Al.default=Al;var lf,j2;function $Qe(){if(j2)return lf;j2=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",s="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",g="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",ue="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",me="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",Ae="null истина ложь неопределено",Fe=e.inherit(e.NUMBER_MODE),ze={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},te={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},ye={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},Se=e.inherit(e.C_LINE_COMMENT_MODE),Oe={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:s+l},contains:[Se]},Ye={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},le={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:Ae},contains:[Fe,ze,te]},Se]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:s,built_in:g,class:ue,type:me,literal:Ae},contains:[Oe,le,Se,Ye,Fe,ze,te,ye]}}return lf=n,lf}var cf,Q2;function WQe(){if(Q2)return cf;Q2=1;function n(e){const t=e.regex,r=/^[a-zA-Z][a-zA-Z0-9-]*/,i=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],s=e.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},d={scope:"symbol",match:/%[si](?=".*")/},u={scope:"attribute",match:t.concat(r,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:i,contains:[{scope:"operator",match:/=\/?/},u,s,o,a,l,d,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return cf=n,cf}var df,X2;function KQe(){if(X2)return df;X2=1;function n(e){const t=e.regex,r=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...r)),end:/"/,keywords:r,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return df=n,df}var uf,Z2;function jQe(){if(Z2)return uf;Z2=1;function n(e){const t=e.regex,r=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=t.concat(r,t.concat("(\\.",r,")*")),s=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:r,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o]},{begin:t.concat(/:\s*/,s)}]},e.METHOD_GUARD],illegal:/#/}}return uf=n,uf}var pf,J2;function QQe(){if(J2)return pf;J2=1;function n(e){const t="\\d(_|\\d)*",r="[eE][-+]?"+t,i=t+"(\\."+t+")?("+r+")?",s="\\w+",a="\\b("+(t+"#"+s+"(\\."+s+")?#("+r+")?")+"|"+i+")",l="[A-Za-z](_?[A-Za-z0-9.])*",d=`[]\\{\\}%#'"`,u=e.COMMENT("--","$"),m={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:d,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[u,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:d},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[u,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:d},m,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:d}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:d},m]}}return pf=n,pf}var hf,ex;function XQe(){if(ex)return hf;ex=1;function n(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},r={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[t,r]};return t.contains=[i],r.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,r,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return hf=n,hf}var mf,tx;function ZQe(){if(tx)return mf;tx=1;function n(e){const t={className:"number",begin:/[$%]\d+/},r={className:"number",begin:/\b\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,s,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},i,r,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return mf=n,mf}var ff,nx;function JQe(){if(nx)return ff;nx=1;function n(e){const t=e.regex,r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,r]},s=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",s]}),a=[s,o,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],d=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[r,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(...d),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,i]},...a],illegal:/\/\/|->|=>|\[\[/}}return ff=n,ff}var gf,rx;function eXe(){if(rx)return gf;rx=1;function n(e){const t=e.regex,r="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},s=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","value","view"],o={className:"symbol",begin:"\\$"+t.either(...s)},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,a,e.REGEXP_MODE];const u=l.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:r+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:r,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+r+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:u}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:r}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:u}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return gf=n,gf}var _f,ix;function tXe(){if(ix)return _f;ix=1;function n(t){const r=t.regex,i=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",l="(?!struct)("+s+"|"+r.optional(o)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},i,t.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:r.optional(o)+t.IDENT_RE,relevance:0},v=r.optional(o)+t.IDENT_RE+"\\s*\\(",b=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],E=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],w={type:_,keyword:b,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},N={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},L=[N,g,d,i,t.C_BLOCK_COMMENT_MODE,f,m],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:L.concat([{begin:/\(/,end:/\)/,keywords:w,contains:L.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+l+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:w,relevance:0},{begin:v,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[i,t.C_BLOCK_COMMENT_MODE,m,f,d,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",i,t.C_BLOCK_COMMENT_MODE,m,f,d]}]},d,i,t.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"",keywords:w,contains:["self",d]},{begin:t.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(t){const r={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=n(t),s=i.keywords;return s.type=[...s.type,...r.type],s.literal=[...s.literal,...r.literal],s.built_in=[...s.built_in,...r.built_in],s._hints=r._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}return _f=e,_f}var bf,sx;function nXe(){if(sx)return bf;sx=1;function n(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return bf=n,bf}var vf,ox;function rXe(){if(ox)return vf;ox=1;function n(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,d,l,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,a,d,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return vf=n,vf}var yf,ax;function iXe(){if(ax)return yf;ax=1;function n(e){const t=e.regex,r={begin:"^'{3,}[ \\t]*$",relevance:10},i=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],s=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],o=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,a,...i,...s,...o,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},r,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return yf=n,yf}var Ef,lx;function sXe(){if(lx)return Ef;lx=1;function n(e){const t=e.regex,r=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"];return{name:"AspectJ",keywords:r,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:r.concat(i),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:r,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:r.concat(i),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:r,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return Ef=n,Ef}var Sf,cx;function oXe(){if(cx)return Sf;cx=1;function n(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return Sf=n,Sf}var xf,dx;function aXe(){if(dx)return xf;dx=1;function n(e){const t="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",r=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],i="True False And Null Not Or Default",s="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",o={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},d={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},u={className:"meta",begin:"#",end:"$",keywords:{keyword:r},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,o]},m={className:"symbol",begin:"@[A-z0-9_]+"},f={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,l,d]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:s,literal:i},contains:[o,a,l,d,u,m,f]}}return xf=n,xf}var Tf,ux;function lXe(){if(ux)return Tf;ux=1;function n(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return Tf=n,Tf}var wf,px;function cXe(){if(px)return wf;px=1;function n(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:r},contains:[t,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return wf=n,wf}var Cf,hx;function dXe(){if(hx)return Cf;hx=1;function n(e){const t=e.UNDERSCORE_IDENT_RE,o={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o};return{name:"X++",aliases:["x++"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a]}}return Cf=n,Cf}var Af,mx;function uXe(){if(mx)return Af;mx=1;function n(e){const t=e.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,s]};s.contains.push(l);const d={match:/\\"/},u={className:"string",begin:/'/,end:/'/},m={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},g=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=e.SHEBANG({binary:`(${g.join("|")})`,relevance:10}),v={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],_=["true","false"],y={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],x=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],A=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],w=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:_,built_in:[...E,...x,"set","shopt",...A,...w]},contains:[h,e.SHEBANG(),v,f,o,a,y,l,d,u,m,r]}}return Af=n,Af}var Rf,fx;function pXe(){if(fx)return Rf;fx=1;function n(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return Rf=n,Rf}var Mf,gx;function hXe(){if(gx)return Mf;gx=1;function n(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return Mf=n,Mf}var Nf,_x;function mXe(){if(_x)return Nf;_x=1;function n(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}return Nf=n,Nf}var kf,bx;function fXe(){if(bx)return kf;bx=1;function n(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",a="("+i+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},h=t.optional(s)+e.IDENT_RE+"\\s*\\(",_={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[f,l,r,e.C_BLOCK_COMMENT_MODE,m,u],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:y.concat([{begin:/\(/,end:/\)/,keywords:_,contains:y.concat(["self"]),relevance:0}]),relevance:0},x={begin:"("+a+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:_,relevance:0},{begin:h,returnBegin:!0,contains:[e.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,u,m,l,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,u,m,l]}]},l,r,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:_,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:u,keywords:_}}}return kf=n,kf}var If,vx;function gXe(){if(vx)return If;vx=1;function n(e){const t=e.regex,r=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],i="false true",s=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},d={className:"string",begin:'"',end:'"'},u={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[o,a,e.NUMBER_MODE]},...s]},m=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],f={match:[/OBJECT/,/\s+/,t.either(...m),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:r,literal:i},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,l,d,e.NUMBER_MODE,f,u]}}return If=n,If}var Of,yx;function _Xe(){if(yx)return Of;yx=1;function n(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],r=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],i=["true","false"],s={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:t,type:r,literal:i},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},s]}}return Of=n,Of}var Df,Ex;function bXe(){if(Ex)return Df;Ex=1;function n(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],r=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],i=["doc","by","license","see","throws","tagged"],s={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[s]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return s.contains=o,{name:"Ceylon",keywords:{keyword:t.concat(r),meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}return Df=n,Df}var Lf,Sx;function vXe(){if(Sx)return Lf;Sx=1;function n(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return Lf=n,Lf}var Pf,xx;function yXe(){if(xx)return Pf;xx=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",r="[#]?["+t+"]["+t+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",s={$pattern:r,built_in:i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:r,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},d={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),m={scope:"punctuation",match:/,/,relevance:0},f=e.COMMENT(";","$",{relevance:0}),g={className:"literal",begin:/\b(true|false|nil)\b/},h={begin:"\\[|(#::?"+r+")?\\{",end:"[\\]\\}]",relevance:0},v={className:"symbol",begin:"[:]{1,2}"+r},b={begin:"\\(",end:"\\)"},_={endsWithParent:!0,relevance:0},y={keywords:s,className:"name",begin:r,relevance:0,starts:_},E=[m,b,l,d,u,f,v,h,a,g,o],x={beginKeywords:i,keywords:{$pattern:r,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:r,relevance:0,excludeEnd:!0,endsParent:!0}].concat(E)};return b.contains=[x,y,_],_.contains=E,h.contains=E,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[m,b,l,d,u,f,v,h,a,g]}}return Pf=n,Pf}var Ff,Tx;function EXe(){if(Tx)return Ff;Tx=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return Ff=n,Ff}var Uf,wx;function SXe(){if(wx)return Uf;wx=1;function n(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Uf=n,Uf}var Bf,Cx;function xXe(){if(Cx)return Bf;Cx=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=[].concat(i,t,r);function o(a){const l=["npm","print"],d=["yes","no","on","off"],u=["then","unless","until","loop","by","when","and","or","is","isnt","not"],m=["var","const","let","function","static"],f=A=>w=>!A.includes(w),g={keyword:n.concat(u).filter(f(m)),literal:e.concat(d),built_in:s.concat(l)},h="[A-Za-z$_][0-9A-Za-z$_]*",v={className:"subst",begin:/#\{/,end:/\}/,keywords:g},b=[a.BINARY_NUMBER_MODE,a.inherit(a.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,v]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,v]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[v,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+h},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];v.contains=b;const _=a.inherit(a.TITLE_MODE,{begin:h}),y="(\\(.*\\)\\s*)?\\B[-=]>",E={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(b)}]},x={variants:[{match:[/class\s+/,h,/\s+extends\s+/,h]},{match:[/class\s+/,h]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:g};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:g,illegal:/\/\*/,contains:[...b,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+h+"\\s*=\\s*"+y,end:"[-=]>",returnBegin:!0,contains:[_,E]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:y,end:"[-=]>",returnBegin:!0,contains:[E]}]},x,{begin:h+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return Bf=o,Bf}var Gf,Ax;function TXe(){if(Ax)return Gf;Ax=1;function n(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return Gf=n,Gf}var zf,Rx;function wXe(){if(Rx)return zf;Rx=1;function n(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return zf=n,zf}var Vf,Mx;function CXe(){if(Mx)return Vf;Mx=1;function n(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",a="(?!struct)("+i+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},h=t.optional(s)+e.IDENT_RE+"\\s*\\(",v=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],_=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],A={type:b,keyword:v,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:_},w={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},N=[w,f,l,r,e.C_BLOCK_COMMENT_MODE,m,u],L={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:N.concat([{begin:/\(/,end:/\)/,keywords:A,contains:N.concat(["self"]),relevance:0}]),relevance:0},C={className:"function",begin:"("+a+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:A,relevance:0},{begin:h,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,u,m,l,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,u,m,l]}]},l,r,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:A,illegal:"",keywords:A,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:A},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Vf=n,Vf}var Hf,Nx;function AXe(){if(Nx)return Hf;Nx=1;function n(e){const t="primitive rsc_template",r="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+r.split(" ").join("|")+")\\s+",keywords:r,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return Hf=n,Hf}var qf,kx;function RXe(){if(kx)return qf;kx=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",r="(_?f(32|64))?",i="[a-zA-Z_]\\w*[!?=]?",s="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:i,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},u={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function m(y,E){const x=[{begin:y,end:E}];return x[0].contains=x,x}const f={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:m("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},g={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%q<",end:">",contains:m("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},h={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},v={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:m("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:m("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:m(/\{/,/\}/)},{begin:"%r<",end:">",contains:m("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},b={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},_=[u,f,g,v,h,b,d,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:s,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:s,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:s}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+r+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return l.contains=_,u.contains=_.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:_}}return qf=n,qf}var Yf,Ix;function MXe(){if(Ix)return Yf;Ix=1;function n(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:s.concat(o),built_in:t,literal:i},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=e.inherit(m,{illegal:/\n/}),g={className:"subst",begin:/\{/,end:/\}/,keywords:a},h=e.inherit(g,{illegal:/\n/}),v={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,h]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]},_=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]});g.contains=[b,v,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],h.contains=[_,v,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const y={variants:[u,b,v,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},x=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",A={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+x+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[y,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},A]}}return Yf=n,Yf}var $f,Ox;function NXe(){if(Ox)return $f;Ox=1;function n(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return $f=n,$f}var Wf,Dx;function kXe(){if(Dx)return Wf;Dx=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...t],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function l(d){const u=d.regex,m=n(d),f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},g="and or not only",h=/@-?\w[\w]*(-\w+)*/,v="[a-zA-Z-][a-zA-Z0-9_-]*",b=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,f,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+v,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+s.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.CSS_NUMBER_MODE,...b,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...b,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},m.FUNCTION_DISPATCH]},{begin:u.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:h},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...b,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return Wf=l,Wf}var Kf,Lx;function IXe(){if(Lx)return Kf;Lx=1;function n(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},r="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",s="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,l="([eE][+-]?"+i+")",d="("+i+"(\\.\\d*|"+l+")|\\d+\\."+i+"|\\."+r+l+"?)",u="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+i+")",m="("+r+"|"+s+"|"+a+")",f="("+u+"|"+d+")",g=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,h={className:"number",begin:"\\b"+m+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},v={className:"number",begin:"\\b("+f+"([fF]|L|i|[fF]i|Li)?|"+m+"(i|[fF]i|Li))",relevance:0},b={className:"string",begin:"'("+g+"|.)",end:"'",illegal:"."},y={className:"string",begin:'"',contains:[{begin:g,relevance:0}],end:'"[cwd]?'},E={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},x={className:"string",begin:"`",end:"`[cwd]?"},A={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},w={className:"string",begin:'q"\\{',end:'\\}"'},N={className:"meta",begin:"^#!",end:"$",relevance:5},L={className:"meta",begin:"#(line)",end:"$",relevance:5},C={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},k=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,k,A,y,E,x,w,v,h,b,N,L,C]}}return Kf=n,Kf}var jf,Px;function OXe(){if(Px)return jf;Px=1;function n(e){const t=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(u,{contains:[]}),g=e.inherit(m,{contains:[]});u.contains.push(g),m.contains.push(f);let h=[r,d];return[u,m,f,g].forEach(y=>{y.contains=y.contains.concat(h)}),h=h.concat(u,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},r,o,u,m,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},s,i,d,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return jf=n,jf}var Qf,Fx;function DXe(){if(Fx)return Qf;Fx=1;function n(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},r={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,r]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,r]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,r]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,r]}]};r.contains=[e.C_NUMBER_MODE,i];const s=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=s.map(d=>`${d}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:s.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return Qf=n,Qf}var Xf,Ux;function LXe(){if(Ux)return Xf;Ux=1;function n(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},a={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},d={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[s,a,i].concat(r)},i].concat(r)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[s,a,o,l,d,i].concat(r)}}return Xf=n,Xf}var Zf,Bx;function PXe(){if(Bx)return Zf;Bx=1;function n(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Zf=n,Zf}var Jf,Gx;function FXe(){if(Gx)return Jf;Gx=1;function n(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}return Jf=n,Jf}var eg,zx;function UXe(){if(zx)return eg;zx=1;function n(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return eg=n,eg}var tg,Vx;function BXe(){if(Vx)return tg;Vx=1;function n(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},s={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[r,s]},d={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},u={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},m={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},f={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},g={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[u,s,o,a,d,f,m,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,t,i,g,{begin:e.IDENT_RE+"::",keywords:""}]}}return ig=n,ig}var sg,$x;function HXe(){if($x)return sg;$x=1;function n(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return sg=n,sg}var og,Wx;function qXe(){if(Wx)return og;Wx=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),r={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},s={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,r,s]}}return og=n,og}var ag,Kx;function YXe(){if(Kx)return ag;Kx=1;function n(e){const t=e.regex,r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={$pattern:r,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},m={match:/\\[\s\S]/,scope:"char.escape",relevance:0},f=`[/|([{<"']`,g=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],h=w=>({scope:"char.escape",begin:t.concat(/\\/,w),relevance:0}),v={className:"string",begin:"~[a-z](?="+f+")",contains:g.map(w=>e.inherit(w,{contains:[h(w.end),m,l]}))},b={className:"string",begin:"~[A-Z](?="+f+")",contains:g.map(w=>e.inherit(w,{contains:[h(w.end)]}))},_={className:"regex",variants:[{begin:"~r(?="+f+")",contains:g.map(w=>e.inherit(w,{end:t.concat(w.end,/[uismxfU]{0,7}/),contains:[h(w.end),m,l]}))},{begin:"~R(?="+f+")",contains:g.map(w=>e.inherit(w,{end:t.concat(w.end,/[uismxfU]{0,7}/),contains:[h(w.end)]}))}]},y={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},E={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})]},x=e.inherit(E,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),A=[y,_,b,v,e.HASH_COMMENT_MODE,x,E,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[y,{begin:i}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=A,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:A}}return ag=n,ag}var lg,jx;function $Xe(){if(jx)return lg;jx=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},s={begin:/\{/,end:/\}/,contains:i.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[r,i,s,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}return lg=n,lg}var cg,Qx;function WXe(){if(Qx)return cg;Qx=1;function n(e){const t=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=t.concat(i,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:a},f={className:"string",contains:[e.BACKSLASH_ESCAPE,m],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,m]})]}]},g="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",v={className:"number",relevance:0,variants:[{begin:`\\b(${g})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},N=[f,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:a},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:r}],relevance:0},v,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,m],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,u),relevance:0}].concat(d,u);m.contains=N,b.contains=N;const H=[{begin:/^\s*=>/,starts:{end:"$",contains:N}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:N}}];return u.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(H).concat(u).concat(N)}}return cg=n,cg}var dg,Xx;function KXe(){if(Xx)return dg;Xx=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return dg=n,dg}var ug,Zx;function jXe(){if(Zx)return ug;Zx=1;function n(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return ug=n,ug}var pg,Jx;function QXe(){if(Jx)return pg;Jx=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",r="("+t+":"+t+"|"+t+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},s=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},l={begin:r+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:r,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},d={begin:/\{/,end:/\}/,relevance:0},u={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},m={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},f={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},g={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},h={beginKeywords:"fun receive if try case",end:"end",keywords:i};h.contains=[s,a,e.inherit(e.APOS_STRING_MODE,{className:""}),h,l,e.QUOTE_STRING_MODE,o,d,u,m,f,g];const v=[s,a,h,l,e.QUOTE_STRING_MODE,o,d,u,m,f,g];l.contains[1].contains=v,d.contains=v,f.contains[1].contains=v;const b=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],_={className:"params",begin:"\\(",end:"\\)",contains:v};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[_,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:i,contains:v}},s,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:b.map(y=>`${y}|1.5`).join(" ")},contains:[_]},o,e.QUOTE_STRING_MODE,f,u,m,d,g,{begin:/\.$/}]}}return pg=n,pg}var hg,eT;function XXe(){if(eT)return hg;eT=1;function n(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return hg=n,hg}var mg,tT;function ZXe(){if(tT)return mg;tT=1;function n(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return mg=n,mg}var fg,nT;function JXe(){if(nT)return fg;nT=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},r={className:"string",variants:[{begin:'"',end:'"'}]},s={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,r,s,e.C_NUMBER_MODE]}}return fg=n,fg}var gg,rT;function eZe(){if(rT)return gg;rT=1;function n(e){const t=e.regex,r={className:"params",begin:"\\(",end:"\\)"},i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},s=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,o,s)},{begin:t.concat(/\b\d+/,o,s)},{begin:t.concat(/\.\d+/,o,s)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,r]},d={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[d,l,{begin:/^C\s*=(?!=)/,relevance:0},i,a]}}return gg=n,gg}var _g,iT;function tZe(){if(iT)return _g;iT=1;function n(a){return new RegExp(a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return r("(?=",a,")")}function r(...a){return a.map(d=>e(d)).join("")}function i(a){const l=a[a.length-1];return typeof l=="object"&&l.constructor===Object?(a.splice(a.length-1,1),l):{}}function s(...a){return"("+(i(a).capture?"":"?:")+a.map(u=>e(u)).join("|")+")"}function o(a){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],d={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},u=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],m=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],f=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],g=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],v={keyword:l,literal:m,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":f},_={variants:[a.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),a.C_LINE_COMMENT_MODE]},y=/[a-zA-Z_](\w|')*/,E={scope:"variable",begin:/``/,end:/``/},x=/\B('|\^)/,A={scope:"symbol",variants:[{match:r(x,/``.*?``/)},{match:r(x,a.UNDERSCORE_IDENT_RE)}],relevance:0},w=function({includeEqual:Fe}){let ze;Fe?ze="!%&*+-/<=>@^|~?":ze="!%&*+-/<>@^|~?";const te=Array.from(ze),ye=r("[",...te.map(n),"]"),Se=s(ye,/\./),Oe=r(Se,t(Se)),Ye=s(r(Oe,Se,"*"),r(ye,"+"));return{scope:"operator",match:s(Ye,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},N=w({includeEqual:!0}),L=w({includeEqual:!1}),C=function(Fe,ze){return{begin:r(Fe,t(r(/\s*/,s(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:ze,end:t(s(/\n/,/=/)),relevance:0,keywords:a.inherit(v,{type:g}),contains:[_,A,a.inherit(E,{scope:null}),L]}},k=C(/:/,"operator"),H=C(/\bof\b/,"keyword"),q={begin:[/(^|\s+)/,/type/,/\s+/,y],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:v,contains:[_,a.inherit(E,{scope:null}),A,{scope:"operator",match:/<|>/},k]},ie={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},D={begin:[/^\s*/,r(/#/,s(...u)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},$={variants:[a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]},K={scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]},B={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},a.BACKSLASH_ESCAPE]},Z={scope:"string",begin:/"""/,end:/"""/,relevance:2},ce={scope:"subst",begin:/\{/,end:/\}/,keywords:v},ue={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},a.BACKSLASH_ESCAPE,ce]},xe={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},a.BACKSLASH_ESCAPE,ce]},Ce={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},ce],relevance:2},me={scope:"string",match:r(/'/,s(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return ce.contains=[xe,ue,B,K,me,d,_,E,k,ie,D,$,A,N],{name:"F#",aliases:["fs","f#"],keywords:v,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[d,{variants:[Ce,xe,ue,Z,B,K,me]},_,E,q,{scope:"meta",begin:/\[\]/,relevance:2,contains:[E,Z,B,K,me,$]},H,k,ie,D,$,A,N]}}return _g=o,_g}var bg,sT;function nZe(){if(sT)return bg;sT=1;function n(e){const t=e.regex,r={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},i={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},s={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:r,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,d={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:t.concat(l,t.anyNumberOfTimes(t.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:r,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,d]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[d]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},i,s]},e.C_NUMBER_MODE,s]}}return bg=n,bg}var vg,oT;function rZe(){if(oT)return vg;oT=1;function n(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},r=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r]},s={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,s]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(g,h,v){const b=e.inherit({className:"function",beginKeywords:g,end:h,excludeEnd:!0,contains:[].concat(o)},{});return b.contains.push(a),b.contains.push(e.C_NUMBER_MODE),b.contains.push(e.C_BLOCK_COMMENT_MODE),b.contains.push(r),b},d={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},u={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},m={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},d,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,d,m,u,"self"]};return m.contains.push(f),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,u,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,r,f]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},m,s]}}return vg=n,vg}var yg,aT;function iZe(){if(aT)return yg;aT=1;function n(e){const t="[A-Z_][A-Z0-9_.]*",r="%",i={$pattern:t,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},s={className:"meta",begin:"([O])([0-9]+)"},o=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),a=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),o,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[o],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r},s].concat(a)}}return yg=n,yg}var Eg,lT;function sZe(){if(lT)return Eg;lT=1;function n(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return Eg=n,Eg}var Sg,cT;function oZe(){if(cT)return Sg;cT=1;function n(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return Sg=n,Sg}var xg,dT;function aZe(){if(dT)return xg;dT=1;function n(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return xg=n,xg}var Tg,uT;function lZe(){if(uT)return Tg;uT=1;function n(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return Mg=n,Mg}var Ng,_T;function mZe(){if(_T)return Ng;_T=1;function n(e){const t=e.regex,r={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},i={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},s=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,d=/(\.|\/)/,u=t.either(s,o,a,l),m=t.concat(t.optional(/\.|\.\/|\//),u,t.anyNumberOfTimes(t.concat(d,u))),f=t.concat("(",a,"|",l,")(?==)"),g={begin:m},h=e.inherit(g,{keywords:i}),v={begin:/\(/,end:/\)/},b={className:"attr",begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,h,v]}}},_={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},y={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,_,b,h,v],returnEnd:!0},E=e.inherit(g,{className:"name",keywords:r,starts:e.inherit(y,{end:/\)/})});v.contains=[E];const x=e.inherit(g,{keywords:r,className:"name",starts:e.inherit(y,{end:/\}\}/})}),A=e.inherit(g,{keywords:r,className:"name"}),w=e.inherit(g,{className:"name",keywords:r,starts:e.inherit(y,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[x],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[A]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[x]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[A]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[w]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[w]}]}}return Ng=n,Ng}var kg,bT;function fZe(){if(bT)return kg;bT=1;function n(e){const t="([0-9]_*)+",r="([0-9a-fA-F]_*)+",i="([01]_*)+",s="([0-7]_*)+",d="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",u={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},m={className:"meta",begin:/\{-#/,end:/#-\}/},f={className:"meta",begin:"^#",end:"$"},g={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},h={begin:"\\(",end:"\\)",illegal:'"',contains:[m,f,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),u]},v={begin:/\{/,end:/\}/,contains:h.contains},b={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${r})(\\.(${r}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${s})\\b`},{match:`\\b0[bB](${i})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[h,u],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[h,u],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[g,h,u]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[m,g,h,v,u]},{beginKeywords:"default",end:"$",contains:[g,h,u]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,u]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[g,e.QUOTE_STRING_MODE,u]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},m,f,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,b,g,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${d}--+|--+(?!-)${d}`},u,{begin:"->|<-"}]}}return kg=n,kg}var Ig,vT;function gZe(){if(vT)return Ig;vT=1;function n(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",r=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:r,relevance:0},{className:"variable",begin:"\\$"+t},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return Ig=n,Ig}var Og,yT;function _Ze(){if(yT)return Og;yT=1;function n(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return Og=n,Og}var Dg,ET;function bZe(){if(ET)return Dg;ET=1;function n(e){const t=e.regex,r="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,s={className:"attribute",begin:t.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+r+" \\d{3})",end:/$/,contains:[{className:"meta",begin:r},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+r+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:r},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(s,{relevance:0})]}}return Dg=n,Dg}var Lg,ST;function vZe(){if(ST)return Lg;ST=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",r="["+t+"]["+t+"0-9/;:]*",i={$pattern:r,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},s="[-+]?\\d+(\\.\\d+)?",o={begin:r,relevance:0},a={className:"number",begin:s,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d=e.COMMENT(";","$",{relevance:0}),u={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},m={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},f={className:"comment",begin:"\\^"+r},g=e.COMMENT("\\^\\{","\\}"),h={className:"symbol",begin:"[:]{1,2}"+r},v={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},_={className:"name",relevance:0,keywords:i,begin:r,starts:b},y=[v,l,f,g,d,h,m,a,u,o];return v.contains=[e.COMMENT("comment",""),_,b],b.contains=y,m.contains=y,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),v,l,f,g,d,h,m,a,u]}}return Lg=n,Lg}var Pg,xT;function yZe(){if(xT)return Pg;xT=1;function n(e){const t="\\[",r="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:r}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:r,contains:["self"]}]}}return Pg=n,Pg}var Fg,TT;function EZe(){if(TT)return Fg;TT=1;function n(e){const t=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[i,o,s,a,r,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,m=/'[^']*'/,f=t.either(d,u,m),g=t.concat(f,"(\\s*\\.\\s*",f,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:g,className:"attr",starts:{end:/$/,contains:[i,l,o,s,a,r]}}]}}return Fg=n,Fg}var Ug,wT;function SZe(){if(wT)return Ug;wT=1;function n(e){const t=e.regex,r={className:"params",begin:"\\(",end:"\\)"},i=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,s,i)},{begin:t.concat(/\b\d+/,s,i)},{begin:t.concat(/\.\d+/,s,i)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,r]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}return Ug=n,Ug}var Bg,CT;function xZe(){if(CT)return Bg;CT=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",i="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Fe="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",s5="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",o5="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",a5="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",l5="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",c5=Fe+s5,d5=a5,u5="null true false nil ",EE={className:"number",begin:e.NUMBER_RE,relevance:0},SE={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},xE={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},p5={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,xE]},h5={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,xE]},TE={variants:[p5,h5]},qd={$pattern:t,keyword:i,built_in:c5,class:d5,literal:u5},Em={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:qd,relevance:0},wE={className:"type",begin:":[ \\t]*("+l5.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},CE={className:"variable",keywords:qd,begin:t,relevance:0,contains:[wE,Em]},AE=r+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:qd,illegal:"\\$|\\?|%|,|;$|~|#|@|i(o,a,l-1))}function s(o){const a=o.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",d=l+i("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),h={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},v={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[o.BACKSLASH_ESCAPE]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[b,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+d+"\\s+)",o.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[v,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,r,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},r,v]}}return Gg=s,Gg}var zg,RT;function wZe(){if(RT)return zg;RT=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(s,r,i);function l(d){const u=d.regex,m=(te,{after:ye})=>{const Se="",end:""},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(te,ye)=>{const Se=te[0].length+te.index,Oe=te.input[Se];if(Oe==="<"||Oe===","){ye.ignoreMatch();return}Oe===">"&&(m(te,{after:Se})||ye.ignoreMatch());let Ye;const le=te.input.substring(Se);if(Ye=le.match(/^\s*=/)){ye.ignoreMatch();return}if((Ye=le.match(/^\s+extends\s+/))&&Ye.index===0){ye.ignoreMatch();return}}},b={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},_="[0-9](_?[0-9])*",y=`\\.(${_})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${E})((${y})|\\.)?|(${y}))[eE][+-]?(${_})\\b`},{begin:`\\b(${E})\\b((${y})\\b|\\.)?|(${y})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},A={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},w={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},N={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,A],subLanguage:"css"}},L={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,A],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,A]},H={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},q=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,w,N,L,C,{match:/\$\d+/},x];A.contains=q.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(q)});const ie=[].concat(H,A.contains),D=ie.concat([{begin:/(\s*)\(/,end:/\)/,keywords:b,contains:["self"].concat(ie)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:D},K={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,u.concat(f,"(",u.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},B={relevance:0,match:u.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},Z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ce={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function xe(te){return u.concat("(?!",te.join("|"),")")}const Ce={match:u.concat(/\b/,xe([...s,"super","import"].map(te=>`${te}\\s*\\(`)),f,u.lookahead(/\s*\(/)),className:"title.function",relevance:0},me={begin:u.concat(/\./,u.lookahead(u.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ae={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},Fe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",ze={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,u.lookahead(Fe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:D,CLASS_REFERENCE:B},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),Z,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,w,N,L,C,H,{match:/\$\d+/},x,B,{className:"attr",begin:f+u.lookahead(":"),relevance:0},ze,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[H,d.REGEXP_MODE,{className:"function",begin:Fe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:D}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:h},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}]},ce,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,d.inherit(d.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},me,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},Ce,ue,K,Ae,{match:/\$[(.]/}]}}return zg=l,zg}var Vg,MT;function CZe(){if(MT)return Vg;MT=1;function n(e){const r={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},i={className:"function",begin:/:[\w\-.]+/,relevance:0},s={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},o={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,o,i,s,r]}}return Vg=n,Vg}var Hg,NT;function AZe(){if(NT)return Hg;NT=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],s={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[t,r,e.QUOTE_STRING_MODE,s,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Hg=n,Hg}var qg,kT;function RZe(){if(kT)return qg;kT=1;function n(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},a={keywords:o,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},d={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},u={className:"subst",begin:/\$\(/,end:/\)/,keywords:o},m={className:"variable",begin:"\\$"+t},f={className:"string",contains:[e.BACKSLASH_ESCAPE,u,m],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},g={className:"string",contains:[e.BACKSLASH_ESCAPE,u,m],begin:"`",end:"`"},h={className:"meta",begin:"@"+t},v={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return a.name="Julia",a.contains=[l,d,f,g,h,v,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],u.contains=a.contains,a}return qg=n,qg}var Yg,IT;function MZe(){if(IT)return Yg;IT=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return Yg=n,Yg}var $g,OT;function NZe(){if(OT)return $g;OT=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(s){const o={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:s.UNDERSCORE_IDENT_RE+"@"},d={className:"subst",begin:/\$\{/,end:/\}/,contains:[s.C_NUMBER_MODE]},u={className:"variable",begin:"\\$"+s.UNDERSCORE_IDENT_RE},m={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[u,d]},{begin:"'",end:"'",illegal:/\n/,contains:[s.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[s.BACKSLASH_ESCAPE,u,d]}]};d.contains.push(m);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+s.UNDERSCORE_IDENT_RE+")?"},g={className:"meta",begin:"@"+s.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[s.inherit(m,{className:"string"}),"self"]}]},h=r,v=s.COMMENT("/\\*","\\*/",{contains:[s.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:s.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=b;return _.variants[1].contains=[b],b.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:o,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),s.C_LINE_COMMENT_MODE,v,a,l,f,g,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:o,relevance:5,contains:[{begin:s.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[s.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,s.C_LINE_COMMENT_MODE,v],relevance:0},s.C_LINE_COMMENT_MODE,v,f,g,m,s.C_NUMBER_MODE]},v]},{begin:[/class|interface|trait/,/\s+/,s.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},s.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,g]},m,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},h]}}return $g=i,$g}var Wg,DT;function kZe(){if(DT)return Wg;DT=1;function n(e){const t="[a-zA-Z_][\\w.]*",r="<\\?(lasso(script)?|=)",i="\\]|\\?>",s={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=e.COMMENT("",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},l={className:"meta",begin:"\\[/noprocess|"+r},d={className:"symbol",begin:"'"+t+"'"},u=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[d]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+r,returnEnd:!0,relevance:0,contains:[o]}},a,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:s,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+r,returnEnd:!0,contains:[o]}},a,l].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}return Wg=n,Wg}var Kg,LT;function IZe(){if(LT)return Kg;LT=1;function n(e){const r=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(H=>H+"(?![a-zA-Z@:_])")),i=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(H=>H+"(?![a-zA-Z:_])").join("|")),s=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:r},{endsParent:!0,begin:i},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:s}]},l={className:"params",relevance:0,begin:/#+\d?/},d={variants:o},u={className:"built_in",relevance:0,begin:/[$&^_]/},m={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},f=e.COMMENT("%","$",{relevance:0}),g=[a,l,d,u,m,f],h={begin:/\{/,end:/\}/,relevance:0,contains:["self",...g]},v=e.inherit(h,{relevance:0,endsParent:!0,contains:[h,...g]}),b={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[h,...g]},_={begin:/\s+/,relevance:0},y=[v],E=[b],x=function(H,q){return{contains:[_],starts:{relevance:0,contains:H,starts:q}}},A=function(H,q){return{begin:"\\\\"+H+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+H},relevance:0,contains:[_],starts:q}},w=function(H,q){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+H+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},x(y,q))},N=(H="string")=>e.END_SAME_AS_BEGIN({className:H,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),L=function(H){return{className:"string",end:"(?=\\\\end\\{"+H+"\\})"}},C=(H="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:H,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),k=[...["verb","lstinline"].map(H=>A(H,{contains:[N()]})),A("mint",x(y,{contains:[N()]})),A("mintinline",x(y,{contains:[C(),N()]})),A("url",{contains:[C("link"),C("link")]}),A("hyperref",{contains:[C("link")]}),A("href",x(E,{contains:[C("link")]})),...[].concat(...["","\\*"].map(H=>[w("verbatim"+H,L("verbatim"+H)),w("filecontents"+H,x(y,L("filecontents"+H))),...["","B","L"].map(q=>w(q+"Verbatim"+H,x(E,L(q+"Verbatim"+H))))])),w("minted",x(E,x(y,L("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...k,...g]}}return Kg=n,Kg}var jg,PT;function OZe(){if(PT)return jg;PT=1;function n(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return jg=n,jg}var Qg,FT;function DZe(){if(FT)return Qg;FT=1;function n(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,i={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},s={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[i]};return i.contains.unshift(s),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[i]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return Qg=n,Qg}var Xg,UT;function LZe(){if(UT)return Xg;UT=1;const n=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...t],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse(),l=s.concat(o).sort().reverse();function d(u){const m=n(u),f=l,g="and or not only",h="[\\w-]+",v="("+h+"|@\\{"+h+"\\})",b=[],_=[],y=function(ie){return{className:"string",begin:"~?"+ie+".*?"+ie}},E=function(ie,D,$){return{className:ie,begin:D,relevance:$}},x={$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},A={begin:"\\(",end:"\\)",contains:_,keywords:x,relevance:0};_.push(u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,y("'"),y('"'),m.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},m.HEXCOLOR,A,E("variable","@@?"+h,10),E("variable","@\\{"+h+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:h+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},m.IMPORTANT,{beginKeywords:"and not"},m.FUNCTION_DISPATCH);const w=_.concat({begin:/\{/,end:/\}/,contains:b}),N={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(_)},L={begin:v+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:_}}]},C={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:x,returnEnd:!0,contains:_,relevance:0}},k={className:"variable",variants:[{begin:"@"+h+"\\s*:",relevance:15},{begin:"@"+h}],starts:{end:"[;}]",returnEnd:!0,contains:w}},H={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:v,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,N,E("keyword","all\\b"),E("variable","@\\{"+h+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},m.CSS_NUMBER_MODE,E("selector-tag",v,0),E("selector-id","#"+v),E("selector-class","\\."+v,0),E("selector-tag","&",0),m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+s.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:w},{begin:"!important"},m.FUNCTION_DISPATCH]},q={begin:h+`:(:)?(${f.join("|")})`,returnBegin:!0,contains:[H]};return b.push(u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,C,k,q,L,H,N,m.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:b}}return Xg=d,Xg}var Zg,BT;function PZe(){if(BT)return Zg;BT=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",r="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",s={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),d={begin:"\\*",end:"\\*"},u={className:"symbol",begin:"[:&]"+t},m={begin:t,relevance:0},f={begin:r},h={contains:[o,a,d,u,{begin:"\\(",end:"\\)",contains:["self",s,a,o,m]},m],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+r}]},v={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},b={begin:"\\(\\s*",end:"\\)"},_={endsWithParent:!0,relevance:0};return b.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:r}]},_],_.contains=[h,v,b,s,o,a,l,d,u,f,m],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),s,a,l,h,v,b,m]}}return Zg=n,Zg}var Jg,GT;function FZe(){if(GT)return Jg;GT=1;function n(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},r=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),s=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[s,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(r),illegal:";$|^\\[|^=|&|\\{"}}return Jg=n,Jg}var e_,zT;function UZe(){if(zT)return e_;zT=1;const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=[].concat(i,t,r);function o(a){const l=["npm","print"],d=["yes","no","on","off","it","that","void"],u=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],m={keyword:n.concat(u),literal:e.concat(d),built_in:s.concat(l)},f="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",g=a.inherit(a.TITLE_MODE,{begin:f}),h={className:"subst",begin:/#\{/,end:/\}/,keywords:m},v={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:m},b=[a.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,h,v]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,h,v]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[h,a.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+f},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];h.contains=b;const _={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(b)}]},y={begin:"(#=>|=>|\\|>>|-?->|!->)"},E={variants:[{match:[/class\s+/,f,/\s+extends\s+/,f]},{match:[/class\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:m};return{name:"LiveScript",aliases:["ls"],keywords:m,illegal:/\/\*/,contains:b.concat([a.COMMENT("\\/\\*","\\*\\/"),a.HASH_COMMENT_MODE,y,{className:"function",contains:[g,_],returnBegin:!0,variants:[{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},E,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return e_=o,e_}var t_,VT;function BZe(){if(VT)return t_;VT=1;function n(e){const t=e.regex,r=/([-a-zA-Z$._][\w$.-]*)/,i={className:"type",begin:/\bi\d+(?=\s|\b)/},s={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},d={className:"variable",variants:[{begin:t.concat(/%/,r)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:"title",variants:[{begin:t.concat(/@/,r)},{begin:/@\d+/},{begin:t.concat(/!/,r)},{begin:t.concat(/!\d+/,r)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[i,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},u,o,s,d,l,a]}}return t_=n,t_}var n_,HT;function GZe(){if(HT)return n_;HT=1;function n(e){const r={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},i={className:"number",relevance:0,begin:e.C_NUMBER_RE},s={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},o={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[r,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},o,s,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return n_=n,n_}var r_,qT;function zZe(){if(qT)return r_;qT=1;function n(e){const t="\\[=*\\[",r="\\]=*\\]",i={begin:t,end:r,contains:["self"]},s=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,r,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:r,contains:[i],relevance:5}])}}return r_=n,r_}var i_,YT;function VZe(){if(YT)return i_;YT=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{v.has(N[0])||L.ignoreMatch()}},{className:"symbol",relevance:0,begin:h}]},_={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},y={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},E={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},x={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},A={className:"brace",relevance:0,begin:/[[\](){}]/},w={className:"message-name",relevance:0,begin:r.concat("::",h)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),E,x,w,b,_,t.QUOTE_STRING_MODE,g,y,A]}}return s_=e,s_}var o_,WT;function qZe(){if(WT)return o_;WT=1;function n(e){const t="('|\\.')+",r={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:r},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:r},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:r},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:r},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return o_=n,o_}var a_,KT;function YZe(){if(KT)return a_;KT=1;function n(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return a_=n,a_}var l_,jT;function $Ze(){if(jT)return l_;jT=1;function n(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},r,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,s,o,{begin:/:-/},{begin:/\.$/}]}}return c_=n,c_}var d_,XT;function KZe(){if(XT)return d_;XT=1;function n(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return d_=n,d_}var u_,ZT;function jZe(){if(ZT)return u_;ZT=1;function n(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return u_=n,u_}var p_,JT;function QZe(){if(JT)return p_;JT=1;function n(e){const t=e.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:r.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},a={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},u={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},m=[e.BACKSLASH_ESCAPE,o,d],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],g=(b,_,y="\\1")=>{const E=y==="\\1"?y:t.concat(y,_);return t.concat(t.concat("(?:",b,")"),_,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,y,i)},h=(b,_,y)=>t.concat(t.concat("(?:",b,")"),_,/(?:\\.|[^\\\/])*?/,y,i),v=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:m,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},u,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:g("s|tr|y",t.either(...f,{capture:!0}))},{begin:g("s|tr|y","\\(","\\)")},{begin:g("s|tr|y","\\[","\\]")},{begin:g("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:h("(?:m|qr)?",/\//,/\//)},{begin:h("m|qr",t.either(...f,{capture:!0}),/\1/)},{begin:h("m|qr",/\(/,/\)/)},{begin:h("m|qr",/\[/,/\]/)},{begin:h("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=v,a.contains=v,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:v}}return p_=n,p_}var h_,ew;function XZe(){if(ew)return h_;ew=1;function n(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return h_=n,h_}var m_,tw;function ZZe(){if(tw)return m_;tw=1;function n(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},r={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},i={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),r,i,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}return m_=n,m_}var f_,nw;function JZe(){if(nw)return f_;nw=1;function n(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},r="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:t},s=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=s;const o=e.inherit(e.TITLE_MODE,{begin:r}),a="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(s)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:s.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+r+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:r+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return f_=n,f_}var g_,rw;function eJe(){if(rw)return g_;rw=1;function n(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return g_=n,g_}var __,iw;function tJe(){if(iw)return __;iw=1;function n(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},r={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},i={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},s={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),s,i,t,r]}}return __=n,__}var b_,sw;function nJe(){if(sw)return b_;sw=1;function n(e){const t=e.regex,r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return b_=n,b_}var v_,ow;function rJe(){if(ow)return v_;ow=1;function n(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return v_=n,v_}var y_,aw;function iJe(){if(aw)return y_;aw=1;function n(e){const t={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},r={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},i={className:"char.escape",begin:/''\$/},s={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[i,r],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,s];return r.contains=a,{name:"Nix",aliases:["nixos"],keywords:t,contains:a}}return y_=n,y_}var E_,lw;function sJe(){if(lw)return E_;lw=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return E_=n,E_}var S_,cw;function oJe(){if(cw)return S_;cw=1;function n(e){const t=e.regex,r=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],i=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],s=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],o={className:"variable.constant",begin:t.concat(/\$/,t.either(...r))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},d={className:"variable",begin:/\$+\([\w^.:!-]+\)/},u={className:"params",begin:t.either(...i)},m={className:"keyword",begin:t.concat(/!/,t.either(...s))},f={className:"char.escape",begin:/\$(\\[nrt]|\$)/},g={className:"title.function",begin:/\w+::\w+/},h={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,o,a,l,d]},v=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],b=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],_={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},E={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:v,literal:b},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),E,_,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},h,m,a,l,d,u,g,e.NUMBER_MODE]}}return S_=n,S_}var x_,dw;function aJe(){if(dw)return x_;dw=1;function n(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return x_=n,x_}var T_,uw;function lJe(){if(uw)return T_;uw=1;function n(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return T_=n,T_}var w_,pw;function cJe(){if(pw)return w_;pw=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},r={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",i,s,t,r]},l={begin:"[*!#%]",relevance:0},d={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,o,s,t,l,d]}}return w_=n,w_}var C_,hw;function dJe(){if(hw)return C_;hw=1;function n(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},r=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),s={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[s,o]},r,i]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[r,i,e.C_LINE_COMMENT_MODE,s,o,e.NUMBER_MODE,a,l]}}return C_=n,C_}var A_,mw;function uJe(){if(mw)return A_;mw=1;function n(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return A_=n,A_}var R_,fw;function pJe(){if(fw)return R_;fw=1;function n(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},r={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,r]}}return R_=n,R_}var M_,gw;function hJe(){if(gw)return M_;gw=1;function n(e){const t=e.COMMENT("--","$"),r="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",s="<<\\s*"+r+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",d="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",u=d.trim().split(" ").map(function(b){return b.split("|")[0]}).join("|"),m="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",f="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",g="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",v="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(b){return b.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+l+a,built_in:m+f+g},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+v+")\\s*\\("},{begin:"\\.("+u+")\\b"},{begin:"\\b("+u+")\\s+PATH\\b",keywords:{keyword:"PATH",type:d.replace("PATH ","")}},{className:"type",begin:"\\b("+u+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:s,relevance:10}]}}return M_=n,M_}var N_,_w;function mJe(){if(_w)return N_;_w=1;function n(e){const t=e.regex,r=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),s=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),o={scope:"variable",match:"\\$+"+i},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),m={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(D,$)=>{$.data._beginMatch=D[1]||D[2]},"on:end":(D,$)=>{$.data._beginMatch!==D[1]&&$.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[ +]`,h={scope:"string",variants:[u,d,m,f]},v={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],_=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],x={keyword:_,literal:(D=>{const $=[];return D.forEach(K=>{$.push(K),K.toLowerCase()===K?$.push(K.toUpperCase()):$.push(K.toLowerCase())}),$})(b),built_in:y},A=D=>D.map($=>$.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,t.concat(g,"+"),t.concat("(?!",A(y).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},N=t.concat(i,"\\b(?!\\()"),L={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{1:"title.class",3:"variable.constant"}},{match:[s,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},C={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[C,o,L,e.C_BLOCK_COMMENT_MODE,h,v,w]},H={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",A(_).join("\\b|"),"|",A(y).join("\\b|"),"\\b)"),i,t.concat(g,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push(H);const q=[C,L,e.C_BLOCK_COMMENT_MODE,h,v,w],ie={begin:t.concat(/#\[\s*/,s),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...q]},...q,{scope:"meta",match:s}]};return{case_insensitive:!1,keywords:x,contains:[ie,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,H,L,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:x,contains:["self",o,L,e.C_BLOCK_COMMENT_MODE,h,v]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,v]}}return N_=n,N_}var k_,bw;function fJe(){if(bw)return k_;bw=1;function n(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return k_=n,k_}var I_,vw;function gJe(){if(vw)return I_;vw=1;function n(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return I_=n,I_}var O_,yw;function _Je(){if(yw)return O_;yw=1;function n(e){const t={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},r={className:"string",begin:'"""',end:'"""',relevance:10},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},s={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:t,contains:[o,r,i,s,a,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return O_=n,O_}var D_,Ew;function bJe(){if(Ew)return D_;Ew=1;function n(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],r="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",s={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},l={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},d={className:"literal",begin:/\$(null|true|false)\b/},u={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,l,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},m={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},f={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},g=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[f]}),h={className:"built_in",variants:[{begin:"(".concat(r,")+(-)[\\w\\d]+")}]},v={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},b={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[l]}]},_={begin:/using\s/,end:/$/,returnBegin:!0,contains:[u,m,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},y={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},E={className:"selector-tag",begin:/@\B/,relevance:0},x={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(s.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},A=[x,g,a,e.NUMBER_MODE,u,m,h,l,d,E],w={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",A,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return x.contains.unshift(w),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:s,contains:A.concat(v,b,_,y,w)}}return D_=n,D_}var L_,Sw;function vJe(){if(Sw)return L_;Sw=1;function n(e){const t=e.regex,r=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],i=e.IDENT_RE,s={variants:[{match:t.concat(t.either(...r),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,i,t.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,i],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,i],className:{2:"property"}},l={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,i]},{match:[/class/,/\s+/,i]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},d=["boolean","byte","char","color","double","float","int","long","short"],u=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...r,...u],type:d},contains:[l,o,s,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return L_=n,L_}var P_,xw;function yJe(){if(xw)return P_;xw=1;function n(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return P_=n,P_}var F_,Tw;function EJe(){if(Tw)return F_;Tw=1;function n(e){const t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},r={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},s={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},l={className:"string",begin:/0'(\\'|.)/},d={className:"string",begin:/0'\\s/},m=[t,r,i,{begin:/:-/},s,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,l,d,e.C_NUMBER_MODE];return i.contains=m,s.contains=m,{name:"Prolog",contains:m.concat([{begin:/\.$/}])}}return F_=n,F_}var U_,ww;function SJe(){if(ww)return U_;ww=1;function n(e){const t="[ \\t\\f]*",r="[ \\t\\f]+",i=t+"[:=]"+t,s=r,o="("+i+"|"+s+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",l={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+i},{begin:a+s}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:l},{className:"attr",begin:a+t+"$"}]}}return U_=n,U_}var B_,Cw;function xJe(){if(Cw)return B_;Cw=1;function n(e){const t=["package","import","option","optional","required","repeated","group","oneof"],r=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],i={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:t,type:r,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return B_=n,B_}var G_,Aw;function TJe(){if(Aw)return G_;Aw=1;function n(e){const t={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},r=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",s=e.inherit(e.TITLE_MODE,{begin:i}),o={className:"variable",begin:"\\$"+i},a={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[r,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[s,r]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[a,r,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}return G_=n,G_}var z_,Rw;function wJe(){if(Rw)return z_;Rw=1;function n(e){const t={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},r={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},t,r]}}return z_=n,z_}var V_,Mw;function CJe(){if(Mw)return V_;Mw=1;function n(e){const t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},m={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,m,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,m,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,m,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,m,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",h=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,v=`\\b|${i.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${h}))[eE][+-]?(${g})[jJ]?(?=${v})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${v})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${v})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${v})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${v})`},{begin:`\\b(${g})[jJ](?=${v})`}]},_={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",d,b,f,e.HASH_COMMENT_MODE]}]};return u.contains=[f,b,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[d,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,_,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,y,f]}]}}return V_=n,V_}var H_,Nw;function AJe(){if(Nw)return H_;Nw=1;function n(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return H_=n,H_}var q_,kw;function RJe(){if(kw)return q_;kw=1;function n(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return q_=n,q_}var Y_,Iw;function MJe(){if(Iw)return Y_;Iw=1;function n(e){const t=e.regex,r={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},i="[a-zA-Z_][a-zA-Z0-9\\._]*",s={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:i,returnEnd:!1}},l={begin:i+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:i,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},d={begin:t.concat(i,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:i})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:r,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,s,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},a,l,d],illegal:/#/}}return Y_=n,Y_}var $_,Ow;function NJe(){if(Ow)return $_;Ow=1;function n(e){const t=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[o,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return $_=n,$_}var W_,Dw;function kJe(){if(Dw)return W_;Dw=1;function n(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return W_=n,W_}var K_,Lw;function IJe(){if(Lw)return K_;Lw=1;function n(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},e.COMMENT("^#","$"),l,d,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,d,a,{className:"literal",begin:"\\b("+s.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+i.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return Q_=n,Q_}var X_,Uw;function LJe(){if(Uw)return X_;Uw=1;function n(e){const t=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],r=["matrix","float","color","point","normal","vector"],i=["while","for","if","do","return","else","break","extern","continue"],s={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:i,built_in:t,type:r},illegal:""},o]}}return J_=n,J_}var e0,zw;function UJe(){if(zw)return e0;zw=1;function n(e){const t=e.regex,r=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],i=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],s=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:r},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+t.either(...s)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either(...i)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return e0=n,e0}var t0,Vw;function BJe(){if(Vw)return t0;Vw=1;function n(e){const t=e.regex,r={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},s={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},l={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a]},d={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[a]},u={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},m={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},f=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],g={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,d,l,e.C_NUMBER_MODE,u,m,...f,g,r]}}return t0=n,t0}var n0,Hw;function GJe(){if(Hw)return n0;Hw=1;function n(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",r="(-|\\+)?\\d+([./]\\d+)?",i=r+"[+\\-]"+r+"i",s={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},a={className:"number",variants:[{begin:r,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,d=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],u={begin:t,relevance:0},m={className:"symbol",begin:"'"+t},f={endsWithParent:!0,relevance:0},g={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,l,a,u,m]}]},h={className:"name",relevance:0,begin:t,keywords:s},b={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[h,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[u]}]},h,f]};return f.contains=[o,a,l,u,m,g,b].concat(d),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),a,l,m,g,b].concat(d)}}return n0=n,n0}var r0,qw;function zJe(){if(qw)return r0;qw=1;function n(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}return r0=n,r0}var i0,Yw;function VJe(){if(Yw)return i0;Yw=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...t],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function l(d){const u=n(d),m=o,f=s,g="@[a-z-]+",h="and or not only",b={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,u.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+m.join("|")+")"},b,{begin:/\(/,end:/\)/,contains:[u.CSS_NUMBER_MODE]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[u.BLOCK_COMMENT,b,u.HEXCOLOR,u.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,u.IMPORTANT,u.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:g,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:i.join(" ")},contains:[{begin:g,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},b,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,u.HEXCOLOR,u.CSS_NUMBER_MODE]},u.FUNCTION_DISPATCH]}}return i0=l,i0}var s0,$w;function HJe(){if($w)return s0;$w=1;function n(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return s0=n,s0}var o0,Ww;function qJe(){if(Ww)return o0;Ww=1;function n(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],r=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: +]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return o0=n,o0}var a0,Kw;function YJe(){if(Kw)return a0;Kw=1;function n(e){const t="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,i,r,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,r,e.C_NUMBER_MODE,i]}]}}return a0=n,a0}var l0,jw;function $Je(){if(jw)return l0;jw=1;function n(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return l0=n,l0}var c0,Qw;function WJe(){if(Qw)return c0;Qw=1;function n(e){const t={className:"variable",begin:/\b_+[a-zA-Z]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},s=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],o=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],a=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:s,built_in:a,literal:o},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,r,i,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return c0=n,c0}var d0,Xw;function KJe(){if(Xw)return d0;Xw=1;function n(e){const t=e.regex,r=e.COMMENT("--","$"),i={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},s={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=m,v=[...u,...d].filter(x=>!m.includes(x)),b={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},_={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={begin:t.concat(/\b/,t.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function E(x,{exceptions:A,when:w}={}){const N=w;return A=A||[],x.map(L=>L.match(/\|\d+$/)||A.includes(L)?L:N(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:E(v,{when:x=>x.length<3}),literal:o,type:l,built_in:f},contains:[{begin:t.either(...g),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:v.concat(g),literal:o,type:l}},{className:"type",begin:t.either(...a)},y,b,i,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,_]}}return d0=n,d0}var u0,Zw;function jJe(){if(Zw)return u0;Zw=1;function n(e){const t=e.regex,r=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],s=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],o=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],l=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),d={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},u=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:r,type:s,keyword:i,built_in:o},contains:[e.C_LINE_COMMENT_MODE,d,e.HASH_COMMENT_MODE,l,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...u),/\s*=/),keywords:u},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:t.concat(/\w*/,t.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return u0=n,u0}var p0,Jw;function QJe(){if(Jw)return p0;Jw=1;function n(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r +]*?"'`},{begin:`"[^\r +"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return p0=n,p0}var h0,eC;function XJe(){if(eC)return h0;eC=1;function n(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return h0=n,h0}var m0,tC;function ZJe(){if(tC)return m0;tC=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...t],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function l(d){const u=n(d),m="and or not only",f={className:"variable",begin:"\\$"+d.IDENT_RE},g=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],h="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,u.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+h,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+h,className:"selector-id"},{begin:"\\b("+r.join("|")+")"+h,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+s.join("|")+")"+h},{className:"selector-pseudo",begin:"&?:(:)?("+o.join("|")+")"+h},u.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:m,attribute:i.join(" ")},contains:[u.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+g.join("|")+"))\\b"},f,u.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[u.HEXCOLOR,f,d.APOS_STRING_MODE,u.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE]}]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",starts:{end:/;|$/,contains:[u.HEXCOLOR,f,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,u.CSS_NUMBER_MODE,d.C_BLOCK_COMMENT_MODE,u.IMPORTANT,u.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},u.FUNCTION_DISPATCH]}}return m0=l,m0}var f0,nC;function JJe(){if(nC)return f0;nC=1;function n(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ +(multipart)?`,end:`\\] +`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return f0=n,f0}var g0,rC;function eet(){if(rC)return g0;rC=1;function n(L){return L?typeof L=="string"?L:L.source:null}function e(L){return t("(?=",L,")")}function t(...L){return L.map(k=>n(k)).join("")}function r(L){const C=L[L.length-1];return typeof C=="object"&&C.constructor===Object?(L.splice(L.length-1,1),C):{}}function i(...L){return"("+(r(L).capture?"":"?:")+L.map(H=>n(H)).join("|")+")"}const s=L=>t(/\b/,L,/\w$/.test(L)?/\b/:/\B/),o=["Protocol","Type"].map(s),a=["init","self"].map(s),l=["Any","Self"],d=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],u=["false","nil","true"],m=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],g=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],h=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),v=i(h,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(h,v,"*"),_=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),y=i(_,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=t(_,y,"*"),x=t(/[A-Z]/,y,"*"),A=["attached","autoclosure",t(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,E,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],w=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function N(L){const C={match:/\s+/,relevance:0},k=L.COMMENT("/\\*","\\*/",{contains:["self"]}),H=[L.C_LINE_COMMENT_MODE,k],q={match:[/\./,i(...o,...a)],className:{2:"keyword"}},ie={match:t(/\./,i(...d)),relevance:0},D=d.filter(et=>typeof et=="string").concat(["_|0"]),$=d.filter(et=>typeof et!="string").concat(l).map(s),K={variants:[{className:"keyword",match:i(...$,...a)}]},B={$pattern:i(/\b\w+/,/#\w+/),keyword:D.concat(f),literal:u},Z=[q,ie,K],ce={match:t(/\./,i(...g)),relevance:0},ue={className:"built_in",match:t(/\b/,i(...g),/(?=\()/)},xe=[ce,ue],Ce={match:/->/,relevance:0},me={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${v})+`}]},Ae=[Ce,me],Fe="([0-9]_*)+",ze="([0-9a-fA-F]_*)+",te={className:"number",relevance:0,variants:[{match:`\\b(${Fe})(\\.(${Fe}))?([eE][+-]?(${Fe}))?\\b`},{match:`\\b0x(${ze})(\\.(${ze}))?([pP][+-]?(${Fe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ye=(et="")=>({className:"subst",variants:[{match:t(/\\/,et,/[0\\tnr"']/)},{match:t(/\\/,et,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Se=(et="")=>({className:"subst",match:t(/\\/,et,/[\t ]*(?:[\r\n]|\r\n)/)}),Oe=(et="")=>({className:"subst",label:"interpol",begin:t(/\\/,et,/\(/),end:/\)/}),Ye=(et="")=>({begin:t(et,/"""/),end:t(/"""/,et),contains:[ye(et),Se(et),Oe(et)]}),le=(et="")=>({begin:t(et,/"/),end:t(/"/,et),contains:[ye(et),Oe(et)]}),V={className:"string",variants:[Ye(),Ye("#"),Ye("##"),Ye("###"),le(),le("#"),le("##"),le("###")]},G=[L.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[L.BACKSLASH_ESCAPE]}],oe={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:G},ge=et=>{const lt=t(et,/\//),It=t(/\//,et);return{begin:lt,end:It,contains:[...G,{scope:"comment",begin:`#(?!.*${It})`,end:/$/}]}},Ee={scope:"regexp",variants:[ge("###"),ge("##"),ge("#"),oe]},Te={match:t(/`/,E,/`/)},fe={className:"variable",match:/\$\d+/},Ue={className:"variable",match:`\\$${y}+`},Pe=[Te,fe,Ue],Re={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:w,contains:[...Ae,te,V]}]}},U={scope:"keyword",match:t(/@/,i(...A),e(i(/\(/,/\s+/)))},I={scope:"meta",match:t(/@/,E)},ee=[Re,U,I],we={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,y,"+")},{className:"type",match:x,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:t(/\s+&\s+/,e(x)),relevance:0}]},ne={begin://,keywords:B,contains:[...H,...Z,...ee,Ce,we]};we.contains.push(ne);const pe={match:t(E,/\s*:/),keywords:"_|0",relevance:0},De={begin:/\(/,end:/\)/,relevance:0,keywords:B,contains:["self",pe,...H,Ee,...Z,...xe,...Ae,te,V,...Pe,...ee,we]},Le={begin://,keywords:"repeat each",contains:[...H,we]},Ve={begin:i(e(t(E,/\s*:/)),e(t(E,/\s+/,E,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:E}]},ot={begin:/\(/,end:/\)/,keywords:B,contains:[Ve,...H,...Z,...Ae,te,V,...ee,we,De],endsParent:!0,illegal:/["']/},wt={match:[/(func|macro)/,/\s+/,i(Te.match,E,b)],className:{1:"keyword",3:"title.function"},contains:[Le,ot,C],illegal:[/\[/,/%/]},$e={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Le,ot,C],illegal:/\[|%/},Kt={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},mt={begin:[/precedencegroup/,/\s+/,x],className:{1:"keyword",3:"title"},contains:[we],keywords:[...m,...u],end:/}/},ft={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:B,contains:[Le,...Z,{begin:/:/,end:/\{/,keywords:B,contains:[{scope:"title.class.inherited",match:x},...Z],relevance:0}]};for(const et of V.variants){const lt=et.contains.find(ae=>ae.label==="interpol");lt.keywords=B;const It=[...Z,...xe,...Ae,te,V,...Pe];lt.contains=[...It,{begin:/\(/,end:/\)/,contains:["self",...It]}]}return{name:"Swift",keywords:B,contains:[...H,wt,$e,ft,Kt,mt,{beginKeywords:"import",end:/$/,contains:[...H],relevance:0},Ee,...Z,...xe,...Ae,te,V,...Pe,...ee,we,De]}}return g0=N,g0}var _0,iC;function tet(){if(iC)return _0;iC=1;function n(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return _0=n,_0}var b0,sC;function net(){if(sC)return b0;sC=1;function n(e){const t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},h={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},v={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},b=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},h,v,o],_=[...b];return _.pop(),_.push(a),g.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}return b0=n,b0}var v0,oC;function ret(){if(oC)return v0;oC=1;function n(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return v0=n,v0}var y0,aC;function iet(){if(aC)return y0;aC=1;function n(e){const t=e.regex,r=/[a-zA-Z_][a-zA-Z0-9_]*/,i={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:t.concat(/\$/,t.optional(/::/),r,"(::",r,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[i]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i]}}return y0=n,y0}var E0,lC;function set(){if(lC)return E0;lC=1;function n(e){const t=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...t,"set","list","map"]},end:">",contains:["self"]}]}}return E0=n,E0}var S0,cC;function oet(){if(cC)return S0;cC=1;function n(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},r={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,r]},s={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,r]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[i,s,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return S0=n,S0}var x0,dC;function aet(){if(dC)return x0;dC=1;function n(e){const t=e.regex,r=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],i=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let s=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];s=s.concat(s.map(v=>`end${v}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},l={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},d={beginKeywords:r.join(" "),keywords:{name:r},relevance:0,contains:[l]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:i}]},m=(v,{relevance:b})=>({beginScope:{1:"template-tag",3:"name"},relevance:b||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...v)],end:/%\}/,keywords:"in",contains:[u,d,o,a]}),f=/[a-z_]+/,g=m(s,{relevance:2}),h=m([f],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),g,h,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",u,d,o,a]}]}}return x0=n,x0}var T0,uC;function cet(){if(uC)return T0;uC=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],t=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(s,r,i);function l(u){const m=u.regex,f=(ye,{after:Se})=>{const Oe="",end:""},v=/<[A-Za-z0-9\\._:-]+\s*\/>/,b={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ye,Se)=>{const Oe=ye[0].length+ye.index,Ye=ye.input[Oe];if(Ye==="<"||Ye===","){Se.ignoreMatch();return}Ye===">"&&(f(ye,{after:Oe})||Se.ignoreMatch());let le;const V=ye.input.substring(Oe);if(le=V.match(/^\s*=/)){Se.ignoreMatch();return}if((le=V.match(/^\s+extends\s+/))&&le.index===0){Se.ignoreMatch();return}}},_={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},y="[0-9](_?[0-9])*",E=`\\.(${y})`,x="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${x})((${E})|\\.)?|(${E}))[eE][+-]?(${y})\\b`},{begin:`\\b(${x})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},w={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},N={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"xml"}},L={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"graphql"}},k={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,w]},q={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},ie=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,N,L,C,k,{match:/\$\d+/},A];w.contains=ie.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(ie)});const D=[].concat(q,w.contains),$=D.concat([{begin:/(\s*)\(/,end:/\)/,keywords:_,contains:["self"].concat(D)}]),K={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:$},B={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,m.concat(g,"(",m.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},Z={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},ce={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ue={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[K],illegal:/%/},xe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ce(ye){return m.concat("(?!",ye.join("|"),")")}const me={match:m.concat(/\b/,Ce([...s,"super","import"].map(ye=>`${ye}\\s*\\(`)),g,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ae={begin:m.concat(/\./,m.lookahead(m.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Fe={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},K]},ze="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",te={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(ze)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[K]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:Z},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),ce,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,N,L,C,k,q,{match:/\$\d+/},A,Z,{className:"attr",begin:g+m.lookahead(":"),relevance:0},te,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,u.REGEXP_MODE,{className:"function",begin:ze,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:$}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:v},{begin:b.begin,"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},ue,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[K,u.inherit(u.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ae,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[K]},me,xe,B,Fe,{match:/\$[(.]/}]}}function d(u){const m=l(u),f=n,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,u.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},v={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[m.exports.CLASS_REFERENCE]},b={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},_=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],y={$pattern:n,keyword:e.concat(_),literal:t,built_in:a.concat(g),"variable.language":o},E={className:"meta",begin:"@"+f},x=(N,L,C)=>{const k=N.contains.findIndex(H=>H.label===L);if(k===-1)throw new Error("can not find mode to replace");N.contains.splice(k,1,C)};Object.assign(m.keywords,y),m.exports.PARAMS_CONTAINS.push(E);const A=m.contains.find(N=>N.className==="attr");m.exports.PARAMS_CONTAINS.push([m.exports.CLASS_REFERENCE,A]),m.contains=m.contains.concat([E,h,v]),x(m,"shebang",u.SHEBANG()),x(m,"use_strict",b);const w=m.contains.find(N=>N.label==="func.def");return w.relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),m}return T0=d,T0}var w0,pC;function det(){if(pC)return w0;pC=1;function n(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return w0=n,w0}var C0,hC;function uet(){if(hC)return C0;hC=1;function n(e){const t=e.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,s),/ *#/)},{begin:t.concat(/# */,l,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,s),/ +/,t.either(a,l),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},m={className:"label",begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),g=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,i,d,u,m,f,g,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[g]}]}}return C0=n,C0}var A0,mC;function pet(){if(mC)return A0;mC=1;function n(e){const t=e.regex,r=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],i=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],s={begin:t.concat(t.either(...r),"\\s*\\("),relevance:0,keywords:{built_in:r}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:i,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[s,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return A0=n,A0}var R0,fC;function het(){if(fC)return R0;fC=1;function n(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return R0=n,R0}var M0,gC;function met(){if(gC)return M0;gC=1;function n(e){const t=e.regex,r={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},i=["__FILE__","__LINE__"],s=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:r,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:t.concat(/`/,t.either(...i))},{scope:"meta",begin:t.concat(/`/,t.either(...s)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:s}]}}return M0=n,M0}var N0,_C;function fet(){if(_C)return N0;_C=1;function n(e){const t="\\d(_|\\d)*",r="[eE][-+]?"+t,i=t+"(\\."+t+")?("+r+")?",s="\\w+",a="\\b("+(t+"#"+s+"(\\."+s+")?#("+r+")?")+"|"+i+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:a,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return N0=n,N0}var k0,bC;function get(){if(bC)return k0;bC=1;function n(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return k0=n,k0}var I0,vC;function _et(){if(vC)return I0;vC=1;function n(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const r=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},l={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[r,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,s,e.QUOTE_STRING_MODE,d,u,l]}}return I0=n,I0}var O0,yC;function bet(){if(yC)return O0;yC=1;function n(e){const t=e.regex,r=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],s=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],l=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],d={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,r,/(?=\s*[({])/),className:"title.function"},u={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,r),t.either(...l)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:r}]}]}},m={variants:[{match:[/class\s+/,r,/\s+is\s+/,r]},{match:[/class\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},f={relevance:0,match:t.either(...l),className:"operator"},g={className:"string",begin:/"""/,end:/"""/},h={className:"property",begin:t.concat(/\./,t.lookahead(r)),end:r,excludeBegin:!0,relevance:0},v={relevance:0,match:t.concat(/\b_/,r),scope:"variable"},b={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},_=e.C_NUMBER_MODE,y={match:[r,/\s*/,/=/,/\s*/,/\(/,r,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},E=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),x={scope:"subst",begin:/%\(/,end:/\)/,contains:[_,b,d,v,f]},A={scope:"string",begin:/"/,end:/"/,contains:[x,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};x.contains.push(A);const w=[...i,...o,...s],N={relevance:0,match:t.concat("\\b(?!",w.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":o,literal:s},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:s},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},_,A,g,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,m,y,u,d,f,v,h,N]}}return O0=n,O0}var D0,EC;function vet(){if(EC)return D0;EC=1;function n(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return D0=n,D0}var L0,SC;function yet(){if(SC)return L0;SC=1;function n(e){const t=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],r=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],i=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],o={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:t,literal:["true","false","nil"],built_in:r.concat(i)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},l={className:"string",begin:"'",end:"'",illegal:"\\n"},d={className:"string",begin:"<<",end:">>"},u={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},m={beginKeywords:"import",end:"$",keywords:o,contains:[a]},f={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:o}})]};return{name:"XL",aliases:["tao"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,l,d,f,m,u,e.NUMBER_MODE]}}return L0=n,L0}var P0,xC;function Eet(){if(xC)return P0;xC=1;function n(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return P0=n,P0}var F0,TC;function xet(){if(TC)return F0;TC=1;function n(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},s="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[r,{className:"params",begin:/\(/,end:/\)/,keywords:s,contains:["self",e.C_BLOCK_COMMENT_MODE,t,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},r]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[r]},{beginKeywords:"use",end:/;/,contains:[r]},{begin:/=>/},t,i]}}return F0=n,F0}var re=YQe;re.registerLanguage("1c",$Qe());re.registerLanguage("abnf",WQe());re.registerLanguage("accesslog",KQe());re.registerLanguage("actionscript",jQe());re.registerLanguage("ada",QQe());re.registerLanguage("angelscript",XQe());re.registerLanguage("apache",ZQe());re.registerLanguage("applescript",JQe());re.registerLanguage("arcade",eXe());re.registerLanguage("arduino",tXe());re.registerLanguage("armasm",nXe());re.registerLanguage("xml",rXe());re.registerLanguage("asciidoc",iXe());re.registerLanguage("aspectj",sXe());re.registerLanguage("autohotkey",oXe());re.registerLanguage("autoit",aXe());re.registerLanguage("avrasm",lXe());re.registerLanguage("awk",cXe());re.registerLanguage("axapta",dXe());re.registerLanguage("bash",uXe());re.registerLanguage("basic",pXe());re.registerLanguage("bnf",hXe());re.registerLanguage("brainfuck",mXe());re.registerLanguage("c",fXe());re.registerLanguage("cal",gXe());re.registerLanguage("capnproto",_Xe());re.registerLanguage("ceylon",bXe());re.registerLanguage("clean",vXe());re.registerLanguage("clojure",yXe());re.registerLanguage("clojure-repl",EXe());re.registerLanguage("cmake",SXe());re.registerLanguage("coffeescript",xXe());re.registerLanguage("coq",TXe());re.registerLanguage("cos",wXe());re.registerLanguage("cpp",CXe());re.registerLanguage("crmsh",AXe());re.registerLanguage("crystal",RXe());re.registerLanguage("csharp",MXe());re.registerLanguage("csp",NXe());re.registerLanguage("css",kXe());re.registerLanguage("d",IXe());re.registerLanguage("markdown",OXe());re.registerLanguage("dart",DXe());re.registerLanguage("delphi",LXe());re.registerLanguage("diff",PXe());re.registerLanguage("django",FXe());re.registerLanguage("dns",UXe());re.registerLanguage("dockerfile",BXe());re.registerLanguage("dos",GXe());re.registerLanguage("dsconfig",zXe());re.registerLanguage("dts",VXe());re.registerLanguage("dust",HXe());re.registerLanguage("ebnf",qXe());re.registerLanguage("elixir",YXe());re.registerLanguage("elm",$Xe());re.registerLanguage("ruby",WXe());re.registerLanguage("erb",KXe());re.registerLanguage("erlang-repl",jXe());re.registerLanguage("erlang",QXe());re.registerLanguage("excel",XXe());re.registerLanguage("fix",ZXe());re.registerLanguage("flix",JXe());re.registerLanguage("fortran",eZe());re.registerLanguage("fsharp",tZe());re.registerLanguage("gams",nZe());re.registerLanguage("gauss",rZe());re.registerLanguage("gcode",iZe());re.registerLanguage("gherkin",sZe());re.registerLanguage("glsl",oZe());re.registerLanguage("gml",aZe());re.registerLanguage("go",lZe());re.registerLanguage("golo",cZe());re.registerLanguage("gradle",dZe());re.registerLanguage("graphql",uZe());re.registerLanguage("groovy",pZe());re.registerLanguage("haml",hZe());re.registerLanguage("handlebars",mZe());re.registerLanguage("haskell",fZe());re.registerLanguage("haxe",gZe());re.registerLanguage("hsp",_Ze());re.registerLanguage("http",bZe());re.registerLanguage("hy",vZe());re.registerLanguage("inform7",yZe());re.registerLanguage("ini",EZe());re.registerLanguage("irpf90",SZe());re.registerLanguage("isbl",xZe());re.registerLanguage("java",TZe());re.registerLanguage("javascript",wZe());re.registerLanguage("jboss-cli",CZe());re.registerLanguage("json",AZe());re.registerLanguage("julia",RZe());re.registerLanguage("julia-repl",MZe());re.registerLanguage("kotlin",NZe());re.registerLanguage("lasso",kZe());re.registerLanguage("latex",IZe());re.registerLanguage("ldif",OZe());re.registerLanguage("leaf",DZe());re.registerLanguage("less",LZe());re.registerLanguage("lisp",PZe());re.registerLanguage("livecodeserver",FZe());re.registerLanguage("livescript",UZe());re.registerLanguage("llvm",BZe());re.registerLanguage("lsl",GZe());re.registerLanguage("lua",zZe());re.registerLanguage("makefile",VZe());re.registerLanguage("mathematica",HZe());re.registerLanguage("matlab",qZe());re.registerLanguage("maxima",YZe());re.registerLanguage("mel",$Ze());re.registerLanguage("mercury",WZe());re.registerLanguage("mipsasm",KZe());re.registerLanguage("mizar",jZe());re.registerLanguage("perl",QZe());re.registerLanguage("mojolicious",XZe());re.registerLanguage("monkey",ZZe());re.registerLanguage("moonscript",JZe());re.registerLanguage("n1ql",eJe());re.registerLanguage("nestedtext",tJe());re.registerLanguage("nginx",nJe());re.registerLanguage("nim",rJe());re.registerLanguage("nix",iJe());re.registerLanguage("node-repl",sJe());re.registerLanguage("nsis",oJe());re.registerLanguage("objectivec",aJe());re.registerLanguage("ocaml",lJe());re.registerLanguage("openscad",cJe());re.registerLanguage("oxygene",dJe());re.registerLanguage("parser3",uJe());re.registerLanguage("pf",pJe());re.registerLanguage("pgsql",hJe());re.registerLanguage("php",mJe());re.registerLanguage("php-template",fJe());re.registerLanguage("plaintext",gJe());re.registerLanguage("pony",_Je());re.registerLanguage("powershell",bJe());re.registerLanguage("processing",vJe());re.registerLanguage("profile",yJe());re.registerLanguage("prolog",EJe());re.registerLanguage("properties",SJe());re.registerLanguage("protobuf",xJe());re.registerLanguage("puppet",TJe());re.registerLanguage("purebasic",wJe());re.registerLanguage("python",CJe());re.registerLanguage("python-repl",AJe());re.registerLanguage("q",RJe());re.registerLanguage("qml",MJe());re.registerLanguage("r",NJe());re.registerLanguage("reasonml",kJe());re.registerLanguage("rib",IJe());re.registerLanguage("roboconf",OJe());re.registerLanguage("routeros",DJe());re.registerLanguage("rsl",LJe());re.registerLanguage("ruleslanguage",PJe());re.registerLanguage("rust",FJe());re.registerLanguage("sas",UJe());re.registerLanguage("scala",BJe());re.registerLanguage("scheme",GJe());re.registerLanguage("scilab",zJe());re.registerLanguage("scss",VJe());re.registerLanguage("shell",HJe());re.registerLanguage("smali",qJe());re.registerLanguage("smalltalk",YJe());re.registerLanguage("sml",$Je());re.registerLanguage("sqf",WJe());re.registerLanguage("sql",KJe());re.registerLanguage("stan",jJe());re.registerLanguage("stata",QJe());re.registerLanguage("step21",XJe());re.registerLanguage("stylus",ZJe());re.registerLanguage("subunit",JJe());re.registerLanguage("swift",eet());re.registerLanguage("taggerscript",tet());re.registerLanguage("yaml",net());re.registerLanguage("tap",ret());re.registerLanguage("tcl",iet());re.registerLanguage("thrift",set());re.registerLanguage("tp",oet());re.registerLanguage("twig",aet());re.registerLanguage("typescript",cet());re.registerLanguage("vala",det());re.registerLanguage("vbnet",uet());re.registerLanguage("vbscript",pet());re.registerLanguage("vbscript-html",het());re.registerLanguage("verilog",met());re.registerLanguage("vhdl",fet());re.registerLanguage("vim",get());re.registerLanguage("wasm",_et());re.registerLanguage("wren",bet());re.registerLanguage("x86asm",vet());re.registerLanguage("xl",yet());re.registerLanguage("xquery",Eet());re.registerLanguage("zephir",xet());re.HighlightJS=re;re.default=re;var Tet=re;const Ea=Lo(Tet),wet="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.865%203.448l-6.583-3.167c-0.766-0.37-1.677-0.214-2.276%200.385l-12.609%2011.505-5.495-4.167c-0.51-0.391-1.229-0.359-1.703%200.073l-1.76%201.604c-0.583%200.526-0.583%201.443-0.005%201.969l4.766%204.349-4.766%204.349c-0.578%200.526-0.578%201.443%200.005%201.969l1.76%201.604c0.479%200.432%201.193%200.464%201.703%200.073l5.495-4.172%2012.615%2011.51c0.594%200.599%201.505%200.755%202.271%200.385l6.589-3.172c0.693-0.333%201.13-1.031%201.13-1.802v-21.495c0-0.766-0.443-1.469-1.135-1.802zM24.005%2023.266l-9.573-7.266%209.573-7.266z'/%3e%3c/svg%3e",Cet="data:image/svg+xml,%3csvg%20height='2455'%20viewBox='-11.9%20-2%201003.9%20995.6'%20width='2500'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12.1%20353.9s-24-17.3%204.8-40.4l67.1-60s19.2-20.2%2039.5-2.6l619.2%20468.8v224.8s-.3%2035.3-45.6%2031.4z'%20fill='%232489ca'/%3e%3cpath%20d='m171.7%20498.8-159.6%20145.1s-16.4%2012.2%200%2034l74.1%2067.4s17.6%2018.9%2043.6-2.6l169.2-128.3z'%20fill='%231070b3'/%3e%3cpath%20d='m451.9%20500%20292.7-223.5-1.9-223.6s-12.5-48.8-54.2-23.4l-389.5%20354.5z'%20fill='%230877b9'/%3e%3cpath%20d='m697.1%20976.2c17%2017.4%2037.6%2011.7%2037.6%2011.7l228.1-112.4c29.2-19.9%2025.1-44.6%2025.1-44.6v-671.2c0-29.5-30.2-39.7-30.2-39.7l-197.7-95.3c-43.2-26.7-71.5%204.8-71.5%204.8s36.4-26.2%2054.2%2023.4v887.5c0%206.1-1.3%2012.1-3.9%2017.5-5.2%2010.5-16.5%2020.3-43.6%2016.2z'%20fill='%233c99d4'/%3e%3c/svg%3e";Ea.configure({languages:[]});Ea.configure({languages:["bash"]});Ea.highlightAll();const Aet={props:{host:{type:String,required:!1,default:"http://localhost:9600"},language:{type:String,required:!0},client_id:{type:String,required:!0},code:{type:String,required:!0},discussion_id:{type:[String,Number],required:!0},message_id:{type:[String,Number],required:!0}},data(){return{isExecuting:!1,isCopied:!1,executionOutput:""}},mounted(){We(()=>{Ze.replace()})},computed:{highlightedCode(){let n;this.language==="vue"||this.language==="vue.js"?n="javascript":this.language==="function"?n="json":n=Ea.getLanguage(this.language)?this.language:"plaintext";const e=this.code.trim(),t=e.split(` +`),r=t.length.toString().length,i=t.map((d,u)=>(u+1).toString().padStart(r," ")),s=document.createElement("div");s.classList.add("line-numbers"),s.innerHTML=i.join("
    ");const o=document.createElement("div");o.classList.add("code-container");const a=document.createElement("pre"),l=document.createElement("code");return l.classList.add("code-content"),l.innerHTML=Ea.highlight(e,{language:n,ignoreIllegals:!0}).value,a.appendChild(l),o.appendChild(s),o.appendChild(a),o.outerHTML}},methods:{copyCode(){this.isCopied=!0,console.log("Copying code");const n=document.createElement("textarea");n.value=this.code,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),We(()=>{Ze.replace()})},executeCode(){this.isExecuting=!0;const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id?this.discussion_id:0,message_id:this.message_id?this.message_id:0,language:this.language});console.log(n),fetch(`${this.host}/execute_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},executeCode_in_new_tab(){this.isExecuting=!0;const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id,language:this.language});console.log(n),fetch(`${this.host}/execute_code_in_new_tab`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},openFolderVsCode(){const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id});console.log(n),fetch(`${this.host}/open_discussion_folder_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openVsCode(){const n=JSON.stringify({client_id:this.client_id,discussion_id:typeof this.discussion_id=="string"?parseInt(this.discussion_id):this.discussion_id,message_id:this.message_id,code:this.code});console.log(n),fetch(`${this.host}/open_code_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openFolder(){const n=JSON.stringify({client_id:this.client_id,discussion_id:this.discussion_id});console.log(n),fetch(`${this.host}/open_discussion_folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})}}},Ret={class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},Met={class:"hljs p-1 rounded-md break-all grid grid-cols-1"},Net={class:"code-container"},ket=["innerHTML"],Iet={class:"flex flex-row bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},Oet={class:"text-2xl mr-2"},Det=["title"],Let={key:0,class:"text-2xl"},Pet={key:1,class:"hljs mt-0 p-1 rounded-md break-all grid grid-cols-1"},Fet={class:"container h-[200px] overflow-x-auto break-all 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"},Uet=["innerHTML"];function Bet(n,e,t,r,i,s){return T(),M("div",Ret,[c("pre",Met,[e[9]||(e[9]=pt(" ")),c("div",Net,[e[7]||(e[7]=pt(` + `)),c("div",{class:"code-content overflow-x-auto break-all 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:s.highlightedCode,contenteditable:"true",onInput:e[0]||(e[0]=(...o)=>n.updateCode&&n.updateCode(...o))},null,40,ket),e[8]||(e[8]=pt(` + `))]),e[10]||(e[10]=pt(` + + `))]),c("div",Iet,[c("span",Oet,X(t.language.trim()),1),c("button",{onClick:e[1]||(e[1]=(...o)=>s.copyCode&&s.copyCode(...o)),title:i.isCopied?"Copied!":"Copy code",class:qe([i.isCopied?"bg-green-500":"","px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"])},e[11]||(e[11]=[c("i",{"data-feather":"copy"},null,-1)]),10,Det),["function","python","sh","shell","bash","cmd","powershell","latex","mermaid","graphviz","dot","javascript","html","html5","svg","lilypond"].includes(t.language)?(T(),M("button",{key:0,ref:"btn_code_exec",onClick:e[2]||(e[2]=(...o)=>s.executeCode&&s.executeCode(...o)),title:"execute",class:qe(["px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200",i.isExecuting?"bg-green-500":""])},e[12]||(e[12]=[c("i",{"data-feather":"play-circle"},null,-1)]),2)):Y("",!0),["airplay","mermaid","graphviz","dot","javascript","html","html5","svg","css"].includes(t.language.trim())?(T(),M("button",{key:1,ref:"btn_code_exec_in_new_tab",onClick:e[3]||(e[3]=(...o)=>s.executeCode_in_new_tab&&s.executeCode_in_new_tab(...o)),title:"execute",class:qe(["px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200",i.isExecuting?"bg-green-500":""])},e[13]||(e[13]=[c("i",{"data-feather":"airplay"},null,-1)]),2)):Y("",!0),c("button",{onClick:e[4]||(e[4]=(...o)=>s.openFolder&&s.openFolder(...o)),title:"open code project folder",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[14]||(e[14]=[c("i",{"data-feather":"folder"},null,-1)])),["python","latex","html"].includes(t.language.trim())?(T(),M("button",{key:2,onClick:e[5]||(e[5]=(...o)=>s.openFolderVsCode&&s.openFolderVsCode(...o)),title:"open code project folder in vscode",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[15]||(e[15]=[c("img",{src:wet,width:"25",height:"25"},null,-1)]))):Y("",!0),["python","latex","html"].includes(t.language.trim())?(T(),M("button",{key:3,onClick:e[6]||(e[6]=(...o)=>s.openVsCode&&s.openVsCode(...o)),title:"open code in vscode",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[16]||(e[16]=[c("img",{src:Cet,width:"25",height:"25"},null,-1)]))):Y("",!0)]),i.executionOutput?(T(),M("span",Let,"Execution output")):Y("",!0),i.executionOutput?(T(),M("pre",Pet,[e[19]||(e[19]=pt(" ")),c("div",Fet,[e[17]||(e[17]=pt(` + `)),c("div",{ref:"execution_output",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:i.executionOutput},null,8,Uet),e[18]||(e[18]=pt(` + `))]),e[20]||(e[20]=pt(` + `))])):Y("",!0)])}const Get=bt(Aet,[["render",Bet]]);var zet={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Z3,function(){function t(a,l){var d=a.pos;if(a.src.charCodeAt(d)!==92)return!1;var u=a.src.slice(++d).match(/^(?:\\\[|\\\(|begin\{([^}]*)\})/);if(!u)return!1;d+=u[0].length;var m,f,g;u[0]==="\\["?(m="display_math",f="\\\\]"):u[0]==="\\("?(m="inline_math",f="\\\\)"):u[1]&&(m="math",f="\\end{"+u[1]+"}",g=!0);var h=a.src.indexOf(f,d);if(h===-1)return!1;var v=h+f.length;if(!l){var b=a.push(m,"",0);b.content=g?a.src.slice(a.pos,v):a.src.slice(d,h)}return a.pos=v,!0}function r(a,l){var d=a.pos;if(a.src.charCodeAt(d)!==36)return!1;var u="$",m=a.src.charCodeAt(++d);if(m===36){if(u="$$",a.src.charCodeAt(++d)===36)return!1}else if(m===32||m===9||m===10)return!1;var f=a.src.indexOf(u,d);if(f===-1||a.src.charCodeAt(f-1)===92)return!1;var g=f+u.length;if(u.length===1){var h=a.src.charCodeAt(f-1);if(h===32||h===9||h===10)return!1;var v=a.src.charCodeAt(g);if(v>=48&&v<58)return!1}if(!l){var b=a.push(u.length===1?"inline_math":"display_math","",0);b.content=a.src.slice(d,f)}return a.pos=g,!0}function i(a){return a.replace(/&/g,"&").replace(/15?d="…"+a.slice(i-15,i):d=a.slice(0,i);var u;s+15":">","<":"<",'"':""","'":"'"},Wet=/[&><"']/g;function Ket(n){return String(n).replace(Wet,e=>$et[e])}var ZN=function n(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?n(e.body[0]):e:e.type==="font"?n(e.body):e},jet=function(e){var t=ZN(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},Qet=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Xet=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Et={contains:Vet,deflt:Het,escape:Ket,hyphenate:Yet,getBaseElem:ZN,isCharacterBox:jet,protocolFromUrl:Xet},dp={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:n=>"#"+n},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(n,e)=>(e.push(n),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:n=>Math.max(0,n),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:n=>Math.max(0,n),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:n=>Math.max(0,n),cli:"-e, --max-expand ",cliProcessor:n=>n==="Infinity"?1/0:parseInt(n)},globalGroup:{type:"boolean",cli:!1}};function Zet(n){if(n.default)return n.default;var e=n.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Kv{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in dp)if(dp.hasOwnProperty(t)){var r=dp[t];this[t]=e[t]!==void 0?r.processor?r.processor(e[t]):e[t]:Zet(r)}}reportNonstrict(e,t,r){var i=this.strict;if(typeof i=="function"&&(i=i(e,t,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Qe("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,r){var i=this.strict;if(typeof i=="function")try{i=i(e,t,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=Et.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var r=typeof this.trust=="function"?this.trust(e):this.trust;return!!r}}class js{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return Gi[Jet[this.id]]}sub(){return Gi[ett[this.id]]}fracNum(){return Gi[ttt[this.id]]}fracDen(){return Gi[ntt[this.id]]}cramp(){return Gi[rtt[this.id]]}text(){return Gi[itt[this.id]]}isTight(){return this.size>=2}}var jv=0,Fp=1,_l=2,Rs=3,hd=4,ri=5,Rl=6,_r=7,Gi=[new js(jv,0,!1),new js(Fp,0,!0),new js(_l,1,!1),new js(Rs,1,!0),new js(hd,2,!1),new js(ri,2,!0),new js(Rl,3,!1),new js(_r,3,!0)],Jet=[hd,ri,hd,ri,Rl,_r,Rl,_r],ett=[ri,ri,ri,ri,_r,_r,_r,_r],ttt=[_l,Rs,hd,ri,Rl,_r,Rl,_r],ntt=[Rs,Rs,ri,ri,_r,_r,_r,_r],rtt=[Fp,Fp,Rs,Rs,ri,ri,_r,_r],itt=[jv,Fp,_l,Rs,_l,Rs,_l,Rs],xt={DISPLAY:Gi[jv],TEXT:Gi[_l],SCRIPT:Gi[hd],SCRIPTSCRIPT:Gi[Rl]},g1=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function stt(n){for(var e=0;e=i[0]&&n<=i[1])return t.name}return null}var up=[];g1.forEach(n=>n.blocks.forEach(e=>up.push(...e)));function JN(n){for(var e=0;e=up[e]&&n<=up[e+1])return!0;return!1}var Ua=80,ott=function(e,t){return"M95,"+(622+e+t)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+" -"+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},att=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+" -"+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},ltt=function(e,t){return"M983 "+(10+e+t)+` +l`+e/3.13+" -"+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},ctt=function(e,t){return"M424,"+(2398+e+t)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+` +h400000v`+(40+e)+"h-400000z"},dtt=function(e,t){return"M473,"+(2713+e+t)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},utt=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},ptt=function(e,t,r){var i=r-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},htt=function(e,t,r){t=1e3*t;var i="";switch(e){case"sqrtMain":i=ott(t,Ua);break;case"sqrtSize1":i=att(t,Ua);break;case"sqrtSize2":i=ltt(t,Ua);break;case"sqrtSize3":i=ctt(t,Ua);break;case"sqrtSize4":i=dtt(t,Ua);break;case"sqrtTall":i=ptt(t,Ua,r)}return i},mtt=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},wC={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ftt=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z +M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z +M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z +M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Nd{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Et.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;tt.toText();return this.children.map(e).join("")}}var $i={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ou={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},CC={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function gtt(n,e){$i[n]=e}function Qv(n,e,t){if(!$i[e])throw new Error("Font metrics not found for font: "+e+".");var r=n.charCodeAt(0),i=$i[e][r];if(!i&&n[0]in CC&&(r=CC[n[0]].charCodeAt(0),i=$i[e][r]),!i&&t==="text"&&JN(r)&&(i=$i[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var U0={};function _tt(n){var e;if(n>=5?e=0:n>=3?e=1:e=2,!U0[e]){var t=U0[e]={cssEmPerMu:ou.quad[e]/18};for(var r in ou)ou.hasOwnProperty(r)&&(t[r]=ou[r][e])}return U0[e]}var btt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],AC=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],RC=function(e,t){return t.size<2?e:btt[e-1][t.size-1]};class ys{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||ys.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=AC[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new ys(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:RC(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:AC[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=RC(ys.BASESIZE,e);return this.size===t&&this.textSize===ys.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ys.BASESIZE?["sizing","reset-size"+this.size,"size"+ys.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=_tt(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ys.BASESIZE=6;var _1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},vtt={ex:!0,em:!0,mu:!0},ek=function(e){return typeof e!="string"&&(e=e.unit),e in _1||e in vtt||e==="ex"},Tn=function(e,t){var r;if(e.unit in _1)r=_1[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")r=t.fontMetrics().cssEmPerMu;else{var i;if(t.style.isTight()?i=t.havingStyle(t.style.text()):i=t,e.unit==="ex")r=i.fontMetrics().xHeight;else if(e.unit==="em")r=i.fontMetrics().quad;else throw new Qe("Invalid unit: '"+e.unit+"'");i!==t&&(r*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},Je=function(e){return+e.toFixed(4)+"em"},Mo=function(e){return e.filter(t=>t).join(" ")},tk=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var i=t.getColor();i&&(this.style.color=i)}},nk=function(e){var t=document.createElement(e);t.className=Mo(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&t.setAttribute(i,this.attributes[i]);for(var s=0;s",t};class kd{constructor(e,t,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,tk.call(this,e,r,i),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Et.contains(this.classes,e)}toNode(){return nk.call(this,"span")}toMarkup(){return rk.call(this,"span")}}class Xv{constructor(e,t,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,tk.call(this,t,i),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Et.contains(this.classes,e)}toNode(){return nk.call(this,"a")}toMarkup(){return rk.call(this,"a")}}class ytt{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return Et.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+Et.escape(this.alt)+'0&&(t=document.createElement("span"),t.style.marginRight=Je(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=Mo(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(t=t||document.createElement("span"),t.style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Et.hyphenate(i)+":"+this.style[i]+";");r&&(e=!0,t+=' style="'+Et.escape(r)+'"');var s=Et.escape(this.text);return e?(t+=">",t+=s,t+="
    ",t):s}}class Os{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class b1{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);return t}toMarkup(){var e=" but got "+String(n)+".")}var xtt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ttt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},_n={math:{},text:{}};function S(n,e,t,r,i,s){_n[n][i]={font:e,group:t,replace:r},s&&r&&(_n[n][r]=_n[n][i])}var R="math",He="text",O="main",j="ams",En="accent-token",ct="bin",Er="close",rc="inner",St="mathord",Fn="op-token",Yr="open",jh="punct",Q="rel",Gs="spacing",se="textord";S(R,O,Q,"≡","\\equiv",!0);S(R,O,Q,"≺","\\prec",!0);S(R,O,Q,"≻","\\succ",!0);S(R,O,Q,"∼","\\sim",!0);S(R,O,Q,"⊥","\\perp");S(R,O,Q,"⪯","\\preceq",!0);S(R,O,Q,"⪰","\\succeq",!0);S(R,O,Q,"≃","\\simeq",!0);S(R,O,Q,"∣","\\mid",!0);S(R,O,Q,"≪","\\ll",!0);S(R,O,Q,"≫","\\gg",!0);S(R,O,Q,"≍","\\asymp",!0);S(R,O,Q,"∥","\\parallel");S(R,O,Q,"⋈","\\bowtie",!0);S(R,O,Q,"⌣","\\smile",!0);S(R,O,Q,"⊑","\\sqsubseteq",!0);S(R,O,Q,"⊒","\\sqsupseteq",!0);S(R,O,Q,"≐","\\doteq",!0);S(R,O,Q,"⌢","\\frown",!0);S(R,O,Q,"∋","\\ni",!0);S(R,O,Q,"∝","\\propto",!0);S(R,O,Q,"⊢","\\vdash",!0);S(R,O,Q,"⊣","\\dashv",!0);S(R,O,Q,"∋","\\owns");S(R,O,jh,".","\\ldotp");S(R,O,jh,"⋅","\\cdotp");S(R,O,se,"#","\\#");S(He,O,se,"#","\\#");S(R,O,se,"&","\\&");S(He,O,se,"&","\\&");S(R,O,se,"ℵ","\\aleph",!0);S(R,O,se,"∀","\\forall",!0);S(R,O,se,"ℏ","\\hbar",!0);S(R,O,se,"∃","\\exists",!0);S(R,O,se,"∇","\\nabla",!0);S(R,O,se,"♭","\\flat",!0);S(R,O,se,"ℓ","\\ell",!0);S(R,O,se,"♮","\\natural",!0);S(R,O,se,"♣","\\clubsuit",!0);S(R,O,se,"℘","\\wp",!0);S(R,O,se,"♯","\\sharp",!0);S(R,O,se,"♢","\\diamondsuit",!0);S(R,O,se,"ℜ","\\Re",!0);S(R,O,se,"♡","\\heartsuit",!0);S(R,O,se,"ℑ","\\Im",!0);S(R,O,se,"♠","\\spadesuit",!0);S(R,O,se,"§","\\S",!0);S(He,O,se,"§","\\S");S(R,O,se,"¶","\\P",!0);S(He,O,se,"¶","\\P");S(R,O,se,"†","\\dag");S(He,O,se,"†","\\dag");S(He,O,se,"†","\\textdagger");S(R,O,se,"‡","\\ddag");S(He,O,se,"‡","\\ddag");S(He,O,se,"‡","\\textdaggerdbl");S(R,O,Er,"⎱","\\rmoustache",!0);S(R,O,Yr,"⎰","\\lmoustache",!0);S(R,O,Er,"⟯","\\rgroup",!0);S(R,O,Yr,"⟮","\\lgroup",!0);S(R,O,ct,"∓","\\mp",!0);S(R,O,ct,"⊖","\\ominus",!0);S(R,O,ct,"⊎","\\uplus",!0);S(R,O,ct,"⊓","\\sqcap",!0);S(R,O,ct,"∗","\\ast");S(R,O,ct,"⊔","\\sqcup",!0);S(R,O,ct,"◯","\\bigcirc",!0);S(R,O,ct,"∙","\\bullet",!0);S(R,O,ct,"‡","\\ddagger");S(R,O,ct,"≀","\\wr",!0);S(R,O,ct,"⨿","\\amalg");S(R,O,ct,"&","\\And");S(R,O,Q,"⟵","\\longleftarrow",!0);S(R,O,Q,"⇐","\\Leftarrow",!0);S(R,O,Q,"⟸","\\Longleftarrow",!0);S(R,O,Q,"⟶","\\longrightarrow",!0);S(R,O,Q,"⇒","\\Rightarrow",!0);S(R,O,Q,"⟹","\\Longrightarrow",!0);S(R,O,Q,"↔","\\leftrightarrow",!0);S(R,O,Q,"⟷","\\longleftrightarrow",!0);S(R,O,Q,"⇔","\\Leftrightarrow",!0);S(R,O,Q,"⟺","\\Longleftrightarrow",!0);S(R,O,Q,"↦","\\mapsto",!0);S(R,O,Q,"⟼","\\longmapsto",!0);S(R,O,Q,"↗","\\nearrow",!0);S(R,O,Q,"↩","\\hookleftarrow",!0);S(R,O,Q,"↪","\\hookrightarrow",!0);S(R,O,Q,"↘","\\searrow",!0);S(R,O,Q,"↼","\\leftharpoonup",!0);S(R,O,Q,"⇀","\\rightharpoonup",!0);S(R,O,Q,"↙","\\swarrow",!0);S(R,O,Q,"↽","\\leftharpoondown",!0);S(R,O,Q,"⇁","\\rightharpoondown",!0);S(R,O,Q,"↖","\\nwarrow",!0);S(R,O,Q,"⇌","\\rightleftharpoons",!0);S(R,j,Q,"≮","\\nless",!0);S(R,j,Q,"","\\@nleqslant");S(R,j,Q,"","\\@nleqq");S(R,j,Q,"⪇","\\lneq",!0);S(R,j,Q,"≨","\\lneqq",!0);S(R,j,Q,"","\\@lvertneqq");S(R,j,Q,"⋦","\\lnsim",!0);S(R,j,Q,"⪉","\\lnapprox",!0);S(R,j,Q,"⊀","\\nprec",!0);S(R,j,Q,"⋠","\\npreceq",!0);S(R,j,Q,"⋨","\\precnsim",!0);S(R,j,Q,"⪹","\\precnapprox",!0);S(R,j,Q,"≁","\\nsim",!0);S(R,j,Q,"","\\@nshortmid");S(R,j,Q,"∤","\\nmid",!0);S(R,j,Q,"⊬","\\nvdash",!0);S(R,j,Q,"⊭","\\nvDash",!0);S(R,j,Q,"⋪","\\ntriangleleft");S(R,j,Q,"⋬","\\ntrianglelefteq",!0);S(R,j,Q,"⊊","\\subsetneq",!0);S(R,j,Q,"","\\@varsubsetneq");S(R,j,Q,"⫋","\\subsetneqq",!0);S(R,j,Q,"","\\@varsubsetneqq");S(R,j,Q,"≯","\\ngtr",!0);S(R,j,Q,"","\\@ngeqslant");S(R,j,Q,"","\\@ngeqq");S(R,j,Q,"⪈","\\gneq",!0);S(R,j,Q,"≩","\\gneqq",!0);S(R,j,Q,"","\\@gvertneqq");S(R,j,Q,"⋧","\\gnsim",!0);S(R,j,Q,"⪊","\\gnapprox",!0);S(R,j,Q,"⊁","\\nsucc",!0);S(R,j,Q,"⋡","\\nsucceq",!0);S(R,j,Q,"⋩","\\succnsim",!0);S(R,j,Q,"⪺","\\succnapprox",!0);S(R,j,Q,"≆","\\ncong",!0);S(R,j,Q,"","\\@nshortparallel");S(R,j,Q,"∦","\\nparallel",!0);S(R,j,Q,"⊯","\\nVDash",!0);S(R,j,Q,"⋫","\\ntriangleright");S(R,j,Q,"⋭","\\ntrianglerighteq",!0);S(R,j,Q,"","\\@nsupseteqq");S(R,j,Q,"⊋","\\supsetneq",!0);S(R,j,Q,"","\\@varsupsetneq");S(R,j,Q,"⫌","\\supsetneqq",!0);S(R,j,Q,"","\\@varsupsetneqq");S(R,j,Q,"⊮","\\nVdash",!0);S(R,j,Q,"⪵","\\precneqq",!0);S(R,j,Q,"⪶","\\succneqq",!0);S(R,j,Q,"","\\@nsubseteqq");S(R,j,ct,"⊴","\\unlhd");S(R,j,ct,"⊵","\\unrhd");S(R,j,Q,"↚","\\nleftarrow",!0);S(R,j,Q,"↛","\\nrightarrow",!0);S(R,j,Q,"⇍","\\nLeftarrow",!0);S(R,j,Q,"⇏","\\nRightarrow",!0);S(R,j,Q,"↮","\\nleftrightarrow",!0);S(R,j,Q,"⇎","\\nLeftrightarrow",!0);S(R,j,Q,"△","\\vartriangle");S(R,j,se,"ℏ","\\hslash");S(R,j,se,"▽","\\triangledown");S(R,j,se,"◊","\\lozenge");S(R,j,se,"Ⓢ","\\circledS");S(R,j,se,"®","\\circledR");S(He,j,se,"®","\\circledR");S(R,j,se,"∡","\\measuredangle",!0);S(R,j,se,"∄","\\nexists");S(R,j,se,"℧","\\mho");S(R,j,se,"Ⅎ","\\Finv",!0);S(R,j,se,"⅁","\\Game",!0);S(R,j,se,"‵","\\backprime");S(R,j,se,"▲","\\blacktriangle");S(R,j,se,"▼","\\blacktriangledown");S(R,j,se,"■","\\blacksquare");S(R,j,se,"⧫","\\blacklozenge");S(R,j,se,"★","\\bigstar");S(R,j,se,"∢","\\sphericalangle",!0);S(R,j,se,"∁","\\complement",!0);S(R,j,se,"ð","\\eth",!0);S(He,O,se,"ð","ð");S(R,j,se,"╱","\\diagup");S(R,j,se,"╲","\\diagdown");S(R,j,se,"□","\\square");S(R,j,se,"□","\\Box");S(R,j,se,"◊","\\Diamond");S(R,j,se,"¥","\\yen",!0);S(He,j,se,"¥","\\yen",!0);S(R,j,se,"✓","\\checkmark",!0);S(He,j,se,"✓","\\checkmark");S(R,j,se,"ℶ","\\beth",!0);S(R,j,se,"ℸ","\\daleth",!0);S(R,j,se,"ℷ","\\gimel",!0);S(R,j,se,"ϝ","\\digamma",!0);S(R,j,se,"ϰ","\\varkappa");S(R,j,Yr,"┌","\\@ulcorner",!0);S(R,j,Er,"┐","\\@urcorner",!0);S(R,j,Yr,"└","\\@llcorner",!0);S(R,j,Er,"┘","\\@lrcorner",!0);S(R,j,Q,"≦","\\leqq",!0);S(R,j,Q,"⩽","\\leqslant",!0);S(R,j,Q,"⪕","\\eqslantless",!0);S(R,j,Q,"≲","\\lesssim",!0);S(R,j,Q,"⪅","\\lessapprox",!0);S(R,j,Q,"≊","\\approxeq",!0);S(R,j,ct,"⋖","\\lessdot");S(R,j,Q,"⋘","\\lll",!0);S(R,j,Q,"≶","\\lessgtr",!0);S(R,j,Q,"⋚","\\lesseqgtr",!0);S(R,j,Q,"⪋","\\lesseqqgtr",!0);S(R,j,Q,"≑","\\doteqdot");S(R,j,Q,"≓","\\risingdotseq",!0);S(R,j,Q,"≒","\\fallingdotseq",!0);S(R,j,Q,"∽","\\backsim",!0);S(R,j,Q,"⋍","\\backsimeq",!0);S(R,j,Q,"⫅","\\subseteqq",!0);S(R,j,Q,"⋐","\\Subset",!0);S(R,j,Q,"⊏","\\sqsubset",!0);S(R,j,Q,"≼","\\preccurlyeq",!0);S(R,j,Q,"⋞","\\curlyeqprec",!0);S(R,j,Q,"≾","\\precsim",!0);S(R,j,Q,"⪷","\\precapprox",!0);S(R,j,Q,"⊲","\\vartriangleleft");S(R,j,Q,"⊴","\\trianglelefteq");S(R,j,Q,"⊨","\\vDash",!0);S(R,j,Q,"⊪","\\Vvdash",!0);S(R,j,Q,"⌣","\\smallsmile");S(R,j,Q,"⌢","\\smallfrown");S(R,j,Q,"≏","\\bumpeq",!0);S(R,j,Q,"≎","\\Bumpeq",!0);S(R,j,Q,"≧","\\geqq",!0);S(R,j,Q,"⩾","\\geqslant",!0);S(R,j,Q,"⪖","\\eqslantgtr",!0);S(R,j,Q,"≳","\\gtrsim",!0);S(R,j,Q,"⪆","\\gtrapprox",!0);S(R,j,ct,"⋗","\\gtrdot");S(R,j,Q,"⋙","\\ggg",!0);S(R,j,Q,"≷","\\gtrless",!0);S(R,j,Q,"⋛","\\gtreqless",!0);S(R,j,Q,"⪌","\\gtreqqless",!0);S(R,j,Q,"≖","\\eqcirc",!0);S(R,j,Q,"≗","\\circeq",!0);S(R,j,Q,"≜","\\triangleq",!0);S(R,j,Q,"∼","\\thicksim");S(R,j,Q,"≈","\\thickapprox");S(R,j,Q,"⫆","\\supseteqq",!0);S(R,j,Q,"⋑","\\Supset",!0);S(R,j,Q,"⊐","\\sqsupset",!0);S(R,j,Q,"≽","\\succcurlyeq",!0);S(R,j,Q,"⋟","\\curlyeqsucc",!0);S(R,j,Q,"≿","\\succsim",!0);S(R,j,Q,"⪸","\\succapprox",!0);S(R,j,Q,"⊳","\\vartriangleright");S(R,j,Q,"⊵","\\trianglerighteq");S(R,j,Q,"⊩","\\Vdash",!0);S(R,j,Q,"∣","\\shortmid");S(R,j,Q,"∥","\\shortparallel");S(R,j,Q,"≬","\\between",!0);S(R,j,Q,"⋔","\\pitchfork",!0);S(R,j,Q,"∝","\\varpropto");S(R,j,Q,"◀","\\blacktriangleleft");S(R,j,Q,"∴","\\therefore",!0);S(R,j,Q,"∍","\\backepsilon");S(R,j,Q,"▶","\\blacktriangleright");S(R,j,Q,"∵","\\because",!0);S(R,j,Q,"⋘","\\llless");S(R,j,Q,"⋙","\\gggtr");S(R,j,ct,"⊲","\\lhd");S(R,j,ct,"⊳","\\rhd");S(R,j,Q,"≂","\\eqsim",!0);S(R,O,Q,"⋈","\\Join");S(R,j,Q,"≑","\\Doteq",!0);S(R,j,ct,"∔","\\dotplus",!0);S(R,j,ct,"∖","\\smallsetminus");S(R,j,ct,"⋒","\\Cap",!0);S(R,j,ct,"⋓","\\Cup",!0);S(R,j,ct,"⩞","\\doublebarwedge",!0);S(R,j,ct,"⊟","\\boxminus",!0);S(R,j,ct,"⊞","\\boxplus",!0);S(R,j,ct,"⋇","\\divideontimes",!0);S(R,j,ct,"⋉","\\ltimes",!0);S(R,j,ct,"⋊","\\rtimes",!0);S(R,j,ct,"⋋","\\leftthreetimes",!0);S(R,j,ct,"⋌","\\rightthreetimes",!0);S(R,j,ct,"⋏","\\curlywedge",!0);S(R,j,ct,"⋎","\\curlyvee",!0);S(R,j,ct,"⊝","\\circleddash",!0);S(R,j,ct,"⊛","\\circledast",!0);S(R,j,ct,"⋅","\\centerdot");S(R,j,ct,"⊺","\\intercal",!0);S(R,j,ct,"⋒","\\doublecap");S(R,j,ct,"⋓","\\doublecup");S(R,j,ct,"⊠","\\boxtimes",!0);S(R,j,Q,"⇢","\\dashrightarrow",!0);S(R,j,Q,"⇠","\\dashleftarrow",!0);S(R,j,Q,"⇇","\\leftleftarrows",!0);S(R,j,Q,"⇆","\\leftrightarrows",!0);S(R,j,Q,"⇚","\\Lleftarrow",!0);S(R,j,Q,"↞","\\twoheadleftarrow",!0);S(R,j,Q,"↢","\\leftarrowtail",!0);S(R,j,Q,"↫","\\looparrowleft",!0);S(R,j,Q,"⇋","\\leftrightharpoons",!0);S(R,j,Q,"↶","\\curvearrowleft",!0);S(R,j,Q,"↺","\\circlearrowleft",!0);S(R,j,Q,"↰","\\Lsh",!0);S(R,j,Q,"⇈","\\upuparrows",!0);S(R,j,Q,"↿","\\upharpoonleft",!0);S(R,j,Q,"⇃","\\downharpoonleft",!0);S(R,O,Q,"⊶","\\origof",!0);S(R,O,Q,"⊷","\\imageof",!0);S(R,j,Q,"⊸","\\multimap",!0);S(R,j,Q,"↭","\\leftrightsquigarrow",!0);S(R,j,Q,"⇉","\\rightrightarrows",!0);S(R,j,Q,"⇄","\\rightleftarrows",!0);S(R,j,Q,"↠","\\twoheadrightarrow",!0);S(R,j,Q,"↣","\\rightarrowtail",!0);S(R,j,Q,"↬","\\looparrowright",!0);S(R,j,Q,"↷","\\curvearrowright",!0);S(R,j,Q,"↻","\\circlearrowright",!0);S(R,j,Q,"↱","\\Rsh",!0);S(R,j,Q,"⇊","\\downdownarrows",!0);S(R,j,Q,"↾","\\upharpoonright",!0);S(R,j,Q,"⇂","\\downharpoonright",!0);S(R,j,Q,"⇝","\\rightsquigarrow",!0);S(R,j,Q,"⇝","\\leadsto");S(R,j,Q,"⇛","\\Rrightarrow",!0);S(R,j,Q,"↾","\\restriction");S(R,O,se,"‘","`");S(R,O,se,"$","\\$");S(He,O,se,"$","\\$");S(He,O,se,"$","\\textdollar");S(R,O,se,"%","\\%");S(He,O,se,"%","\\%");S(R,O,se,"_","\\_");S(He,O,se,"_","\\_");S(He,O,se,"_","\\textunderscore");S(R,O,se,"∠","\\angle",!0);S(R,O,se,"∞","\\infty",!0);S(R,O,se,"′","\\prime");S(R,O,se,"△","\\triangle");S(R,O,se,"Γ","\\Gamma",!0);S(R,O,se,"Δ","\\Delta",!0);S(R,O,se,"Θ","\\Theta",!0);S(R,O,se,"Λ","\\Lambda",!0);S(R,O,se,"Ξ","\\Xi",!0);S(R,O,se,"Π","\\Pi",!0);S(R,O,se,"Σ","\\Sigma",!0);S(R,O,se,"Υ","\\Upsilon",!0);S(R,O,se,"Φ","\\Phi",!0);S(R,O,se,"Ψ","\\Psi",!0);S(R,O,se,"Ω","\\Omega",!0);S(R,O,se,"A","Α");S(R,O,se,"B","Β");S(R,O,se,"E","Ε");S(R,O,se,"Z","Ζ");S(R,O,se,"H","Η");S(R,O,se,"I","Ι");S(R,O,se,"K","Κ");S(R,O,se,"M","Μ");S(R,O,se,"N","Ν");S(R,O,se,"O","Ο");S(R,O,se,"P","Ρ");S(R,O,se,"T","Τ");S(R,O,se,"X","Χ");S(R,O,se,"¬","\\neg",!0);S(R,O,se,"¬","\\lnot");S(R,O,se,"⊤","\\top");S(R,O,se,"⊥","\\bot");S(R,O,se,"∅","\\emptyset");S(R,j,se,"∅","\\varnothing");S(R,O,St,"α","\\alpha",!0);S(R,O,St,"β","\\beta",!0);S(R,O,St,"γ","\\gamma",!0);S(R,O,St,"δ","\\delta",!0);S(R,O,St,"ϵ","\\epsilon",!0);S(R,O,St,"ζ","\\zeta",!0);S(R,O,St,"η","\\eta",!0);S(R,O,St,"θ","\\theta",!0);S(R,O,St,"ι","\\iota",!0);S(R,O,St,"κ","\\kappa",!0);S(R,O,St,"λ","\\lambda",!0);S(R,O,St,"μ","\\mu",!0);S(R,O,St,"ν","\\nu",!0);S(R,O,St,"ξ","\\xi",!0);S(R,O,St,"ο","\\omicron",!0);S(R,O,St,"π","\\pi",!0);S(R,O,St,"ρ","\\rho",!0);S(R,O,St,"σ","\\sigma",!0);S(R,O,St,"τ","\\tau",!0);S(R,O,St,"υ","\\upsilon",!0);S(R,O,St,"ϕ","\\phi",!0);S(R,O,St,"χ","\\chi",!0);S(R,O,St,"ψ","\\psi",!0);S(R,O,St,"ω","\\omega",!0);S(R,O,St,"ε","\\varepsilon",!0);S(R,O,St,"ϑ","\\vartheta",!0);S(R,O,St,"ϖ","\\varpi",!0);S(R,O,St,"ϱ","\\varrho",!0);S(R,O,St,"ς","\\varsigma",!0);S(R,O,St,"φ","\\varphi",!0);S(R,O,ct,"∗","*",!0);S(R,O,ct,"+","+");S(R,O,ct,"−","-",!0);S(R,O,ct,"⋅","\\cdot",!0);S(R,O,ct,"∘","\\circ",!0);S(R,O,ct,"÷","\\div",!0);S(R,O,ct,"±","\\pm",!0);S(R,O,ct,"×","\\times",!0);S(R,O,ct,"∩","\\cap",!0);S(R,O,ct,"∪","\\cup",!0);S(R,O,ct,"∖","\\setminus",!0);S(R,O,ct,"∧","\\land");S(R,O,ct,"∨","\\lor");S(R,O,ct,"∧","\\wedge",!0);S(R,O,ct,"∨","\\vee",!0);S(R,O,se,"√","\\surd");S(R,O,Yr,"⟨","\\langle",!0);S(R,O,Yr,"∣","\\lvert");S(R,O,Yr,"∥","\\lVert");S(R,O,Er,"?","?");S(R,O,Er,"!","!");S(R,O,Er,"⟩","\\rangle",!0);S(R,O,Er,"∣","\\rvert");S(R,O,Er,"∥","\\rVert");S(R,O,Q,"=","=");S(R,O,Q,":",":");S(R,O,Q,"≈","\\approx",!0);S(R,O,Q,"≅","\\cong",!0);S(R,O,Q,"≥","\\ge");S(R,O,Q,"≥","\\geq",!0);S(R,O,Q,"←","\\gets");S(R,O,Q,">","\\gt",!0);S(R,O,Q,"∈","\\in",!0);S(R,O,Q,"","\\@not");S(R,O,Q,"⊂","\\subset",!0);S(R,O,Q,"⊃","\\supset",!0);S(R,O,Q,"⊆","\\subseteq",!0);S(R,O,Q,"⊇","\\supseteq",!0);S(R,j,Q,"⊈","\\nsubseteq",!0);S(R,j,Q,"⊉","\\nsupseteq",!0);S(R,O,Q,"⊨","\\models");S(R,O,Q,"←","\\leftarrow",!0);S(R,O,Q,"≤","\\le");S(R,O,Q,"≤","\\leq",!0);S(R,O,Q,"<","\\lt",!0);S(R,O,Q,"→","\\rightarrow",!0);S(R,O,Q,"→","\\to");S(R,j,Q,"≱","\\ngeq",!0);S(R,j,Q,"≰","\\nleq",!0);S(R,O,Gs," ","\\ ");S(R,O,Gs," ","\\space");S(R,O,Gs," ","\\nobreakspace");S(He,O,Gs," ","\\ ");S(He,O,Gs," "," ");S(He,O,Gs," ","\\space");S(He,O,Gs," ","\\nobreakspace");S(R,O,Gs,null,"\\nobreak");S(R,O,Gs,null,"\\allowbreak");S(R,O,jh,",",",");S(R,O,jh,";",";");S(R,j,ct,"⊼","\\barwedge",!0);S(R,j,ct,"⊻","\\veebar",!0);S(R,O,ct,"⊙","\\odot",!0);S(R,O,ct,"⊕","\\oplus",!0);S(R,O,ct,"⊗","\\otimes",!0);S(R,O,se,"∂","\\partial",!0);S(R,O,ct,"⊘","\\oslash",!0);S(R,j,ct,"⊚","\\circledcirc",!0);S(R,j,ct,"⊡","\\boxdot",!0);S(R,O,ct,"△","\\bigtriangleup");S(R,O,ct,"▽","\\bigtriangledown");S(R,O,ct,"†","\\dagger");S(R,O,ct,"⋄","\\diamond");S(R,O,ct,"⋆","\\star");S(R,O,ct,"◃","\\triangleleft");S(R,O,ct,"▹","\\triangleright");S(R,O,Yr,"{","\\{");S(He,O,se,"{","\\{");S(He,O,se,"{","\\textbraceleft");S(R,O,Er,"}","\\}");S(He,O,se,"}","\\}");S(He,O,se,"}","\\textbraceright");S(R,O,Yr,"{","\\lbrace");S(R,O,Er,"}","\\rbrace");S(R,O,Yr,"[","\\lbrack",!0);S(He,O,se,"[","\\lbrack",!0);S(R,O,Er,"]","\\rbrack",!0);S(He,O,se,"]","\\rbrack",!0);S(R,O,Yr,"(","\\lparen",!0);S(R,O,Er,")","\\rparen",!0);S(He,O,se,"<","\\textless",!0);S(He,O,se,">","\\textgreater",!0);S(R,O,Yr,"⌊","\\lfloor",!0);S(R,O,Er,"⌋","\\rfloor",!0);S(R,O,Yr,"⌈","\\lceil",!0);S(R,O,Er,"⌉","\\rceil",!0);S(R,O,se,"\\","\\backslash");S(R,O,se,"∣","|");S(R,O,se,"∣","\\vert");S(He,O,se,"|","\\textbar",!0);S(R,O,se,"∥","\\|");S(R,O,se,"∥","\\Vert");S(He,O,se,"∥","\\textbardbl");S(He,O,se,"~","\\textasciitilde");S(He,O,se,"\\","\\textbackslash");S(He,O,se,"^","\\textasciicircum");S(R,O,Q,"↑","\\uparrow",!0);S(R,O,Q,"⇑","\\Uparrow",!0);S(R,O,Q,"↓","\\downarrow",!0);S(R,O,Q,"⇓","\\Downarrow",!0);S(R,O,Q,"↕","\\updownarrow",!0);S(R,O,Q,"⇕","\\Updownarrow",!0);S(R,O,Fn,"∐","\\coprod");S(R,O,Fn,"⋁","\\bigvee");S(R,O,Fn,"⋀","\\bigwedge");S(R,O,Fn,"⨄","\\biguplus");S(R,O,Fn,"⋂","\\bigcap");S(R,O,Fn,"⋃","\\bigcup");S(R,O,Fn,"∫","\\int");S(R,O,Fn,"∫","\\intop");S(R,O,Fn,"∬","\\iint");S(R,O,Fn,"∭","\\iiint");S(R,O,Fn,"∏","\\prod");S(R,O,Fn,"∑","\\sum");S(R,O,Fn,"⨂","\\bigotimes");S(R,O,Fn,"⨁","\\bigoplus");S(R,O,Fn,"⨀","\\bigodot");S(R,O,Fn,"∮","\\oint");S(R,O,Fn,"∯","\\oiint");S(R,O,Fn,"∰","\\oiiint");S(R,O,Fn,"⨆","\\bigsqcup");S(R,O,Fn,"∫","\\smallint");S(He,O,rc,"…","\\textellipsis");S(R,O,rc,"…","\\mathellipsis");S(He,O,rc,"…","\\ldots",!0);S(R,O,rc,"…","\\ldots",!0);S(R,O,rc,"⋯","\\@cdots",!0);S(R,O,rc,"⋱","\\ddots",!0);S(R,O,se,"⋮","\\varvdots");S(R,O,En,"ˊ","\\acute");S(R,O,En,"ˋ","\\grave");S(R,O,En,"¨","\\ddot");S(R,O,En,"~","\\tilde");S(R,O,En,"ˉ","\\bar");S(R,O,En,"˘","\\breve");S(R,O,En,"ˇ","\\check");S(R,O,En,"^","\\hat");S(R,O,En,"⃗","\\vec");S(R,O,En,"˙","\\dot");S(R,O,En,"˚","\\mathring");S(R,O,St,"","\\@imath");S(R,O,St,"","\\@jmath");S(R,O,se,"ı","ı");S(R,O,se,"ȷ","ȷ");S(He,O,se,"ı","\\i",!0);S(He,O,se,"ȷ","\\j",!0);S(He,O,se,"ß","\\ss",!0);S(He,O,se,"æ","\\ae",!0);S(He,O,se,"œ","\\oe",!0);S(He,O,se,"ø","\\o",!0);S(He,O,se,"Æ","\\AE",!0);S(He,O,se,"Œ","\\OE",!0);S(He,O,se,"Ø","\\O",!0);S(He,O,En,"ˊ","\\'");S(He,O,En,"ˋ","\\`");S(He,O,En,"ˆ","\\^");S(He,O,En,"˜","\\~");S(He,O,En,"ˉ","\\=");S(He,O,En,"˘","\\u");S(He,O,En,"˙","\\.");S(He,O,En,"¸","\\c");S(He,O,En,"˚","\\r");S(He,O,En,"ˇ","\\v");S(He,O,En,"¨",'\\"');S(He,O,En,"˝","\\H");S(He,O,En,"◯","\\textcircled");var ik={"--":!0,"---":!0,"``":!0,"''":!0};S(He,O,se,"–","--",!0);S(He,O,se,"–","\\textendash");S(He,O,se,"—","---",!0);S(He,O,se,"—","\\textemdash");S(He,O,se,"‘","`",!0);S(He,O,se,"‘","\\textquoteleft");S(He,O,se,"’","'",!0);S(He,O,se,"’","\\textquoteright");S(He,O,se,"“","``",!0);S(He,O,se,"“","\\textquotedblleft");S(He,O,se,"”","''",!0);S(He,O,se,"”","\\textquotedblright");S(R,O,se,"°","\\degree",!0);S(He,O,se,"°","\\degree");S(He,O,se,"°","\\textdegree",!0);S(R,O,se,"£","\\pounds");S(R,O,se,"£","\\mathsterling",!0);S(He,O,se,"£","\\pounds");S(He,O,se,"£","\\textsterling",!0);S(R,j,se,"✠","\\maltese");S(He,j,se,"✠","\\maltese");var NC='0123456789/@."';for(var B0=0;B00)return xi(s,d,i,t,o.concat(u));if(l){var m,f;if(l==="boldsymbol"){var g=Att(s,i,t,o,r);m=g.fontName,f=[g.fontClass]}else a?(m=ak[l].fontName,f=[l]):(m=du(l,t.fontWeight,t.fontShape),f=[l,t.fontWeight,t.fontShape]);if(Qh(s,m,i).metrics)return xi(s,m,i,t,o.concat(f));if(ik.hasOwnProperty(s)&&m.slice(0,10)==="Typewriter"){for(var h=[],v=0;v{if(Mo(n.classes)!==Mo(e.classes)||n.skew!==e.skew||n.maxFontSize!==e.maxFontSize)return!1;if(n.classes.length===1){var t=n.classes[0];if(t==="mbin"||t==="mord")return!1}for(var r in n.style)if(n.style.hasOwnProperty(r)&&n.style[r]!==e.style[r])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&n.style[i]!==e.style[i])return!1;return!0},Ntt=n=>{for(var e=0;et&&(t=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=i},Tr=function(e,t,r,i){var s=new kd(e,t,r,i);return Zv(s),s},sk=(n,e,t,r)=>new kd(n,e,t,r),ktt=function(e,t,r){var i=Tr([e],[],t);return i.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=Je(i.height),i.maxFontSize=1,i},Itt=function(e,t,r,i){var s=new Xv(e,t,r,i);return Zv(s),s},ok=function(e){var t=new Nd(e);return Zv(t),t},Ott=function(e,t){return e instanceof Nd?Tr([],[e],t):e},Dtt=function(e){if(e.positionType==="individualShift"){for(var t=e.children,r=[t[0]],i=-t[0].shift-t[0].elem.depth,s=i,o=1;o{var t=Tr(["mspace"],[],e),r=Tn(n,e);return t.style.marginRight=Je(r),t},du=function(e,t,r){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var s;return t==="textbf"&&r==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",i+"-"+s},ak={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},lk={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ftt=function(e,t){var[r,i,s]=lk[e],o=new No(r),a=new Os([o],{width:Je(i),height:Je(s),style:"width:"+Je(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),l=sk(["overlay"],[a],t);return l.height=s,l.style.height=Je(s),l.style.width=Je(i),l},ve={fontMap:ak,makeSymbol:xi,mathsym:Ctt,makeSpan:Tr,makeSvgSpan:sk,makeLineSpan:ktt,makeAnchor:Itt,makeFragment:ok,wrapFragment:Ott,makeVList:Ltt,makeOrd:Rtt,makeGlue:Ptt,staticSvg:Ftt,svgData:lk,tryCombineChars:Ntt},xn={number:3,unit:"mu"},Yo={number:4,unit:"mu"},ds={number:5,unit:"mu"},Utt={mord:{mop:xn,mbin:Yo,mrel:ds,minner:xn},mop:{mord:xn,mop:xn,mrel:ds,minner:xn},mbin:{mord:Yo,mop:Yo,mopen:Yo,minner:Yo},mrel:{mord:ds,mop:ds,mopen:ds,minner:ds},mopen:{},mclose:{mop:xn,mbin:Yo,mrel:ds,minner:xn},mpunct:{mord:xn,mop:xn,mrel:ds,mopen:xn,mclose:xn,mpunct:xn,minner:xn},minner:{mord:xn,mop:xn,mbin:Yo,mrel:ds,mopen:xn,mpunct:xn,minner:xn}},Btt={mord:{mop:xn},mop:{mord:xn,mop:xn},mbin:{},mrel:{},mopen:{},mclose:{mop:xn},mpunct:{},minner:{mop:xn}},ck={},Bp={},Gp={};function st(n){for(var{type:e,names:t,props:r,handler:i,htmlBuilder:s,mathmlBuilder:o}=n,a={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var b=v.classes[0],_=h.classes[0];b==="mbin"&&Et.contains(ztt,_)?v.classes[0]="mord":_==="mbin"&&Et.contains(Gtt,b)&&(h.classes[0]="mord")},{node:m},f,g),LC(s,(h,v)=>{var b=y1(v),_=y1(h),y=b&&_?h.hasClass("mtight")?Btt[b][_]:Utt[b][_]:null;if(y)return ve.makeGlue(y,d)},{node:m},f,g),s},LC=function n(e,t,r,i,s){i&&e.push(i);for(var o=0;of=>{e.splice(m+1,0,f),o++})(o)}i&&e.pop()},dk=function(e){return e instanceof Nd||e instanceof Xv||e instanceof kd&&e.hasClass("enclosing")?e:null},qtt=function n(e,t){var r=dk(e);if(r){var i=r.children;if(i.length){if(t==="right")return n(i[i.length-1],"right");if(t==="left")return n(i[0],"left")}}return e},y1=function(e,t){return e?(t&&(e=qtt(e,t)),Htt[e.classes[0]]||null):null},md=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Ds(t.concat(r))},Zt=function(e,t,r){if(!e)return Ds();if(Bp[e.type]){var i=Bp[e.type](e,t);if(r&&t.size!==r.size){i=Ds(t.sizingClasses(r),[i],t);var s=t.sizeMultiplier/r.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new Qe("Got group of unknown type: '"+e.type+"'")};function uu(n,e){var t=Ds(["base"],n,e),r=Ds(["strut"]);return r.style.height=Je(t.height+t.depth),t.depth&&(r.style.verticalAlign=Je(-t.depth)),t.children.unshift(r),t}function E1(n,e){var t=null;n.length===1&&n[0].type==="tag"&&(t=n[0].tag,n=n[0].body);var r=zn(n,e,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var s=[],o=[],a=0;a0&&(s.push(uu(o,e)),o=[]),s.push(r[a]));o.length>0&&s.push(uu(o,e));var d;t?(d=uu(zn(t,e,!0)),d.classes=["tag"],s.push(d)):i&&s.push(i);var u=Ds(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),d){var m=d.children[0];m.style.height=Je(u.height+u.depth),u.depth&&(m.style.verticalAlign=Je(-u.depth))}return u}function uk(n){return new Nd(n)}class Zr{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Mo(this.classes));for(var r=0;r0&&(e+=' class ="'+Et.escape(Mo(this.classes))+'"'),e+=">";for(var r=0;r",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Hc{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Et.escape(this.toText())}toText(){return this.text}}class Ytt{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Je(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Ke={MathNode:Zr,TextNode:Hc,SpaceNode:Ytt,newDocumentFragment:uk},mi=function(e,t,r){return _n[t][e]&&_n[t][e].replace&&e.charCodeAt(0)!==55349&&!(ik.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=_n[t][e].replace),new Ke.TextNode(e)},Jv=function(e){return e.length===1?e[0]:new Ke.MathNode("mrow",e)},ey=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var r=t.font;if(!r||r==="mathnormal")return null;var i=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var s=e.text;if(Et.contains(["\\imath","\\jmath"],s))return null;_n[i][s]&&_n[i][s].replace&&(s=_n[i][s].replace);var o=ve.fontMap[r].fontName;return Qv(s,o,i)?ve.fontMap[r].variant:null},Or=function(e,t,r){if(e.length===1){var i=fn(e[0],t);return r&&i instanceof Zr&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],o,a=0;a0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),s.pop())}}}s.push(l),o=l}return s},ko=function(e,t,r){return Jv(Or(e,t,r))},fn=function(e,t){if(!e)return new Ke.MathNode("mrow");if(Gp[e.type]){var r=Gp[e.type](e,t);return r}else throw new Qe("Got group of unknown type: '"+e.type+"'")};function PC(n,e,t,r,i){var s=Or(n,t),o;s.length===1&&s[0]instanceof Zr&&Et.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new Ke.MathNode("mrow",s);var a=new Ke.MathNode("annotation",[new Ke.TextNode(e)]);a.setAttribute("encoding","application/x-tex");var l=new Ke.MathNode("semantics",[o,a]),d=new Ke.MathNode("math",[l]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&d.setAttribute("display","block");var u=i?"katex":"katex-mathml";return ve.makeSpan([u],[d])}var pk=function(e){return new ys({style:e.displayMode?xt.DISPLAY:xt.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},hk=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=ve.makeSpan(r,[e])}return e},$tt=function(e,t,r){var i=pk(r),s;if(r.output==="mathml")return PC(e,t,i,r.displayMode,!0);if(r.output==="html"){var o=E1(e,i);s=ve.makeSpan(["katex"],[o])}else{var a=PC(e,t,i,r.displayMode,!1),l=E1(e,i);s=ve.makeSpan(["katex"],[a,l])}return hk(s,r)},Wtt=function(e,t,r){var i=pk(r),s=E1(e,i),o=ve.makeSpan(["katex"],[s]);return hk(o,r)},Ktt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},jtt=function(e){var t=new Ke.MathNode("mo",[new Ke.TextNode(Ktt[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Qtt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Xtt=function(e){return e.type==="ordgroup"?e.body.length:1},Ztt=function(e,t){function r(){var a=4e5,l=e.label.slice(1);if(Et.contains(["widehat","widecheck","widetilde","utilde"],l)){var d=e,u=Xtt(d.base),m,f,g;if(u>5)l==="widehat"||l==="widecheck"?(m=420,a=2364,g=.42,f=l+"4"):(m=312,a=2340,g=.34,f="tilde4");else{var h=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(a=[0,1062,2364,2364,2364][h],m=[0,239,300,360,420][h],g=[0,.24,.3,.3,.36,.42][h],f=l+h):(a=[0,600,1033,2339,2340][h],m=[0,260,286,306,312][h],g=[0,.26,.286,.3,.306,.34][h],f="tilde"+h)}var v=new No(f),b=new Os([v],{width:"100%",height:Je(g),viewBox:"0 0 "+a+" "+m,preserveAspectRatio:"none"});return{span:ve.makeSvgSpan([],[b],t),minWidth:0,height:g}}else{var _=[],y=Qtt[l],[E,x,A]=y,w=A/1e3,N=E.length,L,C;if(N===1){var k=y[3];L=["hide-tail"],C=[k]}else if(N===2)L=["halfarrow-left","halfarrow-right"],C=["xMinYMin","xMaxYMin"];else if(N===3)L=["brace-left","brace-center","brace-right"],C=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+N+" children.");for(var H=0;H0&&(i.style.minWidth=Je(s)),i},Jtt=function(e,t,r,i,s){var o,a=e.height+e.depth+r+i;if(/fbox|color|angl/.test(t)){if(o=ve.makeSpan(["stretchy",t],[],s),t==="fbox"){var l=s.color&&s.getColor();l&&(o.style.borderColor=l)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new b1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new b1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Os(d,{width:"100%",height:Je(a)});o=ve.makeSvgSpan([],[u],s)}return o.height=a,o.style.height=Je(a),o},Ls={encloseSpan:Jtt,mathMLnode:jtt,svgSpan:Ztt};function Ut(n,e){if(!n||n.type!==e)throw new Error("Expected node of type "+e+", but got "+(n?"node of type "+n.type:String(n)));return n}function ty(n){var e=Xh(n);if(!e)throw new Error("Expected node of symbol group type, but got "+(n?"node of type "+n.type:String(n)));return e}function Xh(n){return n&&(n.type==="atom"||Ttt.hasOwnProperty(n.type))?n:null}var ny=(n,e)=>{var t,r,i;n&&n.type==="supsub"?(r=Ut(n.base,"accent"),t=r.base,n.base=t,i=Stt(Zt(n,e)),n.base=r):(r=Ut(n,"accent"),t=r.base);var s=Zt(t,e.havingCrampedStyle()),o=r.isShifty&&Et.isCharacterBox(t),a=0;if(o){var l=Et.getBaseElem(t),d=Zt(l,e.havingCrampedStyle());a=MC(d).skew}var u=r.label==="\\c",m=u?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),f;if(r.isStretchy)f=Ls.svgSpan(r,e),f=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+Je(2*a)+")",marginLeft:Je(2*a)}:void 0}]},e);else{var g,h;r.label==="\\vec"?(g=ve.staticSvg("vec",e),h=ve.svgData.vec[1]):(g=ve.makeOrd({mode:r.mode,text:r.label},e,"textord"),g=MC(g),g.italic=0,h=g.width,u&&(m+=g.depth)),f=ve.makeSpan(["accent-body"],[g]);var v=r.label==="\\textcircled";v&&(f.classes.push("accent-full"),m=s.height);var b=a;v||(b-=h/2),f.style.left=Je(b),r.label==="\\textcircled"&&(f.style.top=".2em"),f=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-m},{type:"elem",elem:f}]},e)}var _=ve.makeSpan(["mord","accent"],[f],e);return i?(i.children[0]=_,i.height=Math.max(_.height,i.height),i.classes[0]="mord",i):_},mk=(n,e)=>{var t=n.isStretchy?Ls.mathMLnode(n.label):new Ke.MathNode("mo",[mi(n.label,n.mode)]),r=new Ke.MathNode("mover",[fn(n.base,e),t]);return r.setAttribute("accent","true"),r},ent=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(n=>"\\"+n).join("|"));st({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(n,e)=>{var t=zp(e[0]),r=!ent.test(n.funcName),i=!r||n.funcName==="\\widehat"||n.funcName==="\\widetilde"||n.funcName==="\\widecheck";return{type:"accent",mode:n.parser.mode,label:n.funcName,isStretchy:r,isShifty:i,base:t}},htmlBuilder:ny,mathmlBuilder:mk});st({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(n,e)=>{var t=e[0],r=n.parser.mode;return r==="math"&&(n.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+n.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:n.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:ny,mathmlBuilder:mk});st({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"accentUnder",mode:t.mode,label:r,base:i}},htmlBuilder:(n,e)=>{var t=Zt(n.base,e),r=Ls.svgSpan(n,e),i=n.label==="\\utilde"?.12:0,s=ve.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:t}]},e);return ve.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(n,e)=>{var t=Ls.mathMLnode(n.label),r=new Ke.MathNode("munder",[fn(n.base,e),t]);return r.setAttribute("accentunder","true"),r}});var pu=n=>{var e=new Ke.MathNode("mpadded",n?[n]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};st({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(n,e,t){var{parser:r,funcName:i}=n;return{type:"xArrow",mode:r.mode,label:i,body:e[0],below:t[0]}},htmlBuilder(n,e){var t=e.style,r=e.havingStyle(t.sup()),i=ve.wrapFragment(Zt(n.body,r,e),e),s=n.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var o;n.below&&(r=e.havingStyle(t.sub()),o=ve.wrapFragment(Zt(n.below,r,e),e),o.classes.push(s+"-arrow-pad"));var a=Ls.svgSpan(n,e),l=-e.fontMetrics().axisHeight+.5*a.height,d=-e.fontMetrics().axisHeight-.5*a.height-.111;(i.depth>.25||n.label==="\\xleftequilibrium")&&(d-=i.depth);var u;if(o){var m=-e.fontMetrics().axisHeight+o.height+.5*a.height+.111;u=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:a,shift:l},{type:"elem",elem:o,shift:m}]},e)}else u=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:a,shift:l}]},e);return u.children[0].children[0].children[1].classes.push("svg-align"),ve.makeSpan(["mrel","x-arrow"],[u],e)},mathmlBuilder(n,e){var t=Ls.mathMLnode(n.label);t.setAttribute("minsize",n.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(n.body){var i=pu(fn(n.body,e));if(n.below){var s=pu(fn(n.below,e));r=new Ke.MathNode("munderover",[t,s,i])}else r=new Ke.MathNode("mover",[t,i])}else if(n.below){var o=pu(fn(n.below,e));r=new Ke.MathNode("munder",[t,o])}else r=pu(),r=new Ke.MathNode("mover",[t,r]);return r}});var tnt=ve.makeSpan;function fk(n,e){var t=zn(n.body,e,!0);return tnt([n.mclass],t,e)}function gk(n,e){var t,r=Or(n.body,e);return n.mclass==="minner"?t=new Ke.MathNode("mpadded",r):n.mclass==="mord"?n.isCharacterBox?(t=r[0],t.type="mi"):t=new Ke.MathNode("mi",r):(n.isCharacterBox?(t=r[0],t.type="mo"):t=new Ke.MathNode("mo",r),n.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):n.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):n.mclass==="mopen"||n.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):n.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}st({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+r.slice(5),body:kn(i),isCharacterBox:Et.isCharacterBox(i)}},htmlBuilder:fk,mathmlBuilder:gk});var Zh=n=>{var e=n.type==="ordgroup"&&n.body.length?n.body[0]:n;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};st({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(n,e){var{parser:t}=n;return{type:"mclass",mode:t.mode,mclass:Zh(e[0]),body:kn(e[1]),isCharacterBox:Et.isCharacterBox(e[1])}}});st({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(n,e){var{parser:t,funcName:r}=n,i=e[1],s=e[0],o;r!=="\\stackrel"?o=Zh(i):o="mrel";var a={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:kn(i)},l={type:"supsub",mode:s.mode,base:a,sup:r==="\\underset"?null:s,sub:r==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[l],isCharacterBox:Et.isCharacterBox(l)}},htmlBuilder:fk,mathmlBuilder:gk});st({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"pmb",mode:t.mode,mclass:Zh(e[0]),body:kn(e[0])}},htmlBuilder(n,e){var t=zn(n.body,e,!0),r=ve.makeSpan([n.mclass],t,e);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(n,e){var t=Or(n.body,e),r=new Ke.MathNode("mstyle",t);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var nnt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},FC=()=>({type:"styling",body:[],mode:"math",style:"display"}),UC=n=>n.type==="textord"&&n.text==="@",rnt=(n,e)=>(n.type==="mathord"||n.type==="atom")&&n.text===e;function int(n,e,t){var r=nnt[n];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:r,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),a=t.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,a]};return t.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function snt(n){var e=[];for(n.gullet.beginGroup(),n.gullet.macros.set("\\cr","\\\\\\relax"),n.gullet.beginGroup();;){e.push(n.parseExpression(!1,"\\\\")),n.gullet.endGroup(),n.gullet.beginGroup();var t=n.fetch().text;if(t==="&"||t==="\\\\")n.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Qe("Expected \\\\ or \\cr or \\end",n.nextToken)}for(var r=[],i=[r],s=0;s-1))if("<>AV".indexOf(d)>-1)for(var m=0;m<2;m++){for(var f=!0,g=l+1;gAV=|." after @',o[l]);var h=int(d,u,n),v={type:"styling",body:[h],mode:"math",style:"display"};r.push(v),a=FC()}s%2===0?r.push(a):r.shift(),r=[],i.push(r)}n.gullet.endGroup(),n.gullet.endGroup();var b=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}st({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n;return{type:"cdlabel",mode:t.mode,side:r.slice(4),label:e[0]}},htmlBuilder(n,e){var t=e.havingStyle(e.style.sup()),r=ve.wrapFragment(Zt(n.label,t,e),e);return r.classes.push("cd-label-"+n.side),r.style.bottom=Je(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(n,e){var t=new Ke.MathNode("mrow",[fn(n.label,e)]);return t=new Ke.MathNode("mpadded",[t]),t.setAttribute("width","0"),n.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new Ke.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});st({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(n,e){var{parser:t}=n;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(n,e){var t=ve.wrapFragment(Zt(n.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(n,e){return new Ke.MathNode("mrow",[fn(n.fragment,e)])}});st({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(n,e){for(var{parser:t}=n,r=Ut(e[0],"ordgroup"),i=r.body,s="",o=0;o=1114111)throw new Qe("\\@char with invalid code point "+s);return l<=65535?d=String.fromCharCode(l):(l-=65536,d=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:t.mode,text:d}}});var _k=(n,e)=>{var t=zn(n.body,e.withColor(n.color),!1);return ve.makeFragment(t)},bk=(n,e)=>{var t=Or(n.body,e.withColor(n.color)),r=new Ke.MathNode("mstyle",t);return r.setAttribute("mathcolor",n.color),r};st({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(n,e){var{parser:t}=n,r=Ut(e[0],"color-token").color,i=e[1];return{type:"color",mode:t.mode,color:r,body:kn(i)}},htmlBuilder:_k,mathmlBuilder:bk});st({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(n,e){var{parser:t,breakOnTokenText:r}=n,i=Ut(e[0],"color-token").color;t.gullet.macros.set("\\current@color",i);var s=t.parseExpression(!0,r);return{type:"color",mode:t.mode,color:i,body:s}},htmlBuilder:_k,mathmlBuilder:bk});st({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(n,e,t){var{parser:r}=n,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:s,size:i&&Ut(i,"size").value}},htmlBuilder(n,e){var t=ve.makeSpan(["mspace"],[],e);return n.newLine&&(t.classes.push("newline"),n.size&&(t.style.marginTop=Je(Tn(n.size,e)))),t},mathmlBuilder(n,e){var t=new Ke.MathNode("mspace");return n.newLine&&(t.setAttribute("linebreak","newline"),n.size&&t.setAttribute("height",Je(Tn(n.size,e)))),t}});var S1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},vk=n=>{var e=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Qe("Expected a control sequence",n);return e},ont=n=>{var e=n.gullet.popToken();return e.text==="="&&(e=n.gullet.popToken(),e.text===" "&&(e=n.gullet.popToken())),e},yk=(n,e,t,r)=>{var i=n.gullet.macros.get(t.text);i==null&&(t.noexpand=!0,i={tokens:[t],numArgs:0,unexpandable:!n.gullet.isExpandable(t.text)}),n.gullet.macros.set(e,i,r)};st({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(n){var{parser:e,funcName:t}=n;e.consumeSpaces();var r=e.fetch();if(S1[r.text])return(t==="\\global"||t==="\\\\globallong")&&(r.text=S1[r.text]),Ut(e.parseFunction(),"internal");throw new Qe("Invalid token after macro prefix",r)}});st({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=e.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Qe("Expected a control sequence",r);for(var s=0,o,a=[[]];e.gullet.future().text!=="{";)if(r=e.gullet.popToken(),r.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),a[s].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Qe('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new Qe('Argument number "'+r.text+'" out of order');s++,a.push([])}else{if(r.text==="EOF")throw new Qe("Expected a macro definition");a[s].push(r.text)}var{tokens:l}=e.gullet.consumeArg();return o&&l.unshift(o),(t==="\\edef"||t==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:s,delimiters:a},t===S1[t]),{type:"internal",mode:e.mode}}});st({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=vk(e.gullet.popToken());e.gullet.consumeSpaces();var i=ont(e);return yk(e,r,i,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});st({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n){var{parser:e,funcName:t}=n,r=vk(e.gullet.popToken()),i=e.gullet.popToken(),s=e.gullet.popToken();return yk(e,r,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var Oc=function(e,t,r){var i=_n.math[e]&&_n.math[e].replace,s=Qv(i||e,t,r);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},ry=function(e,t,r,i){var s=r.havingBaseStyle(t),o=ve.makeSpan(i.concat(s.sizingClasses(r)),[e],r),a=s.sizeMultiplier/r.sizeMultiplier;return o.height*=a,o.depth*=a,o.maxFontSize=s.sizeMultiplier,o},Ek=function(e,t,r){var i=t.havingBaseStyle(r),s=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Je(s),e.height-=s,e.depth+=s},ant=function(e,t,r,i,s,o){var a=ve.makeSymbol(e,"Main-Regular",s,i),l=ry(a,t,i,o);return r&&Ek(l,i,t),l},lnt=function(e,t,r,i){return ve.makeSymbol(e,"Size"+t+"-Regular",r,i)},Sk=function(e,t,r,i,s,o){var a=lnt(e,t,s,i),l=ry(ve.makeSpan(["delimsizing","size"+t],[a],i),xt.TEXT,i,o);return r&&Ek(l,i,xt.TEXT),l},H0=function(e,t,r){var i;t==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=ve.makeSpan(["delimsizinginner",i],[ve.makeSpan([],[ve.makeSymbol(e,t,r)])]);return{type:"elem",elem:s}},q0=function(e,t,r){var i=$i["Size4-Regular"][e.charCodeAt(0)]?$i["Size4-Regular"][e.charCodeAt(0)][4]:$i["Size1-Regular"][e.charCodeAt(0)][4],s=new No("inner",mtt(e,Math.round(1e3*t))),o=new Os([s],{width:Je(i),height:Je(t),style:"width:"+Je(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=ve.makeSvgSpan([],[o],r);return a.height=t,a.style.height=Je(t),a.style.width=Je(i),{type:"elem",elem:a}},x1=.008,hu={type:"kern",size:-1*x1},cnt=["|","\\lvert","\\rvert","\\vert"],dnt=["\\|","\\lVert","\\rVert","\\Vert"],xk=function(e,t,r,i,s,o){var a,l,d,u,m="",f=0;a=d=u=e,l=null;var g="Size1-Regular";e==="\\uparrow"?d=u="⏐":e==="\\Uparrow"?d=u="‖":e==="\\downarrow"?a=d="⏐":e==="\\Downarrow"?a=d="‖":e==="\\updownarrow"?(a="\\uparrow",d="⏐",u="\\downarrow"):e==="\\Updownarrow"?(a="\\Uparrow",d="‖",u="\\Downarrow"):Et.contains(cnt,e)?(d="∣",m="vert",f=333):Et.contains(dnt,e)?(d="∥",m="doublevert",f=556):e==="["||e==="\\lbrack"?(a="⎡",d="⎢",u="⎣",g="Size4-Regular",m="lbrack",f=667):e==="]"||e==="\\rbrack"?(a="⎤",d="⎥",u="⎦",g="Size4-Regular",m="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(d=a="⎢",u="⎣",g="Size4-Regular",m="lfloor",f=667):e==="\\lceil"||e==="⌈"?(a="⎡",d=u="⎢",g="Size4-Regular",m="lceil",f=667):e==="\\rfloor"||e==="⌋"?(d=a="⎥",u="⎦",g="Size4-Regular",m="rfloor",f=667):e==="\\rceil"||e==="⌉"?(a="⎤",d=u="⎥",g="Size4-Regular",m="rceil",f=667):e==="("||e==="\\lparen"?(a="⎛",d="⎜",u="⎝",g="Size4-Regular",m="lparen",f=875):e===")"||e==="\\rparen"?(a="⎞",d="⎟",u="⎠",g="Size4-Regular",m="rparen",f=875):e==="\\{"||e==="\\lbrace"?(a="⎧",l="⎨",u="⎩",d="⎪",g="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(a="⎫",l="⎬",u="⎭",d="⎪",g="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(a="⎧",u="⎩",d="⎪",g="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(a="⎫",u="⎭",d="⎪",g="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(a="⎧",u="⎭",d="⎪",g="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(a="⎫",u="⎩",d="⎪",g="Size4-Regular");var h=Oc(a,g,s),v=h.height+h.depth,b=Oc(d,g,s),_=b.height+b.depth,y=Oc(u,g,s),E=y.height+y.depth,x=0,A=1;if(l!==null){var w=Oc(l,g,s);x=w.height+w.depth,A=2}var N=v+E+x,L=Math.max(0,Math.ceil((t-N)/(A*_))),C=N+L*A*_,k=i.fontMetrics().axisHeight;r&&(k*=i.sizeMultiplier);var H=C/2-k,q=[];if(m.length>0){var ie=C-v-E,D=Math.round(C*1e3),$=ftt(m,Math.round(ie*1e3)),K=new No(m,$),B=(f/1e3).toFixed(3)+"em",Z=(D/1e3).toFixed(3)+"em",ce=new Os([K],{width:B,height:Z,viewBox:"0 0 "+f+" "+D}),ue=ve.makeSvgSpan([],[ce],i);ue.height=D/1e3,ue.style.width=B,ue.style.height=Z,q.push({type:"elem",elem:ue})}else{if(q.push(H0(u,g,s)),q.push(hu),l===null){var xe=C-v-E+2*x1;q.push(q0(d,xe,i))}else{var Ce=(C-v-E-x)/2+2*x1;q.push(q0(d,Ce,i)),q.push(hu),q.push(H0(l,g,s)),q.push(hu),q.push(q0(d,Ce,i))}q.push(hu),q.push(H0(a,g,s))}var me=i.havingBaseStyle(xt.TEXT),Ae=ve.makeVList({positionType:"bottom",positionData:H,children:q},me);return ry(ve.makeSpan(["delimsizing","mult"],[Ae],me),xt.TEXT,i,o)},Y0=80,$0=.08,W0=function(e,t,r,i,s){var o=htt(e,i,r),a=new No(e,o),l=new Os([a],{width:"400em",height:Je(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ve.makeSvgSpan(["hide-tail"],[l],s)},unt=function(e,t){var r=t.havingBaseSizing(),i=Ak("\\surd",e*r.sizeMultiplier,Ck,r),s=r.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),a,l=0,d=0,u=0,m;return i.type==="small"?(u=1e3+1e3*o+Y0,e<1?s=1:e<1.4&&(s=.7),l=(1+o+$0)/s,d=(1+o)/s,a=W0("sqrtMain",l,u,o,t),a.style.minWidth="0.853em",m=.833/s):i.type==="large"?(u=(1e3+Y0)*qc[i.size],d=(qc[i.size]+o)/s,l=(qc[i.size]+o+$0)/s,a=W0("sqrtSize"+i.size,l,u,o,t),a.style.minWidth="1.02em",m=1/s):(l=e+o+$0,d=e+o,u=Math.floor(1e3*e+o)+Y0,a=W0("sqrtTall",l,u,o,t),a.style.minWidth="0.742em",m=1.056),a.height=d,a.style.height=Je(l),{span:a,advanceWidth:m,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},Tk=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],pnt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],wk=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],qc=[0,1.2,1.8,2.4,3],hnt=function(e,t,r,i,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Et.contains(Tk,e)||Et.contains(wk,e))return Sk(e,t,!1,r,i,s);if(Et.contains(pnt,e))return xk(e,qc[t],!1,r,i,s);throw new Qe("Illegal delimiter: '"+e+"'")},mnt=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],fnt=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"stack"}],Ck=[{type:"small",style:xt.SCRIPTSCRIPT},{type:"small",style:xt.SCRIPT},{type:"small",style:xt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],gnt=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Ak=function(e,t,r,i){for(var s=Math.min(2,3-i.style.size),o=s;ot)return r[o]}return r[r.length-1]},Rk=function(e,t,r,i,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var a;Et.contains(wk,e)?a=mnt:Et.contains(Tk,e)?a=Ck:a=fnt;var l=Ak(e,t,a,i);return l.type==="small"?ant(e,l.style,r,i,s,o):l.type==="large"?Sk(e,l.size,r,i,s,o):xk(e,t,r,i,s,o)},_nt=function(e,t,r,i,s,o){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,d=5/i.fontMetrics().ptPerEm,u=Math.max(t-a,r+a),m=Math.max(u/500*l,2*u-d);return Rk(e,m,!0,i,s,o)},Ms={sqrtImage:unt,sizedDelim:hnt,sizeToMaxHeight:qc,customSizedDelim:Rk,leftRightDelim:_nt},BC={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},bnt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Jh(n,e){var t=Xh(n);if(t&&Et.contains(bnt,t.text))return t;throw t?new Qe("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",n):new Qe("Invalid delimiter type '"+n.type+"'",n)}st({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(n,e)=>{var t=Jh(e[0],n);return{type:"delimsizing",mode:n.parser.mode,size:BC[n.funcName].size,mclass:BC[n.funcName].mclass,delim:t.text}},htmlBuilder:(n,e)=>n.delim==="."?ve.makeSpan([n.mclass]):Ms.sizedDelim(n.delim,n.size,e,n.mode,[n.mclass]),mathmlBuilder:n=>{var e=[];n.delim!=="."&&e.push(mi(n.delim,n.mode));var t=new Ke.MathNode("mo",e);n.mclass==="mopen"||n.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var r=Je(Ms.sizeToMaxHeight[n.size]);return t.setAttribute("minsize",r),t.setAttribute("maxsize",r),t}});function GC(n){if(!n.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}st({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=n.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new Qe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:n.parser.mode,delim:Jh(e[0],n).text,color:t}}});st({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=Jh(e[0],n),r=n.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var s=Ut(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(n,e)=>{GC(n);for(var t=zn(n.body,e,!0,["mopen","mclose"]),r=0,i=0,s=!1,o=0;o{GC(n);var t=Or(n.body,e);if(n.left!=="."){var r=new Ke.MathNode("mo",[mi(n.left,n.mode)]);r.setAttribute("fence","true"),t.unshift(r)}if(n.right!=="."){var i=new Ke.MathNode("mo",[mi(n.right,n.mode)]);i.setAttribute("fence","true"),n.rightColor&&i.setAttribute("mathcolor",n.rightColor),t.push(i)}return Jv(t)}});st({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var t=Jh(e[0],n);if(!n.parser.leftrightDepth)throw new Qe("\\middle without preceding \\left",t);return{type:"middle",mode:n.parser.mode,delim:t.text}},htmlBuilder:(n,e)=>{var t;if(n.delim===".")t=md(e,[]);else{t=Ms.sizedDelim(n.delim,1,e,n.mode,[]);var r={delim:n.delim,options:e};t.isMiddle=r}return t},mathmlBuilder:(n,e)=>{var t=n.delim==="\\vert"||n.delim==="|"?mi("|","text"):mi(n.delim,n.mode),r=new Ke.MathNode("mo",[t]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var iy=(n,e)=>{var t=ve.wrapFragment(Zt(n.body,e),e),r=n.label.slice(1),i=e.sizeMultiplier,s,o=0,a=Et.isCharacterBox(n.body);if(r==="sout")s=ve.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/i,o=-.5*e.fontMetrics().xHeight;else if(r==="phase"){var l=Tn({number:.6,unit:"pt"},e),d=Tn({number:.35,unit:"ex"},e),u=e.havingBaseSizing();i=i/u.sizeMultiplier;var m=t.height+t.depth+l+d;t.style.paddingLeft=Je(m/2+l);var f=Math.floor(1e3*m*i),g=utt(f),h=new Os([new No("phase",g)],{width:"400em",height:Je(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});s=ve.makeSvgSpan(["hide-tail"],[h],e),s.style.height=Je(m),o=t.depth+l+d}else{/cancel/.test(r)?a||t.classes.push("cancel-pad"):r==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var v=0,b=0,_=0;/box/.test(r)?(_=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),v=e.fontMetrics().fboxsep+(r==="colorbox"?0:_),b=v):r==="angl"?(_=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),v=4*_,b=Math.max(0,.25-t.depth)):(v=a?.2:0,b=v),s=Ls.encloseSpan(t,r,v,b,e),/fbox|boxed|fcolorbox/.test(r)?(s.style.borderStyle="solid",s.style.borderWidth=Je(_)):r==="angl"&&_!==.049&&(s.style.borderTopWidth=Je(_),s.style.borderRightWidth=Je(_)),o=t.depth+b,n.backgroundColor&&(s.style.backgroundColor=n.backgroundColor,n.borderColor&&(s.style.borderColor=n.borderColor))}var y;if(n.backgroundColor)y=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var E=/cancel|phase/.test(r)?["svg-align"]:[];y=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:E}]},e)}return/cancel/.test(r)&&(y.height=t.height,y.depth=t.depth),/cancel/.test(r)&&!a?ve.makeSpan(["mord","cancel-lap"],[y],e):ve.makeSpan(["mord"],[y],e)},sy=(n,e)=>{var t=0,r=new Ke.MathNode(n.label.indexOf("colorbox")>-1?"mpadded":"menclose",[fn(n.body,e)]);switch(n.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*t+"pt"),r.setAttribute("height","+"+2*t+"pt"),r.setAttribute("lspace",t+"pt"),r.setAttribute("voffset",t+"pt"),n.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(n.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return n.backgroundColor&&r.setAttribute("mathbackground",n.backgroundColor),r};st({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(n,e,t){var{parser:r,funcName:i}=n,s=Ut(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,body:o}},htmlBuilder:iy,mathmlBuilder:sy});st({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(n,e,t){var{parser:r,funcName:i}=n,s=Ut(e[0],"color-token").color,o=Ut(e[1],"color-token").color,a=e[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:s,body:a}},htmlBuilder:iy,mathmlBuilder:sy});st({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});st({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"enclose",mode:t.mode,label:r,body:i}},htmlBuilder:iy,mathmlBuilder:sy});st({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(n,e){var{parser:t}=n;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var Mk={};function ns(n){for(var{type:e,names:t,props:r,handler:i,htmlBuilder:s,mathmlBuilder:o}=n,a={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var e=n.parser.settings;if(!e.displayMode)throw new Qe("{"+n.envName+"} can be used only in display mode.")};function oy(n){if(n.indexOf("ed")===-1)return n.indexOf("*")===-1}function Fo(n,e,t){var{hskipBeforeAndAfter:r,addJot:i,cols:s,arraystretch:o,colSeparationType:a,autoTag:l,singleRow:d,emptySingleRow:u,maxNumCols:m,leqno:f}=e;if(n.gullet.beginGroup(),d||n.gullet.macros.set("\\cr","\\\\\\relax"),!o){var g=n.gullet.expandMacroAsText("\\arraystretch");if(g==null)o=1;else if(o=parseFloat(g),!o||o<0)throw new Qe("Invalid \\arraystretch: "+g)}n.gullet.beginGroup();var h=[],v=[h],b=[],_=[],y=l!=null?[]:void 0;function E(){l&&n.gullet.macros.set("\\@eqnsw","1",!0)}function x(){y&&(n.gullet.macros.get("\\df@tag")?(y.push(n.subparse([new li("\\df@tag")])),n.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!l&&n.gullet.macros.get("\\@eqnsw")==="1"))}for(E(),_.push(zC(n));;){var A=n.parseExpression(!1,d?"\\end":"\\\\");n.gullet.endGroup(),n.gullet.beginGroup(),A={type:"ordgroup",mode:n.mode,body:A},t&&(A={type:"styling",mode:n.mode,style:t,body:[A]}),h.push(A);var w=n.fetch().text;if(w==="&"){if(m&&h.length===m){if(d||a)throw new Qe("Too many tab characters: &",n.nextToken);n.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}n.consume()}else if(w==="\\end"){x(),h.length===1&&A.type==="styling"&&A.body[0].body.length===0&&(v.length>1||!u)&&v.pop(),_.length0&&(E+=.25),d.push({pos:E,isDashed:Te[fe]})}for(x(o[0]),r=0;r0&&(H+=y,NTe))for(r=0;r=a)){var te=void 0;(i>0||e.hskipBeforeAndAfter)&&(te=Et.deflt(Ce.pregap,f),te!==0&&($=ve.makeSpan(["arraycolsep"],[]),$.style.width=Je(te),D.push($)));var ye=[];for(r=0;r0){for(var le=ve.makeLineSpan("hline",t,u),V=ve.makeLineSpan("hdashline",t,u),G=[{type:"elem",elem:l,shift:0}];d.length>0;){var oe=d.pop(),ge=oe.pos-q;oe.isDashed?G.push({type:"elem",elem:V,shift:ge}):G.push({type:"elem",elem:le,shift:ge})}l=ve.makeVList({positionType:"individualShift",children:G},t)}if(B.length===0)return ve.makeSpan(["mord"],[l],t);var Ee=ve.makeVList({positionType:"individualShift",children:B},t);return Ee=ve.makeSpan(["tag"],[Ee],t),ve.makeFragment([l,Ee])},vnt={c:"center ",l:"left ",r:"right "},is=function(e,t){for(var r=[],i=new Ke.MathNode("mtd",[],["mtr-glue"]),s=new Ke.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var h=e.cols,v="",b=!1,_=0,y=h.length;h[0].type==="separator"&&(f+="top ",_=1),h[h.length-1].type==="separator"&&(f+="bottom ",y-=1);for(var E=_;E0?"left ":"",f+=L[L.length-1].length>0?"right ":"";for(var C=1;C-1?"alignat":"align",s=e.envName==="split",o=Fo(e.parser,{cols:r,addJot:!0,autoTag:s?void 0:oy(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),a,l=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var u="",m=0;m0&&g&&(b=1),r[h]={type:"align",align:v,pregap:b,postgap:0}}return o.colSeparationType=g?"align":"alignat",o};ns({type:"array",names:["array","darray"],props:{numArgs:1},handler(n,e){var t=Xh(e[0]),r=t?[e[0]]:Ut(e[0],"ordgroup").body,i=r.map(function(o){var a=ty(o),l=a.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Qe("Unknown column alignment: "+l,o)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Fo(n.parser,s,ay(n.envName))},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(n){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[n.envName.replace("*","")],t="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(n.envName.charAt(n.envName.length-1)==="*"){var i=n.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),t=i.fetch().text,"lcr".indexOf(t)===-1)throw new Qe("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:t}]}}var s=Fo(n.parser,r,ay(n.envName)),o=Math.max(0,...s.body.map(a=>a.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:n.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(n){var e={arraystretch:.5},t=Fo(n.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["subarray"],props:{numArgs:1},handler(n,e){var t=Xh(e[0]),r=t?[e[0]]:Ut(e[0],"ordgroup").body,i=r.map(function(o){var a=ty(o),l=a.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Qe("Unknown column alignment: "+l,o)});if(i.length>1)throw new Qe("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=Fo(n.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new Qe("{subarray} can contain only one column");return s},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(n){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=Fo(n.parser,e,ay(n.envName));return{type:"leftright",mode:n.mode,body:[t],left:n.envName.indexOf("r")>-1?".":"\\{",right:n.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:kk,htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(n){Et.contains(["gather","gather*"],n.envName)&&em(n);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:oy(n.envName),emptySingleRow:!0,leqno:n.parser.settings.leqno};return Fo(n.parser,e,"display")},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:kk,htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(n){em(n);var e={autoTag:oy(n.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:n.parser.settings.leqno};return Fo(n.parser,e,"display")},htmlBuilder:rs,mathmlBuilder:is});ns({type:"array",names:["CD"],props:{numArgs:0},handler(n){return em(n),snt(n.parser)},htmlBuilder:rs,mathmlBuilder:is});P("\\nonumber","\\gdef\\@eqnsw{0}");P("\\notag","\\nonumber");st({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(n,e){throw new Qe(n.funcName+" valid only within array environment")}});var VC=Mk;st({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];if(i.type!=="ordgroup")throw new Qe("Invalid environment name",i);for(var s="",o=0;o{var t=n.font,r=e.withFont(t);return Zt(n.body,r)},Ok=(n,e)=>{var t=n.font,r=e.withFont(t);return fn(n.body,r)},HC={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};st({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=zp(e[0]),s=r;return s in HC&&(s=HC[s]),{type:"font",mode:t.mode,font:s.slice(1),body:i}},htmlBuilder:Ik,mathmlBuilder:Ok});st({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(n,e)=>{var{parser:t}=n,r=e[0],i=Et.isCharacterBox(r);return{type:"mclass",mode:t.mode,mclass:Zh(r),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});st({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(n,e)=>{var{parser:t,funcName:r,breakOnTokenText:i}=n,{mode:s}=t,o=t.parseExpression(!0,i),a="math"+r.slice(1);return{type:"font",mode:s,font:a,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:Ik,mathmlBuilder:Ok});var Dk=(n,e)=>{var t=e;return n==="display"?t=t.id>=xt.SCRIPT.id?t.text():xt.DISPLAY:n==="text"&&t.size===xt.DISPLAY.size?t=xt.TEXT:n==="script"?t=xt.SCRIPT:n==="scriptscript"&&(t=xt.SCRIPTSCRIPT),t},ly=(n,e)=>{var t=Dk(n.size,e.style),r=t.fracNum(),i=t.fracDen(),s;s=e.havingStyle(r);var o=Zt(n.numer,s,e);if(n.continued){var a=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?h=3*f:h=7*f,v=e.fontMetrics().denom1):(m>0?(g=e.fontMetrics().num2,h=f):(g=e.fontMetrics().num3,h=3*f),v=e.fontMetrics().denom2);var b;if(u){var y=e.fontMetrics().axisHeight;g-o.depth-(y+.5*m){var t=new Ke.MathNode("mfrac",[fn(n.numer,e),fn(n.denom,e)]);if(!n.hasBarLine)t.setAttribute("linethickness","0px");else if(n.barSize){var r=Tn(n.barSize,e);t.setAttribute("linethickness",Je(r))}var i=Dk(n.size,e.style);if(i.size!==e.style.size){t=new Ke.MathNode("mstyle",[t]);var s=i.size===xt.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(n.leftDelim!=null||n.rightDelim!=null){var o=[];if(n.leftDelim!=null){var a=new Ke.MathNode("mo",[new Ke.TextNode(n.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),o.push(a)}if(o.push(t),n.rightDelim!=null){var l=new Ke.MathNode("mo",[new Ke.TextNode(n.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Jv(o)}return t};st({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=e[1],o,a=null,l=null,d="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,a="(",l=")";break;case"\\\\bracefrac":o=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":d="display";break;case"\\tfrac":case"\\tbinom":d="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:i,denom:s,hasBarLine:o,leftDelim:a,rightDelim:l,size:d,barSize:null}},htmlBuilder:ly,mathmlBuilder:cy});st({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:i,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});st({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(n){var{parser:e,funcName:t,token:r}=n,i;switch(t){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:r}}});var qC=["display","text","script","scriptscript"],YC=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};st({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(n,e){var{parser:t}=n,r=e[4],i=e[5],s=zp(e[0]),o=s.type==="atom"&&s.family==="open"?YC(s.text):null,a=zp(e[1]),l=a.type==="atom"&&a.family==="close"?YC(a.text):null,d=Ut(e[2],"size"),u,m=null;d.isBlank?u=!0:(m=d.value,u=m.number>0);var f="auto",g=e[3];if(g.type==="ordgroup"){if(g.body.length>0){var h=Ut(g.body[0],"textord");f=qC[Number(h.text)]}}else g=Ut(g,"textord"),f=qC[Number(g.text)];return{type:"genfrac",mode:t.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:m,leftDelim:o,rightDelim:l,size:f}},htmlBuilder:ly,mathmlBuilder:cy});st({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(n,e){var{parser:t,funcName:r,token:i}=n;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:Ut(e[0],"size").value,token:i}}});st({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0],s=Qet(Ut(e[1],"infix").size),o=e[2],a=s.number>0;return{type:"genfrac",mode:t.mode,numer:i,denom:o,continued:!1,hasBarLine:a,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ly,mathmlBuilder:cy});var Lk=(n,e)=>{var t=e.style,r,i;n.type==="supsub"?(r=n.sup?Zt(n.sup,e.havingStyle(t.sup()),e):Zt(n.sub,e.havingStyle(t.sub()),e),i=Ut(n.base,"horizBrace")):i=Ut(n,"horizBrace");var s=Zt(i.base,e.havingBaseStyle(xt.DISPLAY)),o=Ls.svgSpan(i,e),a;if(i.isOver?(a=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),a.children[0].children[0].children[1].classes.push("svg-align")):(a=ve.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),a.children[0].children[0].children[0].classes.push("svg-align")),r){var l=ve.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e);i.isOver?a=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},e):a=ve.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return ve.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e)},ynt=(n,e)=>{var t=Ls.mathMLnode(n.label);return new Ke.MathNode(n.isOver?"mover":"munder",[fn(n.base,e),t])};st({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(n,e){var{parser:t,funcName:r}=n;return{type:"horizBrace",mode:t.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:Lk,mathmlBuilder:ynt});st({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[1],i=Ut(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:t.mode,href:i,body:kn(r)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(n,e)=>{var t=zn(n.body,e,!1);return ve.makeAnchor(n.href,[],t,e)},mathmlBuilder:(n,e)=>{var t=ko(n.body,e);return t instanceof Zr||(t=new Zr("mrow",[t])),t.setAttribute("href",n.href),t}});st({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=Ut(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:r}))return t.formatUnsupportedCmd("\\url");for(var i=[],s=0;s{var{parser:t,funcName:r,token:i}=n,s=Ut(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var a,l={};switch(r){case"\\htmlClass":l.class=s,a={command:"\\htmlClass",class:s};break;case"\\htmlId":l.id=s,a={command:"\\htmlId",id:s};break;case"\\htmlStyle":l.style=s,a={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),u=0;u{var t=zn(n.body,e,!1),r=["enclosing"];n.attributes.class&&r.push(...n.attributes.class.trim().split(/\s+/));var i=ve.makeSpan(r,t,e);for(var s in n.attributes)s!=="class"&&n.attributes.hasOwnProperty(s)&&i.setAttribute(s,n.attributes[s]);return i},mathmlBuilder:(n,e)=>ko(n.body,e)});st({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n;return{type:"htmlmathml",mode:t.mode,html:kn(e[0]),mathml:kn(e[1])}},htmlBuilder:(n,e)=>{var t=zn(n.html,e,!1);return ve.makeFragment(t)},mathmlBuilder:(n,e)=>ko(n.mathml,e)});var K0=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Qe("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!ek(r))throw new Qe("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};st({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(n,e,t)=>{var{parser:r}=n,i={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},a="";if(t[0])for(var l=Ut(t[0],"raw").string,d=l.split(","),u=0;u{var t=Tn(n.height,e),r=0;n.totalheight.number>0&&(r=Tn(n.totalheight,e)-t);var i=0;n.width.number>0&&(i=Tn(n.width,e));var s={height:Je(t+r)};i>0&&(s.width=Je(i)),r>0&&(s.verticalAlign=Je(-r));var o=new ytt(n.src,n.alt,s);return o.height=t,o.depth=r,o},mathmlBuilder:(n,e)=>{var t=new Ke.MathNode("mglyph",[]);t.setAttribute("alt",n.alt);var r=Tn(n.height,e),i=0;if(n.totalheight.number>0&&(i=Tn(n.totalheight,e)-r,t.setAttribute("valign",Je(-i))),t.setAttribute("height",Je(r+i)),n.width.number>0){var s=Tn(n.width,e);t.setAttribute("width",Je(s))}return t.setAttribute("src",n.src),t}});st({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(n,e){var{parser:t,funcName:r}=n,i=Ut(e[0],"size");if(t.settings.strict){var s=r[1]==="m",o=i.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:i.value}},htmlBuilder(n,e){return ve.makeGlue(n.dimension,e)},mathmlBuilder(n,e){var t=Tn(n.dimension,e);return new Ke.SpaceNode(t)}});st({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"lap",mode:t.mode,alignment:r.slice(5),body:i}},htmlBuilder:(n,e)=>{var t;n.alignment==="clap"?(t=ve.makeSpan([],[Zt(n.body,e)]),t=ve.makeSpan(["inner"],[t],e)):t=ve.makeSpan(["inner"],[Zt(n.body,e)]);var r=ve.makeSpan(["fix"],[]),i=ve.makeSpan([n.alignment],[t,r],e),s=ve.makeSpan(["strut"]);return s.style.height=Je(i.height+i.depth),i.depth&&(s.style.verticalAlign=Je(-i.depth)),i.children.unshift(s),i=ve.makeSpan(["thinbox"],[i],e),ve.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:(n,e)=>{var t=new Ke.MathNode("mpadded",[fn(n.body,e)]);if(n.alignment!=="rlap"){var r=n.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",r+"width")}return t.setAttribute("width","0px"),t}});st({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(n,e){var{funcName:t,parser:r}=n,i=r.mode;r.switchMode("math");var s=t==="\\("?"\\)":"$",o=r.parseExpression(!1,s);return r.expect(s),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});st({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(n,e){throw new Qe("Mismatched "+n.funcName)}});var $C=(n,e)=>{switch(e.style.size){case xt.DISPLAY.size:return n.display;case xt.TEXT.size:return n.text;case xt.SCRIPT.size:return n.script;case xt.SCRIPTSCRIPT.size:return n.scriptscript;default:return n.text}};st({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(n,e)=>{var{parser:t}=n;return{type:"mathchoice",mode:t.mode,display:kn(e[0]),text:kn(e[1]),script:kn(e[2]),scriptscript:kn(e[3])}},htmlBuilder:(n,e)=>{var t=$C(n,e),r=zn(t,e,!1);return ve.makeFragment(r)},mathmlBuilder:(n,e)=>{var t=$C(n,e);return ko(t,e)}});var Pk=(n,e,t,r,i,s,o)=>{n=ve.makeSpan([],[n]);var a=t&&Et.isCharacterBox(t),l,d;if(e){var u=Zt(e,r.havingStyle(i.sup()),r);d={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(t){var m=Zt(t,r.havingStyle(i.sub()),r);l={elem:m,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-m.height)}}var f;if(d&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+n.depth+o;f=ve.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Je(-s)},{type:"kern",size:l.kern},{type:"elem",elem:n},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Je(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var h=n.height-o;f=ve.makeVList({positionType:"top",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Je(-s)},{type:"kern",size:l.kern},{type:"elem",elem:n}]},r)}else if(d){var v=n.depth+o;f=ve.makeVList({positionType:"bottom",positionData:v,children:[{type:"elem",elem:n},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Je(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return n;var b=[f];if(l&&s!==0&&!a){var _=ve.makeSpan(["mspace"],[],r);_.style.marginRight=Je(s),b.unshift(_)}return ve.makeSpan(["mop","op-limits"],b,r)},Fk=["\\smallint"],ic=(n,e)=>{var t,r,i=!1,s;n.type==="supsub"?(t=n.sup,r=n.sub,s=Ut(n.base,"op"),i=!0):s=Ut(n,"op");var o=e.style,a=!1;o.size===xt.DISPLAY.size&&s.symbol&&!Et.contains(Fk,s.name)&&(a=!0);var l;if(s.symbol){var d=a?"Size2-Regular":"Size1-Regular",u="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(u=s.name.slice(1),s.name=u==="oiint"?"\\iint":"\\iiint"),l=ve.makeSymbol(s.name,d,"math",e,["mop","op-symbol",a?"large-op":"small-op"]),u.length>0){var m=l.italic,f=ve.staticSvg(u+"Size"+(a?"2":"1"),e);l=ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:a?.08:0}]},e),s.name="\\"+u,l.classes.unshift("mop"),l.italic=m}}else if(s.body){var g=zn(s.body,e,!0);g.length===1&&g[0]instanceof hi?(l=g[0],l.classes[0]="mop"):l=ve.makeSpan(["mop"],g,e)}else{for(var h=[],v=1;v{var t;if(n.symbol)t=new Zr("mo",[mi(n.name,n.mode)]),Et.contains(Fk,n.name)&&t.setAttribute("largeop","false");else if(n.body)t=new Zr("mo",Or(n.body,e));else{t=new Zr("mi",[new Hc(n.name.slice(1))]);var r=new Zr("mo",[mi("⁡","text")]);n.parentIsSupSub?t=new Zr("mrow",[t,r]):t=uk([t,r])}return t},Ent={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};st({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=r;return i.length===1&&(i=Ent[i]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:ic,mathmlBuilder:Id});st({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:kn(r)}},htmlBuilder:ic,mathmlBuilder:Id});var Snt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};st({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:ic,mathmlBuilder:Id});st({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:ic,mathmlBuilder:Id});st({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(n){var{parser:e,funcName:t}=n,r=t;return r.length===1&&(r=Snt[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:ic,mathmlBuilder:Id});var Uk=(n,e)=>{var t,r,i=!1,s;n.type==="supsub"?(t=n.sup,r=n.sub,s=Ut(n.base,"operatorname"),i=!0):s=Ut(n,"operatorname");var o;if(s.body.length>0){for(var a=s.body.map(m=>{var f=m.text;return typeof f=="string"?{type:"textord",mode:m.mode,text:f}:m}),l=zn(a,e.withFont("mathrm"),!0),d=0;d{for(var t=Or(n.body,e.withFont("mathrm")),r=!0,i=0;iu.toText()).join("");t=[new Ke.TextNode(a)]}var l=new Ke.MathNode("mi",t);l.setAttribute("mathvariant","normal");var d=new Ke.MathNode("mo",[mi("⁡","text")]);return n.parentIsSupSub?new Ke.MathNode("mrow",[l,d]):Ke.newDocumentFragment([l,d])};st({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(n,e)=>{var{parser:t,funcName:r}=n,i=e[0];return{type:"operatorname",mode:t.mode,body:kn(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Uk,mathmlBuilder:xnt});P("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Na({type:"ordgroup",htmlBuilder(n,e){return n.semisimple?ve.makeFragment(zn(n.body,e,!1)):ve.makeSpan(["mord"],zn(n.body,e,!0),e)},mathmlBuilder(n,e){return ko(n.body,e,!0)}});st({type:"overline",names:["\\overline"],props:{numArgs:1},handler(n,e){var{parser:t}=n,r=e[0];return{type:"overline",mode:t.mode,body:r}},htmlBuilder(n,e){var t=Zt(n.body,e.havingCrampedStyle()),r=ve.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,s=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},e);return ve.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[new Ke.TextNode("‾")]);t.setAttribute("stretchy","true");var r=new Ke.MathNode("mover",[fn(n.body,e),t]);return r.setAttribute("accent","true"),r}});st({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"phantom",mode:t.mode,body:kn(r)}},htmlBuilder:(n,e)=>{var t=zn(n.body,e.withPhantom(),!1);return ve.makeFragment(t)},mathmlBuilder:(n,e)=>{var t=Or(n.body,e);return new Ke.MathNode("mphantom",t)}});st({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"hphantom",mode:t.mode,body:r}},htmlBuilder:(n,e)=>{var t=ve.makeSpan([],[Zt(n.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var r=0;r{var t=Or(kn(n.body),e),r=new Ke.MathNode("mphantom",t),i=new Ke.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});st({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(n,e)=>{var{parser:t}=n,r=e[0];return{type:"vphantom",mode:t.mode,body:r}},htmlBuilder:(n,e)=>{var t=ve.makeSpan(["inner"],[Zt(n.body,e.withPhantom())]),r=ve.makeSpan(["fix"],[]);return ve.makeSpan(["mord","rlap"],[t,r],e)},mathmlBuilder:(n,e)=>{var t=Or(kn(n.body),e),r=new Ke.MathNode("mphantom",t),i=new Ke.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});st({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(n,e){var{parser:t}=n,r=Ut(e[0],"size").value,i=e[1];return{type:"raisebox",mode:t.mode,dy:r,body:i}},htmlBuilder(n,e){var t=Zt(n.body,e),r=Tn(n.dy,e);return ve.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mpadded",[fn(n.body,e)]),r=n.dy.number+n.dy.unit;return t.setAttribute("voffset",r),t}});st({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(n){var{parser:e}=n;return{type:"internal",mode:e.mode}}});st({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(n,e,t){var{parser:r}=n,i=t[0],s=Ut(e[0],"size"),o=Ut(e[1],"size");return{type:"rule",mode:r.mode,shift:i&&Ut(i,"size").value,width:s.value,height:o.value}},htmlBuilder(n,e){var t=ve.makeSpan(["mord","rule"],[],e),r=Tn(n.width,e),i=Tn(n.height,e),s=n.shift?Tn(n.shift,e):0;return t.style.borderRightWidth=Je(r),t.style.borderTopWidth=Je(i),t.style.bottom=Je(s),t.width=r,t.height=i+s,t.depth=-s,t.maxFontSize=i*1.125*e.sizeMultiplier,t},mathmlBuilder(n,e){var t=Tn(n.width,e),r=Tn(n.height,e),i=n.shift?Tn(n.shift,e):0,s=e.color&&e.getColor()||"black",o=new Ke.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",Je(t)),o.setAttribute("height",Je(r));var a=new Ke.MathNode("mpadded",[o]);return i>=0?a.setAttribute("height",Je(i)):(a.setAttribute("height",Je(i)),a.setAttribute("depth",Je(-i))),a.setAttribute("voffset",Je(i)),a}});function Bk(n,e,t){for(var r=zn(n,e,!1),i=e.sizeMultiplier/t.sizeMultiplier,s=0;s{var t=e.havingSize(n.size);return Bk(n.body,t,e)};st({type:"sizing",names:WC,props:{numArgs:0,allowedInText:!0},handler:(n,e)=>{var{breakOnTokenText:t,funcName:r,parser:i}=n,s=i.parseExpression(!1,t);return{type:"sizing",mode:i.mode,size:WC.indexOf(r)+1,body:s}},htmlBuilder:Tnt,mathmlBuilder:(n,e)=>{var t=e.havingSize(n.size),r=Or(n.body,t),i=new Ke.MathNode("mstyle",r);return i.setAttribute("mathsize",Je(t.sizeMultiplier)),i}});st({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(n,e,t)=>{var{parser:r}=n,i=!1,s=!1,o=t[0]&&Ut(t[0],"ordgroup");if(o)for(var a="",l=0;l{var t=ve.makeSpan([],[Zt(n.body,e)]);if(!n.smashHeight&&!n.smashDepth)return t;if(n.smashHeight&&(t.height=0,t.children))for(var r=0;r{var t=new Ke.MathNode("mpadded",[fn(n.body,e)]);return n.smashHeight&&t.setAttribute("height","0px"),n.smashDepth&&t.setAttribute("depth","0px"),t}});st({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(n,e,t){var{parser:r}=n,i=t[0],s=e[0];return{type:"sqrt",mode:r.mode,body:s,index:i}},htmlBuilder(n,e){var t=Zt(n.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=ve.wrapFragment(t,e);var r=e.fontMetrics(),i=r.defaultRuleThickness,s=i;e.style.idt.height+t.depth+o&&(o=(o+m-t.height-t.depth)/2);var f=l.height-t.height-o-d;t.style.paddingLeft=Je(u);var g=ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+f)},{type:"elem",elem:l},{type:"kern",size:d}]},e);if(n.index){var h=e.havingStyle(xt.SCRIPTSCRIPT),v=Zt(n.index,h,e),b=.6*(g.height-g.depth),_=ve.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:v}]},e),y=ve.makeSpan(["root"],[_]);return ve.makeSpan(["mord","sqrt"],[y,g],e)}else return ve.makeSpan(["mord","sqrt"],[g],e)},mathmlBuilder(n,e){var{body:t,index:r}=n;return r?new Ke.MathNode("mroot",[fn(t,e),fn(r,e)]):new Ke.MathNode("msqrt",[fn(t,e)])}});var KC={display:xt.DISPLAY,text:xt.TEXT,script:xt.SCRIPT,scriptscript:xt.SCRIPTSCRIPT};st({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(n,e){var{breakOnTokenText:t,funcName:r,parser:i}=n,s=i.parseExpression(!0,t),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:s}},htmlBuilder(n,e){var t=KC[n.style],r=e.havingStyle(t).withFont("");return Bk(n.body,r,e)},mathmlBuilder(n,e){var t=KC[n.style],r=e.havingStyle(t),i=Or(n.body,r),s=new Ke.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},a=o[n.style];return s.setAttribute("scriptlevel",a[0]),s.setAttribute("displaystyle",a[1]),s}});var wnt=function(e,t){var r=e.base;if(r)if(r.type==="op"){var i=r.limits&&(t.style.size===xt.DISPLAY.size||r.alwaysHandleSupSub);return i?ic:null}else if(r.type==="operatorname"){var s=r.alwaysHandleSupSub&&(t.style.size===xt.DISPLAY.size||r.limits);return s?Uk:null}else{if(r.type==="accent")return Et.isCharacterBox(r.base)?ny:null;if(r.type==="horizBrace"){var o=!e.sub;return o===r.isOver?Lk:null}else return null}else return null};Na({type:"supsub",htmlBuilder(n,e){var t=wnt(n,e);if(t)return t(n,e);var{base:r,sup:i,sub:s}=n,o=Zt(r,e),a,l,d=e.fontMetrics(),u=0,m=0,f=r&&Et.isCharacterBox(r);if(i){var g=e.havingStyle(e.style.sup());a=Zt(i,g,e),f||(u=o.height-g.fontMetrics().supDrop*g.sizeMultiplier/e.sizeMultiplier)}if(s){var h=e.havingStyle(e.style.sub());l=Zt(s,h,e),f||(m=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/e.sizeMultiplier)}var v;e.style===xt.DISPLAY?v=d.sup1:e.style.cramped?v=d.sup3:v=d.sup2;var b=e.sizeMultiplier,_=Je(.5/d.ptPerEm/b),y=null;if(l){var E=n.base&&n.base.type==="op"&&n.base.name&&(n.base.name==="\\oiint"||n.base.name==="\\oiiint");(o instanceof hi||E)&&(y=Je(-o.italic))}var x;if(a&&l){u=Math.max(u,v,a.depth+.25*d.xHeight),m=Math.max(m,d.sub2);var A=d.defaultRuleThickness,w=4*A;if(u-a.depth-(l.height-m)0&&(u+=N,m-=N)}var L=[{type:"elem",elem:l,shift:m,marginRight:_,marginLeft:y},{type:"elem",elem:a,shift:-u,marginRight:_}];x=ve.makeVList({positionType:"individualShift",children:L},e)}else if(l){m=Math.max(m,d.sub1,l.height-.8*d.xHeight);var C=[{type:"elem",elem:l,marginLeft:y,marginRight:_}];x=ve.makeVList({positionType:"shift",positionData:m,children:C},e)}else if(a)u=Math.max(u,v,a.depth+.25*d.xHeight),x=ve.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:a,marginRight:_}]},e);else throw new Error("supsub must have either sup or sub.");var k=y1(o,"right")||"mord";return ve.makeSpan([k],[o,ve.makeSpan(["msupsub"],[x])],e)},mathmlBuilder(n,e){var t=!1,r,i;n.base&&n.base.type==="horizBrace"&&(i=!!n.sup,i===n.base.isOver&&(t=!0,r=n.base.isOver)),n.base&&(n.base.type==="op"||n.base.type==="operatorname")&&(n.base.parentIsSupSub=!0);var s=[fn(n.base,e)];n.sub&&s.push(fn(n.sub,e)),n.sup&&s.push(fn(n.sup,e));var o;if(t)o=r?"mover":"munder";else if(n.sub)if(n.sup){var d=n.base;d&&d.type==="op"&&d.limits&&e.style===xt.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===xt.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var l=n.base;l&&l.type==="op"&&l.limits&&(e.style===xt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===xt.DISPLAY)?o="munder":o="msub"}else{var a=n.base;a&&a.type==="op"&&a.limits&&(e.style===xt.DISPLAY||a.alwaysHandleSupSub)||a&&a.type==="operatorname"&&a.alwaysHandleSupSub&&(a.limits||e.style===xt.DISPLAY)?o="mover":o="msup"}return new Ke.MathNode(o,s)}});Na({type:"atom",htmlBuilder(n,e){return ve.mathsym(n.text,n.mode,e,["m"+n.family])},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[mi(n.text,n.mode)]);if(n.family==="bin"){var r=ey(n,e);r==="bold-italic"&&t.setAttribute("mathvariant",r)}else n.family==="punct"?t.setAttribute("separator","true"):(n.family==="open"||n.family==="close")&&t.setAttribute("stretchy","false");return t}});var Gk={mi:"italic",mn:"normal",mtext:"normal"};Na({type:"mathord",htmlBuilder(n,e){return ve.makeOrd(n,e,"mathord")},mathmlBuilder(n,e){var t=new Ke.MathNode("mi",[mi(n.text,n.mode,e)]),r=ey(n,e)||"italic";return r!==Gk[t.type]&&t.setAttribute("mathvariant",r),t}});Na({type:"textord",htmlBuilder(n,e){return ve.makeOrd(n,e,"textord")},mathmlBuilder(n,e){var t=mi(n.text,n.mode,e),r=ey(n,e)||"normal",i;return n.mode==="text"?i=new Ke.MathNode("mtext",[t]):/[0-9]/.test(n.text)?i=new Ke.MathNode("mn",[t]):n.text==="\\prime"?i=new Ke.MathNode("mo",[t]):i=new Ke.MathNode("mi",[t]),r!==Gk[i.type]&&i.setAttribute("mathvariant",r),i}});var j0={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Q0={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Na({type:"spacing",htmlBuilder(n,e){if(Q0.hasOwnProperty(n.text)){var t=Q0[n.text].className||"";if(n.mode==="text"){var r=ve.makeOrd(n,e,"textord");return r.classes.push(t),r}else return ve.makeSpan(["mspace",t],[ve.mathsym(n.text,n.mode,e)],e)}else{if(j0.hasOwnProperty(n.text))return ve.makeSpan(["mspace",j0[n.text]],[],e);throw new Qe('Unknown type of space "'+n.text+'"')}},mathmlBuilder(n,e){var t;if(Q0.hasOwnProperty(n.text))t=new Ke.MathNode("mtext",[new Ke.TextNode(" ")]);else{if(j0.hasOwnProperty(n.text))return new Ke.MathNode("mspace");throw new Qe('Unknown type of space "'+n.text+'"')}return t}});var jC=()=>{var n=new Ke.MathNode("mtd",[]);return n.setAttribute("width","50%"),n};Na({type:"tag",mathmlBuilder(n,e){var t=new Ke.MathNode("mtable",[new Ke.MathNode("mtr",[jC(),new Ke.MathNode("mtd",[ko(n.body,e)]),jC(),new Ke.MathNode("mtd",[ko(n.tag,e)])])]);return t.setAttribute("width","100%"),t}});var QC={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},XC={"\\textbf":"textbf","\\textmd":"textmd"},Cnt={"\\textit":"textit","\\textup":"textup"},ZC=(n,e)=>{var t=n.font;if(t){if(QC[t])return e.withTextFontFamily(QC[t]);if(XC[t])return e.withTextFontWeight(XC[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Cnt[t])};st({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(n,e){var{parser:t,funcName:r}=n,i=e[0];return{type:"text",mode:t.mode,body:kn(i),font:r}},htmlBuilder(n,e){var t=ZC(n,e),r=zn(n.body,t,!0);return ve.makeSpan(["mord","text"],r,t)},mathmlBuilder(n,e){var t=ZC(n,e);return ko(n.body,t)}});st({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(n,e){var{parser:t}=n;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(n,e){var t=Zt(n.body,e),r=ve.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,s=ve.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:t}]},e);return ve.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(n,e){var t=new Ke.MathNode("mo",[new Ke.TextNode("‾")]);t.setAttribute("stretchy","true");var r=new Ke.MathNode("munder",[fn(n.body,e),t]);return r.setAttribute("accentunder","true"),r}});st({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(n,e){var{parser:t}=n;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(n,e){var t=Zt(n.body,e),r=e.fontMetrics().axisHeight,i=.5*(t.height-r-(t.depth+r));return ve.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(n,e){return new Ke.MathNode("mpadded",[fn(n.body,e)],["vcenter"])}});st({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(n,e,t){throw new Qe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(n,e){for(var t=JC(n),r=[],i=e.havingStyle(e.style.text()),s=0;sn.body.replace(/ /g,n.star?"␣":" "),_o=ck,zk=`[ \r + ]`,Ant="\\\\[a-zA-Z@]+",Rnt="\\\\[^\uD800-\uDFFF]",Mnt="("+Ant+")"+zk+"*",Nnt=`\\\\( +|[ \r ]+ +?)[ \r ]*`,T1="[̀-ͯ]",knt=new RegExp(T1+"+$"),Int="("+zk+"+)|"+(Nnt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(T1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(T1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Mnt)+("|"+Rnt+")");class eA{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Int,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new li("EOF",new Fr(this,t,t));var r=this.tokenRegex.exec(e);if(r===null||r.index!==t)throw new Qe("Unexpected character: '"+e[t]+"'",new li(e[t],new Fr(this,t,t+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=e.indexOf(` +`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new li(i,new Fr(this,t,this.tokenRegex.lastIndex))}}class Ont{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Qe("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var Dnt=Nk;P("\\noexpand",function(n){var e=n.popToken();return n.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});P("\\expandafter",function(n){var e=n.popToken();return n.expandOnce(!0),{tokens:[e],numArgs:0}});P("\\@firstoftwo",function(n){var e=n.consumeArgs(2);return{tokens:e[0],numArgs:0}});P("\\@secondoftwo",function(n){var e=n.consumeArgs(2);return{tokens:e[1],numArgs:0}});P("\\@ifnextchar",function(n){var e=n.consumeArgs(3);n.consumeSpaces();var t=n.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});P("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");P("\\TextOrMath",function(n){var e=n.consumeArgs(2);return n.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var tA={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};P("\\char",function(n){var e=n.popToken(),t,r="";if(e.text==="'")t=8,e=n.popToken();else if(e.text==='"')t=16,e=n.popToken();else if(e.text==="`")if(e=n.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Qe("\\char` missing argument");r=e.text.charCodeAt(0)}else t=10;if(t){if(r=tA[e.text],r==null||r>=t)throw new Qe("Invalid base-"+t+" digit "+e.text);for(var i;(i=tA[n.future().text])!=null&&i{var r=n.consumeArg().tokens;if(r.length!==1)throw new Qe("\\newcommand's first argument must be a macro name");var i=r[0].text,s=n.isDefined(i);if(s&&!e)throw new Qe("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!t)throw new Qe("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(r=n.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var a="",l=n.expandNextToken();l.text!=="]"&&l.text!=="EOF";)a+=l.text,l=n.expandNextToken();if(!a.match(/^\s*[0-9]+\s*$/))throw new Qe("Invalid number of arguments: "+a);o=parseInt(a),r=n.consumeArg().tokens}return n.macros.set(i,{tokens:r,numArgs:o}),""};P("\\newcommand",n=>dy(n,!1,!0));P("\\renewcommand",n=>dy(n,!0,!1));P("\\providecommand",n=>dy(n,!0,!0));P("\\message",n=>{var e=n.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});P("\\errmessage",n=>{var e=n.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});P("\\show",n=>{var e=n.popToken(),t=e.text;return console.log(e,n.macros.get(t),_o[t],_n.math[t],_n.text[t]),""});P("\\bgroup","{");P("\\egroup","}");P("~","\\nobreakspace");P("\\lq","`");P("\\rq","'");P("\\aa","\\r a");P("\\AA","\\r A");P("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");P("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");P("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");P("ℬ","\\mathscr{B}");P("ℰ","\\mathscr{E}");P("ℱ","\\mathscr{F}");P("ℋ","\\mathscr{H}");P("ℐ","\\mathscr{I}");P("ℒ","\\mathscr{L}");P("ℳ","\\mathscr{M}");P("ℛ","\\mathscr{R}");P("ℭ","\\mathfrak{C}");P("ℌ","\\mathfrak{H}");P("ℨ","\\mathfrak{Z}");P("\\Bbbk","\\Bbb{k}");P("·","\\cdotp");P("\\llap","\\mathllap{\\textrm{#1}}");P("\\rlap","\\mathrlap{\\textrm{#1}}");P("\\clap","\\mathclap{\\textrm{#1}}");P("\\mathstrut","\\vphantom{(}");P("\\underbar","\\underline{\\text{#1}}");P("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');P("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");P("\\ne","\\neq");P("≠","\\neq");P("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");P("∉","\\notin");P("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");P("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");P("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");P("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");P("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");P("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");P("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");P("⟂","\\perp");P("‼","\\mathclose{!\\mkern-0.8mu!}");P("∌","\\notni");P("⌜","\\ulcorner");P("⌝","\\urcorner");P("⌞","\\llcorner");P("⌟","\\lrcorner");P("©","\\copyright");P("®","\\textregistered");P("️","\\textregistered");P("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');P("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');P("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');P("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');P("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");P("⋮","\\vdots");P("\\varGamma","\\mathit{\\Gamma}");P("\\varDelta","\\mathit{\\Delta}");P("\\varTheta","\\mathit{\\Theta}");P("\\varLambda","\\mathit{\\Lambda}");P("\\varXi","\\mathit{\\Xi}");P("\\varPi","\\mathit{\\Pi}");P("\\varSigma","\\mathit{\\Sigma}");P("\\varUpsilon","\\mathit{\\Upsilon}");P("\\varPhi","\\mathit{\\Phi}");P("\\varPsi","\\mathit{\\Psi}");P("\\varOmega","\\mathit{\\Omega}");P("\\substack","\\begin{subarray}{c}#1\\end{subarray}");P("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");P("\\boxed","\\fbox{$\\displaystyle{#1}$}");P("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");P("\\implies","\\DOTSB\\;\\Longrightarrow\\;");P("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var nA={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};P("\\dots",function(n){var e="\\dotso",t=n.expandAfterFuture().text;return t in nA?e=nA[t]:(t.slice(0,4)==="\\not"||t in _n.math&&Et.contains(["bin","rel"],_n.math[t].group))&&(e="\\dotsb"),e});var uy={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};P("\\dotso",function(n){var e=n.future().text;return e in uy?"\\ldots\\,":"\\ldots"});P("\\dotsc",function(n){var e=n.future().text;return e in uy&&e!==","?"\\ldots\\,":"\\ldots"});P("\\cdots",function(n){var e=n.future().text;return e in uy?"\\@cdots\\,":"\\@cdots"});P("\\dotsb","\\cdots");P("\\dotsm","\\cdots");P("\\dotsi","\\!\\cdots");P("\\dotsx","\\ldots\\,");P("\\DOTSI","\\relax");P("\\DOTSB","\\relax");P("\\DOTSX","\\relax");P("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");P("\\,","\\tmspace+{3mu}{.1667em}");P("\\thinspace","\\,");P("\\>","\\mskip{4mu}");P("\\:","\\tmspace+{4mu}{.2222em}");P("\\medspace","\\:");P("\\;","\\tmspace+{5mu}{.2777em}");P("\\thickspace","\\;");P("\\!","\\tmspace-{3mu}{.1667em}");P("\\negthinspace","\\!");P("\\negmedspace","\\tmspace-{4mu}{.2222em}");P("\\negthickspace","\\tmspace-{5mu}{.277em}");P("\\enspace","\\kern.5em ");P("\\enskip","\\hskip.5em\\relax");P("\\quad","\\hskip1em\\relax");P("\\qquad","\\hskip2em\\relax");P("\\tag","\\@ifstar\\tag@literal\\tag@paren");P("\\tag@paren","\\tag@literal{({#1})}");P("\\tag@literal",n=>{if(n.macros.get("\\df@tag"))throw new Qe("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});P("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");P("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");P("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");P("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");P("\\newline","\\\\\\relax");P("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Vk=Je($i["Main-Regular"][84][1]-.7*$i["Main-Regular"][65][1]);P("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Vk+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");P("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Vk+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");P("\\hspace","\\@ifstar\\@hspacer\\@hspace");P("\\@hspace","\\hskip #1\\relax");P("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");P("\\ordinarycolon",":");P("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");P("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');P("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');P("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');P("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');P("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');P("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');P("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');P("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');P("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');P("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');P("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');P("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');P("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');P("∷","\\dblcolon");P("∹","\\eqcolon");P("≔","\\coloneqq");P("≕","\\eqqcolon");P("⩴","\\Coloneqq");P("\\ratio","\\vcentcolon");P("\\coloncolon","\\dblcolon");P("\\colonequals","\\coloneqq");P("\\coloncolonequals","\\Coloneqq");P("\\equalscolon","\\eqqcolon");P("\\equalscoloncolon","\\Eqqcolon");P("\\colonminus","\\coloneq");P("\\coloncolonminus","\\Coloneq");P("\\minuscolon","\\eqcolon");P("\\minuscoloncolon","\\Eqcolon");P("\\coloncolonapprox","\\Colonapprox");P("\\coloncolonsim","\\Colonsim");P("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");P("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");P("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");P("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");P("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");P("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");P("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");P("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");P("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");P("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");P("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");P("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");P("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");P("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");P("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");P("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");P("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");P("\\nleqq","\\html@mathml{\\@nleqq}{≰}");P("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");P("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");P("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");P("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");P("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");P("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");P("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");P("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");P("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");P("\\imath","\\html@mathml{\\@imath}{ı}");P("\\jmath","\\html@mathml{\\@jmath}{ȷ}");P("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");P("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");P("⟦","\\llbracket");P("⟧","\\rrbracket");P("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");P("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");P("⦃","\\lBrace");P("⦄","\\rBrace");P("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");P("⦵","\\minuso");P("\\darr","\\downarrow");P("\\dArr","\\Downarrow");P("\\Darr","\\Downarrow");P("\\lang","\\langle");P("\\rang","\\rangle");P("\\uarr","\\uparrow");P("\\uArr","\\Uparrow");P("\\Uarr","\\Uparrow");P("\\N","\\mathbb{N}");P("\\R","\\mathbb{R}");P("\\Z","\\mathbb{Z}");P("\\alef","\\aleph");P("\\alefsym","\\aleph");P("\\Alpha","\\mathrm{A}");P("\\Beta","\\mathrm{B}");P("\\bull","\\bullet");P("\\Chi","\\mathrm{X}");P("\\clubs","\\clubsuit");P("\\cnums","\\mathbb{C}");P("\\Complex","\\mathbb{C}");P("\\Dagger","\\ddagger");P("\\diamonds","\\diamondsuit");P("\\empty","\\emptyset");P("\\Epsilon","\\mathrm{E}");P("\\Eta","\\mathrm{H}");P("\\exist","\\exists");P("\\harr","\\leftrightarrow");P("\\hArr","\\Leftrightarrow");P("\\Harr","\\Leftrightarrow");P("\\hearts","\\heartsuit");P("\\image","\\Im");P("\\infin","\\infty");P("\\Iota","\\mathrm{I}");P("\\isin","\\in");P("\\Kappa","\\mathrm{K}");P("\\larr","\\leftarrow");P("\\lArr","\\Leftarrow");P("\\Larr","\\Leftarrow");P("\\lrarr","\\leftrightarrow");P("\\lrArr","\\Leftrightarrow");P("\\Lrarr","\\Leftrightarrow");P("\\Mu","\\mathrm{M}");P("\\natnums","\\mathbb{N}");P("\\Nu","\\mathrm{N}");P("\\Omicron","\\mathrm{O}");P("\\plusmn","\\pm");P("\\rarr","\\rightarrow");P("\\rArr","\\Rightarrow");P("\\Rarr","\\Rightarrow");P("\\real","\\Re");P("\\reals","\\mathbb{R}");P("\\Reals","\\mathbb{R}");P("\\Rho","\\mathrm{P}");P("\\sdot","\\cdot");P("\\sect","\\S");P("\\spades","\\spadesuit");P("\\sub","\\subset");P("\\sube","\\subseteq");P("\\supe","\\supseteq");P("\\Tau","\\mathrm{T}");P("\\thetasym","\\vartheta");P("\\weierp","\\wp");P("\\Zeta","\\mathrm{Z}");P("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");P("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");P("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");P("\\bra","\\mathinner{\\langle{#1}|}");P("\\ket","\\mathinner{|{#1}\\rangle}");P("\\braket","\\mathinner{\\langle{#1}\\rangle}");P("\\Bra","\\left\\langle#1\\right|");P("\\Ket","\\left|#1\\right\\rangle");var Hk=n=>e=>{var t=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),a=e.macros.get("\\|");e.macros.beginGroup();var l=m=>f=>{n&&(f.macros.set("|",o),i.length&&f.macros.set("\\|",a));var g=m;if(!m&&i.length){var h=f.future();h.text==="|"&&(f.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var d=e.consumeArg().tokens,u=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};P("\\bra@ket",Hk(!1));P("\\bra@set",Hk(!0));P("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");P("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");P("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");P("\\angln","{\\angl n}");P("\\blue","\\textcolor{##6495ed}{#1}");P("\\orange","\\textcolor{##ffa500}{#1}");P("\\pink","\\textcolor{##ff00af}{#1}");P("\\red","\\textcolor{##df0030}{#1}");P("\\green","\\textcolor{##28ae7b}{#1}");P("\\gray","\\textcolor{gray}{#1}");P("\\purple","\\textcolor{##9d38bd}{#1}");P("\\blueA","\\textcolor{##ccfaff}{#1}");P("\\blueB","\\textcolor{##80f6ff}{#1}");P("\\blueC","\\textcolor{##63d9ea}{#1}");P("\\blueD","\\textcolor{##11accd}{#1}");P("\\blueE","\\textcolor{##0c7f99}{#1}");P("\\tealA","\\textcolor{##94fff5}{#1}");P("\\tealB","\\textcolor{##26edd5}{#1}");P("\\tealC","\\textcolor{##01d1c1}{#1}");P("\\tealD","\\textcolor{##01a995}{#1}");P("\\tealE","\\textcolor{##208170}{#1}");P("\\greenA","\\textcolor{##b6ffb0}{#1}");P("\\greenB","\\textcolor{##8af281}{#1}");P("\\greenC","\\textcolor{##74cf70}{#1}");P("\\greenD","\\textcolor{##1fab54}{#1}");P("\\greenE","\\textcolor{##0d923f}{#1}");P("\\goldA","\\textcolor{##ffd0a9}{#1}");P("\\goldB","\\textcolor{##ffbb71}{#1}");P("\\goldC","\\textcolor{##ff9c39}{#1}");P("\\goldD","\\textcolor{##e07d10}{#1}");P("\\goldE","\\textcolor{##a75a05}{#1}");P("\\redA","\\textcolor{##fca9a9}{#1}");P("\\redB","\\textcolor{##ff8482}{#1}");P("\\redC","\\textcolor{##f9685d}{#1}");P("\\redD","\\textcolor{##e84d39}{#1}");P("\\redE","\\textcolor{##bc2612}{#1}");P("\\maroonA","\\textcolor{##ffbde0}{#1}");P("\\maroonB","\\textcolor{##ff92c6}{#1}");P("\\maroonC","\\textcolor{##ed5fa6}{#1}");P("\\maroonD","\\textcolor{##ca337c}{#1}");P("\\maroonE","\\textcolor{##9e034e}{#1}");P("\\purpleA","\\textcolor{##ddd7ff}{#1}");P("\\purpleB","\\textcolor{##c6b9fc}{#1}");P("\\purpleC","\\textcolor{##aa87ff}{#1}");P("\\purpleD","\\textcolor{##7854ab}{#1}");P("\\purpleE","\\textcolor{##543b78}{#1}");P("\\mintA","\\textcolor{##f5f9e8}{#1}");P("\\mintB","\\textcolor{##edf2df}{#1}");P("\\mintC","\\textcolor{##e0e5cc}{#1}");P("\\grayA","\\textcolor{##f6f7f7}{#1}");P("\\grayB","\\textcolor{##f0f1f2}{#1}");P("\\grayC","\\textcolor{##e3e5e6}{#1}");P("\\grayD","\\textcolor{##d6d8da}{#1}");P("\\grayE","\\textcolor{##babec2}{#1}");P("\\grayF","\\textcolor{##888d93}{#1}");P("\\grayG","\\textcolor{##626569}{#1}");P("\\grayH","\\textcolor{##3b3e40}{#1}");P("\\grayI","\\textcolor{##21242c}{#1}");P("\\kaBlue","\\textcolor{##314453}{#1}");P("\\kaGreen","\\textcolor{##71B307}{#1}");var qk={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Lnt{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Ont(Dnt,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new eA(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:t,end:r}=this.consumeArg());return this.pushToken(new li("EOF",r.loc)),this.pushTokens(i),t.range(r,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),s,o=0,a=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new Qe("Extra }",s)}else if(s.text==="EOF")throw new Qe("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",s);if(e&&r)if((o===0||o===1&&e[a]==="{")&&s.text===e[a]){if(++a,a===e.length){t.splice(-a,a);break}}else a=0}while(o!==0||r);return i.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Qe("The length of delimiters doesn't match the number of args!");for(var r=t[0],i=0;ithis.settings.maxExpand)throw new Qe("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,i=t.noexpand?null:this._getExpansion(r);if(i==null||e&&i.unexpandable){if(e&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Qe("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var s=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var a=s.length-1;a>=0;--a){var l=s[a];if(l.text==="#"){if(a===0)throw new Qe("Incomplete placeholder at end of macro body",l);if(l=s[--a],l.text==="#")s.splice(a+1,1);else if(/^[1-9]$/.test(l.text))s.splice(a,2,...o[+l.text-1]);else throw new Qe("Not a valid argument number",l)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new li(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),t.push(i)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(r=>r.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var i=typeof t=="function"?t(this):t;if(typeof i=="string"){var s=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var a=new eA(i,this.settings),l=[],d=a.lex();d.text!=="EOF";)l.push(d),d=a.lex();l.reverse();var u={tokens:l,numArgs:s};return u}return i}isDefined(e){return this.macros.has(e)||_o.hasOwnProperty(e)||_n.math.hasOwnProperty(e)||_n.text.hasOwnProperty(e)||qk.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:_o.hasOwnProperty(e)&&!_o[e].primitive}}var rA=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,mu=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),X0={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},iA={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class tm{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Lnt(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new Qe("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new li("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(tm.endOfExpression.indexOf(i.text)!==-1||t&&i.text===t||e&&_o[i.text]&&_o[i.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;r.push(s)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a=_n[this.mode][t].group,l=Fr.range(e),d;if(xtt.hasOwnProperty(a)){var u=a;d={type:"atom",mode:this.mode,family:u,loc:l,text:t}}else d={type:a,mode:this.mode,loc:l,text:t};o=d}else if(t.charCodeAt(0)>=128)this.settings.strict&&(JN(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:Fr.range(e),text:t};else return null;if(this.consume(),s)for(var m=0;m/g,">").replace(/"/g,""").replace(/'/g,"'")}function t(r,i){const s=t.mergeDelimiters(i&&i.delimiters),o=i&&i.outerSpace||!1,a=i&&i.katexOptions||{};a.throwOnError=a.throwOnError||!1,a.macros=a.macros||i&&i.macros,t.katex||(i&&typeof i.engine=="object"?t.katex=i.engine:t.katex=Gnt);for(const l of s.inline)o&&"outerSpace"in l&&(l.outerSpace=!0),r.inline.ruler.before("escape",l.name,t.inline(l)),r.renderer.rules[l.name]=(d,u)=>l.tmpl.replace(/\$1/,t.render(d[u].content,!!l.displayMode,a));for(const l of s.block)r.block.ruler.before("fence",l.name,t.block(l)),r.renderer.rules[l.name]=(d,u)=>l.tmpl.replace(/\$2/,e(d[u].info)).replace(/\$1/,t.render(d[u].content,!0,a))}t.mergeDelimiters=function(r){const i=Array.isArray(r)?r:typeof r=="string"?[r]:["dollars"],s={inline:[],block:[]};for(const o of i)o in t.rules&&(s.inline.push(...t.rules[o].inline),s.block.push(...t.rules[o].block));return s},t.inline=r=>function(i,s){const o=i.pos,a=i.src,d=a.startsWith(r.tag,r.rex.lastIndex=o)&&(!r.pre||r.pre(a,r.outerSpace,o))&&r.rex.exec(a),u=!!d&&ofunction(s,o,a,l){const d=s.bMarks[o]+s.tShift[o],u=s.src,f=u.startsWith(r.tag,r.rex.lastIndex=d)&&(!r.pre||r.pre(u,!1,d))&&r.rex.exec(u),g=!!f&&d=s.bMarks[v]+s.tShift[v]&&h<=s.eMarks[v]);v++);const b=s.lineMax,_=s.parentType;s.lineMax=v,s.parentType="math",_==="blockquote"&&(f[1]=f[1].replace(/(\n*?^(?:\s*>)+)/gm,""));let y=s.push(r.name,"math",0);y.block=!0,y.tag=r.tag,y.markup="",y.content=f[1],y.info=f[f.length-1],y.map=[o,v+1],s.parentType=_,s.lineMax=b,s.line=v+1}return g},t.render=function(r,i,s){s.displayMode=i;let o;try{o=t.katex.renderToString(r,s)}catch(a){o=e(`${r}:${a.message}`)}return o},t.use=function(r){return t.katex=r,t},t.inlineRuleNames=["math_inline","math_inline_double"],t.blockRuleNames=["math_block","math_block_eqno"],t.$_pre=(r,i,s)=>{const o=s>0?r[s-1].charCodeAt(0):!1;return i?!o||o===32:!o||o!==92&&(o<48||o>57)},t.$_post=(r,i,s)=>{const o=r[s+1]&&r[s+1].charCodeAt(0);return i?!o||o===32||o===46||o===44||o===59:!o||o<48||o>57},t.rules={brackets:{inline:[{name:"math_inline",rex:/\\\((.+?)\\\)/gy,tmpl:"$1",tag:"\\("}],block:[{name:"math_block_eqno",rex:/\\\[(((?!\\\]|\\\[)[\s\S])+?)\\\]\s*?\(([^)$\r\n]+?)\)/gmy,tmpl:'
    $1($2)
    ',tag:"\\["},{name:"math_block",rex:/\\\[([\s\S]+?)\\\]/gmy,tmpl:"
    $1
    ",tag:"\\["}]},doxygen:{inline:[{name:"math_inline",rex:/\\f\$(.+?)\\f\$/gy,tmpl:"$1",tag:"\\f$"}],block:[{name:"math_block_eqno",rex:/\\f\[([^]+?)\\f\]\s*?\(([^)\s]+?)\)/gmy,tmpl:'
    $1($2)
    ',tag:"\\f["},{name:"math_block",rex:/\\f\[([^]+?)\\f\]/gmy,tmpl:"
    $1
    ",tag:"\\f["}]},gitlab:{inline:[{name:"math_inline",rex:/\$`(.+?)`\$/gy,tmpl:"$1",tag:"$`"}],block:[{name:"math_block_eqno",rex:/`{3}math\s*([^`]+?)\s*?`{3}\s*\(([^)\r\n]+?)\)/gm,tmpl:'
    $1($2)
    ',tag:"```math"},{name:"math_block",rex:/`{3}math\s*([^`]*?)\s*`{3}/gm,tmpl:"
    $1
    ",tag:"```math"}]},julia:{inline:[{name:"math_inline",rex:/`{2}([^`]+?)`{2}/gy,tmpl:"$1",tag:"``"},{name:"math_inline",rex:/\$((?:\S?)|(?:\S.*?\S))\$/gy,tmpl:"$1",tag:"$",spaceEnclosed:!1,pre:t.$_pre,post:t.$_post}],block:[{name:"math_block_eqno",rex:/`{3}math\s+?([^`]+?)\s+?`{3}\s*?\(([^)$\r\n]+?)\)/gmy,tmpl:'
    $1($2)
    ',tag:"```math"},{name:"math_block",rex:/`{3}math\s+?([^`]+?)\s+?`{3}/gmy,tmpl:"
    $1
    ",tag:"```math"}]},kramdown:{inline:[{name:"math_inline",rex:/\${2}(.+?)\${2}/gy,tmpl:"$1",tag:"$$"}],block:[{name:"math_block_eqno",rex:/\${2}([^$]+?)\${2}\s*?\(([^)\s]+?)\)/gmy,tmpl:'
    $1($2)
    ',tag:"$$"},{name:"math_block",rex:/\${2}([^$]+?)\${2}/gmy,tmpl:"
    $1
    ",tag:"$$"}]},beg_end:{inline:[],block:[{name:"math_block",rex:/(\\(?:begin)\{([a-z]+)\}[\s\S]+?\\(?:end)\{\2\})/gmy,tmpl:"
    $1
    ",tag:"\\"}]},dollars:{inline:[{name:"math_inline_double",rex:/\${2}([^$]*?[^\\])\${2}/gy,tmpl:"
    $1
    ",tag:"$$",displayMode:!0,pre:t.$_pre,post:t.$_post},{name:"math_inline",rex:/\$((?:[^\s\\])|(?:\S.*?[^\s\\]))\$/gy,tmpl:"$1",tag:"$",outerSpace:!1,pre:t.$_pre,post:t.$_post}],block:[{name:"math_block_eqno",rex:/\${2}([^$]*?[^\\])\${2}\s*?\(([^)\s]+?)\)/gmy,tmpl:'
    $1($2)
    ',tag:"$$"},{name:"math_block",rex:/\${2}([^$]*?[^\\])\${2}/gmy,tmpl:"
    $1
    ",tag:"$$"}]}},n.exports&&(n.exports=t)})(XN);var znt=XN.exports;const Vnt=Lo(znt);function Hnt(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const qnt={name:"MarkdownRenderer",props:{host:{type:String,required:!1,default:"http://localhost:9600"},client_id:{type:String,required:!0},markdownText:{type:String,required:!0},discussion_id:{type:[String,Number],default:"0",required:!1},message_id:{value:"0",type:[String,Number],required:!1}},components:{CodeBlock:Get},setup(n){const e=new A2e({html:!0,highlight:(s,o)=>{const a=o&&Ea.getLanguage(o)?o:"plaintext";return Ea.highlight(a,s).value},renderInline:!0,breaks:!1}).use(kje).use(sl).use(Uje,{figcaption:!0}).use(Zje).use(Pje,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:` +`});e.core.ruler.before("normalize","escape_latex_delimiters",s=>{s.src=s.src.replace(new RegExp("(?'+w1.renderToString(s[o].content,{displayMode:!0})+""},e.renderer.rules.list_item_open=function(s,o,a,l,d){const u=s[o];if(u.markup==="1."){const m=u.attrGet("start");if(m)return`
  • `}return d.renderToken(s,o,a)},e.use(Vnt,{engine:w1,delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\[",right:"\\]",display:!0}],katexOptions:{macros:{"\\RR":"\\mathbb{R}"}}});const t=yt([]),r=()=>{if(n.markdownText){let s=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:Hnt(s[a].info),code:s[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];We(()=>{Ze.replace()})},i=(s,o)=>{t.value[s].code=o};return Zn(()=>n.markdownText,r),Ji(()=>{r(),We(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:t,updateCode:i}}},Ynt={class:"break-all container w-full"},$nt={ref:"mdRender",class:"markdown-content"},Wnt=["innerHTML"];function Knt(n,e,t,r,i,s){const o=gt("code-block");return T(),M("div",Ynt,[c("div",$nt,[(T(!0),M(je,null,at(r.markdownItems,(a,l)=>(T(),M("div",{key:l},[a.type==="code"?(T(),Tt(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id,client_id:t.client_id,onUpdateCode:d=>r.updateCode(l,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),M("div",{key:1,innerHTML:a.html},null,8,Wnt))]))),128))],512)])}const nm=bt(qnt,[["render",Knt]]),jnt={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){We(()=>{Ze.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},Qnt={class:"flex items-center space-x-2"},Xnt=["value","type","placeholder"],Znt=["value","min","max"],Jnt=["accept"];function ert(n,e,t,r,i,s){return T(),M("div",Qnt,[n.useSlider?(T(),M("input",{key:1,type:"range",value:parseInt(i.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>s.handleSliderInput&&s.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,Znt)):(T(),M("input",{key:0,value:i.inputValue,type:t.inputType,placeholder:i.placeholderText,onInput:e[0]||(e[0]=(...o)=>s.handleInput&&s.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>s.handlePaste&&s.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,Xnt)),c("button",{onClick:e[3]||(e[3]=(...o)=>s.pasteFromClipboard&&s.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[6]||(e[6]=[c("i",{"data-feather":"clipboard"},null,-1)])),t.inputType==="file"?(T(),M("button",{key:2,onClick:e[4]||(e[4]=(...o)=>s.openFileInput&&s.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[7]||(e[7]=[c("i",{"data-feather":"upload"},null,-1)]))):Y("",!0),t.inputType==="file"?(T(),M("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>s.handleFileInputChange&&s.handleFileInputChange(...o))},null,40,Jnt)):Y("",!0)])}const my=bt(jnt,[["render",ert]]),trt={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},nrt={class:"w-full"},rrt={class:"break-words"},irt={class:"break-words mt-2"},srt={class:"mt-4"};function ort(n,e,t,r,i,s){return T(),M("div",nrt,[c("div",rrt,[(T(!0),M(je,null,at(t.namedTokens,(o,a)=>(T(),M("span",{key:a},[c("span",{class:"inline-block whitespace-pre-wrap",style:on({backgroundColor:i.colors[a%i.colors.length]})},X(o[0]),5)]))),128))]),c("div",irt,[(T(!0),M(je,null,at(t.namedTokens,(o,a)=>(T(),M("span",{key:a},[c("span",{class:"inline-block px-1 whitespace-pre-wrap",style:on({backgroundColor:i.colors[a%i.colors.length]})},X(o[1]),5)]))),128))]),c("div",srt,[c("strong",null,"Total Tokens: "+X(t.namedTokens.length),1)])])}const art=bt(trt,[["render",ort]]),lrt={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function crt(n,e,t,r,i,s){return T(),M("button",V4({class:["p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",[t.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},n.$attrs,OD(n.$listeners)),[On(n.$slots,"icon"),On(n.$slots,"default")],16)}const Wk=bt(lrt,[["render",crt]]),drt={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},urt={key:1,class:"flex flex-wrap"},prt={key:2,class:"mb-2"};function hrt(n,e,t,r,i,s){return T(),M("div",null,[i.isActive?(T(),M("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>s.toggleCard&&s.toggleCard(...o))})):Y("",!0),F(c("div",{class:qe(["border-blue-300 rounded-lg shadow-lg p-2",s.cardWidthClass,"m-2",{subcard:t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&i.isHovered,active:i.isActive}]),onMouseenter:e[2]||(e[2]=o=>i.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>i.isHovered=!1),onClick:e[4]||(e[4]=J((...o)=>s.toggleCard&&s.toggleCard(...o),["self"])),style:on({cursor:this.disableFocus?"":"pointer"})},[t.title?(T(),M("div",{key:0,onClick:e[1]||(e[1]=o=>i.shrink=!0),class:qe([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},X(t.title),3)):Y("",!0),t.isHorizontal?(T(),M("div",urt,[On(n.$slots,"default")])):(T(),M("div",prt,[On(n.$slots,"default")]))],38),[[Dt,i.shrink===!1]]),t.is_subcard?F((T(),M("div",{key:1,onClick:e[5]||(e[5]=o=>i.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},X(t.title),513)),[[Dt,i.shrink===!0]]):F((T(),M("div",{key:2,onClick:e[6]||(e[6]=o=>i.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[Dt,i.shrink===!0]])])}const rm=bt(drt,[["render",hrt]]),Kk="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%203H4c-1.103%200-2%20.897-2%202v14c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V5c0-1.103-.897-2-2-2zM4%2019V7h16l.002%2012H4z'/%3e%3cpath%20d='M9.293%209.293%205.586%2013l3.707%203.707%201.414-1.414L8.414%2013l2.293-2.293zm5.414%200-1.414%201.414L15.586%2013l-2.293%202.293%201.414%201.414L18.414%2013z'/%3e%3c/svg%3e",jk="/assets/python_block-Bt12VGEE.png",Qk="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20630%20630'%20style='enable-background:new%200%200%20630%20630;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EDBF4A;}%20.st1{fill:%230C0C0C;}%20%3c/style%3e%3crect%20class='st0'%20width='630'%20height='630'/%3e%3cpath%20class='st1'%20d='M423.2,492.2c12.7,20.7,29.2,36,58.4,36c24.5,0,40.2-12.3,40.2-29.2c0-20.3-16.1-27.5-43.1-39.3l-14.8-6.4%20c-42.7-18.2-71.1-41-71.1-89.2c0-44.4,33.8-78.2,86.7-78.2c37.6,0,64.7,13.1,84.2,47.4l-46.1,29.6c-10.1-18.2-21.1-25.4-38.1-25.4%20c-17.3,0-28.3,11-28.3,25.4c0,17.8,11,25,36.4,36l14.8,6.3c50.3,21.6,78.7,43.6,78.7,93c0,53.3-41.9,82.5-98.1,82.5%20c-55,0-90.5-26.2-107.9-60.5L423.2,492.2z%20M214.1,497.3c9.3,16.5,17.8,30.5,38.1,30.5c19.5,0,31.7-7.6,31.7-37.2V289.3h59.2v202.1%20c0,61.3-35.9,89.2-88.4,89.2c-47.4,0-74.9-24.5-88.8-54.1L214.1,497.3z'/%3e%3c/svg%3e",Xk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",Zk="/assets/cpp_block-kkmuBJ_E.png",Jk="/assets/html5_block-beC_-Wtz.png",eI="/assets/LaTeX_block-BNFNi2yr.png",tI="/assets/bash_block-DZNRrwlz.png",mrt="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",frt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='red'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%20stroke='currentColor'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%20stroke='currentColor'%3e%3c/line%3e%3c/svg%3e",grt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%3e%3c/line%3e%3c/svg%3e",_rt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20id='heartbeat'%20cx='25'%20cy='25'%20r='20'%20fill='red'%3e%3canimate%20attributeName='r'%20dur='1s'%20repeatCount='indefinite'%20keyTimes='0;0.25;0.5;0.75;1'%20values='20;24;20;22;20'/%3e%3c/circle%3e%3c/svg%3e",brt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='red'/%3e%3c/svg%3e",nI="data:image/svg+xml,%3csvg%20viewBox='0%200%2050%2050'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(25,25)'%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23f00'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%230f0'%20transform='rotate(90)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.2s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%2300f'%20transform='rotate(180)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.4s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23ff0'%20transform='rotate(270)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.6s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",vrt={props:{icon:{type:String,required:!0},title:{type:String,required:!0}},computed:{iconPath(){return this.getIconPath()}},methods:{getIconPath(){switch(this.icon){case"x":return'';case"check":return'';case"code":return'';case"python":return'';case"js":return'JS';case"typescript":return'TS';case"braces":return'';case"cplusplus":case"c++":return'C++';case"csharp":return'C#';case"go":return'Go';case"r-project":return'R';case"rust":return'';case"swift":return'';case"kotlin":return'';case"java":return'';case"html5":return'';case"css3":return'';case"vuejs":return'';case"react":return'';case"angular":return'';case"xml":return'';case"json":return'';case"yaml":return'';case"markdown":return'';case"latex":return'TEX';case"bash":return'';case"powershell":return'';case"perl":return'';case"mermaid":return'';case"graphviz":return'';case"plantuml":return'';case"sql":return'';case"mongodb":return'';case"mathFunction":return'';case"terminal":return'';case"edit":return'';case"copy":return'';case"send":return'';case"globe":return'';case"fastForward":return'';case"sendSimple":return'';default:return""}}}},yrt=["title"],Ert={class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},Srt=["innerHTML"];function xrt(n,e,t,r,i,s){return T(),M("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:t.title,onClick:e[0]||(e[0]=o=>n.$emit("click"))},[(T(),M("svg",Ert,[c("g",{innerHTML:s.iconPath},null,8,Srt)]))],8,yrt)}const fy=bt(vrt,[["render",xrt]]);var Mr="top",fi="bottom",gi="right",Nr="left",gy="auto",Od=[Mr,fi,gi,Nr],Ml="start",fd="end",Trt="clippingParents",rI="viewport",vc="popper",wrt="reference",sA=Od.reduce(function(n,e){return n.concat([e+"-"+Ml,e+"-"+fd])},[]),iI=[].concat(Od,[gy]).reduce(function(n,e){return n.concat([e,e+"-"+Ml,e+"-"+fd])},[]),Crt="beforeRead",Art="read",Rrt="afterRead",Mrt="beforeMain",Nrt="main",krt="afterMain",Irt="beforeWrite",Ort="write",Drt="afterWrite",Lrt=[Crt,Art,Rrt,Mrt,Nrt,krt,Irt,Ort,Drt];function Zi(n){return n?(n.nodeName||"").toLowerCase():null}function Hr(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Sa(n){var e=Hr(n).Element;return n instanceof e||n instanceof Element}function ci(n){var e=Hr(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function _y(n){if(typeof ShadowRoot>"u")return!1;var e=Hr(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Prt(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];!ci(s)||!Zi(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Frt(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=o.reduce(function(l,d){return l[d]="",l},{});!ci(i)||!Zi(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const Urt={name:"applyStyles",enabled:!0,phase:"write",fn:Prt,effect:Frt,requires:["computeStyles"]};function ji(n){return n.split("-")[0]}var pa=Math.max,Vp=Math.min,Nl=Math.round;function C1(){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 sI(){return!/^((?!chrome|android).)*safari/i.test(C1())}function kl(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,s=1;e&&ci(n)&&(i=n.offsetWidth>0&&Nl(r.width)/n.offsetWidth||1,s=n.offsetHeight>0&&Nl(r.height)/n.offsetHeight||1);var o=Sa(n)?Hr(n):window,a=o.visualViewport,l=!sI()&&t,d=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/s,m=r.width/i,f=r.height/s;return{width:m,height:f,top:u,right:d+m,bottom:u+f,left:d,x:d,y:u}}function by(n){var e=kl(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function oI(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&_y(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ps(n){return Hr(n).getComputedStyle(n)}function Brt(n){return["table","td","th"].indexOf(Zi(n))>=0}function Uo(n){return((Sa(n)?n.ownerDocument:n.document)||window.document).documentElement}function im(n){return Zi(n)==="html"?n:n.assignedSlot||n.parentNode||(_y(n)?n.host:null)||Uo(n)}function oA(n){return!ci(n)||Ps(n).position==="fixed"?null:n.offsetParent}function Grt(n){var e=/firefox/i.test(C1()),t=/Trident/i.test(C1());if(t&&ci(n)){var r=Ps(n);if(r.position==="fixed")return null}var i=im(n);for(_y(i)&&(i=i.host);ci(i)&&["html","body"].indexOf(Zi(i))<0;){var s=Ps(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Dd(n){for(var e=Hr(n),t=oA(n);t&&Brt(t)&&Ps(t).position==="static";)t=oA(t);return t&&(Zi(t)==="html"||Zi(t)==="body"&&Ps(t).position==="static")?e:t||Grt(n)||e}function vy(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Yc(n,e,t){return pa(n,Vp(e,t))}function zrt(n,e,t){var r=Yc(n,e,t);return r>t?t:r}function aI(){return{top:0,right:0,bottom:0,left:0}}function lI(n){return Object.assign({},aI(),n)}function cI(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var Vrt=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,lI(typeof e!="number"?e:cI(e,Od))};function Hrt(n){var e,t=n.state,r=n.name,i=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,a=ji(t.placement),l=vy(a),d=[Nr,gi].indexOf(a)>=0,u=d?"height":"width";if(!(!s||!o)){var m=Vrt(i.padding,t),f=by(s),g=l==="y"?Mr:Nr,h=l==="y"?fi:gi,v=t.rects.reference[u]+t.rects.reference[l]-o[l]-t.rects.popper[u],b=o[l]-t.rects.reference[l],_=Dd(s),y=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,E=v/2-b/2,x=m[g],A=y-f[u]-m[h],w=y/2-f[u]/2+E,N=Yc(x,w,A),L=l;t.modifiersData[r]=(e={},e[L]=N,e.centerOffset=N-w,e)}}function qrt(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||oI(e.elements.popper,i)&&(e.elements.arrow=i))}const Yrt={name:"arrow",enabled:!0,phase:"main",fn:Hrt,effect:qrt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Il(n){return n.split("-")[1]}var $rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wrt(n,e){var t=n.x,r=n.y,i=e.devicePixelRatio||1;return{x:Nl(t*i)/i||0,y:Nl(r*i)/i||0}}function aA(n){var e,t=n.popper,r=n.popperRect,i=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,m=n.isFixed,f=o.x,g=f===void 0?0:f,h=o.y,v=h===void 0?0:h,b=typeof u=="function"?u({x:g,y:v}):{x:g,y:v};g=b.x,v=b.y;var _=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),E=Nr,x=Mr,A=window;if(d){var w=Dd(t),N="clientHeight",L="clientWidth";if(w===Hr(t)&&(w=Uo(t),Ps(w).position!=="static"&&a==="absolute"&&(N="scrollHeight",L="scrollWidth")),w=w,i===Mr||(i===Nr||i===gi)&&s===fd){x=fi;var C=m&&w===A&&A.visualViewport?A.visualViewport.height:w[N];v-=C-r.height,v*=l?1:-1}if(i===Nr||(i===Mr||i===fi)&&s===fd){E=gi;var k=m&&w===A&&A.visualViewport?A.visualViewport.width:w[L];g-=k-r.width,g*=l?1:-1}}var H=Object.assign({position:a},d&&$rt),q=u===!0?Wrt({x:g,y:v},Hr(t)):{x:g,y:v};if(g=q.x,v=q.y,l){var ie;return Object.assign({},H,(ie={},ie[x]=y?"0":"",ie[E]=_?"0":"",ie.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",ie))}return Object.assign({},H,(e={},e[x]=y?v+"px":"",e[E]=_?g+"px":"",e.transform="",e))}function Krt(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,s=t.adaptive,o=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,d={placement:ji(e.placement),variation:Il(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,aA(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,aA(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const jrt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Krt,data:{}};var fu={passive:!0};function Qrt(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=Hr(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",t.update,fu)}),a&&l.addEventListener("resize",t.update,fu),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",t.update,fu)}),a&&l.removeEventListener("resize",t.update,fu)}}const Xrt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qrt,data:{}};var Zrt={left:"right",right:"left",bottom:"top",top:"bottom"};function pp(n){return n.replace(/left|right|bottom|top/g,function(e){return Zrt[e]})}var Jrt={start:"end",end:"start"};function lA(n){return n.replace(/start|end/g,function(e){return Jrt[e]})}function yy(n){var e=Hr(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function Ey(n){return kl(Uo(n)).left+yy(n).scrollLeft}function eit(n,e){var t=Hr(n),r=Uo(n),i=t.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var d=sI();(d||!d&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Ey(n),y:l}}function tit(n){var e,t=Uo(n),r=yy(n),i=(e=n.ownerDocument)==null?void 0:e.body,s=pa(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=pa(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Ey(n),l=-r.scrollTop;return Ps(i||t).direction==="rtl"&&(a+=pa(t.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Sy(n){var e=Ps(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function dI(n){return["html","body","#document"].indexOf(Zi(n))>=0?n.ownerDocument.body:ci(n)&&Sy(n)?n:dI(im(n))}function $c(n,e){var t;e===void 0&&(e=[]);var r=dI(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),s=Hr(r),o=i?[s].concat(s.visualViewport||[],Sy(r)?r:[]):r,a=e.concat(o);return i?a:a.concat($c(im(o)))}function A1(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function nit(n,e){var t=kl(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function cA(n,e,t){return e===rI?A1(eit(n,t)):Sa(e)?nit(e,t):A1(tit(Uo(n)))}function rit(n){var e=$c(im(n)),t=["absolute","fixed"].indexOf(Ps(n).position)>=0,r=t&&ci(n)?Dd(n):n;return Sa(r)?e.filter(function(i){return Sa(i)&&oI(i,r)&&Zi(i)!=="body"}):[]}function iit(n,e,t,r){var i=e==="clippingParents"?rit(n):[].concat(e),s=[].concat(i,[t]),o=s[0],a=s.reduce(function(l,d){var u=cA(n,d,r);return l.top=pa(u.top,l.top),l.right=Vp(u.right,l.right),l.bottom=Vp(u.bottom,l.bottom),l.left=pa(u.left,l.left),l},cA(n,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function uI(n){var e=n.reference,t=n.element,r=n.placement,i=r?ji(r):null,s=r?Il(r):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case Mr:l={x:o,y:e.y-t.height};break;case fi:l={x:o,y:e.y+e.height};break;case gi:l={x:e.x+e.width,y:a};break;case Nr:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var d=i?vy(i):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Ml:l[d]=l[d]-(e[u]/2-t[u]/2);break;case fd:l[d]=l[d]+(e[u]/2-t[u]/2);break}}return l}function gd(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,s=t.strategy,o=s===void 0?n.strategy:s,a=t.boundary,l=a===void 0?Trt:a,d=t.rootBoundary,u=d===void 0?rI:d,m=t.elementContext,f=m===void 0?vc:m,g=t.altBoundary,h=g===void 0?!1:g,v=t.padding,b=v===void 0?0:v,_=lI(typeof b!="number"?b:cI(b,Od)),y=f===vc?wrt:vc,E=n.rects.popper,x=n.elements[h?y:f],A=iit(Sa(x)?x:x.contextElement||Uo(n.elements.popper),l,u,o),w=kl(n.elements.reference),N=uI({reference:w,element:E,strategy:"absolute",placement:i}),L=A1(Object.assign({},E,N)),C=f===vc?L:w,k={top:A.top-C.top+_.top,bottom:C.bottom-A.bottom+_.bottom,left:A.left-C.left+_.left,right:C.right-A.right+_.right},H=n.modifiersData.offset;if(f===vc&&H){var q=H[i];Object.keys(k).forEach(function(ie){var D=[gi,fi].indexOf(ie)>=0?1:-1,$=[Mr,fi].indexOf(ie)>=0?"y":"x";k[ie]+=q[$]*D})}return k}function sit(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,s=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,d=l===void 0?iI:l,u=Il(r),m=u?a?sA:sA.filter(function(h){return Il(h)===u}):Od,f=m.filter(function(h){return d.indexOf(h)>=0});f.length===0&&(f=m);var g=f.reduce(function(h,v){return h[v]=gd(n,{placement:v,boundary:i,rootBoundary:s,padding:o})[ji(v)],h},{});return Object.keys(g).sort(function(h,v){return g[h]-g[v]})}function oit(n){if(ji(n)===gy)return[];var e=pp(n);return[lA(n),e,lA(e)]}function ait(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,s=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,d=t.padding,u=t.boundary,m=t.rootBoundary,f=t.altBoundary,g=t.flipVariations,h=g===void 0?!0:g,v=t.allowedAutoPlacements,b=e.options.placement,_=ji(b),y=_===b,E=l||(y||!h?[pp(b)]:oit(b)),x=[b].concat(E).reduce(function(Ae,Fe){return Ae.concat(ji(Fe)===gy?sit(e,{placement:Fe,boundary:u,rootBoundary:m,padding:d,flipVariations:h,allowedAutoPlacements:v}):Fe)},[]),A=e.rects.reference,w=e.rects.popper,N=new Map,L=!0,C=x[0],k=0;k=0,$=D?"width":"height",K=gd(e,{placement:H,boundary:u,rootBoundary:m,altBoundary:f,padding:d}),B=D?ie?gi:Nr:ie?fi:Mr;A[$]>w[$]&&(B=pp(B));var Z=pp(B),ce=[];if(s&&ce.push(K[q]<=0),a&&ce.push(K[B]<=0,K[Z]<=0),ce.every(function(Ae){return Ae})){C=H,L=!1;break}N.set(H,ce)}if(L)for(var ue=h?3:1,xe=function(Fe){var ze=x.find(function(te){var ye=N.get(te);if(ye)return ye.slice(0,Fe).every(function(Se){return Se})});if(ze)return C=ze,"break"},Ce=ue;Ce>0;Ce--){var me=xe(Ce);if(me==="break")break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}}const lit={name:"flip",enabled:!0,phase:"main",fn:ait,requiresIfExists:["offset"],data:{_skip:!1}};function dA(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 uA(n){return[Mr,gi,fi,Nr].some(function(e){return n[e]>=0})}function cit(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=gd(e,{elementContext:"reference"}),a=gd(e,{altBoundary:!0}),l=dA(o,r),d=dA(a,i,s),u=uA(l),m=uA(d);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m})}const dit={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cit};function uit(n,e,t){var r=ji(n),i=[Nr,Mr].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Nr,gi].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function pit(n){var e=n.state,t=n.options,r=n.name,i=t.offset,s=i===void 0?[0,0]:i,o=iI.reduce(function(u,m){return u[m]=uit(m,e.rects,s),u},{}),a=o[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=o}const hit={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pit};function mit(n){var e=n.state,t=n.name;e.modifiersData[t]=uI({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const fit={name:"popperOffsets",enabled:!0,phase:"read",fn:mit,data:{}};function git(n){return n==="x"?"y":"x"}function _it(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,s=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,d=t.rootBoundary,u=t.altBoundary,m=t.padding,f=t.tether,g=f===void 0?!0:f,h=t.tetherOffset,v=h===void 0?0:h,b=gd(e,{boundary:l,rootBoundary:d,padding:m,altBoundary:u}),_=ji(e.placement),y=Il(e.placement),E=!y,x=vy(_),A=git(x),w=e.modifiersData.popperOffsets,N=e.rects.reference,L=e.rects.popper,C=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,k=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,q={x:0,y:0};if(w){if(s){var ie,D=x==="y"?Mr:Nr,$=x==="y"?fi:gi,K=x==="y"?"height":"width",B=w[x],Z=B+b[D],ce=B-b[$],ue=g?-L[K]/2:0,xe=y===Ml?N[K]:L[K],Ce=y===Ml?-L[K]:-N[K],me=e.elements.arrow,Ae=g&&me?by(me):{width:0,height:0},Fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:aI(),ze=Fe[D],te=Fe[$],ye=Yc(0,N[K],Ae[K]),Se=E?N[K]/2-ue-ye-ze-k.mainAxis:xe-ye-ze-k.mainAxis,Oe=E?-N[K]/2+ue+ye+te+k.mainAxis:Ce+ye+te+k.mainAxis,Ye=e.elements.arrow&&Dd(e.elements.arrow),le=Ye?x==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,V=(ie=H==null?void 0:H[x])!=null?ie:0,G=B+Se-V-le,oe=B+Oe-V,ge=Yc(g?Vp(Z,G):Z,B,g?pa(ce,oe):ce);w[x]=ge,q[x]=ge-B}if(a){var Ee,Te=x==="x"?Mr:Nr,fe=x==="x"?fi:gi,Ue=w[A],Pe=A==="y"?"height":"width",Re=Ue+b[Te],U=Ue-b[fe],I=[Mr,Nr].indexOf(_)!==-1,ee=(Ee=H==null?void 0:H[A])!=null?Ee:0,we=I?Re:Ue-N[Pe]-L[Pe]-ee+k.altAxis,ne=I?Ue+N[Pe]+L[Pe]-ee-k.altAxis:U,pe=g&&I?zrt(we,Ue,ne):Yc(g?we:Re,Ue,g?ne:U);w[A]=pe,q[A]=pe-Ue}e.modifiersData[r]=q}}const bit={name:"preventOverflow",enabled:!0,phase:"main",fn:_it,requiresIfExists:["offset"]};function vit(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function yit(n){return n===Hr(n)||!ci(n)?yy(n):vit(n)}function Eit(n){var e=n.getBoundingClientRect(),t=Nl(e.width)/n.offsetWidth||1,r=Nl(e.height)/n.offsetHeight||1;return t!==1||r!==1}function Sit(n,e,t){t===void 0&&(t=!1);var r=ci(e),i=ci(e)&&Eit(e),s=Uo(e),o=kl(n,i,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((Zi(e)!=="body"||Sy(s))&&(a=yit(e)),ci(e)?(l=kl(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Ey(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function xit(n){var e=new Map,t=new Set,r=[];n.forEach(function(s){e.set(s.name,s)});function i(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),r.push(s)}return n.forEach(function(s){t.has(s.name)||i(s)}),r}function Tit(n){var e=xit(n);return Lrt.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function wit(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Cit(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var pA={placement:"bottom",modifiers:[],strategy:"absolute"};function hA(){for(var n=arguments.length,e=new Array(n),t=0;t{this.createPopper()})},closeMenu(n){var e;!this.$el.contains(n.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(n.target))&&(this.isOpen=!1)},createPopper(){const n=this.$el.querySelector("button"),e=this.$refs.dropdown;n&&e&&(this.popperInstance=sm(n,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},Nit={class:"relative inline-block text-left"},kit={key:0,ref:"dropdown",class:"z-50 w-56 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 dark:ring-white dark:ring-opacity-20 focus:outline-none dropdown-shadow text-gray-700 dark:text-white"},Iit={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function Oit(n,e,t,r,i,s){const o=gt("ToolbarButton");return T(),M("div",Nit,[c("div",null,[W(o,{onClick:J(s.toggleMenu,["stop"]),title:t.title,icon:"code"},null,8,["onClick","title"])]),(T(),Tt(vD,{to:"body"},[i.isOpen?(T(),M("div",kit,[c("div",Iit,[On(n.$slots,"default",{},void 0,!0)])],512)):Y("",!0)]))])}const pI=bt(Mit,[["render",Oit],["__scopeId","data-v-6c3ea3a5"]]);async function mA(n,e="",t=[]){return new Promise((r,i)=>{const s=document.createElement("div");s.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?s.innerHTML=` +
    +

    ${n}

    + +
    + + +
    +
    + `:s.innerHTML=` +
    +

    ${n}

    + +
    + + +
    +
    + `,document.body.appendChild(s);const o=s.querySelector("#cancelButton"),a=s.querySelector("#okButton");o.addEventListener("click",()=>{document.body.removeChild(s),r(null)}),a.addEventListener("click",()=>{if(t.length===0){const d=s.querySelector("#replacementInput").value.trim();document.body.removeChild(s),r(d)}else{const d=s.querySelector("#options_selector").value.trim();document.body.removeChild(s),r(d)}})})}function Dit(n,e){console.log(n);let t={},r=/@<([^>]+)>@/g,i=[],s;for(;(s=r.exec(n))!==null;)i.push("@<"+s[1]+">@");console.log("matches"),console.log(i),i=[...new Set(i)];async function o(l){console.log(l);let d=l.toLowerCase().substring(2,l.length-2);if(d!=="generation_placeholder")if(d.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([b,_])=>{console.log(`Key: ${b}, Value: ${_}`);function y(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const E=y(b),x=new RegExp(E,"g");d=d.replace(x,_)});let m=d.split(":"),f=m[0],g=m[1]||"",h=[];m.length>2&&(h=m.slice(1));let v=await mA(f,g,h);v!==null&&(t[l]=v)}else{let u=await mA(d);u!==null&&(t[l]=u)}}let a=Promise.resolve();i.forEach(l=>{a=a.then(()=>o(l)).then(d=>{console.log(d)})}),a.then(()=>{Object.entries(t).forEach(([l,d])=>{console.log(`Key: ${l}, Value: ${d}`);function u(g){return g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const m=u(l),f=new RegExp(m,"g");n=n.replace(f,d)}),e(n)})}const Lit={name:"PlayGroundView",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},showSettings:!1,pending:!1,is_recording:!1,is_deaf_transcribing:!1,cpp_block:Zk,html5_block:Jk,LaTeX_block:eI,javascript_block:Qk,json_block:Xk,code_block:Kk,python_block:jk,bash_block:tI,tokenize_icon:mrt,deaf_off:grt,deaf_on:frt,rec_off:brt,rec_on:_rt,loading_icon:nI,isSynthesizingVoice:!1,audio_url:null,mdRenderHeight:300,selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,namedTokens:[],text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:Fh,MarkdownRenderer:nm,ClipBoardTextInput:my,TokensHilighter:art,ChatBarButton:Wk,Card:rm,ToolbarButton:fy,DropdownMenu:pI},mounted(){de.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}),rt.on("text_chunk",n=>{this.appendToOutput(n.chunk)}),rt.on("text_generated",n=>{this.generating=!1}),rt.on("generation_error",n=>{console.log("generation_error:",n),this.$refs.toast.showToast(`Error: ${n}`,4,!1),this.generating=!1}),rt.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),rt.on("buzzy",n=>{console.error("Server is busy. Wait for your turn",n),this.$refs.toast.showToast(`Error: ${n.message}`,4,!1),this.generating=!1}),rt.on("generation_canceled",n=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{Ze.replace()}),"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser.")},created(){},watch:{audio_url(n){n&&(console.log("Audio changed url to :",n),this.$refs.audio_player.src=n)}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{triggerFileUpload(){this.$refs.fileInput.click()},handleFileUpload(n){this.file=this.$refs.fileInput.files[0],this.buttonText=this.file.name,this.uploadFile()},uploadFile(){console.log("sending file");const n=new FormData;n.append("file",this.file),de.post("/upload_voice/",n,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{console.log(e),this.buttonText="Upload a voice"}).catch(e=>{console.error(e)})},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.text[e-1]==` +`?(this.text=this.text.slice(0,e)+"```"+n+"\n\n```\n"+this.text.slice(e),e=e+4+n.length):(this.text=this.text.slice(0,e)+"\n```"+n+"\n\n```\n"+this.text.slice(e),e=e+3+n.length):speechSynthesis==0||this.text[e-1]==` +`?(this.text=this.text.slice(0,e)+"```"+n+` +`+this.text.slice(e,t)+"\n```\n"+this.text.slice(t),e=e+4+n.length):(this.text=this.text.slice(0,e)+"\n```"+n+` +`+this.text.slice(e,t)+"\n```\n"+this.text.slice(t),e=e+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},insertTab(n){const e=n.target,t=e.selectionStart,r=e.selectionEnd,i=e.value.substring(0,t),s=e.value.substring(r),o=i+" "+s;this.text=o,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4}),n.preventDefault()},mdTextarea_changed(){console.log("mdTextarea_changed"),this.cursorPosition=this.$refs.mdTextarea.selectionStart},mdTextarea_clicked(){console.log(`mdTextarea_clicked: ${this.$refs.mdTextarea.selectionStart}`),this.cursorPosition=this.$refs.mdTextarea.selectionStart},setModel(){this.selecting_model=!0,de.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:this.selectedModel}).then(n=>{console.log(n),n.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(n=>{this.$refs.toast.showToast(`Error ${n}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){console.log("READING..."),this.isSynthesizingVoice=!0;let n=this.$refs.mdTextarea.selectionStart,e=this.$refs.mdTextarea.selectionEnd,t=this.text;n!=e&&(t=t.slice(n,e)),de.post("./text2Wave",{client_id:this.$store.state.client_id,text:t}).then(r=>{console.log(r.data.url);let i=r.data.url;this.audio_url=i,this.isSynthesizingVoice=!1,We(()=>{Ze.replace()})}).catch(r=>{this.$refs.toast.showToast(`Error: ${r}`,4,!1),this.isSynthesizingVoice=!1,We(()=>{Ze.replace()})})},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(i=>i.name===this.$store.state.config.audio_out_voice)[0]);const t=i=>{let s=this.text.substring(i,i+e);const o=[".","!","?",` +`];let a=-1;return o.forEach(l=>{const d=s.lastIndexOf(l);d>a&&(a=d)}),a==-1&&(a=s.length),console.log(a),a+i+1},r=()=>{const i=t(n),s=this.text.substring(n,i);this.msg.text=s,n=i+1,this.msg.onend=o=>{n{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",i))},this.speechSynthesis.speak(this.msg)};r()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(n){this.pre_text+=n,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let n=this.text.indexOf("@@");if(n<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,n)+this.text.substring(n+26,this.text.length),this.pre_text=this.text.substring(0,n),this.post_text=this.text.substring(n,this.text.length);var e=this.text.substring(0,n);console.log(e),rt.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const n=await de.post("/lollms_tokenize",{prompt:this.text},{headers:this.posts_headers});console.log(n.data.named_tokens),this.namedTokens=n.data.named_tokens},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var n=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${n}`),rt.emit("generate_text",{prompt:n,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){rt.emit("cancel_text_generation",{})},exportText(){const n=this.text,e=document.createElement("a"),t=new Blob([n],{type:"text/plain"});e.href=URL.createObjectURL(t),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const n=document.getElementById("import-input");n&&(n.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const t=new FileReader;t.onload=()=>{this.text=t.result},t.readAsText(e.target.files[0])}else alert("Please select a file.")}),n.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=Dit(this.selectedPreset.content,n=>{console.log("Done"),console.log(n),this.text=n})},addPreset(){let n=prompt("Enter the title of the preset:");this.presets[n]={client_id:this.$store.state.client_id,name:n,content:this.text},de.post("./add_preset",this.presets[n]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){de.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?de.post("/stop_recording",{client_id:this.$store.state.client_id}).then(n=>{this.is_recording=!1,this.pending=!1,console.log(n),this.text+=n.data,console.log("text"),console.log(this.text),console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):de.post("/start_recording",{client_id:this.$store.state.client_id}).then(n=>{this.is_recording=!0,this.pending=!1,console.log(n.data)}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?de.get("/stop_recording").then(n=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=n.data.text,this.read()}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):de.get("/start_recording").then(n=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=n=>{this.generated="";for(let e=n.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},Pit={class:"container w-full background-color shadow-lg overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Fit={class:"container flex flex-row m-2 w-full"},Uit={class:"flex-grow w-full m-2"},Bit={class:"flex panels-color gap-3 flex-1 items-center flex-grow flex-row rounded-md border-2 border-blue-300 m-2 p-4"},Git={class:"flex items-center space-x-2"},zit=["src"],Vit=["src"],Hit=["src"],qit=["src"],Yit=["src"],$it={key:1,class:"w-6 h-6"},Wit={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},Kit={key:0},jit=["src"],Qit={key:2},Xit={key:0,class:"settings scrollbar bg-white dark:bg-gray-800 rounded-lg shadow-md p-6"},Zit=["value"],Jit={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},est=["value"],tst={class:"slider-container ml-2 mr-2"},nst={class:"slider-value text-gray-500"},rst={class:"slider-container ml-2 mr-2"},ist={class:"slider-value text-gray-500"},sst={class:"slider-container ml-2 mr-2"},ost={class:"slider-value text-gray-500"},ast={class:"slider-container ml-2 mr-2"},lst={class:"slider-value text-gray-500"},cst={class:"slider-container ml-2 mr-2"},dst={class:"slider-value text-gray-500"},ust={class:"slider-container ml-2 mr-2"},pst={class:"slider-value text-gray-500"},hst={class:"slider-container ml-2 mr-2"},mst={class:"slider-value text-gray-500"},fst={class:"slider-container ml-2 mr-2"},gst={class:"slider-value text-gray-500"};function _st(n,e,t,r,i,s){const o=gt("ChatBarButton"),a=gt("ToolbarButton"),l=gt("DropdownSubmenu"),d=gt("DropdownMenu"),u=gt("tokens-hilighter"),m=gt("MarkdownRenderer"),f=gt("Card"),g=gt("Toast");return T(),M(je,null,[c("div",Pit,[c("div",Fit,[c("div",Uit,[c("div",Bit,[c("div",Git,[F(W(o,{onClick:s.generate,title:"Generate from the current cursor position"},{icon:Ge(()=>e[54]||(e[54]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)])),_:1},8,["onClick"]),[[Dt,!i.generating]]),F(W(o,{onClick:s.generate_in_placeholder,title:"Generate from the next placeholder"},{icon:Ge(()=>e[55]||(e[55]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})],-1)])),_:1},8,["onClick"]),[[Dt,!i.generating]]),F(W(o,{onClick:s.tokenize_text,title:"Tokenize the text"},{icon:Ge(()=>[c("img",{src:i.tokenize_icon,alt:"Tokenize",class:"h-5 w-5"},null,8,zit)]),_:1},8,["onClick"]),[[Dt,!i.generating]]),e[65]||(e[65]=c("span",{class:"w-80"},null,-1)),F(W(o,{onClick:s.stopGeneration,title:"Stop generation"},{icon:Ge(()=>e[56]||(e[56]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])),_:1},8,["onClick"]),[[Dt,i.generating]]),W(o,{onClick:s.startSpeechRecognition,class:qe({"text-red-500":n.isListeningToVoice}),title:"Dictate (using your browser's transcription)"},{icon:Ge(()=>e[57]||(e[57]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),W(o,{onClick:s.speak,class:qe({"text-red-500":s.isTalking}),title:"Convert text to audio (not saved, uses your browser's TTS service)"},{icon:Ge(()=>e[58]||(e[58]=[pt(" 🪶 ")])),_:1},8,["onClick","class"]),W(o,{onClick:s.triggerFileUpload,title:"Upload a voice"},{icon:Ge(()=>e[59]||(e[59]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.startRecordingAndTranscribing,class:qe({"text-green-500":i.isLesteningToVoice}),title:"Start audio to audio"},{icon:Ge(()=>[i.pending?(T(),M("img",{key:1,src:i.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,Hit)):(T(),M("img",{key:0,src:i.is_deaf_transcribing?i.deaf_on:i.deaf_off,alt:"Deaf",class:"h-5 w-5"},null,8,Vit))]),_:1},8,["onClick","class"]),W(o,{onClick:s.startRecording,class:qe({"text-green-500":i.isLesteningToVoice}),title:"Start audio recording"},{icon:Ge(()=>[i.pending?(T(),M("img",{key:1,src:i.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,Yit)):(T(),M("img",{key:0,src:i.is_recording?i.rec_on:i.rec_off,alt:"Record",class:"h-5 w-5"},null,8,qit))]),_:1},8,["onClick","class"]),i.isSynthesizingVoice?(T(),M("div",$it,e[61]||(e[61]=[c("svg",{class:"animate-spin h-5 w-5 text-secondary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))):(T(),Tt(o,{key:0,onClick:s.read,title:"Generate audio from text"},{icon:Ge(()=>e[60]||(e[60]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick"])),F(W(o,{onClick:s.exportText,title:"Export text"},{icon:Ge(()=>e[62]||(e[62]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1)])),_:1},8,["onClick"]),[[Dt,!i.generating]]),F(W(o,{onClick:s.importText,title:"Import text"},{icon:Ge(()=>e[63]||(e[63]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),_:1},8,["onClick"]),[[Dt,!i.generating]]),W(o,{onClick:e[0]||(e[0]=h=>i.showSettings=!i.showSettings),title:"Settings"},{icon:Ge(()=>e[64]||(e[64]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1})]),c("input",{type:"file",ref:"fileInput",onChange:e[1]||(e[1]=(...h)=>s.handleFileUpload&&s.handleFileUpload(...h)),style:{display:"none"},accept:".wav"},null,544),c("div",Wit,[c("button",{class:qe(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":i.tab_id=="source"}]),onClick:e[2]||(e[2]=h=>i.tab_id="source")}," Source ",2),c("button",{class:qe(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":i.tab_id=="render"}]),onClick:e[3]||(e[3]=h=>i.tab_id="render")}," Render ",2)]),e[66]||(e[66]=c("input",{type:"file",id:"import-input",class:"hidden"},null,-1))]),c("div",{class:qe(["flex-grow m-2 p-2 border panels-color border-blue-300 rounded-md",{"border-red-500":i.generating}])},[i.tab_id==="source"?(T(),M("div",Kit,[W(d,{title:"Add Block"},{default:Ge(()=>[W(l,{title:"Programming Languages",icon:"code"},{default:Ge(()=>[W(a,{onClick:e[4]||(e[4]=J(h=>s.addBlock("python"),["stop"])),title:"Python",icon:"python"}),W(a,{onClick:e[5]||(e[5]=J(h=>s.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),W(a,{onClick:e[6]||(e[6]=J(h=>s.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),W(a,{onClick:e[7]||(e[7]=J(h=>s.addBlock("java"),["stop"])),title:"Java",icon:"java"}),W(a,{onClick:e[8]||(e[8]=J(h=>s.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),W(a,{onClick:e[9]||(e[9]=J(h=>s.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),W(a,{onClick:e[10]||(e[10]=J(h=>s.addBlock("go"),["stop"])),title:"Go",icon:"go"}),W(a,{onClick:e[11]||(e[11]=J(h=>s.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),W(a,{onClick:e[12]||(e[12]=J(h=>s.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),W(a,{onClick:e[13]||(e[13]=J(h=>s.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),W(a,{onClick:e[14]||(e[14]=J(h=>s.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),W(l,{title:"Web Technologies",icon:"web"},{default:Ge(()=>[W(a,{onClick:e[15]||(e[15]=J(h=>s.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),W(a,{onClick:e[16]||(e[16]=J(h=>s.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),W(a,{onClick:e[17]||(e[17]=J(h=>s.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),W(a,{onClick:e[18]||(e[18]=J(h=>s.addBlock("react"),["stop"])),title:"React",icon:"react"}),W(a,{onClick:e[19]||(e[19]=J(h=>s.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),W(l,{title:"Markup and Data",icon:"file-code"},{default:Ge(()=>[W(a,{onClick:e[20]||(e[20]=J(h=>s.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),W(a,{onClick:e[21]||(e[21]=J(h=>s.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),W(a,{onClick:e[22]||(e[22]=J(h=>s.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),W(a,{onClick:e[23]||(e[23]=J(h=>s.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),W(a,{onClick:e[24]||(e[24]=J(h=>s.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),W(l,{title:"Scripting and Shell",icon:"terminal"},{default:Ge(()=>[W(a,{onClick:e[25]||(e[25]=J(h=>s.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),W(a,{onClick:e[26]||(e[26]=J(h=>s.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),W(a,{onClick:e[27]||(e[27]=J(h=>s.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),W(l,{title:"Diagramming",icon:"sitemap"},{default:Ge(()=>[W(a,{onClick:e[28]||(e[28]=J(h=>s.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),W(a,{onClick:e[29]||(e[29]=J(h=>s.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),W(a,{onClick:e[30]||(e[30]=J(h=>s.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),W(l,{title:"Database",icon:"database"},{default:Ge(()=>[W(a,{onClick:e[31]||(e[31]=J(h=>s.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),W(a,{onClick:e[32]||(e[32]=J(h=>s.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),W(a,{onClick:e[33]||(e[33]=J(h=>s.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1}),W(a,{onClick:e[34]||(e[34]=J(h=>n.copyContentToClipboard(),["stop"])),title:"Copy message to clipboard",icon:"copy"}),F(c("textarea",{ref:"mdTextarea",onKeydown:e[35]||(e[35]=ui(J((...h)=>s.insertTab&&s.insertTab(...h),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,style:on({minHeight:i.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[36]||(e[36]=h=>i.text=h),onClick:e[37]||(e[37]=J((...h)=>s.mdTextarea_clicked&&s.mdTextarea_clicked(...h),["prevent"])),onChange:e[38]||(e[38]=J((...h)=>s.mdTextarea_changed&&s.mdTextarea_changed(...h),["prevent"]))}," ",36),[[_e,i.text]]),c("span",null,"Cursor position "+X(i.cursorPosition),1)])):Y("",!0),i.audio_url!=null?(T(),M("audio",{controls:"",key:i.audio_url},[c("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,jit),e[67]||(e[67]=pt(" Your browser does not support the audio element. "))])):Y("",!0),W(u,{namedTokens:i.namedTokens},null,8,["namedTokens"]),i.tab_id==="render"?(T(),M("div",Qit,[W(m,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":i.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):Y("",!0)],2)]),i.showSettings?(T(),M("div",Xit,[e[82]||(e[82]=c("h2",{class:"text-2xl font-bold text-gray-900 dark:text-white mb-4"},"Settings",-1)),W(f,{title:"Model",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ge(()=>[F(c("select",{"onUpdate:modelValue":e[39]||(e[39]=h=>this.$store.state.selectedModel=h),onChange:e[40]||(e[40]=(...h)=>s.setModel&&s.setModel(...h)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),M(je,null,at(s.models,h=>(T(),M("option",{key:h,value:h},X(h),9,Zit))),128))],544),[[Qt,this.$store.state.selectedModel]]),i.selecting_model?(T(),M("div",Jit,e[68]||(e[68]=[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"},"Selecting model...")],-1)]))):Y("",!0)]),_:1}),W(f,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ge(()=>[F(c("select",{"onUpdate:modelValue":e[41]||(e[41]=h=>i.selectedPreset=h),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(T(!0),M(je,null,at(i.presets,h=>(T(),M("option",{key:h,value:h},X(h.name),9,est))),128))],512),[[Qt,i.selectedPreset]]),e[73]||(e[73]=c("br",null,null,-1)),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[42]||(e[42]=(...h)=>s.setPreset&&s.setPreset(...h)),title:"Use preset"},e[69]||(e[69]=[c("i",{"data-feather":"check"},null,-1)])),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[43]||(e[43]=(...h)=>s.addPreset&&s.addPreset(...h)),title:"Add this text as a preset"},e[70]||(e[70]=[c("i",{"data-feather":"plus"},null,-1)])),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[44]||(e[44]=(...h)=>s.removePreset&&s.removePreset(...h)),title:"Remove preset"},e[71]||(e[71]=[c("i",{"data-feather":"x"},null,-1)])),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[45]||(e[45]=(...h)=>s.reloadPresets&&s.reloadPresets(...h)),title:"Reload presets list"},e[72]||(e[72]=[c("i",{"data-feather":"refresh-ccw"},null,-1)]))]),_:1}),W(f,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ge(()=>[c("div",tst,[e[74]||(e[74]=c("h3",{class:"text-gray-600"},"Temperature",-1)),F(c("input",{type:"range","onUpdate:modelValue":e[46]||(e[46]=h=>i.temperature=h),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[_e,i.temperature]]),c("span",nst,"Current value: "+X(i.temperature),1)]),c("div",rst,[e[75]||(e[75]=c("h3",{class:"text-gray-600"},"Top K",-1)),F(c("input",{type:"range","onUpdate:modelValue":e[47]||(e[47]=h=>i.top_k=h),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[_e,i.top_k]]),c("span",ist,"Current value: "+X(i.top_k),1)]),c("div",sst,[e[76]||(e[76]=c("h3",{class:"text-gray-600"},"Top P",-1)),F(c("input",{type:"range","onUpdate:modelValue":e[48]||(e[48]=h=>i.top_p=h),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[_e,i.top_p]]),c("span",ost,"Current value: "+X(i.top_p),1)]),c("div",ast,[e[77]||(e[77]=c("h3",{class:"text-gray-600"},"Repeat Penalty",-1)),F(c("input",{type:"range","onUpdate:modelValue":e[49]||(e[49]=h=>i.repeat_penalty=h),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[_e,i.repeat_penalty]]),c("span",lst,"Current value: "+X(i.repeat_penalty),1)]),c("div",cst,[e[78]||(e[78]=c("h3",{class:"text-gray-600"},"Repeat Last N",-1)),F(c("input",{type:"range","onUpdate:modelValue":e[50]||(e[50]=h=>i.repeat_last_n=h),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[_e,i.repeat_last_n]]),c("span",dst,"Current value: "+X(i.repeat_last_n),1)]),c("div",ust,[e[79]||(e[79]=c("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1)),F(c("input",{type:"number","onUpdate:modelValue":e[51]||(e[51]=h=>i.n_crop=h),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[_e,i.n_crop]]),c("span",pst,"Current value: "+X(i.n_crop),1)]),c("div",hst,[e[80]||(e[80]=c("h3",{class:"text-gray-600"},"Number of tokens to generate",-1)),F(c("input",{type:"number","onUpdate:modelValue":e[52]||(e[52]=h=>i.n_predicts=h),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[_e,i.n_predicts]]),c("span",mst,"Current value: "+X(i.n_predicts),1)]),c("div",fst,[e[81]||(e[81]=c("h3",{class:"text-gray-600"},"Seed",-1)),F(c("input",{type:"number","onUpdate:modelValue":e[53]||(e[53]=h=>i.seed=h),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[_e,i.seed]]),c("span",gst,"Current value: "+X(i.seed),1)])]),_:1})])):Y("",!0)])]),W(g,{ref:"toast"},null,512)],64)}const bst=bt(Lit,[["render",_st]]),vst={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(i5(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(n){this.activeExtension=n}}},yst={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Est={key:0},Sst=["onClick"],xst={key:0},Tst=["src"],wst={key:1};function Cst(n,e,t,r,i,s){return T(),M("div",yst,[s.activeExtensions.length>0?(T(),M("div",Est,[(T(!0),M(je,null,at(s.activeExtensions,o=>(T(),M("div",{key:o.name,onClick:a=>s.showExtensionPage(o)},[c("div",{class:qe({"active-tab":o===i.activeExtension})},X(o.name),3)],8,Sst))),128)),i.activeExtension?(T(),M("div",xst,[c("iframe",{src:i.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,Tst)])):Y("",!0)])):(T(),M("div",wst,e[0]||(e[0]=[c("p",null,"No extension is active. Please install and activate an extension.",-1)])))])}const Ast=bt(vst,[["render",Cst]]);function xy(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ka=xy();function hI(n){ka=n}const mI=/[&<>"']/,Rst=new RegExp(mI.source,"g"),fI=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Mst=new RegExp(fI.source,"g"),Nst={"&":"&","<":"<",">":">",'"':""","'":"'"},fA=n=>Nst[n];function Ur(n,e){if(e){if(mI.test(n))return n.replace(Rst,fA)}else if(fI.test(n))return n.replace(Mst,fA);return n}const kst=/(^|[^\[])\^/g;function dn(n,e){let t=typeof n=="string"?n:n.source;e=e||"";const r={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(kst,"$1"),t=t.replace(i,o),r},getRegex:()=>new RegExp(t,e)};return r}function gA(n){try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const Wc={exec:()=>null};function _A(n,e){const t=n.replace(/\|/g,(s,o,a)=>{let l=!1,d=o;for(;--d>=0&&a[d]==="\\";)l=!l;return l?"|":" |"}),r=t.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length{const s=i.match(/^\s+/);if(s===null)return i;const[o]=s;return o.length>=r.length?i.slice(r.length):i}).join(` +`)}class Hp{constructor(e){pn(this,"options");pn(this,"rules");pn(this,"lexer");this.options=e||ka}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:yc(r,` +`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],i=Ost(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const i=yc(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:yc(t[0],` +`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=yc(t[0],` +`).split(` +`),i="",s="";const o=[];for(;r.length>0;){let a=!1;const l=[];let d;for(d=0;d/.test(r[d]))l.push(r[d]),a=!0;else if(!a)l.push(r[d]);else break;r=r.slice(d);const u=l.join(` +`),m=u.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` + $1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i} +${u}`:u,s=s?`${s} +${m}`:m;const f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,o,!0),this.lexer.state.top=f,r.length===0)break;const g=o[o.length-1];if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){const h=g,v=h.raw+` +`+r.join(` +`),b=this.blockquote(v);o[o.length-1]=b,i=i.substring(0,i.length-h.raw.length)+b.raw,s=s.substring(0,s.length-h.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){const h=g,v=h.raw+` +`+r.join(` +`),b=this.list(v);o[o.length-1]=b,i=i.substring(0,i.length-g.raw.length)+b.raw,s=s.substring(0,s.length-h.raw.length)+b.raw,r=v.substring(o[o.length-1].raw.length).split(` +`);continue}}return{type:"blockquote",raw:i,tokens:o,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const o=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;e;){let l=!1,d="",u="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let m=t[2].split(` +`,1)[0].replace(/^\t+/,_=>" ".repeat(3*_.length)),f=e.split(` +`,1)[0],g=!m.trim(),h=0;if(this.options.pedantic?(h=2,u=m.trimStart()):g?h=t[1].length+1:(h=t[2].search(/[^ ]/),h=h>4?1:h,u=m.slice(h),h+=t[1].length),g&&/^[ \t]*$/.test(f)&&(d+=f+` +`,e=e.substring(f.length+1),l=!0),!l){const _=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),y=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),E=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),x=new RegExp(`^ {0,${Math.min(3,h-1)}}#`),A=new RegExp(`^ {0,${Math.min(3,h-1)}}<[a-z].*>`,"i");for(;e;){const w=e.split(` +`,1)[0];let N;if(f=w,this.options.pedantic?(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),N=f):N=f.replace(/\t/g," "),E.test(f)||x.test(f)||A.test(f)||_.test(f)||y.test(f))break;if(N.search(/[^ ]/)>=h||!f.trim())u+=` +`+N.slice(h);else{if(g||m.replace(/\t/g," ").search(/[^ ]/)>=4||E.test(m)||x.test(m)||y.test(m))break;u+=` +`+f}!g&&!f.trim()&&(g=!0),d+=w+` +`,e=e.substring(w.length+1),m=N.slice(h)}}s.loose||(a?s.loose=!0:/\n[ \t]*\n[ \t]*$/.test(d)&&(a=!0));let v=null,b;this.options.gfm&&(v=/^\[[ xX]\] /.exec(u),v&&(b=v[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:d,task:!!v,checked:b,loose:!1,text:u,tokens:[]}),s.raw+=d}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let l=0;lm.type==="space"),u=d.length>0&&d.some(m=>/\n.*\n/.test(m.raw));s.loose=u}if(s.loose)for(let l=0;l$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const r=_A(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),s=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` +`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[d]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===` +`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ur(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const o=yc(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=Ist(t[2],"()");if(o>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),bA(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const i=(r[2]||r[1]).replace(/\s+/g," "),s=t[i.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return bA(r,s,r[0],this.lexer)}}emStrong(e,t,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...i[0]].length-1;let a,l,d=o,u=0;const m=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+o);(i=m.exec(t))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){d+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){u+=l;continue}if(d-=l,d>0)continue;l=Math.min(l,l+d+u);const f=[...i[0]][0].length,g=e.slice(0,o+i.index+f+l);if(Math.min(o,l)%2){const v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}const h=g.slice(2,-2);return{type:"strong",raw:g,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const i=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return i&&s&&(r=r.substring(1,r.length-1)),r=Ur(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,i;return t[2]==="@"?(r=Ur(t[1]),i="mailto:"+r):(r=Ur(t[1]),i=r),{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=Ur(t[0]),s="mailto:"+i;else{let o;do o=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(o!==t[0]);i=Ur(t[0]),t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let r;return this.lexer.state.inRawBlock?r=t[0]:r=Ur(t[0]),{type:"text",raw:t[0],text:r}}}}const Dst=/^(?:[ \t]*(?:\n|$))+/,Lst=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Pst=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ld=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fst=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gI=/(?:[*+-]|\d{1,9}[.)])/,_I=dn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,gI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ty=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ust=/^[^\n]+/,wy=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Bst=dn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wy).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gst=dn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gI).getRegex(),om="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Cy=/|$))/,zst=dn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Cy).replace("tag",om).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bI=dn(Ty).replace("hr",Ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",om).getRegex(),Vst=dn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bI).getRegex(),Ay={blockquote:Vst,code:Lst,def:Bst,fences:Pst,heading:Fst,hr:Ld,html:zst,lheading:_I,list:Gst,newline:Dst,paragraph:bI,table:Wc,text:Ust},vA=dn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",om).getRegex(),Hst={...Ay,table:vA,paragraph:dn(Ty).replace("hr",Ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vA).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",om).getRegex()},qst={...Ay,html:dn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Cy).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Wc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:dn(Ty).replace("hr",Ld).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",_I).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vI=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Yst=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yI=/^( {2,}|\\)\n(?!\s*$)/,$st=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,jst=dn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Pd).getRegex(),Qst=dn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Pd).getRegex(),Xst=dn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Pd).getRegex(),Zst=dn(/\\([punct])/,"gu").replace(/punct/g,Pd).getRegex(),Jst=dn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),eot=dn(Cy).replace("(?:-->|$)","-->").getRegex(),tot=dn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",eot).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qp=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,not=dn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",qp).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),EI=dn(/^!?\[(label)\]\[(ref)\]/).replace("label",qp).replace("ref",wy).getRegex(),SI=dn(/^!?\[(ref)\](?:\[\])?/).replace("ref",wy).getRegex(),rot=dn("reflink|nolink(?!\\()","g").replace("reflink",EI).replace("nolink",SI).getRegex(),Ry={_backpedal:Wc,anyPunctuation:Zst,autolink:Jst,blockSkip:Kst,br:yI,code:Yst,del:Wc,emStrongLDelim:jst,emStrongRDelimAst:Qst,emStrongRDelimUnd:Xst,escape:vI,link:not,nolink:SI,punctuation:Wst,reflink:EI,reflinkSearch:rot,tag:tot,text:$st,url:Wc},iot={...Ry,link:dn(/^!?\[(label)\]\((.*?)\)/).replace("label",qp).getRegex(),reflink:dn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qp).getRegex()},R1={...Ry,escape:dn(vI).replace("])","~|])").getRegex(),url:dn(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\(i=a.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),i.raw.length===1&&t.length>0?t[t.length-1].raw+=` +`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),s=t[t.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=` +`+i.raw,s.text+=` +`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),s=t[t.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=` +`+i.raw,s.text+=` +`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=e.slice(1);let d;this.options.extensions.startBlock.forEach(u=>{d=u.call({lexer:this},l),typeof d=="number"&&d>=0&&(a=Math.min(a,d))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){s=t[t.length-1],r&&(s==null?void 0:s.type)==="paragraph"?(s.raw+=` +`+i.raw,s.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(i),r=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),s=t[t.length-1],s&&s.type==="text"?(s.raw+=` +`+i.raw,s.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(i);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,i,s,o=e,a,l,d;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(l||(d=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(r=u.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),i=t[t.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,o,d)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const m=e.slice(1);let f;this.options.extensions.startInline.forEach(g=>{f=g.call({lexer:this},m),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(s=e.substring(0,u+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(d=r.raw.slice(-1)),l=!0,i=t[t.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):t.push(r);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class Yp{constructor(e){pn(this,"options");pn(this,"parser");this.options=e||ka}space(e){return""}code({text:e,lang:t,escaped:r}){var o;const i=(o=(t||"").match(/^\S*/))==null?void 0:o[0],s=e.replace(/\n$/,"")+` +`;return i?'
    '+(r?s:Ur(s,!0))+`
    +`:"
    "+(r?s:Ur(s,!0))+`
    +`}blockquote({tokens:e}){return`
    +${this.parser.parse(e)}
    +`}html({text:e}){return e}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} +`}hr(e){return`
    +`}list(e){const t=e.ordered,r=e.start;let i="";for(let a=0;a +`+i+" +`}listitem(e){let t="";if(e.task){const r=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" "}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • +`}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

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

    An error occurred:

    "+Ur(r.message+"",!0)+"
    ";return t?Promise.resolve(i):i}if(t)return Promise.reject(r);throw r}}}const xa=new oot;function nn(n,e){return xa.parse(n,e)}nn.options=nn.setOptions=function(n){return xa.setOptions(n),nn.defaults=xa.defaults,hI(nn.defaults),nn};nn.getDefaults=xy;nn.defaults=ka;nn.use=function(...n){return xa.use(...n),nn.defaults=xa.defaults,hI(nn.defaults),nn};nn.walkTokens=function(n,e){return xa.walkTokens(n,e)};nn.parseInline=xa.parseInline;nn.Parser=si;nn.parser=si.parse;nn.Renderer=Yp;nn.TextRenderer=My;nn.Lexer=ii;nn.lexer=ii.lex;nn.Tokenizer=Hp;nn.Hooks=Kc;nn.parse=nn;nn.options;nn.setOptions;nn.use;nn.walkTokens;nn.parseInline;si.parse;ii.lex;const aot={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(n){this.helpSections[n].isOpen=!this.helpSections[n].isOpen},async loadMarkdownFile(n){try{const t=await(await fetch(`/help/${n}`)).text();return nn(t)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const n=[{title:"About LoLLMs",file:"lollms-context.md"},{title:"Getting Started",file:"getting-started.md"},{title:"Uploading Files",file:"uploading-files.md"},{title:"Sending Images",file:"sending-images.md"},{title:"Using Code Interpreter",file:"code-interpreter.md"},{title:"Internet Search",file:"internet-search.md"}];for(const e of n){const t=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:t,isOpen:!1})}}},mounted(){this.loadHelpSections()}},lot={class:"help-view background-color p-6 w-full"},cot={class:"big-card w-full"},dot={class:"help-sections-container"},uot={class:"help-sections space-y-4"},pot=["onClick"],hot={class:"toggle-icon"},mot={key:0,class:"help-content mt-4"},fot=["innerHTML"];function got(n,e,t,r,i,s){return T(),M("div",lot,[c("div",cot,[e[0]||(e[0]=c("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),c("div",dot,[c("div",uot,[(T(!0),M(je,null,at(i.helpSections,(o,a)=>(T(),M("div",{key:a,class:"help-section message"},[c("h2",{onClick:l=>s.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[pt(X(o.title)+" ",1),c("span",hot,X(o.isOpen?"▼":"▶"),1)],8,pot),o.isOpen?(T(),M("div",mot,[c("div",{innerHTML:o.content,class:"prose dark:prose-invert"},null,8,fot)])):Y("",!0)]))),128))])])])])}const _ot=bt(aot,[["render",got],["__scopeId","data-v-8c1798f3"]]);function Wi(n,e=!0,t=1){const r=e?1e3:1024;if(Math.abs(n)=r&&s{Ze.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected",n),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),We(()=>{Ze.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},vot={class:"menu-container"},yot=["title"],Eot=["src"],Sot=["data-feather"],xot={key:2,class:"w-5 h-5"},Tot={key:3,"data-feather":"menu"},wot={class:"flex-grow menu-ul"},Cot=["onClick"],Aot={key:0,"data-feather":"check"},Rot=["src","alt"],Mot=["data-feather"],Not={key:3,class:"menu-icon"};function kot(n,e,t,r,i,s){return T(),M("div",vot,[c("button",{onClick:e[0]||(e[0]=J((...o)=>s.toggleMenu&&s.toggleMenu(...o),["prevent"])),title:t.title,class:qe([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(T(),M("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,Eot)):t.icon&&t.icon.includes("feather")?(T(),M("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,Sot)):t.icon&&t.icon.includes("#")?(T(),M("p",xot,X(t.icon.split("#")[1]),1)):(T(),M("i",Tot))],10,yot),W(Cs,{name:"slide"},{default:Ge(()=>[i.isMenuOpen?(T(),M("div",{key:0,class:"menu-list flex-grow",style:on(i.menuPosition),ref:"menu"},[c("ul",wot,[(T(!0),M(je,null,at(t.commands,(o,a)=>(T(),M("li",{key:a,onClick:J(l=>s.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(T(),M("i",Aot)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),M("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,Rot)):Y("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),M("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,Mot)):(T(),M("span",Not)),c("span",null,X(o.name),1)],8,Cot))),128))])],4)):Y("",!0)]),_:1})])}const Ny=bt(bot,[["render",kot]]),Iot={components:{InteractiveMenu:Ny},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){We(()=>{Ze.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return Wi(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?wr:this.model.icon},defaultImg(n){n.target.src=wr},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n){if(console.log("event.target.tagName.toLowerCase()"),console.log(n.target.tagName.toLowerCase()),n.target.tagName.toLowerCase()==="button"||n.target.tagName.toLowerCase()==="svg"){n.stopPropagation();return}this.onSelected(this),this.model.selected=!0,We(()=>{Ze.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&n.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return Wi(this.speed)},total_size_computed(){return Wi(this.total_size)},downloaded_size_computed(){return Wi(this.downloaded_size)}},watch:{linkNotValid(){We(()=>{Ze.replace()})}}},Oot=["title"],Dot={key:0,class:"flex flex-row"},Lot={class:"max-w-[300px] overflow-x-auto"},Pot={class:"flex gap-3 items-center grow"},Fot=["href"],Uot=["src"],Bot={class:"flex-1 overflow-hidden"},Got={class:"font-bold font-large text-lg truncate"},zot={key:1,class:"flex items-center flex-row gap-2 my-1"},Vot={class:"flex grow items-center"},Hot={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},qot={class:"relative flex flex-col items-center justify-center flex-grow h-full"},Yot={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},$ot={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Wot={class:"flex justify-between mb-1"},Kot={class:"text-sm font-medium text-blue-700 dark:text-white"},jot={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Qot={class:"flex justify-between mb-1"},Xot={class:"text-base font-medium text-blue-700 dark:text-white"},Zot={class:"text-sm font-medium text-blue-700 dark:text-white"},Jot={class:"flex flex-grow"},eat={class:"flex flex-row flex-grow gap-3"},tat={class:"p-2 text-center grow"},nat={key:3},rat={class:"flex flex-row items-center gap-3"},iat=["src"],sat={class:"font-bold font-large text-lg truncate"},oat={class:"flex items-center flex-row-reverse gap-2 my-1"},aat={class:"flex flex-row items-center"},lat={key:0,class:"text-base text-red-600 flex items-center mt-1"},cat=["title"],dat={class:""},uat={class:"flex flex-row items-center"},pat=["href","title"],hat={class:"flex items-center"},mat={class:"flex items-center"},fat={key:0,class:"flex items-center"},gat=["href"],_at={class:"flex items-center"},bat=["href"],vat={class:"flex items-center"},yat={class:"flex items-center"},Eat=["href"];function Sat(n,e,t,r,i,s){const o=gt("InteractiveMenu");return T(),M("div",{class:qe(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",s.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=J(a=>s.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(T(),M("div",Dot,[c("div",Lot,[c("div",Pot,[c("a",{href:t.model.model_creator_link,target:"_blank"},[c("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,Uot)],8,Fot),c("div",Bot,[c("h3",Got,X(t.model.name),1)])])])])):Y("",!0),t.model.isCustomModel?(T(),M("div",zot,[c("div",Vot,[c("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=J(()=>{},["stop"]))},e[11]||(e[11]=[c("i",{"data-feather":"box",class:"w-5"},null,-1),c("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=pt(" Custom model "))]),c("div",null,[t.model.isInstalled?(T(),M("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=J((...a)=>s.uninstall&&s.uninstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[pt(" Uninstall "),c("span",{class:"sr-only"},"Remove",-1)]))):Y("",!0)])])):Y("",!0),i.installing?(T(),M("div",Hot,[c("div",qot,[e[15]||(e[15]=c("div",{role:"status",class:"justify-center"},[c("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)),c("div",Yot,[c("div",$ot,[c("div",Wot,[e[14]||(e[14]=c("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),c("span",Kot,X(Math.floor(i.progress))+"%",1)]),c("div",jot,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:on({width:i.progress+"%"})},null,4)]),c("div",Qot,[c("span",Xot,"Download speed: "+X(s.speed_computed)+"/s",1),c("span",Zot,X(s.downloaded_size_computed)+"/"+X(s.total_size_computed),1)])])]),c("div",Jot,[c("div",eat,[c("div",tat,[c("button",{onClick:e[3]||(e[3]=J((...a)=>s.toggleCancelInstall&&s.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):Y("",!0),t.model.isCustomModel?Y("",!0):(T(),M("div",nat,[c("div",rat,[c("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[4]||(e[4]=a=>s.defaultImg(a)),class:qe(["w-10 h-10 rounded-lg object-fill",i.linkNotValid?"grayscale":""])},null,42,iat),c("h3",sat,X(t.model.name),1),e[16]||(e[16]=c("div",{class:"grow"},null,-1)),W(o,{commands:s.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),c("div",oat,[c("div",aat,[i.linkNotValid?(T(),M("div",lat,e[17]||(e[17]=[c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),pt(" Link is not valid ")]))):Y("",!0)])]),c("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[c("div",dat,[c("div",uat,[e[19]||(e[19]=c("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=c("b",null,"Card: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=J(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:i.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,pat),e[21]||(e[21]=c("div",{class:"grow"},null,-1)),c("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[6]||(e[6]=J(a=>s.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[c("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),c("div",hat,[c("div",{class:qe(["flex flex-shrink-0 items-center",i.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=c("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=c("b",null,"File size: ",-1)),pt(" "+X(s.fileSize),1)],2)]),c("div",mat,[e[24]||(e[24]=c("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=c("b",null,"License: ",-1)),pt(" "+X(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(T(),M("div",fat,[e[26]||(e[26]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=c("b",null,"quantizer: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.quantizer),9,gat)])):Y("",!0),c("div",_at,[e[28]||(e[28]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=c("b",null,"Model creator: ",-1)),c("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.model_creator),9,bat)]),c("div",vat,[e[30]||(e[30]=c("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=c("b",null,"Release date: ",-1)),pt(" "+X(t.model.last_commit_time),1)]),c("div",yat,[e[32]||(e[32]=c("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=c("b",null,"Category: ",-1)),c("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=J(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},X(t.model.category),9,Eat)])])],8,cat)]))],10,Oot)}const xat=bt(Iot,[["render",Sat]]),Tat={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},wat={class:"p-4"},Cat={class:"flex items-center mb-4"},Aat=["src"],Rat={class:"text-lg font-semibold"},Mat={key:0};function Nat(n,e,t,r,i,s){return T(),M("div",wat,[c("div",Cat,[c("img",{src:i.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,Aat),c("h2",Rat,X(i.personalityName),1)]),c("p",null,[e[2]||(e[2]=c("strong",null,"Author:",-1)),pt(" "+X(i.personalityAuthor),1)]),c("p",null,[e[3]||(e[3]=c("strong",null,"Description:",-1)),pt(" "+X(i.personalityDescription),1)]),c("p",null,[e[4]||(e[4]=c("strong",null,"Category:",-1)),pt(" "+X(i.personalityCategory),1)]),i.disclaimer?(T(),M("p",Mat,[e[5]||(e[5]=c("strong",null,"Disclaimer:",-1)),pt(" "+X(i.disclaimer),1)])):Y("",!0),c("p",null,[e[6]||(e[6]=c("strong",null,"Conditioning Text:",-1)),pt(" "+X(i.conditioningText),1)]),c("p",null,[e[7]||(e[7]=c("strong",null,"AI Prefix:",-1)),pt(" "+X(i.aiPrefix),1)]),c("p",null,[e[8]||(e[8]=c("strong",null,"User Prefix:",-1)),pt(" "+X(i.userPrefix),1)]),c("div",null,[e[9]||(e[9]=c("strong",null,"Antiprompts:",-1)),c("ul",null,[(T(!0),M(je,null,at(i.antipromptsList,o=>(T(),M("li",{key:o.id},X(o.text),1))),128))])]),c("button",{onClick:e[0]||(e[0]=o=>i.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),i.editMode?(T(),M("button",{key:1,onClick:e[1]||(e[1]=(...o)=>s.commitChanges&&s.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):Y("",!0)])}const kat=bt(Tat,[["render",Nat]]),ky="/assets/logo-CQZwS0X1.svg",Iat="/",Oat={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function,onToggleFavorite:Function},components:{InteractiveMenu:Ny},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?n.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):n.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,We(()=>{Ze.replace()})},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return Iat+this.personality.avatar},defaultImg(n){n.target.src=ky},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){We(()=>{Ze.replace()})}}},Dat=["title"],Lat={class:"flex-grow"},Pat={class:"flex items-center mb-4"},Fat=["src"],Uat={class:"text-sm text-gray-600"},Bat={class:"text-sm text-gray-600"},Gat={class:"text-sm text-gray-600"},zat={key:0,class:"text-sm text-gray-600"},Vat={key:1,class:"text-sm text-gray-600"},Hat={class:"mb-4"},qat=["innerHTML"],Yat={class:"mt-auto pt-4 border-t"},$at={class:"flex justify-between items-center flex-wrap"},Wat=["title"],Kat=["fill"],jat=["src"];function Qat(n,e,t,r,i,s){const o=gt("InteractiveMenu");return T(),M("div",{class:qe(["personality-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full",s.selected_computed?"border-primary-light":"border-transparent",i.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:t.personality.installed?"":"Not installed"},[c("div",Lat,[c("div",Pat,[c("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),alt:"Personality Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onClick:e[1]||(e[1]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>s.showThumbnail&&s.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>s.updateThumbnailPosition&&s.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>s.hideThumbnail&&s.hideThumbnail(...a))},null,40,Fat),c("div",null,[c("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>s.toggleSelected&&s.toggleSelected(...a))},X(t.personality.name),1),c("p",Uat,"Author: "+X(t.personality.author),1),c("p",Bat,"Version: "+X(t.personality.version),1),c("p",Gat,"Category: "+X(t.personality.category),1),t.personality.creation_date?(T(),M("p",zat,"Creation Date: "+X(s.formatDate(t.personality.creation_date)),1)):Y("",!0),t.personality.last_update_date?(T(),M("p",Vat,"Last update Date: "+X(s.formatDate(t.personality.last_update_date)),1)):Y("",!0)])]),c("div",Hat,[e[10]||(e[10]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),c("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:t.personality.description},null,8,qat)])]),c("div",Yat,[c("div",$at,[c("button",{onClick:e[6]||(e[6]=(...a)=>s.toggleFavorite&&s.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),M("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:n.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[11]||(e[11]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,Kat))],8,Wat),i.isMounted?(T(),M("button",{key:0,onClick:e[7]||(e[7]=(...a)=>s.toggleSelected&&s.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[12]||(e[12]=[c("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):Y("",!0),i.isMounted?(T(),M("button",{key:1,onClick:e[8]||(e[8]=(...a)=>s.toggleTalk&&s.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[13]||(e[13]=[c("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):Y("",!0),c("button",{onClick:e[9]||(e[9]=(...a)=>s.showFolder&&s.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[14]||(e[14]=[c("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),W(o,{commands:s.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),i.thumbnailVisible?(T(),M("div",{key:0,style:on({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[c("img",{src:s.getImgUrl(),class:"w-full h-full object-fill"},null,8,jat)],4)):Y("",!0)],10,Dat)}const xI=bt(Oat,[["render",Qat]]),Xat={name:"DynamicUIRenderer",props:{ui:{type:String,required:!0},instanceId:{type:String,required:!0}},data(){return{containerId:`dynamic-ui-${this.instanceId}`}},watch:{ui:{immediate:!0,handler(n){console.log(`UI prop changed for instance ${this.instanceId}:`,n),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const n=this.$refs.container,t=new DOMParser().parseFromString(this.ui,"text/html"),r=t.getElementsByTagName("style");Array.from(r).forEach(s=>{const o=document.createElement("style");o.textContent=this.scopeCSS(s.textContent),document.head.appendChild(o)}),n.innerHTML=t.body.innerHTML;const i=t.getElementsByTagName("script");Array.from(i).forEach(s=>{const o=document.createElement("script");o.textContent=s.textContent,n.appendChild(o)})},scopeCSS(n){return n.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},Zat=["id"];function Jat(n,e,t,r,i,s){return T(),M("div",{id:i.containerId,ref:"container"},null,8,Zat)}const TI=bt(Xat,[["render",Jat]]),elt="/",tlt={components:{DynamicUIRenderer:TI},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){We(()=>{Ze.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return elt+this.binding.icon},defaultImg(n){n.target.src=ky},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){We(()=>{Ze.replace()})}}},nlt=["title"],rlt={class:"flex flex-row items-center gap-3"},ilt=["src"],slt={class:"font-bold font-large text-lg truncate"},olt={class:"flex-none gap-1"},alt={class:"flex items-center flex-row-reverse gap-2 my-1"},llt={class:""},clt={class:""},dlt={class:"flex items-center"},ult={class:"flex items-center"},plt={class:"flex items-center"},hlt={class:"flex items-center"},mlt=["href"],flt=["title","innerHTML"];function glt(n,e,t,r,i,s){const o=gt("DynamicUIRenderer");return T(),M("div",{class:qe(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=J((...a)=>s.toggleSelected&&s.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[c("div",null,[c("div",rlt,[c("img",{ref:"imgElement",src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,ilt),c("h3",slt,X(t.binding.name),1),e[10]||(e[10]=c("div",{class:"grow"},null,-1)),c("div",olt,[t.selected?(T(),M("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>s.toggleReloadBinding&&s.toggleReloadBinding(...a)),e[2]||(e[2]=J(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},e[9]||(e[9]=[c("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),c("span",{class:"sr-only"},"Help",-1)]))):Y("",!0)])]),c("div",alt,[t.binding.installed?Y("",!0):(T(),M("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=J((...a)=>s.toggleInstall&&s.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[11]||(e[11]=[pt(" Install "),c("span",{class:"sr-only"},"Click to install",-1)]))),t.binding.installed?(T(),M("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=J((...a)=>s.toggleReinstall&&s.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},e[12]||(e[12]=[pt(" Reinstall "),c("span",{class:"sr-only"},"Reinstall",-1)]))):Y("",!0),t.binding.installed?(T(),M("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=J((...a)=>s.toggleUnInstall&&s.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[pt(" Uninstall "),c("span",{class:"sr-only"},"UnInstall",-1)]))):Y("",!0),t.selected?(T(),M("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=J((...a)=>s.toggleSettings&&s.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[14]||(e[14]=[pt(" Settings "),c("span",{class:"sr-only"},"Settings",-1)]))):Y("",!0)]),t.binding.ui?(T(),Tt(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):Y("",!0),c("div",llt,[c("div",clt,[c("div",dlt,[e[15]||(e[15]=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=c("b",null,"Author: ",-1)),pt(" "+X(t.binding.author),1)]),c("div",ult,[e[18]||(e[18]=c("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=c("b",null,"Folder: ",-1)),pt(" "+X(t.binding.folder)+" ",1),e[20]||(e[20]=c("div",{class:"grow"},null,-1)),c("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[7]||(e[7]=J(a=>s.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[c("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),c("div",plt,[e[21]||(e[21]=c("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=c("b",null,"Version: ",-1)),pt(" "+X(t.binding.version),1)]),c("div",hlt,[e[23]||(e[23]=c("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=c("b",null,"Link: ",-1)),c("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},X(t.binding.link),9,mlt)])]),e[25]||(e[25]=c("div",{class:"flex items-center"},[c("i",{"data-feather":"info",class:"w-5 m-1"}),c("b",null,"Description: "),c("br")],-1)),c("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,flt)])])],10,nlt)}const _lt=bt(tlt,[["render",glt]]),Ai="/assets/logo-PeTRk_ya.png",blt={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},vlt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},ylt={class:"relative w-full max-w-md max-h-full"},Elt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},Slt={class:"p-4 text-center"},xlt={class:"p-4 text-center mx-auto mb-4"};function Tlt(n,e,t,r,i,s){return i.show?(T(),M("div",vlt,[c("div",ylt,[c("div",Elt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[4]||(e[4]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",Slt,[e[6]||(e[6]=c("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),c("div",xlt,[e[5]||(e[5]=c("label",{class:"mr-2"},"Model path",-1)),F(c("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>i.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[_e,i.model_path]])]),c("button",{onClick:e[2]||(e[2]=o=>s.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),c("button",{onClick:e[3]||(e[3]=o=>s.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):Y("",!0)}const wlt=bt(blt,[["render",Tlt]]),Clt={props:{show:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){const e=["bytes","KB","MB","GB"];let t=0;for(;n>=1024&&t[t.show?(T(),M("div",Alt,[c("div",Rlt,[c("h2",Mlt,[e[5]||(e[5]=c("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),pt(" "+X(t.title),1)]),c("div",Nlt,[c("ul",null,[(T(!0),M(je,null,at(t.choices,(o,a)=>(T(),M("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[c("div",klt,[c("div",Ilt,[o.isEditing?F((T(),M("input",{key:1,"onUpdate:modelValue":l=>o.editName=l,onBlur:l=>s.finishEditing(o),onKeyup:ui(l=>s.finishEditing(o),["enter"]),class:"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded px-2 py-1 text-sm",autofocus:""},null,40,Dlt)),[[_e,o.editName]]):(T(),M("span",{key:0,onClick:l=>s.selectChoice(o),class:qe([{"font-semibold":o===i.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},X(s.displayName(o)),11,Olt)),o.size?(T(),M("span",Llt,X(s.formatSize(o.size)),1)):Y("",!0)]),c("div",Plt,[c("button",{onClick:l=>s.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[c("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)]),8,Flt),t.can_remove?(T(),M("button",{key:0,onClick:l=>s.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[c("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]),8,Ult)):Y("",!0)])])]))),128))])]),i.showInput?(T(),M("div",Blt,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>i.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 dark:border-gray-600 p-2 rounded-lg w-full mb-2 bg-white dark:bg-gray-700 text-gray-800 dark:text-white"},null,512),[[_e,i.newFilename]]),c("button",{onClick:e[1]||(e[1]=(...o)=>s.addNewFilename&&s.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):Y("",!0),c("div",Glt,[c("button",{onClick:e[2]||(e[2]=(...o)=>s.closeDialog&&s.closeDialog(...o)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),c("button",{onClick:e[3]||(e[3]=(...o)=>s.validateChoice&&s.validateChoice(...o)),disabled:!i.selectedChoice,class:qe([{"bg-blue-500 hover:bg-blue-600":i.selectedChoice,"bg-gray-400 cursor-not-allowed":!i.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,zlt),c("button",{onClick:e[4]||(e[4]=(...o)=>s.toggleInput&&s.toggleInput(...o)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):Y("",!0)]),_:1})}const Iy=bt(Clt,[["render",Vlt],["__scopeId","data-v-f43216be"]]),Hlt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const n=this.radioOptions.find(e=>e.value===this.selectedValue);return n?n.label:""}},watch:{selectedValue(n,e){this.$emit("radio-selected",n)}},methods:{handleRadioChange(){}}},qlt={class:"flex space-x-4"},Ylt=["value","aria-checked"],$lt={class:"text-gray-700"};function Wlt(n,e,t,r,i,s){return T(),M("div",qlt,[(T(!0),M(je,null,at(t.radioOptions,(o,a)=>(T(),M("label",{key:o.value,class:"flex items-center space-x-2"},[F(c("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=l=>i.selectedValue=l),onChange:e[1]||(e[1]=(...l)=>s.handleRadioChange&&s.handleRadioChange(...l)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":i.selectedValue===o.value.toString(),role:"radio"},null,40,Ylt),[[WL,i.selectedValue]]),c("span",$lt,X(o.label),1)]))),128))])}const Klt=bt(Hlt,[["render",Wlt]]),jlt="/assets/gpu-BWVOYg-D.svg",Qlt={name:"StringListManager",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Enter an item"}},emits:["update:modelValue","change"],data(){return{newItem:"",draggingIndex:null}},methods:{addItem(){if(this.newItem.trim()){const n=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",n),this.$emit("change"),this.newItem=""}},removeItem(n){const e=this.modelValue.filter((t,r)=>r!==n);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(n){this.draggingIndex=n},dragItem(n){if(this.draggingIndex!==null){const e=[...this.modelValue],t=e.splice(this.draggingIndex,1)[0];e.splice(n,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(n){if(n>0){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n-1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(n){if(ni.newItem=o),placeholder:t.placeholder,onKeyup:e[1]||(e[1]=ui((...o)=>s.addItem&&s.addItem(...o),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,Zlt),[[_e,i.newItem]]),c("button",{onClick:e[2]||(e[2]=(...o)=>s.addItem&&s.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),t.modelValue.length>0?(T(),M("ul",Jlt,[(T(!0),M(je,null,at(t.modelValue,(o,a)=>(T(),M("li",{key:a,class:qe(["flex items-center mb-2 relative",{"bg-gray-200":i.draggingIndex===a}])},[c("span",ect,X(o),1),c("div",tct,[c("button",{onClick:l=>s.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,nct),a>0?(T(),M("button",{key:0,onClick:l=>s.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,rct)):Y("",!0),as.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[c("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,ict)):Y("",!0)]),i.draggingIndex===a?(T(),M("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:l=>s.startDragging(a),onMousemove:l=>s.dragItem(a),onMouseup:e[3]||(e[3]=(...l)=>s.stopDragging&&s.stopDragging(...l))},null,40,sct)):Y("",!0)],2))),128))])):Y("",!0),t.modelValue.length>0?(T(),M("div",oct,[c("button",{onClick:e[4]||(e[4]=(...o)=>s.removeAll&&s.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):Y("",!0)])}const lct=bt(Qlt,[["render",act]]),cct="/";de.defaults.baseURL="/";const dct={components:{AddModelDialog:wlt,ModelEntry:xat,PersonalityViewer:kat,PersonalityEntry:xI,BindingEntry:_lt,ChoiceDialog:Iy,Card:rm,StringListManager:lct,RadioOptions:Klt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:wr,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Ai,binding_changed:!1,SVGGPU:jlt,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],comfyui_models:[],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,mainconf_collapsed:!0,smartrouterconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:cct,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){try{this.$store.state.loading_infos="Getting Hardware usage",await this.refreshHardwareUsage(this.$store)}catch(n){console.log("Error cought:",n)}rt.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(n=>n.json()).then(n=>{this.voices=n.voices}).catch(n=>console.error("Error fetching voices:",n))},async refreshHardwareUsage(n){await n.dispatch("refreshDiskUsage"),await n.dispatch("refreshRamUsage"),await n.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(n){this.$store.state.config.rag_databases.splice(n,1),this.settingsChanged=!0},async vectorize_folder(n){await de.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[n]},this.posts_headers)},async select_folder(n){try{rt.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[n]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await de.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(n){console.log("handleTemplateSelection");const e=n.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` +`,this.configFile.start_user_header_id_template="!@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="!@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="lollms_simplified"?(console.log("Using lollms template"),this.configFile.start_header_id_template="@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` +`,this.configFile.start_user_header_id_template="@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="bare"?(console.log("Using lollms template"),this.configFile.start_header_id_template="",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` +`,this.configFile.start_user_header_id_template="",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="llama3"?(console.log("Using llama3 template"),this.configFile.start_header_id_template="<|start_header_id|>",this.configFile.system_message_template="system",this.configFile.end_header_id_template="<|end_header_id|>",this.configFile.separator_template="<|eot_id|>",this.configFile.start_user_header_id_template="<|start_header_id|>",this.configFile.end_user_header_id_template="<|end_header_id|>",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="<|start_header_id|>",this.configFile.end_ai_header_id_template="<|end_header_id|>",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="mistral"?(console.log("Using mistral template"),this.configFile.start_header_id_template="[INST]",this.configFile.system_message_template=" Using this information",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` +`,this.configFile.start_user_header_id_template="[INST]",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="[/INST]",this.configFile.start_ai_header_id_template="[INST]",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="[/INST]",this.settingsChanged=!0):e==="deepseek"&&(console.log("Using deepseek template"),this.configFile.start_header_id_template="",this.configFile.system_message_template=" Using this information",this.configFile.end_header_id_template=": ",this.configFile.separator_template=` +`,this.configFile.start_user_header_id_template="",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0)},install_model(){},reinstallDiffusersService(){de.post("/install_diffusers",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},upgradeDiffusersService(){de.post("install_diffusers",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},reinstallXTTSService(){de.post("install_xtts",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},reinstallWhisperService(){de.post("install_whisper",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},reinstallSDService(){de.post("/install_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},upgradeSDService(){de.post("upgrade_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},startSDService(){de.post("start_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},showSD(){de.post("show_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(n=>{}).catch(n=>{console.error(n)})},reinstallComfyUIService(){de.post("install_comfyui",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},upgradeComfyUIService(){de.post("upgrade_comfyui",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},startComfyUIService(){de.post("start_comfyui",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},showComfyui(){de.post("show_comfyui",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},reinstallvLLMService(){de.post("install_vllm",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},startvLLMService(){de.post("start_vllm",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},startollamaService(){de.post("start_ollama",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},reinstallPetalsService(){de.post("install_petals",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},reinstallOLLAMAService(){de.post("install_ollama",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},reinstallElasticSearchService(){de.post("install_vllm",{client_id:this.$store.state.client_id}).then(n=>{}).catch(n=>{console.error(n)})},getSeviceVoices(){de.get("list_voices").then(n=>{this.voices=n.data.voices}).catch(n=>{console.error(n)})},load_more_models(){this.models_zoo_initialLoadCount+10{Ze.replace()}),this.binding_changed&&!this.mzc_collapsed&&(this.modelsZoo==null||this.modelsZoo.length==0)&&(console.log("Refreshing models"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.refreshModelsZoo(),this.binding_changed=!1)},async selectSortOption(n){this.$store.state.sort_type=n,this.updateModelsZoo(),console.log(`Selected sorting:${n}`),console.log(`models:${this.models_zoo}`)},handleRadioSelected(n){this.isLoading=!0,this.selectSortOption(n).then(()=>{this.isLoading=!1})},filter_installed(n){return console.log("filtering"),n.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(console.log("voice synthesis"),this.audioVoices=speechSynthesis.getVoices(),console.log("Voices:"+this.audioVoices),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let n=await this.api_get_req("check_update");this.has_updates=n.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(n){this.selected_variant=n},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(n){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$store.state.toast.showToast("Link is not valid, file does not exist",4,!1);return}let t="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:t},console.log("installing...",this.addModel);const r=i=>{if(console.log("received something"),i.status&&i.progress<=100){if(this.addModel=i,console.log("Progress",i),e.progress=i.progress,e.speed=i.speed,e.total_size=i.total_size,e.downloaded_size=i.downloaded_size,e.start_time=i.start_time,e.installing=!0,e.progress==100){const s=this.models_zoo.findIndex(o=>o.name===e.model.name);this.models_zoo[s].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),rt.off("install_progress",r),console.log("Installed successfully"),this.$store.state.toast.showToast(`Model: +`+e.model.name+` +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else rt.off("install_progress",r),console.log("Install failed"),e.installing=!1,this.showProgress=!1,console.error("Installation failed:",i.error),this.$store.state.toast.showToast(`Model: +`+e.model.name+` +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage");console.log("Here")};rt.on("install_progress",r),rt.emit("install_model",{path:t,name:e.model.name,variant_name:this.selected_variant.name,type:e.model.type}),console.log("Started installation, please wait")},resetLogo(){this.configFile.app_custom_logo="",this.settingsChanged=!0},resetAvatar(){this.configFile.user_avatar="",this.settingsChanged=!0},uploadLogo(n){const e=n.target.files[0],t=new FormData;t.append("logo",e),console.log("Uploading logo"),de.post("/upload_logo",t).then(r=>{console.log("Logo uploaded successfully"),this.$store.state.toast.showToast("Avatar uploaded successfully!",4,!0);const i=r.data.fileName;console.log("response",r),this.app_custom_logo=i,this.$store.state.config.app_custom_logo=i,this.settingsChanged=!0}).catch(r=>{console.error("Error uploading avatar:",r)})},uploadAvatar(n){const e=n.target.files[0],t=new FormData;t.append("avatar",e),console.log("Uploading avatar"),de.post("/upload_avatar",t).then(r=>{console.log("Avatar uploaded successfully"),this.$store.state.toast.showToast("Avatar uploaded successfully!",4,!0);const i=r.data.fileName;console.log("response",r),this.user_avatar=i,this.$store.state.config.user_avatar=i,this.settingsChanged=!0}).catch(r=>{console.error("Error uploading avatar:",r)})},async update_software(){console.log("Posting");const n=await this.api_post_req("update_software");console.log("Posting done"),n.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Failure!",4,!1)},async restart_software(){console.log("Posting");const n=await this.api_post_req("restart_program");console.log("Posting done"),n.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Failure!",4,!1)},on_loading_text(n){console.log("Loading text",n),this.loading_text=n},async load_everything(){for(this.isLoading=!0,We(()=>{Ze.replace()});this.isReady===!1;)await new Promise(n=>setTimeout(n,100));this.refresh(),console.log("Ready"),this.configFile.model_name&&(this.isModelSelected=!0),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities?category="+this.configFile.personality_category),console.log("category"),this.personality_category=this.configFile.personality_category,this.personalitiesFiltered=this.$store.state.personalities.filter(n=>n.category===this.configFile.personality_category),this.modelsFiltered=[],this.updateModelsZoo(),this.isLoading=!1,this.isMounted=!0,console.log("READY Stuff")},async open_mzl(){this.mzl_collapsed=!this.mzl_collapsed,console.log("Fetching models")},async getVramUsage(){await this.api_get_req("vram_usage")},async progressListener(n){if(console.log("received something"),n.status==="progress"){if(this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==n.model_name&&this.configFile.binding_name==n.binding_folder),t=this.models_zoo[e];t&&(console.log("model entry",t),t.installing=!0,t.progress=n.progress,console.log(`Progress = ${n.progress}`),n.progress>=100?(t.installing=!1,t.isInstalled=!0):(t.installing=!0,t.isInstalled=!0))}}else if(n.status==="succeeded"){if(console.log("Received succeeded"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==n.model_name&&this.configFile.binding_name==n.binding_folder),t=this.models_zoo[e];n.progress>=100&&(t.installing=!1,t.isInstalled=!0)}if(console.log("Installed successfully"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==n.model_name&&this.configFile.binding_name==n.binding_folder),t=this.models_zoo[e];t&&(t.installing=!1,t.isInstalled=!0)}this.$store.state.toast.showToast(`Model: +`+model_object.name+` +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}else if(n.status==="failed"&&(console.log("Install failed"),this.$refs.modelZoo)){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==n.model_name&&this.configFile.binding_name==n.binding_folder),t=this.models_zoo[e];t&&(t.installing=!1,t.isInstalled=!1),console.error("Installation failed:",n.error),this.$store.state.toast.showToast(`Model: +`+model_object.name+` +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage")}},showAddModelDialog(){this.$refs.addmodeldialog.showDialog("").then(()=>{console.log(this.$refs.addmodeldialog.model_path);const n=this.$refs.addmodeldialog.model_path;rt.emit("install_model",{path:n,type:this.models_zoo[0].type},e=>{console.log("Model installation successful:",e)}),console.log(this.$refs.addmodeldialog.model_path)})},closeAddModelDialog(){this.addModelDialogVisibility=!1},collapseAll(n){this.servers_conf_collapsed=n,this.mainconf_collapsed=n,this.bec_collapsed=n,this.mzc_collapsed=n,this.pzc_collapsed=n,this.bzc_collapsed=n,this.pc_collapsed=n,this.mc_collapsed=n,this.sc_collapsed=n,this.mzdc_collapsed=n},fetchPersonalities(){this.api_get_req("list_personalities_categories").then(n=>{this.persCatgArr=n,this.persCatgArr.sort()}),this.api_get_req("list_personalities").then(n=>{this.persArr=n,this.persArr.sort(),console.log(`Listed personalities: +${n}`)})},fetchHardwareInfos(){this.$store.dispatch("refreshDiskUsage"),this.$store.dispatch("refreshRamUsage")},async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: +`+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: +`+n.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(n);We(()=>{Ze.replace()})}},onModelSelected(n){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}n&&(n.isInstalled?this.update_model(n.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=n.model.name,e.status?(this.$store.state.toast.showToast(`Selected model: +`+n.name,4,!0),We(()=>{Ze.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(t=>{this.$store.commit("setIsModelOk",t)})):(this.$store.state.toast.showToast(`Couldn't select model: +`+n.name,4,!1),We(()=>{Ze.replace()})),this.settingsChanged=!0,this.isModelSelected=!0}):this.$store.state.toast.showToast(`Model: +`+n.model.name+` +is not installed`,4,!1),We(()=>{Ze.replace()}))},onCopy(n){let e;n.model.isCustomModel?e=`Model name: ${n.name} +File size: ${n.fileSize} +Manually downloaded model `:e=`Model name: ${n.name} +File size: ${n.fileSize} +Download: ${"https://huggingface.co/"+n.quantizer+"/"+n.name} +License: ${n.license} +Owner: ${n.quantizer} +Website: ${"https://huggingface.co/"+n.quantizer} +Description: ${n.description}`,this.$store.state.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onCopyLink(n){this.$store.state.toast.showToast("Copied link to clipboard!",4,!0),navigator.clipboard.writeText(n.model.name)},onCopyPersonalityName(n){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(n.name)},async onCopyToCustom(n){await de.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:n.personality.category,name:n.personality.name})},async handleOpenFolder(n){await de.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:n.personality.category/n.personality.folder})},onCancelInstall(){const n=this.addModel;console.log("cancel install",n),this.modelDownlaodInProgress=!1,this.addModel={},rt.emit("cancel_install",{model_name:n.model_name,binding_folder:n.binding_folder,model_url:n.model_url,patreon:n.patreon?n.patreon:"None"}),this.$store.state.toast.showToast("Model installation aborted",4,!1)},onInstall(n){this.variant_choices=n.model.variants,this.currenModelToInstall=n,console.log("variant_choices"),console.log(this.variant_choices),console.log(n),this.variantSelectionDialogVisible=!0},onCreateReference(){de.post("/add_reference_to_local_model",{path:this.reference_path}).then(n=>{n.status?(this.$store.state.toast.showToast("Reference created",4,!0),this.is_loading_zoo=!0,this.refreshModelsZoo().then(()=>{this.updateModelsZoo(),this.is_loading_zoofalse})):this.$store.state.toast.showToast("Couldn't create reference",4,!1)})},onInstallAddModel(){if(!this.addModel.url){this.$store.state.toast.showToast("Link is empty",4,!1);return}let n=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=t=>{console.log("received something"),t.status&&t.progress<=100?(console.log("Progress",t),this.addModel=t,this.addModel.url=n,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),rt.off("install_progress",e),console.log("Installed successfully"),this.addModel={},this.$store.state.toast.showToast(`Model: +`+this.addModel.model_name+` +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(rt.off("install_progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",t.error),this.$store.state.toast.showToast(`Model: +`+this.addModel.model_name+` +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};rt.on("install_progress",e),rt.emit("install_model",{path:n,type:this.models_zoo[0].type}),console.log("Started installation, please wait")},uploadLocalModel(){if(this.uploadData.length==0){this.$store.state.toast.showToast("No files to upload",4,!1);return}let n=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=t=>{console.log("received something"),t.status&&t.progress<=100?(console.log("Progress",t),this.addModel=t,this.addModel.url=n,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),rt.off("progress",e),console.log("Installed successfully"),this.addModel={},this.$store.state.toast.showToast(`Model: +`+this.addModel.model_name+` +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(rt.off("progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",t.error),this.$store.state.toast.showToast(`Model: +`+this.addModel.model_name+` +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};rt.on("progress",e),console.log("Started installation, please wait")},setFileList(n){this.uploadData=n.target.files,console.log("set file list",this.uploadData)},onUninstall(n){this.$store.state.yesNoDialog.askQuestion(`Are you sure you want to delete this model? + [`+n.name+"]","Yes","Cancel").then(e=>{if(e){console.log("uninstalling model...");const t=r=>{console.log("uninstalling res",r),r.status?(console.log("uninstalling success",r),n.uninstalling=!1,rt.off("install_progress",t),this.showProgress=!1,this.is_loading_zoo=!0,this.refreshModelsZoo().then(()=>{this.updateModelsZoo(),this.is_loading_zoo=!1}),this.modelsFiltered=this.models_zoo,this.$store.state.toast.showToast(`Model: +`+n.model.name+` +was uninstalled!`,4,!0),this.$store.dispatch("refreshDiskUsage")):(console.log("uninstalling failed",r),n.uninstalling=!1,this.showProgress=!1,rt.off("uninstall_progress",t),console.error("Uninstallation failed:",r.error),this.$store.state.toast.showToast(`Model: +`+n.model.name+` +failed to uninstall!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};rt.on("uninstall_progress",t),this.selected_variant!=null?rt.emit("uninstall_model",{path:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name+"/resolve/main/"+this.selected_variant.name,type:n.model.type}):rt.emit("uninstall_model",{path:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,type:n.model.type})}})},onBindingSelected(n){if(console.log("Binding selected"),!n.binding.installed){this.$store.state.toast.showToast(`Binding is not installed: +`+n.binding.name,4,!1);return}this.mzc_collapsed=!0,this.configFile.binding_name!=n.binding.folder&&(this.update_binding(n.binding.folder),this.binding_changed=!0),this.api_get_req("get_model_status").then(e=>{this.$store.commit("setIsModelOk",e)})},onInstallBinding(n){this.configFile.binding_name!=n.binding.folder?(this.isLoading=!0,n.disclaimer&&this.$store.state.yesNoDialog.askQuestion(n.disclaimer,"Proceed","Cancel"),de.post("/install_binding",{name:n.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("install_binding",e),e.data.status?(this.$store.state.toast.showToast("Binding installed successfully!",4,!0),this.$store.state.messageBox.showMessage(`It is advised to reboot the application after installing a binding. +Page will refresh in 5s.`),setTimeout(()=>{window.location.href="/"},5e3)):this.$store.state.toast.showToast("Could not reinstall binding",4,!1),this.isLoading=!1,e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall binding +`+e.message,4,!1),{status:!1}))):this.update_binding(n.binding.folder)},onUnInstallBinding(n){this.isLoading=!0,de.post("/unInstall_binding",{name:n.binding.folder}).then(e=>{if(e){if(this.isLoading=!1,console.log("unInstall_binding",e),e.data.status){const t=this.bindingsZoo.findIndex(i=>i.folder==n.binding.folder),r=this.bindingsZoo[t];r?r.installed=!0:r.installed=!1,this.settingsChanged=!0,this.binding_changed=!0,this.$store.state.toast.showToast("Binding uninstalled successfully!",4,!0)}else this.$store.state.toast.showToast("Could not uninstall binding",4,!1);return e.data}this.isLoading=!1,n.isInstalled=False}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not uninstall binding +`+e.message,4,!1),{status:!1}))},onReinstallBinding(n){this.isLoading=!0,de.post("/reinstall_binding",{name:n.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_binding",e),e.data.status?(this.$store.state.toast.showToast("Binding reinstalled successfully!",4,!0),this.$store.state.messageBox.showMessage("It is advised to reboot the application after installing a binding")):this.$store.state.toast.showToast("Could not reinstall binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall binding +`+e.message,4,!1),{status:!1}))},onSettingsBinding(n){try{this.isLoading=!0,de.get("/get_active_binding_settings").then(e=>{console.log(e),this.isLoading=!1,e&&(console.log("binding setting",e),e.data&&Object.keys(e.data).length>0?this.$store.state.universalForm.showForm(e.data,"Binding settings - "+n.binding.name,"Save changes","Cancel").then(t=>{try{de.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:t},{headers:this.posts_headers}).then(r=>{r&&r.data?(console.log("binding set with new settings",r.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0),de.post("/update_binding_settings",{client_id:this.$store.state.client_id}).then(i=>{this.$store.state.toast.showToast("Binding settings committed successfully!",4,!0),window.location.href="/"})):(this.$store.state.toast.showToast(`Did not get binding settings responses. +`+r,4,!1),this.isLoading=!1)})}catch(r){this.$store.state.toast.showToast(`Did not get binding settings responses. + Endpoint error: `+r.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(e){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+e.message,4,!1)}},onReloadBinding(n){console.log("Reloading binding"),this.isLoading=!0,de.post("/reload_binding",{name:n.binding.folder},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reload_binding",e),e.data.status?this.$store.state.toast.showToast("Binding reloaded successfully!",4,!0):this.$store.state.toast.showToast("Could not reload binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reload binding +`+e.message,4,!1),{status:!1}))},onSettingsPersonality(n){try{this.isLoading=!0,de.get("/get_active_personality_settings").then(e=>{this.isLoading=!1,e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$store.state.universalForm.showForm(e.data,"Personality settings - "+n.personality.name,"Save changes","Cancel").then(t=>{try{de.post("/set_active_personality_settings",t).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get Personality settings responses. +`+r,4,!1),this.isLoading=!1)})}catch(r){this.$store.state.toast.showToast(`Did not get Personality settings responses. + Endpoint error: `+r.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Personality has no settings",4,!1),this.isLoading=!1))})}catch(e){this.isLoading=!1,this.$store.state.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},onMessageBoxOk(){console.log("OK button clicked")},update_personality_category(n,e){this.personality_category=n,e()},refresh(){console.log("Refreshing"),this.$store.dispatch("refreshConfig").then(()=>{console.log(this.personality_category),this.api_get_req("list_personalities_categories").then(n=>{console.log("cats",n),this.persCatgArr=n,this.personalitiesFiltered=this.$store.state.personalities.filter(e=>e.category===this.personality_category),this.personalitiesFiltered.sort()})})},toggleAccordion(){this.showAccordion=!this.showAccordion},async update_setting(n,e,t){this.isLoading=!0;const r={client_id:this.$store.state.client_id,setting_name:n,setting_value:e};console.log("Updating setting",n,":",e);let i=await de.post("/update_setting",r,{headers:this.posts_headers});if(i)return this.isLoading=!1,console.log("update_setting",i),i.status?this.$store.state.toast.showToast(`Setting updated successfully. +`,4,!0):this.$store.state.toast.showToast(`Setting update failed. +Please view the console for more details.`,4,!1),t!==void 0&&t(i),i.data;this.isLoading=!1},async refreshModelsZoo(){this.models_zoo=[],console.log("refreshing models"),this.is_loading_zoo=!0,await this.$store.dispatch("refreshModelsZoo"),console.log("ModelsZoo refreshed"),await this.$store.dispatch("refreshModels"),console.log("Models refreshed"),this.updateModelsZoo(),console.log("Models updated"),this.is_loading_zoo=!1},async updateModelsZoo(){let n=this.$store.state.modelsZoo;if(n.length!=0){console.log(`REFRESHING models using sorting ${this.sort_type}`),n.length>1?(this.sort_type==0?(n.sort((e,t)=>{const r=new Date(e.last_commit_time);return new Date(t.last_commit_time)-r}),console.log("Sorted")):this.sort_type==1?n.sort((e,t)=>t.rank-e.rank):this.sort_type==2?n.sort((e,t)=>e.name.localeCompare(t.name)):this.sort_type==3&&n.sort((e,t)=>e.name.localeCompare(t.name)),console.log("Sorted")):console.log("No sorting needed"),n.forEach(e=>{e.name==this.$store.state.config.model_name?e.selected=!0:e.selected=!1}),console.log("Selected models");for(let e=0;ei.name==t);if(r==-1)for(let i=0;io.name==t),r!=-1)){r=i,console.log(`Found ${t} at index ${r}`);break}}if(r==-1){let i={};i.name=t,i.icon=this.imgBinding,i.isCustomModel=!0,i.isInstalled=!0,n.push(i)}else n[r].isInstalled=!0}console.log("Determined models"),n.sort((e,t)=>e.isInstalled&&!t.isInstalled?-1:!e.isInstalled&&t.isInstalled?1:0),console.log("Done"),this.models_zoo=this.$store.state.modelsZoo}},update_binding(n){this.isLoading=!0,this.$store.state.modelsZoo=[],this.configFile.model_name=null,this.$store.state.config.model_name=null,console.log("updating binding_name"),this.update_setting("binding_name",n,async e=>{console.log("updated binding_name"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.mzc_collapsed=!0;const t=this.bindingsZoo.findIndex(i=>i.folder==n),r=this.bindingsZoo[t];r?r.installed=!0:r.installed=!1,this.settingsChanged=!0,this.isLoading=!1,We(()=>{Ze.replace()}),console.log("updating model"),this.update_model(null).then(()=>{}),We(()=>{Ze.replace()})}),We(()=>{Ze.replace()})},async update_model(n){n||(this.isModelSelected=!1),this.isLoading=!0;let e=await this.update_setting("model_name",n);return this.isLoading=!1,We(()=>{Ze.replace()}),e},async cancelConfiguration(){await this.$store.dispatch("refreshConfig"),this.settingsChanged=!1},applyConfiguration(){this.isLoading=!0,de.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.configFile},{headers:this.posts_headers}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),We(()=>{Ze.replace()})})},save_configuration(){this.showConfirmation=!1,de.post("/save_settings",{},{headers:this.posts_headers}).then(n=>{if(n)return n.status||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}))},reset_configuration(){this.$store.state.yesNoDialog.askQuestion(`Are you sure? +This will delete all your configurations and get back to default configuration.`).then(n=>{n&&de.post("/reset_settings",{},{headers:this.posts_headers}).then(e=>{if(e)return e.status?this.$store.state.messageBox.showMessage("Settings have been reset correctly"):this.$store.state.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e.message,"reset_configuration"),this.$store.state.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(n){try{const e=await de.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - settings");return}},async api_post_req(n){try{const e=await de.post("/"+n,{client_id:this.$store.state.client_id});if(e)return e.data}catch(e){console.log(e.message,"api_post_req - settings");return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.$store.state.personalities=[];const n=await this.api_get_req("get_all_personalities"),e=this.$store.state.config;console.log("recovering all_personalities");const t=Object.keys(n);for(let r=0;r{const l=e.personalities.includes(i+"/"+a.folder);let d={};return d=a,d.category=i,d.language="",d.full_path=i+"/"+a.folder,d.isMounted=l,d});this.$store.state.personalities.length==0?this.$store.state.personalities=o:this.$store.state.personalities=this.$store.state.personalities.concat(o)}this.$store.state.personalities.sort((r,i)=>r.name.localeCompare(i.name)),this.personalitiesFiltered=this.$store.state.personalities.filter(r=>r.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),console.log("per filtered",this.personalitiesFiltered),this.isLoading=!1},async filterPersonalities(){if(!this.searchPersonality){this.personalitiesFiltered=this.$store.state.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),this.searchPersonalityInProgress=!1;return}const n=this.searchPersonality.toLowerCase(),e=this.$store.state.personalities.filter(t=>{if(t.name&&t.name.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n)||t.full_path&&t.full_path.toLowerCase().includes(n))return t});e.length>0?this.personalitiesFiltered=e.sort():(this.personalitiesFiltered=this.$store.state.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort()),this.searchPersonalityInProgress=!1},async filterModels(){const n=this.searchModel.toLowerCase();this.is_loading_zoo=!0,console.log("filtering models"),console.log(this.models_zoo);const e=this.models_zoo.filter(t=>{if(t.name&&t.name.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n)||t.category&&t.category.toLowerCase().includes(n))return t});this.is_loading_zoo=!1,e.length>0?this.modelsFiltered=e:this.modelsFiltered=[],this.searchModelInProgress=!1},computedFileSize(n){return Wi(n)},async mount_personality(n){if(!n)return{status:!1,error:"no personality - mount_personality"};try{const e={client_id:this.$store.state.client_id,language:n.language?n.language:"",category:n.category?n.category:"",folder:n.folder?n.folder:""},t=await de.post("/mount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(e){console.log(e.message,"mount_personality - settings");return}},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 de.post("/unmount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};let e=n.language==null?n.full_path:n.full_path+":"+n.language;console.log("pth",e);const t=this.configFile.personalities.findIndex(i=>i===e),r={client_id:this.$store.state.client_id,id:t};try{const i=await de.post("/select_personality",r,{headers:this.posts_headers});if(i)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),i.data}catch(i){console.log(i.message,"select_personality - settings");return}},async mountPersonality(n){if(this.isLoading=!0,console.log("mount pers",n),n.personality.disclaimer!=""&&this.$store.state.messageBox.showMessage(n.personality.disclaimer),!n)return;if(this.configFile.personalities.includes(n.personality.full_path)){this.isLoading=!1,this.$store.state.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(n.personality);console.log("mount_personality res",e),e&&e.status&&e.active_personality_id>-1&&e.personalities.includes(n.personality.full_path)?(this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality mounted",4,!0),n.isMounted=!0,(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: +`+n.personality.name,4,!0),this.$store.dispatch("refreshMountedPersonalities")):(n.isMounted=!1,this.$store.state.toast.showToast(`Could not mount personality +Error: `+e.error+` +Response: +`+e,4,!1)),this.isLoading=!1},async unmountAll(){await de.post("/unmount_all_personalities",{client_id:this.$store.state.client_id},{headers:this.posts_headers}),this.$store.dispatch("refreshMountedPersonalities"),this.$store.dispatch("refreshConfig"),this.$store.state.toast.showToast("All personas unmounted",4,!0)},async unmountPersonality(n){if(this.isLoading=!0,!n)return;const e=await this.unmount_personality(n.personality||n);if(e.status){this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality unmounted",4,!0);const t=this.$store.state.personalities.findIndex(a=>a.full_path==n.full_path),r=this.personalitiesFiltered.findIndex(a=>a.full_path==n.full_path),i=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==n.full_path);console.log("ppp",this.$store.state.personalities[t]),this.$store.state.personalities[t].isMounted=!1,r>-1&&(this.personalitiesFiltered[r].isMounted=!1),i>-1&&(this.$refs.personalitiesZoo[i].isMounted=!1),this.$store.dispatch("refreshMountedPersonalities");const s=this.mountedPersArr[this.mountedPersArr.length-1];console.log(s,this.mountedPersArr.length),(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: +`+s.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality +Error: `+e.error,4,!1);this.isLoading=!1},editPersonality(n){n=n.personality,de.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)})},copyToCustom(n){n=n.personality,de.post("/copy_to_custom_personas",{category:n.category,name:n.folder}).then(e=>{e.status?(this.$store.state.messageBox.showMessage(`Personality copied to the custom personalities folder: +Now it's up to you to modify it, enhance it, and maybe even share it. +Feel free to add your name as an author, but please remember to keep the original creator's name as well. +You have the freedom to give, sell, or keep the personas you create for yourself. +The possibilities are endless, they are now yours to mold and customize as you see fit.`),this.$store.dispatch("refreshPersonalitiesZoo")):this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: +Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: +`,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),de.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality +`+e.message,4,!1),{status:!1}))},personalityImgPlacehodler(n){n.target.src=Ai},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 de.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 de.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")}try{if(console.log("Getting comfyui models"),this.configFile.activate_lollms_tti_server&&this.configFile.active_tti_service=="comfyui"){const n=await de.get("/list_comfyui_models");n.data.status&&(this.comfyui_models=n.data.models)}}catch{console.log("Couldin't list output devices")}this.fetchElevenLabsVoices()},activated(){},computed:{full_template:{get(){return(this.configFile.start_header_id_template+this.configFile.system_message_template+this.configFile.end_header_id_template+" system message"+this.configFile.separator_template+this.configFile.start_user_header_id_template+"user name"+this.configFile.end_user_header_id_template+" User prompt"+this.configFile.separator_template+this.configFile.end_user_message_id_template+this.configFile.separator_template+this.configFile.start_ai_header_id_template+"ai personality"+this.configFile.end_ai_header_id_template+"ai response"+this.configFile.end_ai_message_id_template).replace(` +`,"
    ")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(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 wr;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return wr}}},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):wr}catch{console.log("error")}if(!this.isMounted)return wr;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return wr}}},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:Ai},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_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 null;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return n>-1?this.bindingsZoo[n].name:null},active_pesonality(){if(!this.isMounted)return null;const n=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return n>-1?this.$store.state.personalities[n].name:null},speed_computed(){return Wi(this.addModel.speed)},total_size_computed(){return Wi(this.addModel.total_size)},downloaded_size_computed(){return Wi(this.addModel.downloaded_size)}},watch:{bec_collapsed(){We(()=>{Ze.replace()})},pc_collapsed(){We(()=>{Ze.replace()})},mc_collapsed(){We(()=>{Ze.replace()})},sc_collapsed(){We(()=>{Ze.replace()})},showConfirmation(){We(()=>{Ze.replace()})},mzl_collapsed(){We(()=>{Ze.replace()})},pzl_collapsed(){We(()=>{Ze.replace()})},ezl_collapsed(){We(()=>{Ze.replace()})},bzl_collapsed(){We(()=>{Ze.replace()})},all_collapsed(n){this.collapseAll(n),We(()=>{Ze.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,We(()=>{Ze.replace()})},isLoading(){We(()=>{Ze.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){We(()=>{Ze.replace()})}},async beforeRouteLeave(n){await this.$router.isReady()}},uct={class:"container pt-12 flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full background-color scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},pct={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},hct={key:0,class:"flex gap-3 flex-1 items-center duration-75"},mct={key:1,class:"flex gap-3 flex-1 items-center"},fct={class:"flex gap-3 flex-1 items-center justify-end"},gct={class:"flex gap-3 items-center"},_ct={key:0,class:"flex gap-3 items-center"},bct={key:1,role:"status"},vct={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},yct={class:"flex flex-row p-3"},Ect={class:"text-base font-semibold cursor-pointer select-none items-center"},Sct={class:"flex gap-2 items-center"},xct={key:0},Tct=["src"],wct={class:"font-bold font-large text-lg"},Cct={key:1},Act={class:"flex gap-2 items-center"},Rct=["src"],Mct={class:"font-bold font-large text-lg"},Nct={class:"font-bold font-large text-lg"},kct={class:"font-bold font-large text-lg"},Ict={class:"mb-2"},Oct={class:"flex flex-col mx-2"},Dct={class:"p-2"},Lct={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Pct={class:"mb-2"},Fct={class:"flex flex-col mx-2"},Uct={class:"p-2"},Bct={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Gct={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},zct=["src"],Vct={class:"flex flex-col mx-2"},Hct={class:"p-2"},qct={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Yct={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},$ct={class:"flex flex-row p-3"},Wct={class:"flex flex-col mb-2 px-3 pb-2"},Kct={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"},jct={style:{width:"100%"}},Qct={style:{width:"100%"}},Xct={style:{width:"100%"}},Zct={style:{width:"100%"}},Jct={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},edt={class:"flex flex-row p-3"},tdt={class:"flex flex-col mb-2 px-3 pb-2"},ndt={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"},rdt={for:"logo-upload"},idt=["src"],sdt={style:{width:"10%"}},odt={class:"text-center items-center"},adt={class:"flex flex-row"},ldt={style:{width:"100%"}},cdt={class:"flex flex-row"},ddt={class:"flex flex-row"},udt={class:"flex flex-row"},pdt={class:"flex flex-row"},hdt={class:"flex flex-row"},mdt={class:"flex flex-row"},fdt={class:"flex flex-row"},gdt={class:"flex flex-row"},_dt={class:"flex flex-row"},bdt={class:"flex flex-row"},vdt={class:"flex flex-row"},ydt={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"},Edt=["innerHTML"],Sdt={style:{width:"100%"}},xdt={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"},Tdt={style:{width:"100%"}},wdt={style:{width:"100%"}},Cdt={style:{width:"100%"}},Adt={style:{width:"100%"}},Rdt={for:"avatar-upload"},Mdt=["src"],Ndt={style:{width:"10%"}},kdt={class:"flex flex-row"},Idt={style:{width:"100%"}},Odt={style:{width:"100%"}},Ddt={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"},Ldt={style:{width:"100%"}},Pdt={style:{width:"100%"}},Fdt={style:{width:"100%"}},Udt={style:{width:"100%"}},Bdt={style:{width:"100%"}},Gdt={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"},zdt={class:"flex flex-row"},Vdt={style:{width:"100%"}},Hdt={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={class:"flex flex-row"},Ydt={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"},$dt={class:"flex flex-row"},Wdt={class:"flex flex-row"},Kdt={class:"flex flex-row"},jdt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Qdt={class:"flex flex-row p-3"},Xdt={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"},Zdt={style:{width:"100%"}},Jdt=["onUpdate:modelValue"],eut=["onClick"],tut=["onClick"],nut=["onClick"],rut=["disabled"],iut={key:0,value:"sentence-transformers/bert-base-nli-mean-tokens"},sut={key:1,value:"bert-base-uncased"},out={key:2,value:"bert-base-multilingual-uncased"},aut={key:3,value:"bert-large-uncased"},lut={key:4,value:"bert-large-uncased-whole-word-masking-finetuned-squad"},cut={key:5,value:"distilbert-base-uncased"},dut={key:6,value:"roberta-base"},uut={key:7,value:"roberta-large"},put={key:8,value:"xlm-roberta-base"},hut={key:9,value:"xlm-roberta-large"},mut={key:10,value:"albert-base-v2"},fut={key:11,value:"albert-large-v2"},gut={key:12,value:"albert-xlarge-v2"},_ut={key:13,value:"albert-xxlarge-v2"},but={key:14,value:"sentence-transformers/all-MiniLM-L6-v2"},vut={key:15,value:"sentence-transformers/all-MiniLM-L12-v2"},yut={key:16,value:"sentence-transformers/all-distilroberta-v1"},Eut={key:17,value:"sentence-transformers/all-mpnet-base-v2"},Sut={key:18,value:"text-embedding-ada-002"},xut={key:19,value:"text-embedding-babbage-001"},Tut={key:20,value:"text-embedding-curie-001"},wut={key:21,value:"text-embedding-davinci-001"},Cut={key:22,disabled:""},Aut={class:"flex flex-row"},Rut={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"},Mut={class:"flex flex-row"},Nut={class:"flex flex-row"},kut={class:"flex flex-row"},Iut={class:"flex flex-row"},Out={class:"flex flex-row"},Dut={style:{width:"100%"}},Lut={class:"flex flex-row"},Put={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Fut={class:"flex flex-row p-3"},Uut={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"},But={class:"flex flex-row"},Gut={class:"flex flex-row"},zut={class:"flex flex-row"},Vut={class:"flex flex-row"},Hut={class:"flex flex-col"},qut={class:"flex flex-col"},Yut={class:"flex flex-col"},$ut={class:"flex flex-col"},Wut={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Kut={class:"flex flex-row p-3"},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"},Qut={style:{width:"100%"}},Xut={style:{width:"100%"}},Zut={style:{width:"100%"}},Jut={style:{width:"100%"}},ept={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"},npt={class:"flex flex-row"},rpt={class:"flex flex-row"},ipt={class:"flex flex-row"},spt={class:"flex flex-row"},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={style:{width:"100%"}},lpt={style:{width:"100%"}},cpt={style:{width:"100%"}},dpt={style:{width:"100%"}},upt={style:{width:"100%"}},ppt={style:{width:"100%"}},hpt={style:{width:"100%"}},mpt={class:"flex flex-row"},fpt={class:"flex flex-row"},gpt={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"},_pt={style:{width:"100%"}},bpt=["value"],vpt={style:{width:"100%"}},ypt=["value"],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"},Spt={style:{width:"100%"}},xpt={style:{width:"100%"}},Tpt={style:{width:"100%"}},wpt={style:{width:"100%"}},Cpt={style:{width:"100%"}},Apt={style:{width:"100%"}},Rpt={style:{width:"100%"}},Mpt={style:{width:"100%"}},Npt={style:{width:"100%"}},kpt={style:{width:"100%"}},Ipt={style:{width:"100%"}},Opt={style:{width:"100%"}},Dpt={style:{width:"100%"}},Lpt={style:{width:"100%"}},Ppt={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={class:"flex flex-row"},Upt={class:"flex flex-row"},Bpt=["value"],Gpt={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"},zpt={class:"flex flex-row"},Vpt={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={class:"flex flex-row"},$pt={class:"flex flex-row"},Wpt=["value"],Kpt={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"},jpt={class:"flex flex-row"},Qpt=["value"],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"},Zpt={class:"flex flex-row"},Jpt=["value"],eht={class:"flex flex-row"},tht=["value"],nht={class:"flex flex-row"},rht={class:"flex flex-row"},iht={class:"flex flex-row"},sht={class:"flex flex-row"},oht={class:"flex flex-row"},aht={class:"flex flex-row"},lht={class:"flex flex-row"},cht={class:"flex flex-row"},dht={class:"flex flex-row"},uht={class:"flex flex-row"},pht={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={class:"flex flex-row"},mht={class:"flex flex-row"},fht={class:"flex flex-row"},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"},_ht={class:"flex flex-row"},bht={class:"flex flex-row"},vht={class:"flex flex-row"},yht={class:"flex flex-row"},Eht={class:"flex flex-row"},Sht=["value"],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"},Tht={class:"flex flex-row"},wht={class:"flex flex-row"},Cht={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"},Aht={class:"flex flex-row"},Rht={class:"flex flex-row"},Mht={class:"flex flex-row"},Nht={class:"flex flex-row"},kht={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"},Iht={class:"flex flex-row"},Oht={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"},Lht={class:"flex flex-row"},Pht={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"},Fht={class:"flex flex-row"},Uht={class:"flex flex-row"},Bht={class:"flex flex-row"},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"},zht={class:"flex flex-row"},Vht={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={class:"flex flex-row"},Yht={class:"flex flex-row"},$ht=["value"],Wht={class:"flex flex-row"},Kht={class:"flex flex-row"},jht={class:"flex flex-row"},Qht={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"},Xht={class:"flex flex-row"},Zht={class:"flex flex-row"},Jht={class:"flex flex-row"},emt={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"},tmt={class:"flex flex-row"},nmt={class:"flex flex-row"},rmt={class:"flex flex-row"},imt={class:"flex flex-col align-bottom"},smt={class:"relative"},omt={class:"absolute right-0"},amt={class:"flex flex-row"},lmt={class:"flex flex-row"},cmt={class:"flex flex-row"},dmt={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"},umt={class:"flex flex-row"},pmt={class:"flex flex-row"},hmt={class:"flex flex-row"},mmt={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"},fmt={class:"flex flex-row"},gmt={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"},_mt={class:"flex flex-row"},bmt={class:"flex flex-row"},vmt={class:"flex flex-row"},ymt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Emt={class:"flex flex-row p-3"},Smt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},xmt={key:1,class:"mr-2"},Tmt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},wmt={class:"flex gap-1 items-center"},Cmt=["src"],Amt={class:"font-bold font-large text-lg line-clamp-1"},Rmt={key:0,class:"mb-2"},Mmt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Nmt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},kmt={class:"flex flex-row p-3"},Imt={class:"flex flex-row items-center"},Omt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Dmt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Lmt={key:2,class:"mr-2"},Pmt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Fmt={class:"flex gap-1 items-center"},Umt=["src"],Bmt={class:"font-bold font-large text-lg line-clamp-1"},Gmt={class:"mx-2 mb-4"},zmt={class:"relative"},Vmt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Hmt={key:0},qmt={key:1},Ymt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},$mt={key:1,class:"mb-2"},Wmt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Kmt={class:"mb-2"},jmt={class:"p-2"},Qmt={class:"mb-3"},Xmt={key:0},Zmt={class:"mb-3"},Jmt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},eft={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},tft={class:"w-full p-2"},nft={class:"flex justify-between mb-1"},rft={class:"text-sm font-medium text-blue-700 dark:text-white"},ift=["title"],sft={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},oft={class:"flex justify-between mb-1"},aft={class:"text-base font-medium text-blue-700 dark:text-white"},lft={class:"text-sm font-medium text-blue-700 dark:text-white"},cft={class:"flex flex-grow"},dft={class:"flex flex-row flex-grow gap-3"},uft={class:"p-2 text-center grow"},pft={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},hft={class:"flex flex-row p-3 items-center"},mft={key:0,class:"mr-2"},fft={class:"mr-2 font-bold font-large text-lg line-clamp-1"},gft={key:1,class:"mr-2"},_ft={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},bft={key:0,class:"flex -space-x-4 items-center"},vft={class:"group items-center flex flex-row"},yft=["onClick"],Eft=["src","title"],Sft=["onClick"],xft={class:"mx-2 mb-4"},Tft={class:"relative"},wft={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Cft={key:0},Aft={key:1},Rft={key:0,class:"mx-2 mb-4"},Mft={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Nft=["selected"],kft={key:0,class:"mb-2"},Ift={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Oft={class:"flex flex-col mb-2 p-3 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Dft={class:"flex flex-row"},Lft={class:"m-2"},Pft={class:"flex flex-row gap-2 items-center"},Fft={class:"m-2"},Uft={class:"m-2"},Bft={class:"flex flex-col align-bottom"},Gft={class:"relative"},zft={class:"absolute right-0"},Vft={class:"m-2"},Hft={class:"flex flex-col align-bottom"},qft={class:"relative"},Yft={class:"absolute right-0"},$ft={class:"m-2"},Wft={class:"flex flex-col align-bottom"},Kft={class:"relative"},jft={class:"absolute right-0"},Qft={class:"m-2"},Xft={class:"flex flex-col align-bottom"},Zft={class:"relative"},Jft={class:"absolute right-0"},egt={class:"m-2"},tgt={class:"flex flex-col align-bottom"},ngt={class:"relative"},rgt={class:"absolute right-0"},igt={class:"m-2"},sgt={class:"flex flex-col align-bottom"},ogt={class:"relative"},agt={class:"absolute right-0"};function lgt(n,e,t,r,i,s){const o=gt("StringListManager"),a=gt("Card"),l=gt("BindingEntry"),d=gt("RadioOptions"),u=gt("model-entry"),m=gt("personality-entry"),f=gt("AddModelDialog"),g=gt("ChoiceDialog");return T(),M(je,null,[c("div",uct,[c("div",pct,[i.showConfirmation?(T(),M("div",hct,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=J(h=>i.showConfirmation=!1,["stop"]))},e[471]||(e[471]=[c("i",{"data-feather":"x"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=J(h=>s.save_configuration(),["stop"]))},e[472]||(e[472]=[c("i",{"data-feather":"check"},null,-1)]))])):Y("",!0),i.showConfirmation?Y("",!0):(T(),M("div",mct,[c("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=h=>s.reset_configuration())},e[473]||(e[473]=[c("i",{"data-feather":"refresh-ccw"},null,-1)])),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]=J(h=>i.all_collapsed=!i.all_collapsed,["stop"]))},e[474]||(e[474]=[c("i",{"data-feather":"list"},null,-1)]))])),c("div",fct,[c("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=h=>s.api_get_req("clear_uploads").then(v=>{v.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[475]||(e[475]=[c("i",{"data-feather":"trash-2"},null,-1)])),c("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=h=>s.api_post_req("restart_program").then(v=>{v.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[476]||(e[476]=[c("i",{"data-feather":"refresh-ccw"},null,-1)])),i.has_updates?(T(),M("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=h=>s.api_post_req("update_software").then(v=>{v.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},e[477]||(e[477]=[c("i",{"data-feather":"arrow-up-circle"},null,-1),c("i",{"data-feather":"alert-circle"},null,-1)]))):Y("",!0),c("div",gct,[i.settingsChanged?(T(),M("div",_ct,[i.isLoading?Y("",!0):(T(),M("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=J(h=>s.applyConfiguration(),["stop"]))},e[478]||(e[478]=[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)]))),i.isLoading?Y("",!0):(T(),M("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=J(h=>s.cancelConfiguration(),["stop"]))},e[479]||(e[479]=[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)])))])):Y("",!0),i.isLoading?(T(),M("div",bct,[c("p",null,X(i.loading_text),1),e[480]||(e[480]=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)),e[481]||(e[481]=c("span",{class:"sr-only"},"Loading...",-1))])):Y("",!0)])])]),c("div",{class:qe(i.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[c("div",vct,[c("div",yct,[c("button",{onClick:e[9]||(e[9]=J(h=>i.sc_collapsed=!i.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[F(c("div",null,e[482]||(e[482]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.sc_collapsed]]),F(c("div",null,e[483]||(e[483]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.sc_collapsed]]),e[486]||(e[486]=c("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),e[487]||(e[487]=c("div",{class:"mr-2"},"|",-1)),c("div",Ect,[c("div",Sct,[c("div",null,[s.vramUsage&&s.vramUsage.gpus&&s.vramUsage.gpus.length==1?(T(),M("div",xct,[(T(!0),M(je,null,at(s.vramUsage.gpus,h=>(T(),M("div",{class:"flex gap-2 items-center",key:h},[c("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,Tct),c("p",wct,[c("div",null,X(s.computedFileSize(h.used_vram))+" / "+X(s.computedFileSize(h.total_vram))+" ("+X(h.percentage)+"%) ",1)])]))),128))])):Y("",!0),s.vramUsage&&s.vramUsage.gpus&&s.vramUsage.gpus.length>1?(T(),M("div",Cct,[c("div",Act,[c("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,Rct),c("p",Mct,[c("div",null,X(s.vramUsage.gpus.length)+"x ",1)])])])):Y("",!0)]),e[484]||(e[484]=c("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),c("p",Nct,[c("div",null,X(s.ram_usage)+" / "+X(s.ram_total_space)+" ("+X(s.ram_percent_usage)+"%)",1)]),e[485]||(e[485]=c("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),c("p",kct,[c("div",null,X(s.disk_binding_models_usage)+" / "+X(s.disk_total_space)+" ("+X(s.disk_percent_usage)+"%)",1)])])])])]),c("div",{class:qe([{hidden:i.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Ict,[e[490]||(e[490]=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"})]),pt(" CPU Ram usage: ")],-1)),c("div",Oct,[c("div",null,[e[488]||(e[488]=c("b",null,"Avaliable ram: ",-1)),pt(X(s.ram_available_space),1)]),c("div",null,[e[489]||(e[489]=c("b",null,"Ram usage: ",-1)),pt(" "+X(s.ram_usage)+" / "+X(s.ram_total_space)+" ("+X(s.ram_percent_usage)+")% ",1)])]),c("div",Dct,[c("div",Lct,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:on("width: "+s.ram_percent_usage+"%;")},null,4)])])]),c("div",Pct,[e[493]||(e[493]=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"}),pt(" Disk usage: ")],-1)),c("div",Fct,[c("div",null,[e[491]||(e[491]=c("b",null,"Avaliable disk space: ",-1)),pt(X(s.disk_available_space),1)]),c("div",null,[e[492]||(e[492]=c("b",null,"Disk usage: ",-1)),pt(" "+X(s.disk_binding_models_usage)+" / "+X(s.disk_total_space)+" ("+X(s.disk_percent_usage)+"%)",1)])]),c("div",Uct,[c("div",Bct,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:on("width: "+s.disk_percent_usage+"%;")},null,4)])])]),(T(!0),M(je,null,at(s.vramUsage.gpus,h=>(T(),M("div",{class:"mb-2",key:h},[c("label",Gct,[c("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,zct),e[494]||(e[494]=pt(" GPU usage: "))]),c("div",Vct,[c("div",null,[e[495]||(e[495]=c("b",null,"Model: ",-1)),pt(X(h.gpu_model),1)]),c("div",null,[e[496]||(e[496]=c("b",null,"Avaliable vram: ",-1)),pt(X(this.computedFileSize(h.available_space)),1)]),c("div",null,[e[497]||(e[497]=c("b",null,"GPU usage: ",-1)),pt(" "+X(this.computedFileSize(h.used_vram))+" / "+X(this.computedFileSize(h.total_vram))+" ("+X(h.percentage)+"%)",1)])]),c("div",Hct,[c("div",qct,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:on("width: "+h.percentage+"%;")},null,4)])])]))),128))],2)]),c("div",Yct,[c("div",$ct,[c("button",{onClick:e[10]||(e[10]=J(h=>i.smartrouterconf_collapsed=!i.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[F(c("div",null,e[498]||(e[498]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.smartrouterconf_collapsed]]),F(c("div",null,e[499]||(e[499]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.smartrouterconf_collapsed]]),e[500]||(e[500]=c("div",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1))])]),c("div",{class:qe([{hidden:i.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Wct,[W(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Kct,[c("tr",null,[e[501]||(e[501]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use Smart Routing:")],-1)),c("td",jct,[F(c("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=h=>s.configFile.use_smart_routing=h),onChange:e[12]||(e[12]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.use_smart_routing]])])]),c("tr",null,[e[502]||(e[502]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Restore model after smart routing:")],-1)),c("td",Qct,[F(c("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=h=>s.configFile.restore_model_after_smart_routing=h),onChange:e[14]||(e[14]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.restore_model_after_smart_routing]])])]),c("tr",null,[e[503]||(e[503]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"smart_routing_router_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Router Model:")],-1)),c("td",Xct,[F(c("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=h=>s.configFile.smart_routing_router_model=h),onChange:e[16]||(e[16]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.smart_routing_router_model]])])]),c("tr",null,[e[504]||(e[504]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"smart_routing_models_by_power",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Models by Power:")],-1)),c("td",Zct,[W(o,{modelValue:s.configFile.smart_routing_models_by_power,"onUpdate:modelValue":e[17]||(e[17]=h=>s.configFile.smart_routing_models_by_power=h),onChange:e[18]||(e[18]=h=>i.settingsChanged=!0),placeholder:"Enter model name"},null,8,["modelValue"])])])])]),_:1})])],2)]),c("div",Jct,[c("div",edt,[c("button",{onClick:e[19]||(e[19]=J(h=>i.mainconf_collapsed=!i.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[F(c("div",null,e[505]||(e[505]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.mainconf_collapsed]]),F(c("div",null,e[506]||(e[506]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.mainconf_collapsed]]),e[507]||(e[507]=c("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1))])]),c("div",{class:qe([{hidden:i.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",tdt,[W(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",ndt,[c("tr",null,[e[509]||(e[509]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),c("td",null,[c("label",rdt,[c("img",{src:s.configFile.app_custom_logo!=null&&s.configFile.app_custom_logo!=""?"/user_infos/"+s.configFile.app_custom_logo:i.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,idt)]),c("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[20]||(e[20]=(...h)=>s.uploadLogo&&s.uploadLogo(...h))},null,32)]),c("td",sdt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[21]||(e[21]=J(h=>s.resetLogo(),["stop"]))},e[508]||(e[508]=[c("i",{"data-feather":"x"},null,-1)]))])]),c("tr",null,[e[511]||(e[511]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),c("td",odt,[c("div",adt,[F(c("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[22]||(e[22]=h=>s.configFile.hardware_mode=h),onChange:e[23]||(e[23]=h=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[510]||(e[510]=[c("option",{value:"cpu"},"CPU",-1),c("option",{value:"cpu-noavx"},"CPU (No AVX)",-1),c("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1),c("option",{value:"nvidia"},"NVIDIA",-1),c("option",{value:"amd-noavx"},"AMD (No AVX)",-1),c("option",{value:"amd"},"AMD",-1),c("option",{value:"apple-intel"},"Apple Intel",-1),c("option",{value:"apple-silicon"},"Apple Silicon",-1)]),544),[[Qt,s.configFile.hardware_mode]])])])]),c("tr",null,[e[512]||(e[512]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),c("td",ldt,[F(c("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[24]||(e[24]=h=>s.configFile.discussion_db_name=h),onChange:e[25]||(e[25]=h=>i.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),[[_e,s.configFile.discussion_db_name]])])]),c("tr",null,[e[513]||(e[513]=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)),c("td",null,[c("div",cdt,[F(c("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[26]||(e[26]=h=>s.configFile.copy_to_clipboard_add_all_details=h),onChange:e[27]||(e[27]=h=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.copy_to_clipboard_add_all_details]])])])]),c("tr",null,[e[514]||(e[514]=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)),c("td",null,[c("div",ddt,[F(c("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[28]||(e[28]=h=>s.configFile.auto_show_browser=h),onChange:e[29]||(e[29]=h=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.auto_show_browser]])])])]),c("tr",null,[e[515]||(e[515]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),c("td",null,[c("div",udt,[F(c("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[30]||(e[30]=h=>s.configFile.debug=h),onChange:e[31]||(e[31]=h=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.debug]])])])]),c("tr",null,[e[516]||(e[516]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate showing the full prompt in console (for debug):")],-1)),c("td",null,[c("div",pdt,[F(c("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[32]||(e[32]=h=>s.configFile.debug_show_final_full_prompt=h),onChange:e[33]||(e[33]=h=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.debug_show_final_full_prompt]])])])]),c("tr",null,[e[517]||(e[517]=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)),c("td",null,[c("div",hdt,[F(c("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[34]||(e[34]=h=>s.configFile.debug_show_final_full_prompt=h),onChange:e[35]||(e[35]=h=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.debug_show_final_full_prompt]])])])]),c("tr",null,[e[518]||(e[518]=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)),c("td",null,[c("div",mdt,[F(c("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[36]||(e[36]=h=>s.configFile.debug_show_chunks=h),onChange:e[37]||(e[37]=h=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.debug_show_chunks]])])])]),c("tr",null,[e[519]||(e[519]=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)),c("td",null,[c("div",fdt,[F(c("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[38]||(e[38]=h=>s.configFile.debug_log_file_path=h),onChange:e[39]||(e[39]=h=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.debug_log_file_path]])])])]),c("tr",null,[e[520]||(e[520]=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)),c("td",null,[c("div",gdt,[F(c("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[40]||(e[40]=h=>s.configFile.show_news_panel=h),onChange:e[41]||(e[41]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.show_news_panel]])])])]),c("tr",null,[e[521]||(e[521]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),c("td",null,[c("div",_dt,[F(c("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[42]||(e[42]=h=>s.configFile.auto_save=h),onChange:e[43]||(e[43]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.auto_save]])])])]),c("tr",null,[e[522]||(e[522]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),c("td",null,[c("div",bdt,[F(c("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[44]||(e[44]=h=>s.configFile.auto_update=h),onChange:e[45]||(e[45]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.auto_update]])])])]),c("tr",null,[e[523]||(e[523]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),c("td",null,[c("div",vdt,[F(c("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[46]||(e[46]=h=>s.configFile.auto_title=h),onChange:e[47]||(e[47]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.auto_title]])])])])])]),_:1}),W(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",ydt,[c("tr",null,[e[525]||(e[525]=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)),c("td",null,[c("select",{onChange:e[48]||(e[48]=(...h)=>s.handleTemplateSelection&&s.handleTemplateSelection(...h))},e[524]||(e[524]=[c("option",{value:"lollms"},"Lollms communication template",-1),c("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1),c("option",{value:"bare"},"Bare, useful when in chat mode",-1),c("option",{value:"llama3"},"LLama3 communication template",-1),c("option",{value:"mistral"},"Mistral communication template",-1),c("option",{value:"deepseek"},"DeepSeek communication template",-1)]),32)])]),c("tr",null,[e[526]||(e[526]=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)),c("td",null,[F(c("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[49]||(e[49]=h=>s.configFile.start_header_id_template=h),onChange:e[50]||(e[50]=h=>i.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),[[_e,s.configFile.start_header_id_template]])])]),c("tr",null,[e[527]||(e[527]=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)),c("td",null,[F(c("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[51]||(e[51]=h=>s.configFile.end_header_id_template=h),onChange:e[52]||(e[52]=h=>i.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),[[_e,s.configFile.end_header_id_template]])])]),c("tr",null,[e[528]||(e[528]=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)),c("td",null,[F(c("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[53]||(e[53]=h=>s.configFile.start_user_header_id_template=h),onChange:e[54]||(e[54]=h=>i.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),[[_e,s.configFile.start_user_header_id_template]])])]),c("tr",null,[e[529]||(e[529]=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)),c("td",null,[F(c("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[55]||(e[55]=h=>s.configFile.end_user_header_id_template=h),onChange:e[56]||(e[56]=h=>i.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),[[_e,s.configFile.end_user_header_id_template]])])]),c("tr",null,[e[530]||(e[530]=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)),c("td",null,[F(c("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[57]||(e[57]=h=>s.configFile.end_user_message_id_template=h),onChange:e[58]||(e[58]=h=>i.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),[[_e,s.configFile.end_user_message_id_template]])])]),c("tr",null,[e[531]||(e[531]=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)),c("td",null,[F(c("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[59]||(e[59]=h=>s.configFile.start_ai_header_id_template=h),onChange:e[60]||(e[60]=h=>i.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),[[_e,s.configFile.start_ai_header_id_template]])])]),c("tr",null,[e[532]||(e[532]=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)),c("td",null,[F(c("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[61]||(e[61]=h=>s.configFile.end_ai_header_id_template=h),onChange:e[62]||(e[62]=h=>i.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),[[_e,s.configFile.end_ai_header_id_template]])])]),c("tr",null,[e[533]||(e[533]=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)),c("td",null,[F(c("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[63]||(e[63]=h=>s.configFile.end_ai_message_id_template=h),onChange:e[64]||(e[64]=h=>i.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),[[_e,s.configFile.end_ai_message_id_template]])])]),c("tr",null,[e[534]||(e[534]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),c("td",null,[F(c("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[65]||(e[65]=h=>s.configFile.separator_template=h),onChange:e[66]||(e[66]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.separator_template]])])]),c("tr",null,[e[535]||(e[535]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),c("td",null,[F(c("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[67]||(e[67]=h=>s.configFile.system_message_template=h),onChange:e[68]||(e[68]=h=>i.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),[[_e,s.configFile.system_message_template]])])]),c("tr",null,[e[536]||(e[536]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),c("td",null,[c("div",{innerHTML:s.full_template},null,8,Edt)])]),c("tr",null,[e[537]||(e[537]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_continue_message",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"useful for chat models and repote models but can be less useful for instruct ones"},"Use continue message:")],-1)),c("td",Sdt,[F(c("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[69]||(e[69]=h=>s.configFile.use_continue_message=h),onChange:e[70]||(e[70]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.use_continue_message]])])])])]),_:1}),W(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",xdt,[c("tr",null,[e[538]||(e[538]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),c("td",Tdt,[F(c("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[71]||(e[71]=h=>s.configFile.user_name=h),onChange:e[72]||(e[72]=h=>i.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.user_name]])])]),c("tr",null,[e[539]||(e[539]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),c("td",wdt,[F(c("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[73]||(e[73]=h=>s.configFile.user_description=h),onChange:e[74]||(e[74]=h=>i.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),[[_e,s.configFile.user_description]])])]),c("tr",null,[e[540]||(e[540]=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)),c("td",Cdt,[F(c("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[75]||(e[75]=h=>s.configFile.use_user_informations_in_discussion=h),onChange:e[76]||(e[76]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.use_user_informations_in_discussion]])])]),c("tr",null,[e[541]||(e[541]=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)),c("td",Adt,[F(c("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[77]||(e[77]=h=>s.configFile.use_model_name_in_discussions=h),onChange:e[78]||(e[78]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.use_model_name_in_discussions]])])]),c("tr",null,[e[543]||(e[543]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),c("td",null,[c("label",Rdt,[c("img",{src:s.configFile.user_avatar!=null&&s.configFile.user_avatar!=""?"/user_infos/"+s.configFile.user_avatar:i.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Mdt)]),c("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[79]||(e[79]=(...h)=>s.uploadAvatar&&s.uploadAvatar(...h))},null,32)]),c("td",Ndt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[80]||(e[80]=J(h=>s.resetAvatar(),["stop"]))},e[542]||(e[542]=[c("i",{"data-feather":"x"},null,-1)]))])]),c("tr",null,[e[544]||(e[544]=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)),c("td",null,[c("div",kdt,[F(c("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[81]||(e[81]=h=>s.configFile.use_user_name_in_discussions=h),onChange:e[82]||(e[82]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.use_user_name_in_discussions]])])])]),c("tr",null,[e[545]||(e[545]=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)),c("td",Idt,[F(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[83]||(e[83]=h=>s.configFile.max_n_predict=h),onChange:e[84]||(e[84]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.max_n_predict]])])]),c("tr",null,[e[546]||(e[546]=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)),c("td",Odt,[F(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[85]||(e[85]=h=>s.configFile.max_n_predict=h),onChange:e[86]||(e[86]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.max_n_predict]])])])])]),_:1}),W(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Ddt,[c("tr",null,[e[547]||(e[547]=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)),c("td",Ldt,[F(c("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[87]||(e[87]=h=>s.configFile.turn_on_code_execution=h),onChange:e[88]||(e[88]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.turn_on_code_execution]])])]),c("tr",null,[e[548]||(e[548]=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)),c("td",Pdt,[F(c("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[89]||(e[89]=h=>s.configFile.turn_on_code_validation=h),onChange:e[90]||(e[90]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.turn_on_code_validation]])])]),c("tr",null,[e[549]||(e[549]=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)),c("td",Fdt,[F(c("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[91]||(e[91]=h=>s.configFile.turn_on_setting_update_validation=h),onChange:e[92]||(e[92]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.turn_on_setting_update_validation]])])]),c("tr",null,[e[550]||(e[550]=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)),c("td",Udt,[F(c("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[93]||(e[93]=h=>s.configFile.turn_on_open_file_validation=h),onChange:e[94]||(e[94]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.turn_on_open_file_validation]])])]),c("tr",null,[e[551]||(e[551]=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)),c("td",Bdt,[F(c("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[95]||(e[95]=h=>s.configFile.turn_on_send_file_validation=h),onChange:e[96]||(e[96]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.turn_on_send_file_validation]])])])])]),_:1}),W(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Gdt,[c("tr",null,[e[552]||(e[552]=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)),c("td",null,[c("div",zdt,[F(c("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[97]||(e[97]=h=>s.configFile.activate_skills_lib=h),onChange:e[98]||(e[98]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_skills_lib]])])])]),c("tr",null,[e[553]||(e[553]=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)),c("td",Vdt,[F(c("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[99]||(e[99]=h=>s.configFile.skills_lib_database_name=h),onChange:e[100]||(e[100]=h=>i.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),[[_e,s.configFile.skills_lib_database_name]])])])])]),_:1}),W(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Hdt,[c("tr",null,[e[554]||(e[554]=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)),c("td",null,[c("div",qdt,[F(c("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[101]||(e[101]=h=>s.configFile.pdf_latex_path=h),onChange:e[102]||(e[102]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.pdf_latex_path]])])])])])]),_:1}),W(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Ydt,[c("tr",null,[e[555]||(e[555]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),c("td",null,[c("div",$dt,[F(c("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[103]||(e[103]=h=>s.configFile.positive_boost=h),onChange:e[104]||(e[104]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.positive_boost]])])])]),c("tr",null,[e[556]||(e[556]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),c("td",null,[c("div",Wdt,[F(c("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[105]||(e[105]=h=>s.configFile.negative_boost=h),onChange:e[106]||(e[106]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.negative_boost]])])])]),c("tr",null,[e[557]||(e[557]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),c("td",null,[c("div",Kdt,[F(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[107]||(e[107]=h=>s.configFile.fun_mode=h),onChange:e[108]||(e[108]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.fun_mode]])])])])])]),_:1})])],2)]),c("div",jdt,[c("div",Qdt,[c("button",{onClick:e[109]||(e[109]=J(h=>i.data_conf_collapsed=!i.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[F(c("div",null,e[558]||(e[558]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.data_conf_collapsed]]),F(c("div",null,e[559]||(e[559]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.data_conf_collapsed]]),e[560]||(e[560]=c("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1))])]),c("div",{class:qe([{hidden:i.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[W(a,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Xdt,[c("tr",null,[e[561]||(e[561]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),c("td",Zdt,[(T(!0),M(je,null,at(s.configFile.rag_databases,(h,v)=>(T(),M("div",{key:v,class:"flex items-center mb-2"},[F(c("input",{type:"text","onUpdate:modelValue":b=>s.configFile.rag_databases[v]=b,onChange:e[110]||(e[110]=b=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,Jdt),[[_e,s.configFile.rag_databases[v]]]),c("button",{onClick:b=>s.vectorize_folder(v),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,eut),c("button",{onClick:b=>s.select_folder(v),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,tut),c("button",{onClick:b=>s.removeDataSource(v),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,nut)]))),128)),c("button",{onClick:e[111]||(e[111]=(...h)=>s.addDataSource&&s.addDataSource(...h)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),c("tr",null,[e[563]||(e[563]=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)),c("td",null,[F(c("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[112]||(e[112]=h=>s.configFile.rag_vectorizer=h),onChange:e[113]||(e[113]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[562]||(e[562]=[c("option",{value:"semantic"},"Semantic Vectorizer",-1),c("option",{value:"tfidf"},"TFIDF Vectorizer",-1),c("option",{value:"openai"},"OpenAI Vectorizer",-1)]),544),[[Qt,s.configFile.rag_vectorizer]])])]),c("tr",null,[e[564]||(e[564]=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)),c("td",null,[F(c("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[114]||(e[114]=h=>s.configFile.rag_vectorizer_model=h),onChange:e[115]||(e[115]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:s.configFile.rag_vectorizer==="tfidf"},[s.configFile.rag_vectorizer==="semantic"?(T(),M("option",iut,"sentence-transformers/bert-base-nli-mean-tokens")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",sut,"bert-base-uncased")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",out,"bert-base-multilingual-uncased")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",aut,"bert-large-uncased")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",lut,"bert-large-uncased-whole-word-masking-finetuned-squad")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",cut,"distilbert-base-uncased")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",dut,"roberta-base")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",uut,"roberta-large")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",put,"xlm-roberta-base")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",hut,"xlm-roberta-large")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",mut,"albert-base-v2")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",fut,"albert-large-v2")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",gut,"albert-xlarge-v2")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",_ut,"albert-xxlarge-v2")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",but,"sentence-transformers/all-MiniLM-L6-v2")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",vut,"sentence-transformers/all-MiniLM-L12-v2")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",yut,"sentence-transformers/all-distilroberta-v1")):Y("",!0),s.configFile.rag_vectorizer==="semantic"?(T(),M("option",Eut,"sentence-transformers/all-mpnet-base-v2")):Y("",!0),s.configFile.rag_vectorizer==="openai"?(T(),M("option",Sut,"text-embedding-ada-002")):Y("",!0),s.configFile.rag_vectorizer==="openai"?(T(),M("option",xut,"text-embedding-babbage-001")):Y("",!0),s.configFile.rag_vectorizer==="openai"?(T(),M("option",Tut,"text-embedding-curie-001")):Y("",!0),s.configFile.rag_vectorizer==="openai"?(T(),M("option",wut,"text-embedding-davinci-001")):Y("",!0),s.configFile.rag_vectorizer==="tfidf"?(T(),M("option",Cut,"No models available for TFIDF")):Y("",!0)],40,rut),[[Qt,s.configFile.rag_vectorizer_model]])])]),c("tr",null,[e[565]||(e[565]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_vectorizer_openai_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key for open ai embedding method (if not provided I'll use OPENAI_API_KEY environment variable):")],-1)),c("td",null,[c("div",Aut,[F(c("input",{type:"text",id:"rag_vectorizer_openai_key",required:"","onUpdate:modelValue":e[116]||(e[116]=h=>s.configFile.rag_vectorizer_openai_key=h),onChange:e[117]||(e[117]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.rag_vectorizer_openai_key]])])])]),c("tr",null,[e[566]||(e[566]=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)),c("td",null,[F(c("input",{id:"rag_chunk_size","onUpdate:modelValue":e[118]||(e[118]=h=>s.configFile.rag_chunk_size=h),onChange:e[119]||(e[119]=h=>i.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),[[_e,s.configFile.rag_chunk_size]]),F(c("input",{"onUpdate:modelValue":e[120]||(e[120]=h=>s.configFile.rag_chunk_size=h),type:"number",onChange:e[121]||(e[121]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.rag_chunk_size]])])]),c("tr",null,[e[567]||(e[567]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),c("td",null,[F(c("input",{id:"rag_overlap","onUpdate:modelValue":e[122]||(e[122]=h=>s.configFile.rag_overlap=h),onChange:e[123]||(e[123]=h=>i.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),[[_e,s.configFile.rag_overlap]]),F(c("input",{"onUpdate:modelValue":e[124]||(e[124]=h=>s.configFile.rag_overlap=h),type:"number",onChange:e[125]||(e[125]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.rag_overlap]])])]),c("tr",null,[e[568]||(e[568]=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)),c("td",null,[F(c("input",{id:"rag_n_chunks","onUpdate:modelValue":e[126]||(e[126]=h=>s.configFile.rag_n_chunks=h),onChange:e[127]||(e[127]=h=>i.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),[[_e,s.configFile.rag_n_chunks]]),F(c("input",{"onUpdate:modelValue":e[128]||(e[128]=h=>s.configFile.rag_n_chunks=h),type:"number",onChange:e[129]||(e[129]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.rag_n_chunks]])])]),c("tr",null,[e[569]||(e[569]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),c("td",null,[F(c("input",{"onUpdate:modelValue":e[130]||(e[130]=h=>s.configFile.rag_clean_chunks=h),type:"checkbox",onChange:e[131]||(e[131]=h=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.rag_clean_chunks]])])]),c("tr",null,[e[570]||(e[570]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),c("td",null,[F(c("input",{"onUpdate:modelValue":e[132]||(e[132]=h=>s.configFile.rag_follow_subfolders=h),type:"checkbox",onChange:e[133]||(e[133]=h=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.rag_follow_subfolders]])])]),c("tr",null,[e[571]||(e[571]=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)),c("td",null,[F(c("input",{"onUpdate:modelValue":e[134]||(e[134]=h=>s.configFile.rag_check_new_files_at_startup=h),type:"checkbox",onChange:e[135]||(e[135]=h=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.rag_check_new_files_at_startup]])])]),c("tr",null,[e[572]||(e[572]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),c("td",null,[F(c("input",{"onUpdate:modelValue":e[136]||(e[136]=h=>s.configFile.rag_preprocess_chunks=h),type:"checkbox",onChange:e[137]||(e[137]=h=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.rag_preprocess_chunks]])])]),c("tr",null,[e[573]||(e[573]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_activate_multi_hops",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate multi hops RAG:")],-1)),c("td",null,[F(c("input",{"onUpdate:modelValue":e[138]||(e[138]=h=>s.configFile.rag_activate_multi_hops=h),type:"checkbox",onChange:e[139]||(e[139]=h=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.rag_activate_multi_hops]])])]),c("tr",null,[e[574]||(e[574]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"contextual_summary",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use contextual summary instead of rag (consumes alot of tokens and may be very slow but efficient, useful for summary and global questions that RAG can't do):")],-1)),c("td",null,[F(c("input",{"onUpdate:modelValue":e[140]||(e[140]=h=>s.configFile.contextual_summary=h),type:"checkbox",onChange:e[141]||(e[141]=h=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.contextual_summary]])])]),c("tr",null,[e[575]||(e[575]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_deactivate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Useful for very big contexts and global tasks that require the whole document"},"Use all the document content (No split):")],-1)),c("td",null,[F(c("input",{"onUpdate:modelValue":e[142]||(e[142]=h=>s.configFile.rag_deactivate=h),type:"checkbox",onChange:e[143]||(e[143]=h=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.rag_deactivate]])])])])]),_:1}),W(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Rut,[c("tr",null,[e[576]||(e[576]=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)),c("td",null,[c("div",Mut,[F(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[144]||(e[144]=h=>s.configFile.data_vectorization_save_db=h),onChange:e[145]||(e[145]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.data_vectorization_save_db]])])])]),c("tr",null,[e[577]||(e[577]=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)),c("td",null,[c("div",Nut,[F(c("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[146]||(e[146]=h=>s.configFile.data_vectorization_visualize_on_vectorization=h),onChange:e[147]||(e[147]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.data_vectorization_visualize_on_vectorization]])])])]),c("tr",null,[e[578]||(e[578]=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)),c("td",null,[c("div",kut,[F(c("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[148]||(e[148]=h=>s.configFile.data_vectorization_build_keys_words=h),onChange:e[149]||(e[149]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.data_vectorization_build_keys_words]])])])]),c("tr",null,[e[579]||(e[579]=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)),c("td",null,[c("div",Iut,[F(c("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[150]||(e[150]=h=>s.configFile.data_vectorization_force_first_chunk=h),onChange:e[151]||(e[151]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.data_vectorization_force_first_chunk]])])])]),c("tr",null,[e[580]||(e[580]=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)),c("td",null,[c("div",Out,[F(c("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[152]||(e[152]=h=>s.configFile.data_vectorization_put_chunk_informations_into_context=h),onChange:e[153]||(e[153]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),c("tr",null,[e[582]||(e[582]=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)),c("td",null,[F(c("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[154]||(e[154]=h=>s.configFile.data_vectorization_method=h),onChange:e[155]||(e[155]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[581]||(e[581]=[c("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1),c("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1),c("option",{value:"model_embedding"},"Model Embedding",-1),c("option",{value:"sentense_transformer"},"Sentense Transformer",-1)]),544),[[Qt,s.configFile.data_vectorization_method]])])]),c("tr",null,[e[583]||(e[583]=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)),c("td",Dut,[F(c("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[156]||(e[156]=h=>s.configFile.data_vectorization_sentense_transformer_model=h),onChange:e[157]||(e[157]=h=>i.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),[[_e,s.configFile.data_vectorization_sentense_transformer_model]])])]),c("tr",null,[e[585]||(e[585]=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)),c("td",null,[F(c("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[158]||(e[158]=h=>s.configFile.data_visualization_method=h),onChange:e[159]||(e[159]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[584]||(e[584]=[c("option",{value:"PCA"},"PCA",-1),c("option",{value:"TSNE"},"TSNE",-1)]),544),[[Qt,s.configFile.data_visualization_method]])])]),c("tr",null,[e[586]||(e[586]=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)),c("td",null,[c("div",Lut,[F(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[160]||(e[160]=h=>s.configFile.data_vectorization_save_db=h),onChange:e[161]||(e[161]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.data_vectorization_save_db]])])])]),c("tr",null,[e[587]||(e[587]=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)),c("td",null,[F(c("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[162]||(e[162]=h=>s.configFile.data_vectorization_chunk_size=h),onChange:e[163]||(e[163]=h=>i.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),[[_e,s.configFile.data_vectorization_chunk_size]]),F(c("input",{"onUpdate:modelValue":e[164]||(e[164]=h=>s.configFile.data_vectorization_chunk_size=h),type:"number",onChange:e[165]||(e[165]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.data_vectorization_chunk_size]])])]),c("tr",null,[e[588]||(e[588]=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)),c("td",null,[F(c("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[166]||(e[166]=h=>s.configFile.data_vectorization_overlap_size=h),onChange:e[167]||(e[167]=h=>i.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),[[_e,s.configFile.data_vectorization_overlap_size]]),F(c("input",{"onUpdate:modelValue":e[168]||(e[168]=h=>s.configFile.data_vectorization_overlap_size=h),type:"number",onChange:e[169]||(e[169]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.data_vectorization_overlap_size]])])]),c("tr",null,[e[589]||(e[589]=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)),c("td",null,[F(c("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[170]||(e[170]=h=>s.configFile.data_vectorization_nb_chunks=h),onChange:e[171]||(e[171]=h=>i.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),[[_e,s.configFile.data_vectorization_nb_chunks]]),F(c("input",{"onUpdate:modelValue":e[172]||(e[172]=h=>s.configFile.data_vectorization_nb_chunks=h),type:"number",onChange:e[173]||(e[173]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),c("div",Put,[c("div",Fut,[c("button",{onClick:e[174]||(e[174]=J(h=>i.internet_conf_collapsed=!i.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[F(c("div",null,e[590]||(e[590]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.internet_conf_collapsed]]),F(c("div",null,e[591]||(e[591]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.internet_conf_collapsed]]),e[592]||(e[592]=c("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1))])]),c("div",{class:qe([{hidden:i.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[W(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Uut,[c("tr",null,[e[593]||(e[593]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate automatic internet search (for every prompt):")],-1)),c("td",null,[c("div",But,[F(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[175]||(e[175]=h=>s.configFile.activate_internet_search=h),onChange:e[176]||(e[176]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_internet_search]])])])]),c("tr",null,[e[594]||(e[594]=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)),c("td",null,[c("div",Gut,[F(c("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[177]||(e[177]=h=>s.configFile.activate_internet_pages_judgement=h),onChange:e[178]||(e[178]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_internet_pages_judgement]])])])]),c("tr",null,[e[595]||(e[595]=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)),c("td",null,[c("div",zut,[F(c("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[179]||(e[179]=h=>s.configFile.internet_quick_search=h),onChange:e[180]||(e[180]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.internet_quick_search]])])])]),c("tr",null,[e[596]||(e[596]=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)),c("td",null,[c("div",Vut,[F(c("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[181]||(e[181]=h=>s.configFile.internet_activate_search_decision=h),onChange:e[182]||(e[182]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.internet_activate_search_decision]])])])]),c("tr",null,[e[597]||(e[597]=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)),c("td",null,[c("div",Hut,[F(c("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[183]||(e[183]=h=>s.configFile.internet_vectorization_chunk_size=h),onChange:e[184]||(e[184]=h=>i.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),[[_e,s.configFile.internet_vectorization_chunk_size]]),F(c("input",{"onUpdate:modelValue":e[185]||(e[185]=h=>s.configFile.internet_vectorization_chunk_size=h),type:"number",onChange:e[186]||(e[186]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.internet_vectorization_chunk_size]])])])]),c("tr",null,[e[598]||(e[598]=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)),c("td",null,[c("div",qut,[F(c("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[187]||(e[187]=h=>s.configFile.internet_vectorization_overlap_size=h),onChange:e[188]||(e[188]=h=>i.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),[[_e,s.configFile.internet_vectorization_overlap_size]]),F(c("input",{"onUpdate:modelValue":e[189]||(e[189]=h=>s.configFile.internet_vectorization_overlap_size=h),type:"number",onChange:e[190]||(e[190]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.internet_vectorization_overlap_size]])])])]),c("tr",null,[e[599]||(e[599]=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)),c("td",null,[c("div",Yut,[F(c("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[191]||(e[191]=h=>s.configFile.internet_vectorization_nb_chunks=h),onChange:e[192]||(e[192]=h=>i.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),[[_e,s.configFile.internet_vectorization_nb_chunks]]),F(c("input",{"onUpdate:modelValue":e[193]||(e[193]=h=>s.configFile.internet_vectorization_nb_chunks=h),type:"number",onChange:e[194]||(e[194]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.internet_vectorization_nb_chunks]])])])]),c("tr",null,[e[600]||(e[600]=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)),c("td",null,[c("div",$ut,[F(c("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[195]||(e[195]=h=>s.configFile.internet_nb_search_pages=h),onChange:e[196]||(e[196]=h=>i.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),[[_e,s.configFile.internet_nb_search_pages]]),F(c("input",{"onUpdate:modelValue":e[197]||(e[197]=h=>s.configFile.internet_nb_search_pages=h),type:"number",onChange:e[198]||(e[198]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),c("div",Wut,[c("div",Kut,[c("button",{onClick:e[199]||(e[199]=J(h=>i.servers_conf_collapsed=!i.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[F(c("div",null,e[601]||(e[601]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.servers_conf_collapsed]]),F(c("div",null,e[602]||(e[602]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.servers_conf_collapsed]]),e[603]||(e[603]=c("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1))])]),c("div",{class:qe([{hidden:i.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[W(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",jut,[c("tr",null,[e[605]||(e[605]=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)),c("td",Qut,[F(c("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[200]||(e[200]=h=>s.configFile.active_tts_service=h),onChange:e[201]||(e[201]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[604]||(e[604]=[c("option",{value:"None"},"None",-1),c("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1),c("option",{value:"xtts"},"XTTS",-1),c("option",{value:"parler-tts"},"Parler-TTS",-1),c("option",{value:"openai_tts"},"Open AI TTS",-1),c("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1),c("option",{value:"fish_tts"},"Fish TTS",-1)]),544),[[Qt,s.configFile.active_tts_service]])])]),c("tr",null,[e[607]||(e[607]=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)),c("td",Xut,[F(c("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[202]||(e[202]=h=>s.configFile.active_stt_service=h),onChange:e[203]||(e[203]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[606]||(e[606]=[c("option",{value:"None"},"None",-1),c("option",{value:"whisper"},"Whisper",-1),c("option",{value:"openai_whisper"},"Open AI Whisper",-1)]),544),[[Qt,s.configFile.active_stt_service]])])]),e[614]||(e[614]=c("tr",null,null,-1)),c("tr",null,[e[609]||(e[609]=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)),c("td",Zut,[F(c("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[204]||(e[204]=h=>s.configFile.active_tti_service=h),onChange:e[205]||(e[205]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[608]||(e[608]=[c("option",{value:"None"},"None",-1),c("option",{value:"diffusers"},"Diffusers",-1),c("option",{value:"diffusers_client"},"Diffusers Client",-1),c("option",{value:"autosd"},"AUTO1111's SD",-1),c("option",{value:"dall-e"},"Open AI DALL-E",-1),c("option",{value:"midjourney"},"Midjourney",-1),c("option",{value:"comfyui"},"Comfyui",-1),c("option",{value:"fooocus"},"Fooocus",-1)]),544),[[Qt,s.configFile.active_tti_service]])])]),c("tr",null,[e[611]||(e[611]=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)),c("td",Jut,[F(c("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[206]||(e[206]=h=>s.configFile.active_ttm_service=h),onChange:e[207]||(e[207]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[610]||(e[610]=[c("option",{value:"None"},"None",-1),c("option",{value:"musicgen"},"Music Gen",-1)]),544),[[Qt,s.configFile.active_ttm_service]])])]),c("tr",null,[e[613]||(e[613]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_ttv_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTV Service:")],-1)),c("td",ept,[F(c("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[208]||(e[208]=h=>s.configFile.active_ttv_service=h),onChange:e[209]||(e[209]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[612]||(e[612]=[c("option",{value:"None"},"None",-1),c("option",{value:"cog_video_x"},"Cog Video X",-1),c("option",{value:"diffusers"},"Diffusers",-1),c("option",{value:"lumalab"},"Lumalab",-1)]),544),[[Qt,s.configFile.active_ttv_service]])])])])]),_:1}),W(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",tpt,[c("tr",null,[e[615]||(e[615]=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)),c("td",null,[c("div",npt,[F(c("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[210]||(e[210]=h=>s.configFile.use_negative_prompt=h),onChange:e[211]||(e[211]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.use_negative_prompt]])])])]),c("tr",null,[e[616]||(e[616]=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)),c("td",null,[c("div",rpt,[F(c("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[212]||(e[212]=h=>s.configFile.use_ai_generated_negative_prompt=h),onChange:e[213]||(e[213]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.use_ai_generated_negative_prompt]])])])]),c("tr",null,[e[617]||(e[617]=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)),c("td",null,[c("div",ipt,[F(c("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[214]||(e[214]=h=>s.configFile.negative_prompt_generation_prompt=h),onChange:e[215]||(e[215]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.negative_prompt_generation_prompt]])])])]),c("tr",null,[e[618]||(e[618]=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)),c("td",null,[c("div",spt,[F(c("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[216]||(e[216]=h=>s.configFile.default_negative_prompt=h),onChange:e[217]||(e[217]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.default_negative_prompt]])])])])])]),_:1}),W(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",opt,[c("tr",null,[e[619]||(e[619]=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)),c("td",apt,[F(c("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[218]||(e[218]=h=>s.configFile.stt_listening_threshold=h),onChange:e[219]||(e[219]=h=>i.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),[[_e,s.configFile.stt_listening_threshold]])])]),c("tr",null,[e[620]||(e[620]=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)),c("td",lpt,[F(c("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[220]||(e[220]=h=>s.configFile.stt_silence_duration=h),onChange:e[221]||(e[221]=h=>i.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),[[_e,s.configFile.stt_silence_duration]])])]),c("tr",null,[e[621]||(e[621]=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)),c("td",cpt,[F(c("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[222]||(e[222]=h=>s.configFile.stt_sound_threshold_percentage=h),onChange:e[223]||(e[223]=h=>i.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),[[_e,s.configFile.stt_sound_threshold_percentage]])])]),c("tr",null,[e[622]||(e[622]=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)),c("td",dpt,[F(c("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[224]||(e[224]=h=>s.configFile.stt_gain=h),onChange:e[225]||(e[225]=h=>i.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),[[_e,s.configFile.stt_gain]])])]),c("tr",null,[e[623]||(e[623]=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)),c("td",upt,[F(c("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[226]||(e[226]=h=>s.configFile.stt_rate=h),onChange:e[227]||(e[227]=h=>i.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),[[_e,s.configFile.stt_rate]])])]),c("tr",null,[e[624]||(e[624]=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)),c("td",ppt,[F(c("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[228]||(e[228]=h=>s.configFile.stt_channels=h),onChange:e[229]||(e[229]=h=>i.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),[[_e,s.configFile.stt_channels]])])]),c("tr",null,[e[625]||(e[625]=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)),c("td",hpt,[F(c("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[230]||(e[230]=h=>s.configFile.stt_buffer_size=h),onChange:e[231]||(e[231]=h=>i.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),[[_e,s.configFile.stt_buffer_size]])])]),c("tr",null,[e[626]||(e[626]=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)),c("td",null,[c("div",mpt,[F(c("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[232]||(e[232]=h=>s.configFile.stt_activate_word_detection=h),onChange:e[233]||(e[233]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.stt_activate_word_detection]])])])]),c("tr",null,[e[627]||(e[627]=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)),c("td",null,[c("div",fpt,[F(c("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[234]||(e[234]=h=>s.configFile.stt_word_detection_file=h),onChange:e[235]||(e[235]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.stt_word_detection_file]])])])])])]),_:1}),W(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",gpt,[c("tr",null,[e[628]||(e[628]=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)),c("td",_pt,[F(c("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[236]||(e[236]=h=>s.configFile.stt_input_device=h),onChange:e[237]||(e[237]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),M(je,null,at(i.snd_input_devices,(h,v)=>(T(),M("option",{key:h,value:i.snd_input_devices_indexes[v]},X(h),9,bpt))),128))],544),[[Qt,s.configFile.stt_input_device]])])]),c("tr",null,[e[629]||(e[629]=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)),c("td",vpt,[F(c("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[238]||(e[238]=h=>s.configFile.tts_output_device=h),onChange:e[239]||(e[239]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),M(je,null,at(i.snd_output_devices,(h,v)=>(T(),M("option",{key:h,value:i.snd_output_devices_indexes[v]},X(h),9,ypt))),128))],544),[[Qt,s.configFile.tts_output_device]])])])])]),_:1}),W(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Ept,[c("tr",null,[e[630]||(e[630]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),c("td",Spt,[F(c("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[240]||(e[240]=h=>s.configFile.host=h),onChange:e[241]||(e[241]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.host]])])]),c("tr",null,[e[631]||(e[631]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys:")],-1)),c("td",xpt,[W(o,{modelValue:s.configFile.lollms_access_keys,"onUpdate:modelValue":e[242]||(e[242]=h=>s.configFile.lollms_access_keys=h),onChange:e[243]||(e[243]=h=>i.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])])]),c("tr",null,[e[632]||(e[632]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"port",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),c("td",Tpt,[F(c("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[244]||(e[244]=h=>s.configFile.port=h),onChange:e[245]||(e[245]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.port]])])]),c("tr",null,[e[633]||(e[633]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"headless_server_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode:")],-1)),c("td",wpt,[F(c("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[246]||(e[246]=h=>s.configFile.headless_server_mode=h),onChange:e[247]||(e[247]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.headless_server_mode]])])]),c("tr",null,[e[634]||(e[634]=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)),c("td",Cpt,[F(c("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[248]||(e[248]=h=>s.configFile.activate_lollms_server=h),onChange:e[249]||(e[249]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_lollms_server]])])]),c("tr",null,[e[635]||(e[635]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_rag_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms RAG server:")],-1)),c("td",Apt,[F(c("input",{type:"checkbox",id:"activate_lollms_rag_server",required:"","onUpdate:modelValue":e[250]||(e[250]=h=>s.configFile.activate_lollms_rag_server=h),onChange:e[251]||(e[251]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_lollms_rag_server]])])]),c("tr",null,[e[636]||(e[636]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_tts_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTS server:")],-1)),c("td",Rpt,[F(c("input",{type:"checkbox",id:"activate_lollms_tts_server",required:"","onUpdate:modelValue":e[252]||(e[252]=h=>s.configFile.activate_lollms_tts_server=h),onChange:e[253]||(e[253]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_lollms_tts_server]])])]),c("tr",null,[e[637]||(e[637]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_stt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms STT server:")],-1)),c("td",Mpt,[F(c("input",{type:"checkbox",id:"activate_lollms_stt_server",required:"","onUpdate:modelValue":e[254]||(e[254]=h=>s.configFile.activate_lollms_stt_server=h),onChange:e[255]||(e[255]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_lollms_stt_server]])])]),c("tr",null,[e[638]||(e[638]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_tti_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTI server:")],-1)),c("td",Npt,[F(c("input",{type:"checkbox",id:"activate_lollms_tti_server",required:"","onUpdate:modelValue":e[256]||(e[256]=h=>s.configFile.activate_lollms_tti_server=h),onChange:e[257]||(e[257]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_lollms_tti_server]])])]),c("tr",null,[e[639]||(e[639]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_itt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms ITT server:")],-1)),c("td",kpt,[F(c("input",{type:"checkbox",id:"activate_lollms_itt_server",required:"","onUpdate:modelValue":e[258]||(e[258]=h=>s.configFile.activate_lollms_itt_server=h),onChange:e[259]||(e[259]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_lollms_itt_server]])])]),c("tr",null,[e[640]||(e[640]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_ttm_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTM server:")],-1)),c("td",Ipt,[F(c("input",{type:"checkbox",id:"activate_lollms_ttm_server",required:"","onUpdate:modelValue":e[260]||(e[260]=h=>s.configFile.activate_lollms_ttm_server=h),onChange:e[261]||(e[261]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_lollms_ttm_server]])])]),c("tr",null,[e[641]||(e[641]=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)),c("td",Opt,[F(c("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[262]||(e[262]=h=>s.configFile.activate_ollama_emulator=h),onChange:e[263]||(e[263]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_ollama_emulator]])])]),c("tr",null,[e[642]||(e[642]=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)),c("td",Dpt,[F(c("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[264]||(e[264]=h=>s.configFile.activate_openai_emulator=h),onChange:e[265]||(e[265]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_openai_emulator]])])]),c("tr",null,[e[643]||(e[643]=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)),c("td",Lpt,[F(c("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[266]||(e[266]=h=>s.configFile.activate_mistralai_emulator=h),onChange:e[267]||(e[267]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_mistralai_emulator]])])])])]),_:1}),W(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[W(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Ppt,[c("tr",null,[e[644]||(e[644]=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)),c("td",null,[c("div",Fpt,[F(c("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[268]||(e[268]=h=>s.configFile.activate_audio_infos=h),onChange:e[269]||(e[269]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.activate_audio_infos]])])])]),c("tr",null,[e[645]||(e[645]=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)),c("td",null,[c("div",Upt,[F(c("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[270]||(e[270]=h=>s.configFile.audio_auto_send_input=h),onChange:e[271]||(e[271]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.audio_auto_send_input]])])])]),c("tr",null,[e[646]||(e[646]=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)),c("td",null,[F(c("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[272]||(e[272]=h=>s.configFile.audio_silenceTimer=h),onChange:e[273]||(e[273]=h=>i.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),[[_e,s.configFile.audio_silenceTimer]]),F(c("input",{"onUpdate:modelValue":e[274]||(e[274]=h=>s.configFile.audio_silenceTimer=h),onChange:e[275]||(e[275]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.audio_silenceTimer]])])]),c("tr",null,[e[647]||(e[647]=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)),c("td",null,[F(c("select",{id:"audio_in_language","onUpdate:modelValue":e[276]||(e[276]=h=>s.configFile.audio_in_language=h),onChange:e[277]||(e[277]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),M(je,null,at(s.audioLanguages,h=>(T(),M("option",{key:h.code,value:h.code},X(h.name),9,Bpt))),128))],544),[[Qt,s.configFile.audio_in_language]])])])])]),_:1}),W(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Gpt,[c("tr",null,[e[648]||(e[648]=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)),c("td",null,[c("div",zpt,[F(c("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[278]||(e[278]=h=>s.configFile.whisper_activate=h),onChange:e[279]||(e[279]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.whisper_activate]])])])]),c("tr",null,[e[649]||(e[649]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}})],-1)),c("td",null,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[280]||(e[280]=(...h)=>s.reinstallWhisperService&&s.reinstallWhisperService(...h))},"install whisper")])]),c("tr",null,[e[650]||(e[650]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),c("td",null,[c("div",Vpt,[F(c("select",{id:"whisper_model","onUpdate:modelValue":e[281]||(e[281]=h=>s.configFile.whisper_model=h),onChange:e[282]||(e[282]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),M(je,null,at(s.whisperModels,h=>(T(),M("option",{key:h,value:h},X(h),9,Hpt))),128))],544),[[Qt,s.configFile.whisper_model]])])])])])]),_:1}),W(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",qpt,[c("tr",null,[e[651]||(e[651]=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)),c("td",null,[c("div",Ypt,[F(c("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[283]||(e[283]=h=>s.configFile.openai_whisper_key=h),onChange:e[284]||(e[284]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.openai_whisper_key]])])])]),c("tr",null,[e[652]||(e[652]=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)),c("td",null,[c("div",$pt,[F(c("select",{id:"openai_whisper_model","onUpdate:modelValue":e[285]||(e[285]=h=>s.configFile.openai_whisper_model=h),onChange:e[286]||(e[286]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),M(je,null,at(s.openaiWhisperModels,h=>(T(),M("option",{key:h,value:h},X(h),9,Wpt))),128))],544),[[Qt,s.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),W(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[W(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Kpt,[c("tr",null,[e[653]||(e[653]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),c("td",null,[c("div",jpt,[F(c("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[287]||(e[287]=h=>s.configFile.auto_speak=h),onChange:e[288]||(e[288]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.auto_speak]])])])]),c("tr",null,[e[654]||(e[654]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),c("td",null,[F(c("input",{id:"audio_pitch","onUpdate:modelValue":e[289]||(e[289]=h=>s.configFile.audio_pitch=h),onChange:e[290]||(e[290]=h=>i.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.audio_pitch]]),F(c("input",{"onUpdate:modelValue":e[291]||(e[291]=h=>s.configFile.audio_pitch=h),onChange:e[292]||(e[292]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.audio_pitch]])])]),c("tr",null,[e[655]||(e[655]=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)),c("td",null,[F(c("select",{id:"audio_out_voice","onUpdate:modelValue":e[293]||(e[293]=h=>s.configFile.audio_out_voice=h),onChange:e[294]||(e[294]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),M(je,null,at(i.audioVoices,h=>(T(),M("option",{key:h.name,value:h.name},X(h.name),9,Qpt))),128))],544),[[Qt,s.configFile.audio_out_voice]])])])])]),_:1}),W(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Xpt,[c("tr",null,[e[656]||(e[656]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),c("td",null,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[295]||(e[295]=(...h)=>s.reinstallXTTSService&&s.reinstallXTTSService(...h))},"install xtts service")])]),c("tr",null,[e[657]||(e[657]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),c("td",null,[c("div",Zpt,[F(c("select",{"onUpdate:modelValue":e[296]||(e[296]=h=>s.xtts_current_language=h),onChange:e[297]||(e[297]=h=>i.settingsChanged=!0)},[(T(!0),M(je,null,at(i.voice_languages,(h,v)=>(T(),M("option",{key:v,value:h},X(v),9,Jpt))),128))],544),[[Qt,s.xtts_current_language]])])])]),c("tr",null,[e[658]||(e[658]=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("td",null,[c("div",eht,[F(c("select",{"onUpdate:modelValue":e[298]||(e[298]=h=>s.xtts_current_voice=h),onChange:e[299]||(e[299]=h=>i.settingsChanged=!0)},[(T(!0),M(je,null,at(i.voices,h=>(T(),M("option",{key:h,value:h},X(h),9,tht))),128))],544),[[Qt,s.xtts_current_voice]])])])]),c("tr",null,[e[659]||(e[659]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_freq",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Frequency (controls the tone):")],-1)),c("td",null,[c("div",nht,[F(c("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[300]||(e[300]=h=>s.configFile.xtts_freq=h),onChange:e[301]||(e[301]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[_e,s.configFile.xtts_freq,void 0,{number:!0}]])])])]),c("tr",null,[e[660]||(e[660]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),c("td",null,[c("div",rht,[F(c("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[302]||(e[302]=h=>s.configFile.auto_read=h),onChange:e[303]||(e[303]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.auto_read]])])])]),c("tr",null,[e[661]||(e[661]=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)),c("td",null,[c("div",iht,[F(c("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[304]||(e[304]=h=>s.configFile.xtts_stream_chunk_size=h),onChange:e[305]||(e[305]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.xtts_stream_chunk_size]])])])]),c("tr",null,[e[662]||(e[662]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),c("td",null,[c("div",sht,[F(c("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[306]||(e[306]=h=>s.configFile.xtts_temperature=h),onChange:e[307]||(e[307]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[_e,s.configFile.xtts_temperature,void 0,{number:!0}]])])])]),c("tr",null,[e[663]||(e[663]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),c("td",null,[c("div",oht,[F(c("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[308]||(e[308]=h=>s.configFile.xtts_length_penalty=h),onChange:e[309]||(e[309]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[_e,s.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),c("tr",null,[e[664]||(e[664]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),c("td",null,[c("div",aht,[F(c("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[310]||(e[310]=h=>s.configFile.xtts_repetition_penalty=h),onChange:e[311]||(e[311]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[_e,s.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),c("tr",null,[e[665]||(e[665]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),c("td",null,[c("div",lht,[F(c("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[312]||(e[312]=h=>s.configFile.xtts_top_k=h),onChange:e[313]||(e[313]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.xtts_top_k,void 0,{number:!0}]])])])]),c("tr",null,[e[666]||(e[666]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),c("td",null,[c("div",cht,[F(c("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[314]||(e[314]=h=>s.configFile.xtts_top_p=h),onChange:e[315]||(e[315]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.xtts_top_p,void 0,{number:!0}]])])])]),c("tr",null,[e[667]||(e[667]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),c("td",null,[c("div",dht,[F(c("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[316]||(e[316]=h=>s.configFile.xtts_speed=h),onChange:e[317]||(e[317]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[_e,s.configFile.xtts_speed,void 0,{number:!0}]])])])]),c("tr",null,[e[668]||(e[668]=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)),c("td",null,[c("div",uht,[F(c("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[318]||(e[318]=h=>s.configFile.enable_text_splitting=h),onChange:e[319]||(e[319]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.enable_text_splitting]])])])])])]),_:1}),W(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",pht,[c("tr",null,[e[669]||(e[669]=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)),c("td",null,[c("div",hht,[F(c("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[320]||(e[320]=h=>s.configFile.openai_tts_key=h),onChange:e[321]||(e[321]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.openai_tts_key]])])])]),c("tr",null,[e[671]||(e[671]=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)),c("td",null,[c("div",mht,[F(c("select",{"onUpdate:modelValue":e[322]||(e[322]=h=>s.configFile.openai_tts_model=h),onChange:e[323]||(e[323]=h=>i.settingsChanged=!0)},e[670]||(e[670]=[c("option",null," tts-1 ",-1),c("option",null," tts-2 ",-1)]),544),[[Qt,s.configFile.openai_tts_model]])])])]),c("tr",null,[e[673]||(e[673]=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)),c("td",null,[c("div",fht,[F(c("select",{"onUpdate:modelValue":e[324]||(e[324]=h=>s.configFile.openai_tts_voice=h),onChange:e[325]||(e[325]=h=>i.settingsChanged=!0)},e[672]||(e[672]=[c("option",null," alloy ",-1),c("option",null," echo ",-1),c("option",null," fable ",-1),c("option",null," nova ",-1),c("option",null," shimmer ",-1)]),544),[[Qt,s.configFile.openai_tts_voice]])])])])])]),_:1}),W(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",ght,[c("tr",null,[e[674]||(e[674]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"elevenlabs_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs key:")],-1)),c("td",null,[c("div",_ht,[F(c("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[326]||(e[326]=h=>s.configFile.elevenlabs_tts_key=h),onChange:e[327]||(e[327]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.elevenlabs_tts_key]])])])]),c("tr",null,[e[675]||(e[675]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"elevenlabs_tts_model_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs TTS model ID:")],-1)),c("td",null,[c("div",bht,[F(c("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[328]||(e[328]=h=>s.configFile.elevenlabs_tts_model_id=h),onChange:e[329]||(e[329]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.elevenlabs_tts_model_id]])])])]),c("tr",null,[e[676]||(e[676]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"elevenlabs_tts_voice_stability",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Stability:")],-1)),c("td",null,[c("div",vht,[F(c("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[330]||(e[330]=h=>s.configFile.elevenlabs_tts_voice_stability=h),onChange:e[331]||(e[331]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[_e,s.configFile.elevenlabs_tts_voice_stability]])])])]),c("tr",null,[e[677]||(e[677]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"elevenlabs_tts_voice_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Boost:")],-1)),c("td",null,[c("div",yht,[F(c("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[332]||(e[332]=h=>s.configFile.elevenlabs_tts_voice_boost=h),onChange:e[333]||(e[333]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[_e,s.configFile.elevenlabs_tts_voice_boost]])])])]),c("tr",null,[e[678]||(e[678]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"elevenlabs_tts_voice_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice ID:")],-1)),c("td",null,[c("div",Eht,[F(c("select",{"onUpdate:modelValue":e[334]||(e[334]=h=>s.configFile.elevenlabs_tts_voice_id=h),onChange:e[335]||(e[335]=h=>i.settingsChanged=!0)},[(T(!0),M(je,null,at(i.voices,h=>(T(),M("option",{key:h.voice_id,value:h.voice_id},X(h.name),9,Sht))),128))],544),[[Qt,s.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1}),W(a,{title:"Fish TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",xht,[c("tr",null,[e[679]||(e[679]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"fish_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS key:")],-1)),c("td",null,[c("div",Tht,[F(c("input",{type:"text",id:"fish_tts_key",required:"","onUpdate:modelValue":e[336]||(e[336]=h=>s.configFile.fish_tts_key=h),onChange:e[337]||(e[337]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.fish_tts_key]])])])]),c("tr",null,[e[680]||(e[680]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"fish_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS voice:")],-1)),c("td",null,[c("div",wht,[F(c("input",{type:"text",id:"fish_tts_voice",required:"","onUpdate:modelValue":e[338]||(e[338]=h=>s.configFile.fish_tts_voice=h),onChange:e[339]||(e[339]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.fish_tts_voice]])])])])])]),_:1})]),_:1}),W(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[W(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Cht,[c("tr",null,[e[682]||(e[682]=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)),c("td",null,[c("div",Aht,[F(c("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[340]||(e[340]=h=>s.configFile.enable_sd_service=h),onChange:e[341]||(e[341]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.enable_sd_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[342]||(e[342]=h=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[681]||(e[681]=[c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),c("tr",null,[e[684]||(e[684]=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)),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[343]||(e[343]=(...h)=>s.reinstallSDService&&s.reinstallSDService(...h))},"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[344]||(e[344]=(...h)=>s.upgradeSDService&&s.upgradeSDService(...h))},"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[345]||(e[345]=(...h)=>s.startSDService&&s.startSDService(...h))},"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[346]||(e[346]=(...h)=>s.showSD&&s.showSD(...h))},"show sd ui"),e[683]||(e[683]=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))])]),c("td",null,[c("div",Mht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[347]||(e[347]=(...h)=>s.reinstallSDService&&s.reinstallSDService(...h))},"install sd service")])])]),c("tr",null,[e[685]||(e[685]=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)),c("td",null,[c("div",Nht,[F(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[348]||(e[348]=h=>s.configFile.sd_base_url=h),onChange:e[349]||(e[349]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.sd_base_url]])])])])])]),_:1}),W(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",kht,[c("tr",null,[e[687]||(e[687]=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)),c("td",null,[c("div",Iht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[350]||(e[350]=(...h)=>s.reinstallDiffusersService&&s.reinstallDiffusersService(...h))},"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[351]||(e[351]=(...h)=>s.upgradeDiffusersService&&s.upgradeDiffusersService(...h))},"upgrade diffusers service"),e[686]||(e[686]=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))])])]),c("tr",null,[e[688]||(e[688]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),c("td",null,[c("div",Oht,[F(c("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[352]||(e[352]=h=>s.configFile.diffusers_model=h),onChange:e[353]||(e[353]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.diffusers_model]])])]),e[689]||(e[689]=c("td",null,null,-1))])])]),_:1}),W(a,{title:"Diffusers client service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Dht,[c("tr",null,[e[690]||(e[690]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"diffusers_client_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers client base url:")],-1)),c("td",null,[c("div",Lht,[F(c("input",{type:"text",id:"diffusers_client_base_url",required:"","onUpdate:modelValue":e[354]||(e[354]=h=>s.configFile.diffusers_client_base_url=h),onChange:e[355]||(e[355]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.diffusers_client_base_url]])])]),e[691]||(e[691]=c("td",null,null,-1))])])]),_:1}),W(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Pht,[c("tr",null,[e[692]||(e[692]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),c("td",null,[c("div",Fht,[F(c("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[356]||(e[356]=h=>s.configFile.midjourney_key=h),onChange:e[357]||(e[357]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.midjourney_key]])])])]),c("tr",null,[e[693]||(e[693]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),c("td",null,[c("div",Uht,[F(c("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[358]||(e[358]=h=>s.configFile.midjourney_timeout=h),onChange:e[359]||(e[359]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.midjourney_timeout]])])])]),c("tr",null,[e[694]||(e[694]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),c("td",null,[c("div",Bht,[F(c("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[360]||(e[360]=h=>s.configFile.midjourney_retries=h),onChange:e[361]||(e[361]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.midjourney_retries]])])])])])]),_:1}),W(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Ght,[c("tr",null,[e[695]||(e[695]=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)),c("td",null,[c("div",zht,[F(c("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[362]||(e[362]=h=>s.configFile.dall_e_key=h),onChange:e[363]||(e[363]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.dall_e_key]])])])]),c("tr",null,[e[697]||(e[697]=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)),c("td",null,[c("div",Vht,[F(c("select",{"onUpdate:modelValue":e[364]||(e[364]=h=>s.configFile.dall_e_generation_engine=h),onChange:e[365]||(e[365]=h=>i.settingsChanged=!0)},e[696]||(e[696]=[c("option",null," dall-e-2 ",-1),c("option",null," dall-e-3 ",-1)]),544),[[Qt,s.configFile.dall_e_generation_engine]])])])])])]),_:1}),W(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Hht,[c("tr",null,[e[699]||(e[699]=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)),c("td",null,[c("div",qht,[F(c("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[366]||(e[366]=h=>s.configFile.enable_comfyui_service=h),onChange:e[367]||(e[367]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.enable_comfyui_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[368]||(e[368]=h=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[698]||(e[698]=[c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),c("tr",null,[e[700]||(e[700]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Available models (only if local):")],-1)),c("td",null,[c("div",Yht,[F(c("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[369]||(e[369]=h=>s.configFile.comfyui_model=h),onChange:e[370]||(e[370]=h=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),M(je,null,at(i.comfyui_models,(h,v)=>(T(),M("option",{key:h,value:h},X(h),9,$ht))),128))],544),[[Qt,s.configFile.comfyui_model]])])])]),c("tr",null,[e[702]||(e[702]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),c("td",null,[c("div",Wht,[F(c("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[371]||(e[371]=h=>s.configFile.comfyui_model=h),onChange:e[372]||(e[372]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.comfyui_model]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[373]||(e[373]=h=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[701]||(e[701]=[c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),c("tr",null,[e[704]||(e[704]=c("td",{style:{"min-width":"200px"}},null,-1)),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[374]||(e[374]=(...h)=>s.reinstallComfyUIService&&s.reinstallComfyUIService(...h))},"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[375]||(e[375]=(...h)=>s.upgradeComfyUIService&&s.upgradeComfyUIService(...h))},"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[376]||(e[376]=(...h)=>s.startComfyUIService&&s.startComfyUIService(...h))},"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[377]||(e[377]=(...h)=>s.showComfyui&&s.showComfyui(...h))},"show comfyui"),e[703]||(e[703]=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))])])]),c("tr",null,[e[705]||(e[705]=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)),c("td",null,[c("div",jht,[F(c("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[378]||(e[378]=h=>s.configFile.comfyui_base_url=h),onChange:e[379]||(e[379]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),W(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[W(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",Qht,[c("tr",null,[e[707]||(e[707]=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)),c("td",null,[c("div",Xht,[F(c("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[380]||(e[380]=h=>s.configFile.enable_ollama_service=h),onChange:e[381]||(e[381]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.enable_ollama_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[382]||(e[382]=h=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. +If you are using windows, this uses wsl which requires you to have it installed or at least activated. +If You are using windows, this will install wsl so you need to activate it. +
    Here is how you can do that`))},e[706]||(e[706]=[c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),c("tr",null,[e[708]||(e[708]=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)),c("td",null,[c("div",Zht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[383]||(e[383]=(...h)=>s.reinstallOLLAMAService&&s.reinstallOLLAMAService(...h))},"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[384]||(e[384]=(...h)=>s.startollamaService&&s.startollamaService(...h))},"start ollama service")])])]),c("tr",null,[e[709]||(e[709]=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)),c("td",null,[c("div",Jht,[F(c("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[385]||(e[385]=h=>s.configFile.ollama_base_url=h),onChange:e[386]||(e[386]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.ollama_base_url]])])])])])]),_:1}),W(a,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",emt,[c("tr",null,[e[711]||(e[711]=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)),c("td",null,[c("div",tmt,[F(c("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[387]||(e[387]=h=>s.configFile.enable_vllm_service=h),onChange:e[388]||(e[388]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.enable_vllm_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[389]||(e[389]=h=>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`))},e[710]||(e[710]=[c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),c("tr",null,[e[712]||(e[712]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),c("td",null,[c("div",nmt,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[390]||(e[390]=(...h)=>s.reinstallvLLMService&&s.reinstallvLLMService(...h))},"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[391]||(e[391]=(...h)=>s.startvLLMService&&s.startvLLMService(...h))},"start vllm service")])])]),c("tr",null,[e[713]||(e[713]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),c("td",null,[c("div",rmt,[F(c("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[392]||(e[392]=h=>s.configFile.vllm_url=h),onChange:e[393]||(e[393]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.vllm_url]])])])]),c("tr",null,[e[715]||(e[715]=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)),c("td",null,[c("div",imt,[c("div",smt,[e[714]||(e[714]=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)),c("p",omt,[F(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[394]||(e[394]=h=>s.configFile.vllm_gpu_memory_utilization=h),onChange:e[395]||(e[395]=h=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.vllm_gpu_memory_utilization]])])]),F(c("input",{id:"vllm_gpu_memory_utilization",onChange:e[396]||(e[396]=h=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[397]||(e[397]=h=>s.configFile.vllm_gpu_memory_utilization=h),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),[[_e,s.configFile.vllm_gpu_memory_utilization]])])])]),c("tr",null,[e[716]||(e[716]=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)),c("td",null,[c("div",amt,[F(c("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[398]||(e[398]=h=>s.configFile.vllm_max_num_seqs=h),onChange:e[399]||(e[399]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.vllm_max_num_seqs]])])])]),c("tr",null,[e[717]||(e[717]=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)),c("td",null,[c("div",lmt,[F(c("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[400]||(e[400]=h=>s.configFile.vllm_max_model_len=h),onChange:e[401]||(e[401]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.vllm_max_model_len]])])])]),c("tr",null,[e[718]||(e[718]=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)),c("td",null,[c("div",cmt,[F(c("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[402]||(e[402]=h=>s.configFile.vllm_model_path=h),onChange:e[403]||(e[403]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.vllm_model_path]])])])])])]),_:1}),W(a,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",dmt,[c("tr",null,[e[720]||(e[720]=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)),c("td",null,[c("div",umt,[F(c("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[404]||(e[404]=h=>s.configFile.enable_petals_service=h),onChange:e[405]||(e[405]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.enable_petals_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[406]||(e[406]=h=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network. +If You are using windows, this will install wsl so you need to activate it. +Here is how you can do that`))},e[719]||(e[719]=[c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),c("tr",null,[e[721]||(e[721]=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)),c("td",null,[c("div",pmt,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[407]||(e[407]=(...h)=>s.reinstallPetalsService&&s.reinstallPetalsService(...h))},"install petals service")])])]),c("tr",null,[e[722]||(e[722]=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)),c("td",null,[c("div",hmt,[F(c("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[408]||(e[408]=h=>s.configFile.petals_base_url=h),onChange:e[409]||(e[409]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),W(a,{title:"TTV settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",mmt,[c("tr",null,[e[723]||(e[723]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"lumalabs_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Lumalabs key:")],-1)),c("td",null,[c("div",fmt,[F(c("input",{type:"text",id:"lumalabs_key",required:"","onUpdate:modelValue":e[410]||(e[410]=h=>s.configFile.lumalabs_key=h),onChange:e[411]||(e[411]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.lumalabs_key]])])])])])]),_:1}),W(a,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[W(a,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:Ge(()=>[c("table",gmt,[c("tr",null,[e[724]||(e[724]=c("td",{style:{"min-width":"200px"}},[c("label",{for:"elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),c("td",null,[c("div",_mt,[F(c("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[412]||(e[412]=h=>s.configFile.elastic_search_service=h),onChange:e[413]||(e[413]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,s.configFile.elastic_search_service]])])])]),c("tr",null,[e[725]||(e[725]=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)),c("td",null,[c("div",bmt,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[414]||(e[414]=(...h)=>s.reinstallElasticSearchService&&s.reinstallElasticSearchService(...h))},"install ElasticSearch service")])])]),c("tr",null,[e[726]||(e[726]=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)),c("td",null,[c("div",vmt,[F(c("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[415]||(e[415]=h=>s.configFile.elastic_search_url=h),onChange:e[416]||(e[416]=h=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[_e,s.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),c("div",ymt,[c("div",Emt,[c("button",{onClick:e[417]||(e[417]=J(h=>i.bzc_collapsed=!i.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[F(c("div",null,e[727]||(e[727]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.bzc_collapsed]]),F(c("div",null,e[728]||(e[728]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.bzc_collapsed]]),e[730]||(e[730]=c("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),s.configFile.binding_name?Y("",!0):(T(),M("div",Smt,e[729]||(e[729]=[c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),pt(" No binding selected! ")]))),s.configFile.binding_name?(T(),M("div",xmt,"|")):Y("",!0),s.configFile.binding_name?(T(),M("div",Tmt,[c("div",wmt,[c("img",{src:s.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Cmt),c("p",Amt,X(s.binding_name),1)])])):Y("",!0)])]),c("div",{class:qe([{hidden:i.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[s.bindingsZoo&&s.bindingsZoo.length>0?(T(),M("div",Rmt,[c("label",Mmt," Bindings: ("+X(s.bindingsZoo.length)+") ",1),c("div",{class:qe(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.bzl_collapsed?"":"max-h-96"])},[W(As,{name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(s.bindingsZoo,(h,v)=>(T(),Tt(l,{ref_for:!0,ref:"bindingZoo",key:"index-"+v+"-"+h.folder,binding:h,"on-selected":s.onBindingSelected,"on-reinstall":s.onReinstallBinding,"on-unInstall":s.onUnInstallBinding,"on-install":s.onInstallBinding,"on-settings":s.onSettingsBinding,"on-reload-binding":s.onReloadBinding,selected:h.folder===s.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):Y("",!0),i.bzl_collapsed?(T(),M("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[418]||(e[418]=h=>i.bzl_collapsed=!i.bzl_collapsed)},e[731]||(e[731]=[c("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),M("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[419]||(e[419]=h=>i.bzl_collapsed=!i.bzl_collapsed)},e[732]||(e[732]=[c("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),c("div",Nmt,[c("div",kmt,[c("button",{onClick:e[420]||(e[420]=J(h=>s.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[F(c("div",null,e[733]||(e[733]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.mzc_collapsed]]),F(c("div",null,e[734]||(e[734]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.mzc_collapsed]]),e[737]||(e[737]=c("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),c("div",Imt,[s.configFile.binding_name?Y("",!0):(T(),M("div",Omt,e[735]||(e[735]=[c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),pt(" Select binding first! ")]))),!s.configFile.model_name&&s.configFile.binding_name?(T(),M("div",Dmt,e[736]||(e[736]=[c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),pt(" No model selected! ")]))):Y("",!0),s.configFile.model_name?(T(),M("div",Lmt,"|")):Y("",!0),s.configFile.model_name?(T(),M("div",Pmt,[c("div",Fmt,[c("img",{src:s.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Umt),c("p",Bmt,X(s.configFile.model_name),1)])])):Y("",!0)])])]),c("div",{class:qe([{hidden:i.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Gmt,[c("div",zmt,[c("div",Vmt,[i.searchModelInProgress?(T(),M("div",Hmt,e[738]||(e[738]=[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)]))):Y("",!0),i.searchModelInProgress?Y("",!0):(T(),M("div",qmt,e[739]||(e[739]=[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)])))]),F(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[421]||(e[421]=h=>i.searchModel=h),onKeyup:e[422]||(e[422]=ui((...h)=>s.searchModel_func&&s.searchModel_func(...h),["enter"]))},null,544),[[_e,i.searchModel]]),i.searchModel?(T(),M("button",{key:0,onClick:e[423]||(e[423]=J(h=>i.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):Y("",!0)])]),c("div",null,[F(c("input",{"onUpdate:modelValue":e[424]||(e[424]=h=>i.show_only_installed_models=h),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[tt,i.show_only_installed_models]]),e[740]||(e[740]=c("label",{for:"only_installed"},"Show only installed models",-1))]),c("div",null,[W(d,{radioOptions:i.sortOptions,onRadioSelected:s.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),e[748]||(e[748]=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)),i.is_loading_zoo?(T(),M("div",Ymt,e[741]||(e[741]=[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),c("p",{class:"heartbeat-text"},"Loading models Zoo",-1)]))):Y("",!0),i.models_zoo&&i.models_zoo.length>0?(T(),M("div",$mt,[c("label",Wmt," Models: ("+X(i.models_zoo.length)+") ",1),c("div",{class:qe(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",i.mzl_collapsed?"":"max-h-96"])},[W(As,{name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(s.rendered_models_zoo,(h,v)=>(T(),Tt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+v+"-"+h.name,model:h,"is-installed":h.isInstalled,"on-install":s.onInstall,"on-uninstall":s.onUninstall,"on-selected":s.onModelSelected,selected:h.name===s.configFile.model_name,model_type:h.model_type,"on-copy":s.onCopy,"on-copy-link":s.onCopyLink,"on-cancel-install":s.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),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[425]||(e[425]=(...h)=>s.load_more_models&&s.load_more_models(...h))},"Load more models",512)]),_:1})],2)])):Y("",!0),i.mzl_collapsed?(T(),M("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[426]||(e[426]=(...h)=>s.open_mzl&&s.open_mzl(...h))},e[742]||(e[742]=[c("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),M("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[427]||(e[427]=(...h)=>s.open_mzl&&s.open_mzl(...h))},e[743]||(e[743]=[c("i",{"data-feather":"chevron-down"},null,-1)]))),c("div",Kmt,[c("div",jmt,[c("div",null,[c("div",Qmt,[e[744]||(e[744]=c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),F(c("input",{type:"text","onUpdate:modelValue":e[428]||(e[428]=h=>i.reference_path=h),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter Path ...",required:""},null,512),[[_e,i.reference_path]])]),c("button",{type:"button",onClick:e[429]||(e[429]=J(h=>s.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),i.modelDownlaodInProgress?Y("",!0):(T(),M("div",Xmt,[c("div",Zmt,[e[745]||(e[745]=c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),F(c("input",{type:"text","onUpdate:modelValue":e[430]||(e[430]=h=>i.addModel.url=h),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter URL ...",required:""},null,512),[[_e,i.addModel.url]])]),c("button",{type:"button",onClick:e[431]||(e[431]=J(h=>s.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),i.modelDownlaodInProgress?(T(),M("div",Jmt,[e[747]||(e[747]=c("div",{role:"status",class:"justify-center"},null,-1)),c("div",eft,[c("div",tft,[c("div",nft,[e[746]||(e[746]=yo(' Downloading Loading...',1)),c("span",rft,X(Math.floor(i.addModel.progress))+"%",1)]),c("div",{class:"mx-1 opacity-80 line-clamp-1",title:i.addModel.url},X(i.addModel.url),9,ift),c("div",sft,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:on({width:i.addModel.progress+"%"})},null,4)]),c("div",oft,[c("span",aft,"Download speed: "+X(s.speed_computed)+"/s",1),c("span",lft,X(s.downloaded_size_computed)+"/"+X(s.total_size_computed),1)])])]),c("div",cft,[c("div",dft,[c("div",uft,[c("button",{onClick:e[432]||(e[432]=J((...h)=>s.onCancelInstall&&s.onCancelInstall(...h),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])):Y("",!0)])])],2)]),c("div",pft,[c("div",hft,[c("button",{onClick:e[435]||(e[435]=J(h=>i.pzc_collapsed=!i.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[F(c("div",null,e[749]||(e[749]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.pzc_collapsed]]),F(c("div",null,e[750]||(e[750]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.pzc_collapsed]]),e[753]||(e[753]=c("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),s.configFile.personalities?(T(),M("div",mft,"|")):Y("",!0),c("div",fft,X(s.active_pesonality),1),s.configFile.personalities?(T(),M("div",gft,"|")):Y("",!0),s.configFile.personalities?(T(),M("div",_ft,[s.mountedPersArr.length>0?(T(),M("div",bft,[(T(!0),M(je,null,at(s.mountedPersArr,(h,v)=>(T(),M("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:v+"-"+h.name,ref_for:!0,ref:"mountedPersonalities"},[c("div",vft,[c("button",{onClick:J(b=>s.onPersonalitySelected(h),["stop"])},[c("img",{src:i.bUrl+h.avatar,onError:e[433]||(e[433]=(...b)=>s.personalityImgPlacehodler&&s.personalityImgPlacehodler(...b)),class:qe(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",s.configFile.active_personality_id==s.configFile.personalities.indexOf(h.full_path)?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,Eft)],8,yft),c("button",{onClick:J(b=>s.unmountPersonality(h),["stop"])},e[751]||(e[751]=[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)]),8,Sft)])]))),128))])):Y("",!0)])):Y("",!0),c("button",{onClick:e[434]||(e[434]=J(h=>s.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},e[752]||(e[752]=[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)]))])]),c("div",{class:qe([{hidden:i.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",xft,[e[756]||(e[756]=c("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),c("div",Tft,[c("div",wft,[i.searchPersonalityInProgress?(T(),M("div",Cft,e[754]||(e[754]=[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)]))):Y("",!0),i.searchPersonalityInProgress?Y("",!0):(T(),M("div",Aft,e[755]||(e[755]=[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)])))]),F(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[436]||(e[436]=h=>i.searchPersonality=h),onKeyup:e[437]||(e[437]=J((...h)=>s.searchPersonality_func&&s.searchPersonality_func(...h),["stop"]))},null,544),[[_e,i.searchPersonality]]),i.searchPersonality?(T(),M("button",{key:0,onClick:e[438]||(e[438]=J(h=>i.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):Y("",!0)])]),i.searchPersonality?Y("",!0):(T(),M("div",Rft,[c("label",Mft," Personalities Category: ("+X(i.persCatgArr.length)+") ",1),c("select",{id:"persCat",onChange:e[439]||(e[439]=h=>s.update_personality_category(h.target.value,s.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),M(je,null,at(i.persCatgArr,(h,v)=>(T(),M("option",{key:v,selected:h==this.configFile.personality_category},X(h),9,Nft))),128))],32)])),c("div",null,[i.personalitiesFiltered.length>0?(T(),M("div",kft,[c("label",Ift,X(i.searchPersonality?"Search results":"Personalities")+": ("+X(i.personalitiesFiltered.length)+") ",1),c("div",{class:qe(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.pzl_collapsed?"":"max-h-96"])},[W(As,{name:"bounce"},{default:Ge(()=>[(T(!0),M(je,null,at(i.personalitiesFiltered,(h,v)=>(T(),Tt(m,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+v+"-"+h.name,personality:h,select_language:!0,full_path:h.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(b=>b===h.full_path||b===h.full_path+":"+h.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-edit":s.editPersonality,"on-copy-to-custom":s.copyToCustom,"on-reinstall":s.onPersonalityReinstall,"on-settings":s.onSettingsPersonality,"on-copy-personality-name":s.onCopyPersonalityName,"on-copy-to_custom":s.onCopyToCustom,"on-open-folder":s.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)])):Y("",!0)]),i.pzl_collapsed?(T(),M("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[440]||(e[440]=h=>i.pzl_collapsed=!i.pzl_collapsed)},e[757]||(e[757]=[c("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),M("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[441]||(e[441]=h=>i.pzl_collapsed=!i.pzl_collapsed)},e[758]||(e[758]=[c("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),c("div",Oft,[c("div",Dft,[c("button",{onClick:e[442]||(e[442]=J(h=>i.mc_collapsed=!i.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[F(c("div",null,e[759]||(e[759]=[c("i",{"data-feather":"chevron-right"},null,-1)]),512),[[Dt,i.mc_collapsed]]),F(c("div",null,e[760]||(e[760]=[c("i",{"data-feather":"chevron-down"},null,-1)]),512),[[Dt,!i.mc_collapsed]]),e[761]||(e[761]=c("p",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1))])]),c("div",{class:qe([{hidden:i.mc_collapsed},"flex flex-col mb-2 p-2"])},[c("div",Lft,[c("div",Pft,[F(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[443]||(e[443]=J(()=>{},["stop"])),"onUpdate:modelValue":e[444]||(e[444]=h=>s.configFile.override_personality_model_parameters=h),onChange:e[445]||(e[445]=h=>s.update_setting("override_personality_model_parameters",s.configFile.override_personality_model_parameters))},null,544),[[tt,s.configFile.override_personality_model_parameters]]),e[762]||(e[762]=c("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1))])]),c("div",{class:qe(s.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[c("div",Fft,[e[763]||(e[763]=c("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),F(c("input",{type:"text",id:"seed","onUpdate:modelValue":e[446]||(e[446]=h=>s.configFile.seed=h),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[_e,s.configFile.seed]])]),c("div",Uft,[c("div",Bft,[c("div",Gft,[e[764]||(e[764]=c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),c("p",zft,[F(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[447]||(e[447]=h=>s.configFile.temperature=h),onChange:e[448]||(e[448]=h=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.temperature]])])]),F(c("input",{id:"temperature",onChange:e[449]||(e[449]=h=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[450]||(e[450]=h=>s.configFile.temperature=h),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.temperature]])])]),c("div",Vft,[c("div",Hft,[c("div",qft,[e[765]||(e[765]=c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),c("p",Yft,[F(c("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[451]||(e[451]=h=>s.configFile.n_predict=h),onChange:e[452]||(e[452]=h=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.n_predict]])])]),F(c("input",{id:"predict",type:"range",onChange:e[453]||(e[453]=h=>i.settingsChanged=!0),"onUpdate:modelValue":e[454]||(e[454]=h=>s.configFile.n_predict=h),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.n_predict]])])]),c("div",$ft,[c("div",Wft,[c("div",Kft,[e[766]||(e[766]=c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),c("p",jft,[F(c("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[455]||(e[455]=h=>s.configFile.top_k=h),onChange:e[456]||(e[456]=h=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.top_k]])])]),F(c("input",{id:"top_k",type:"range",onChange:e[457]||(e[457]=h=>i.settingsChanged=!0),"onUpdate:modelValue":e[458]||(e[458]=h=>s.configFile.top_k=h),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.top_k]])])]),c("div",Qft,[c("div",Xft,[c("div",Zft,[e[767]||(e[767]=c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),c("p",Jft,[F(c("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[459]||(e[459]=h=>s.configFile.top_p=h),onChange:e[460]||(e[460]=h=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.top_p]])])]),F(c("input",{id:"top_p",type:"range","onUpdate:modelValue":e[461]||(e[461]=h=>s.configFile.top_p=h),min:"0",max:"1",step:"0.01",onChange:e[462]||(e[462]=h=>i.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.top_p]])])]),c("div",egt,[c("div",tgt,[c("div",ngt,[e[768]||(e[768]=c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),c("p",rgt,[F(c("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[463]||(e[463]=h=>s.configFile.repeat_penalty=h),onChange:e[464]||(e[464]=h=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.repeat_penalty]])])]),F(c("input",{id:"repeat_penalty",onChange:e[465]||(e[465]=h=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[466]||(e[466]=h=>s.configFile.repeat_penalty=h),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.repeat_penalty]])])]),c("div",igt,[c("div",sgt,[c("div",ogt,[e[769]||(e[769]=c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),c("p",agt,[F(c("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[467]||(e[467]=h=>s.configFile.repeat_last_n=h),onChange:e[468]||(e[468]=h=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.repeat_last_n]])])]),F(c("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[469]||(e[469]=h=>s.configFile.repeat_last_n=h),min:"0",max:"100",step:"1",onChange:e[470]||(e[470]=h=>i.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[_e,s.configFile.repeat_last_n]])])])],2)],2)])],2)]),W(f,{ref:"addmodeldialog"},null,512),W(g,{class:"z-20",show:i.variantSelectionDialogVisible,choices:i.variant_choices,onChoiceSelected:s.onVariantChoiceSelected,onCloseDialog:s.oncloseVariantChoiceDialog,onChoiceValidated:s.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const cgt=bt(dct,[["render",lgt],["__scopeId","data-v-f29485cf"]]),dgt={components:{ClipBoardTextInput:my,Card:rm},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};de.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}}},ugt={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"},pgt={class:"mb-4"},hgt=["value"],mgt={class:"mb-4"},fgt={class:"mb-4"},ggt={class:"mb-4"},_gt={class:"mb-4"},bgt={class:"mb-4"},vgt={class:"mb-4"},ygt={key:1};function Egt(n,e,t,r,i,s){const o=gt("Card"),a=gt("ClipBoardTextInput");return s.selectedModel!==null&&s.selectedModel.toLowerCase().includes("gptq")?(T(),M("div",ugt,[c("form",{onSubmit:e[2]||(e[2]=J((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:""},[W(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ge(()=>[W(o,{title:"Model",class:"",isHorizontal:!1},{default:Ge(()=>[c("div",pgt,[e[3]||(e[3]=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),F(c("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>s.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>n.setModel&&n.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),M(je,null,at(s.models,l=>(T(),M("option",{key:l,value:l},X(l),9,hgt))),128))],544),[[Qt,s.selectedModel]])])]),_:1}),W(o,{title:"Data",isHorizontal:!1},{default:Ge(()=>[c("div",mgt,[e[4]||(e[4]=c("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1)),W(a,{id:"model_path",inputType:"file",value:i.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),W(o,{title:"Training",isHorizontal:!1},{default:Ge(()=>[c("div",fgt,[e[5]||(e[5]=c("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1)),W(a,{id:"model_path",inputType:"integer",value:i.lr},null,8,["value"])]),c("div",ggt,[e[6]||(e[6]=c("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1)),W(a,{id:"model_path",inputType:"integer",value:i.num_epochs},null,8,["value"])]),c("div",_gt,[e[7]||(e[7]=c("label",{for:"max_length",class:"text-sm"},"Max Length:",-1)),W(a,{id:"model_path",inputType:"integer",value:i.max_length},null,8,["value"])]),c("div",bgt,[e[8]||(e[8]=c("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1)),W(a,{id:"model_path",inputType:"integer",value:i.batch_size},null,8,["value"])])]),_:1}),W(o,{title:"Output",isHorizontal:!1},{default:Ge(()=>[c("div",vgt,[e[9]||(e[9]=c("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1)),W(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),W(o,{disableHoverAnimation:!0,disableFocus:!0},{default:Ge(()=>e[10]||(e[10]=[c("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1)])),_:1})],32)])):(T(),M("div",ygt,[W(o,{title:"Info",class:"",isHorizontal:!1},{default:Ge(()=>e[11]||(e[11]=[pt(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")])),_:1})]))}const Sgt=bt(dgt,[["render",Egt]]),xgt={components:{ClipBoardTextInput:my,Card:rm},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)}}},Tgt={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"},wgt={class:"mb-4"},Cgt={class:"mb-4"};function Agt(n,e,t,r,i,s){const o=gt("ClipBoardTextInput"),a=gt("Card");return T(),M("div",Tgt,[c("form",{onSubmit:e[0]||(e[0]=J((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[W(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ge(()=>[W(a,{title:"Model",class:"",isHorizontal:!1},{default:Ge(()=>[c("div",wgt,[e[1]||(e[1]=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),W(o,{id:"model_path",inputType:"text",value:i.model_name},null,8,["value"])]),c("div",Cgt,[e[2]||(e[2]=c("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1)),W(o,{id:"model_path",inputType:"text",value:i.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),W(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Ge(()=>e[3]||(e[3]=[c("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1)])),_:1})],32)])}const Rgt=bt(xgt,[["render",Agt]]),Mgt={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,We(()=>{Ze.replace()})},watch:{showConfirmation(){We(()=>{Ze.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&We(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&We(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},Ngt=["id"],kgt={class:"flex flex-row items-center gap-2"},Igt={key:0},Ogt={class:"flex flex-row items-center w-full"},Dgt=["title"],Lgt=["value"],Pgt={class:"absolute top-0 right-0 h-full flex items-center group"},Fgt={class:"flex gap-2 items-center bg-white dark:bg-gray-800 p-2 rounded-l-md shadow-md transform translate-x-full group-hover:translate-x-0 transition-transform duration-300"},Ugt={key:0,class:"flex gap-2 items-center"},Bgt={key:1,class:"flex gap-2 items-center"};function Ggt(n,e,t,r,i,s){return T(),M("div",{class:qe([t.selected?"discussion-hilighted min-w-[14rem] max-w-[14rem]":"discussion min-w-[14rem] max-w-[14rem]","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink-0 items-center rounded-md duration-75 cursor-pointer relative"]),id:"dis-"+t.id,onClick:e[13]||(e[13]=J(o=>s.selectEvent(),["stop"]))},[c("div",kgt,[t.isCheckbox?(T(),M("div",Igt,[F(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]=J(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>i.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>s.checkedChangeEvent(o,t.id))},null,544),[[tt,i.checkBoxValue_local]])])):Y("",!0),t.selected?(T(),M("div",{key:1,class:qe(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent":"bg-secondary"])},null,2)):Y("",!0),t.selected?Y("",!0):(T(),M("div",{key:2,class:qe(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent":""])},null,2))]),c("div",Ogt,[i.editTitle?Y("",!0):(T(),M("p",{key:0,title:t.title,class:"line-clamp-1 w-full ml-1 -mx-5 text-xs"},X(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,Dgt)),i.editTitle?(T(),M("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]=ui(J(o=>s.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=ui(J(o=>i.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>s.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=J(()=>{},["stop"]))},null,40,Lgt)):Y("",!0)]),c("div",Pgt,[c("div",Fgt,[i.showConfirmation?(T(),M("div",Ugt,[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]=J(o=>s.cancel(),["stop"]))},e[14]||(e[14]=[c("i",{"data-feather":"x"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=J(o=>i.editTitleMode?s.editTitleEvent():i.deleteMode?s.deleteEvent():s.makeTitleEvent(),["stop"]))},e[15]||(e[15]=[c("i",{"data-feather":"check"},null,-1)]))])):Y("",!0),i.showConfirmation?Y("",!0):(T(),M("div",Bgt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=J(o=>s.openFolderEvent(),["stop"]))},e[16]||(e[16]=[c("i",{"data-feather":"folder"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=J(o=>i.makeTitleMode=!0,["stop"]))},e[17]||(e[17]=[c("i",{"data-feather":"type"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=J(o=>i.editTitleMode=!0,["stop"]))},e[18]||(e[18]=[c("i",{"data-feather":"edit-2"},null,-1)])),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=J(o=>i.deleteMode=!0,["stop"]))},e[19]||(e[19]=[c("i",{"data-feather":"trash"},null,-1)]))]))])])],10,Ngt)}const Oy=bt(Mgt,[["render",Ggt],["__scopeId","data-v-5bb76742"]]),zgt={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}}},Vgt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},Hgt={class:"bg-white p-8 rounded"},qgt={class:"text-xl font-bold mb-4"};function Ygt(n,e,t,r,i,s){return T(),M("div",null,[i.show?(T(),M("div",Vgt,[c("div",Hgt,[c("h2",qgt,X(t.promptText),1),F(c("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>i.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[_e,i.inputText]]),c("button",{onClick:e[1]||(e[1]=(...o)=>s.ok&&s.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),c("button",{onClick:e[2]||(e[2]=(...o)=>s.cancel&&s.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):Y("",!0)])}const wI=bt(zgt,[["render",Ygt]]),$gt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:Oy,MarkdownRenderer:nm},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){de.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"),de.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){de.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),de.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:n}).then(()=>{this.fetchTitles()})},editTitle(n){de.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(){}}},Wgt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},Kgt={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"},jgt={class:"search p-4"},Qgt={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"},Xgt={class:"z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"};function Zgt(n,e,t,r,i,s){const o=gt("Discussion"),a=gt("MarkdownRenderer");return T(),M("div",{class:qe([{hidden:!i.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[c("div",Wgt,[c("div",Kgt,[c("div",jgt,[F(c("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=l=>i.searchQuery=l),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[_e,i.searchQuery]]),c("button",{onClick:e[1]||(e[1]=(...l)=>s.searchSkills&&s.searchSkills(...l)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),c("div",Qgt,[e[3]||(e[3]=c("h2",{class:"text-xl font-bold m-4"},"Titles",-1)),i.titles.length>0?(T(),Tt(As,{key:0,name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(i.titles,l=>(T(),Tt(o,{key:l.id,id:l.id,title:l.title,selected:s.fetchContent(l.id),loading:i.loading,isCheckbox:i.isCheckbox,checkBoxValue:!1,onSelect:d=>s.fetchContent(l.id),onDelete:d=>s.deleteSkill(l.id),onEditTitle:s.editTitle,onMakeTitle:s.makeTitle,onChecked:s.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):Y("",!0)])]),c("div",Xgt,[e[4]||(e[4]=c("h2",{class:"text-xl font-bold m-4"},"Content",-1)),W(a,{host:t.host,"markdown-text":i.content,message_id:i.id,discussion_id:i.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),c("button",{onClick:e[2]||(e[2]=(...l)=>s.closeComponent&&s.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 CI=bt($gt,[["render",Zgt]]),Jgt={props:{htmlContent:{type:String,required:!0}}},e_t=["innerHTML"];function t_t(n,e,t,r,i,s){return T(),M("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,e_t)}const n_t=bt(Jgt,[["render",t_t]]),r_t={name:"JsonTreeView",props:{data:{type:[Object,Array],required:!0},depth:{type:Number,default:0}},data(){return{collapsedKeys:new Set}},methods:{isObject(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)},isArray(n){return Array.isArray(n)},toggleCollapse(n){this.collapsedKeys.has(n)?this.collapsedKeys.delete(n):this.collapsedKeys.add(n)},isCollapsed(n){return this.collapsedKeys.has(n)},getValueType(n){return typeof n=="string"?"string":typeof n=="number"?"number":typeof n=="boolean"?"boolean":n===null?"null":""},formatValue(n){return typeof n=="string"?`"${n}"`:String(n)}}},i_t={class:"json-tree-view"},s_t=["onClick"],o_t={key:0,class:"toggle-icon"},a_t={class:"key"},l_t={key:0,class:"json-nested"};function c_t(n,e,t,r,i,s){const o=gt("json-tree-view",!0);return T(),M("div",i_t,[(T(!0),M(je,null,at(t.data,(a,l)=>(T(),M("div",{key:l,class:"json-item"},[c("div",{class:"json-key",onClick:d=>s.toggleCollapse(l)},[s.isObject(a)||s.isArray(a)?(T(),M("span",o_t,[c("i",{class:qe(s.isCollapsed(l)?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)])):Y("",!0),c("span",a_t,X(l)+":",1),!s.isObject(a)&&!s.isArray(a)?(T(),M("span",{key:1,class:qe(["value",s.getValueType(a)])},X(s.formatValue(a)),3)):Y("",!0)],8,s_t),(s.isObject(a)||s.isArray(a))&&!s.isCollapsed(l)?(T(),M("div",l_t,[W(o,{data:a,depth:t.depth+1},null,8,["data","depth"])])):Y("",!0)]))),128))])}const d_t=bt(r_t,[["render",c_t],["__scopeId","data-v-40406ec6"]]),u_t={components:{JsonTreeView:d_t},props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Viewer"}},data(){return{collapsed:!0}},computed:{isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")},parsedJsonData(){if(typeof this.jsonData=="string")try{return JSON.parse(this.jsonData)}catch(n){return console.error("Error parsing JSON string:",n),{error:"Invalid JSON string"}}return this.jsonData}},methods:{toggleCollapsible(){this.collapsed=!this.collapsed}}},p_t={key:0,class:"json-viewer"},h_t={class:"toggle-icon"},m_t={class:"json-content panels-color"};function f_t(n,e,t,r,i,s){const o=gt("json-tree-view");return s.isContentPresent?(T(),M("div",p_t,[c("div",{class:"collapsible-section",onClick:e[0]||(e[0]=(...a)=>s.toggleCollapsible&&s.toggleCollapsible(...a))},[c("span",h_t,[c("i",{class:qe(i.collapsed?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)]),pt(" "+X(t.jsonFormText),1)]),F(c("div",m_t,[W(o,{data:s.parsedJsonData,depth:0},null,8,["data"])],512),[[Dt,!i.collapsed]])])):Y("",!0)}const g_t=bt(u_t,[["render",f_t],["__scopeId","data-v-83fc9727"]]),__t={props:{done:{type:Boolean,default:!1},text:{type:String,default:""},status:{type:Boolean,default:!1},step_type:{type:String,default:"start_end"},description:{type:String,default:""}},mounted(){this.amounted()},methods:{amounted(){console.log("Component mounted with the following properties:"),console.log("done:",this.done),console.log("text:",this.text),console.log("status:",this.status),console.log("step_type:",this.step_type),console.log("description:",this.description)}},watch:{done(n){typeof n!="boolean"&&console.error("Invalid type for done. Expected Boolean.")},status(n){typeof n!="boolean"&&console.error("Invalid type for status. Expected Boolean."),this.done&&!n&&console.error("Task completed with errors.")}}},b_t={class:"step-container"},v_t={class:"step-icon"},y_t={key:0},E_t={key:0},S_t={key:1},x_t={key:2},T_t={key:1},w_t={class:"step-content"},C_t={key:0,class:"step-description"};function A_t(n,e,t,r,i,s){return T(),M("div",b_t,[c("div",{class:qe(["step-wrapper transition-all duration-300 ease-in-out",{"bg-green-100 dark:bg-green-900":t.done&&t.status,"bg-red-100 dark:bg-red-900":t.done&&!t.status,"bg-gray-100 dark:bg-gray-800":!t.done}])},[c("div",v_t,[t.step_type==="start_end"?(T(),M("div",y_t,[t.done?t.done&&t.status?(T(),M("div",S_t,e[1]||(e[1]=[c("i",{"data-feather":"check-circle",class:"feather-icon text-green-600 dark:text-green-400"},null,-1)]))):(T(),M("div",x_t,e[2]||(e[2]=[c("i",{"data-feather":"x-circle",class:"feather-icon text-red-600 dark:text-red-400"},null,-1)]))):(T(),M("div",E_t,e[0]||(e[0]=[c("i",{"data-feather":"circle",class:"feather-icon text-gray-600 dark:text-gray-300"},null,-1)])))])):Y("",!0),t.done?Y("",!0):(T(),M("div",T_t,e[3]||(e[3]=[c("div",{class:"spinner"},null,-1)])))]),c("div",w_t,[c("h3",{class:qe(["step-text",{"text-green-600 dark:text-green-400":t.done&&t.status,"text-red-600 dark:text-red-400":t.done&&!t.status,"text-gray-800 dark:text-gray-200":!t.done}])},X(t.text||"No text provided"),3),t.description?(T(),M("p",C_t,X(t.description||"No description provided"),1)):Y("",!0)])],2)])}const R_t=bt(__t,[["render",A_t],["__scopeId","data-v-78f415f6"]]),M_t="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20480%20480'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M240,0C107.664,0,0,107.664,0,240s107.664,240,240,240s240-107.664,240-240S372.336,0,240,0z%20M240,460%20c-121.309,0-220-98.691-220-220S118.691,20,240,20s220,98.691,220,220S361.309,460,240,460z'/%3e%3cpath%20d='M410,194.999h-27.058c-2.643-8.44-6-16.56-10.03-24.271l19.158-19.158c3.776-3.775,5.854-8.79,5.854-14.121%20c0-5.332-2.08-10.347-5.854-14.121l-35.399-35.399c-3.775-3.775-8.79-5.854-14.122-5.854c-5.331,0-10.346,2.079-14.121,5.854%20l-19.158,19.158c-7.711-4.03-15.832-7.386-24.271-10.03V70c0-11.028-8.972-20-20-20h-50c-11.028,0-20,8.972-20,20v27.058%20c-8.44,2.643-16.56,6-24.271,10.03L151.57,87.93c-3.775-3.776-8.79-5.854-14.121-5.854c-5.332,0-10.347,2.08-14.121,5.854%20l-35.399,35.399c-3.775,3.775-5.854,8.79-5.854,14.122c0,5.331,2.079,10.346,5.854,14.121l19.158,19.158%20c-4.03,7.711-7.386,15.832-10.03,24.271H70c-11.028,0-20,8.972-20,20v50c0,11.028,8.972,20,20,20h27.057%20c2.643,8.44,6,16.56,10.03,24.271L87.929,328.43c-3.776,3.775-5.854,8.79-5.854,14.121c0,5.332,2.08,10.347,5.854,14.121%20l35.399,35.399c3.775,3.775,8.79,5.854,14.122,5.854c5.331,0,10.346-2.079,14.121-5.854l19.158-19.158%20c7.711,4.03,15.832,7.386,24.271,10.03V410c0,11.028,8.972,20,20,20h50c11.028,0,20-8.972,20.001-20v-27.058%20c8.44-2.643,16.56-6,24.271-10.03l19.158,19.158c3.775,3.776,8.79,5.854,14.121,5.854c5.332,0,10.347-2.08,14.121-5.854%20l35.399-35.399c3.775-3.775,5.854-8.79,5.854-14.122c0-5.331-2.079-10.346-5.854-14.121l-19.158-19.158%20c4.03-7.711,7.386-15.832,10.03-24.271H410c11.028,0,20-8.972,20-20v-50C430,203.971,421.028,194.999,410,194.999z%20M410,264.998%20h-34.598c-4.562,0-8.544,3.086-9.684,7.503c-3.069,11.901-7.716,23.133-13.813,33.387c-2.337,3.931-1.71,8.948,1.524,12.182%20l24.5,24.457l-35.357,35.4l-24.5-24.5c-3.236-3.235-8.253-3.86-12.182-1.524c-10.254,6.097-21.487,10.745-33.387,13.813%20c-4.417,1.14-7.503,5.122-7.503,9.684V410h-50v-34.599c0-4.562-3.086-8.544-7.503-9.684%20c-11.901-3.069-23.133-7.716-33.387-13.813c-1.587-0.944-3.353-1.404-5.107-1.404c-2.586,0-5.147,1.002-7.073,2.931l-24.457,24.5%20l-35.4-35.357l24.5-24.5c3.234-3.235,3.861-8.251,1.524-12.182c-6.097-10.254-10.745-21.487-13.813-33.387%20c-1.14-4.417-5.122-7.503-9.684-7.503H70v-50h34.596c4.562,0,8.544-3.086,9.684-7.503c3.069-11.901,7.716-23.133,13.813-33.387%20c2.337-3.931,1.71-8.948-1.524-12.182l-24.5-24.457l35.357-35.4l24.5,24.5c3.236,3.235,8.253,3.861,12.182,1.524%20c10.254-6.097,21.487-10.745,33.387-13.813c4.417-1.14,7.503-5.122,7.503-9.684V70h50v34.596c0,4.562,3.086,8.544,7.503,9.684%20c11.901,3.069,23.133,7.716,33.387,13.813c3.929,2.337,8.947,1.709,12.182-1.524l24.457-24.5l35.4,35.357l-24.5,24.5%20c-3.234,3.235-3.861,8.251-1.524,12.182c6.097,10.254,10.745,21.487,13.813,33.387c1.14,4.417,5.122,7.503,9.684,7.503H410%20V264.998z'/%3e%3cpath%20d='M331.585,292.475l-40-35l-13.17,15.051L298.386,290H240c-27.57,0-50-22.43-50-50h-20c0,38.598,31.402,70,70,70h58.386%20l-19.971,17.475l13.17,15.051l40-35c2.17-1.898,3.415-4.642,3.415-7.525S333.755,294.373,331.585,292.475z'/%3e%3cpath%20d='M201.585,207.473L181.614,190H240c27.57,0,50,22.43,50,50h20c0-38.598-31.402-70-70-70h-58.386l19.971-17.475%20l-13.17-15.051l-40,35c-2.17,1.898-3.415,4.642-3.415,7.525s1.245,5.627,3.415,7.525l40,35L201.585,207.473z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20from='0%20240%20240'%20to='360%20240%20240'%20dur='10s'%20repeatCount='indefinite'%20/%3e%3c/svg%3e",N_t="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cpath%20d='M25%200C11.6%200%200%2011.6%200%2025s11.6%2025%2025%2025%2025-11.6%2025-25S40.4%200%2025%200zm0%2048C12.8%2048%202%2039.2%202%2025S12.8%202%2025%202s24%2010.8%2024%2024-10.8%2024-24%2024zm-4-33l-8%208%2018%2018%2030-30-8-8-22%2022L22%2016'%20fill='green'/%3e%3c/svg%3e",k_t="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012%2019%206.41z'%20fill='red'/%3e%3c/svg%3e",AI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20width='256'%20height='256'%20viewBox='0%200%20256%20256'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%20style='stroke:%20white;%20stroke-width:%202px;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20none;%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='translate(1.4065934065934016%201.4065934065934016)%20scale(2.81%202.81)'%20%3e%3cpath%20d='M%2089.999%203.075%20C%2090%203.02%2090%202.967%2089.999%202.912%20c%20-0.004%20-0.134%20-0.017%20-0.266%20-0.038%20-0.398%20c%20-0.007%20-0.041%20-0.009%20-0.081%20-0.018%20-0.122%20c%20-0.034%20-0.165%20-0.082%20-0.327%20-0.144%20-0.484%20c%20-0.018%20-0.046%20-0.041%20-0.089%20-0.061%20-0.134%20c%20-0.053%20-0.119%20-0.113%20-0.234%20-0.182%20-0.346%20C%2089.528%201.382%2089.5%201.336%2089.469%201.29%20c%20-0.102%20-0.147%20-0.212%20-0.288%20-0.341%20-0.417%20c%20-0.13%20-0.13%20-0.273%20-0.241%20-0.421%20-0.344%20c%20-0.042%20-0.029%20-0.085%20-0.056%20-0.129%20-0.082%20c%20-0.118%20-0.073%20-0.239%20-0.136%20-0.364%20-0.191%20c%20-0.039%20-0.017%20-0.076%20-0.037%20-0.116%20-0.053%20c%20-0.161%20-0.063%20-0.327%20-0.113%20-0.497%20-0.147%20c%20-0.031%20-0.006%20-0.063%20-0.008%20-0.094%20-0.014%20c%20-0.142%20-0.024%20-0.285%20-0.038%20-0.429%20-0.041%20C%2087.03%200%2086.983%200%2086.936%200.001%20c%20-0.141%200.003%20-0.282%200.017%20-0.423%200.041%20c%20-0.035%200.006%20-0.069%200.008%20-0.104%200.015%20c%20-0.154%200.031%20-0.306%200.073%20-0.456%200.129%20L%201.946%2031.709%20c%20-1.124%200.422%20-1.888%201.473%20-1.943%202.673%20c%20-0.054%201.199%200.612%202.316%201.693%202.838%20l%2034.455%2016.628%20l%2016.627%2034.455%20C%2053.281%2089.344%2054.334%2090%2055.481%2090%20c%200.046%200%200.091%20-0.001%200.137%20-0.003%20c%201.199%20-0.055%202.251%20-0.819%202.673%20-1.943%20L%2089.815%204.048%20c%200.056%20-0.149%200.097%20-0.3%200.128%20-0.453%20c%200.008%20-0.041%200.011%20-0.081%200.017%20-0.122%20C%2089.982%203.341%2089.995%203.208%2089.999%203.075%20z%20M%2075.086%2010.672%20L%2037.785%2047.973%20L%2010.619%2034.864%20L%2075.086%2010.672%20z%20M%2055.136%2079.381%20L%2042.027%2052.216%20l%2037.302%20-37.302%20L%2055.136%2079.381%20z'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'%20stroke-linecap='round'%20/%3e%3ccircle%20cx='75'%20cy='75'%20r='15'%20fill='%23008000'/%3e%3cpath%20d='M75,60%20A15,15%200%200,1%2090,75%20A15,15%200%200,1%2075,90%20A15,15%200%200,1%2060,75%20A15,15%200%200,1%2075,60%20Z'%20stroke='%23FFFFFF'%20stroke-width='2'%20fill='none'/%3e%3cpath%20d='M81,75%20A6,6%200%200,1%2075,81%20A6,6%200%200,1%2069,75%20A6,6%200%200,1%2075,69%20A6,6%200%200,1%2081,75%20Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3c/svg%3e",I_t="/",O_t={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:nm,Step:R_t,RenderHTMLJS:n_t,JsonViewer:g_t,DynamicUIRenderer:TI,ToolbarButton:fy,DropdownMenu:pI},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:Zk,html5_block:Jk,LaTeX_block:eI,json_block:Xk,javascript_block:Qk,process_svg:M_t,ok_svg:N_t,failed_svg:k_t,loading_svg:nI,sendGlobe:AI,code_block:Kk,python_block:jk,bash_block:tI,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."),We(()=>{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 r=Math.floor(t/(1e3*60*60));t-=r*(1e3*60*60);const i=Math.floor(t/(1e3*60));t-=i*(1e3*60);const s=Math.floor(t/1e3);return t-=s*1e3,[r,i,s]},insertTab(n){const e=n.target,t=e.selectionStart,r=e.selectionEnd,i=n.shiftKey;if(t===r)if(i){if(e.value.substring(t-4,t)==" "){const s=e.value.substring(0,t-4),o=e.value.substring(r),a=s+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const s=e.value.substring(0,t),o=e.value.substring(r),a=s+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,r).split(` +`).map(u=>u.trim()===""?u:i?u.startsWith(" ")?u.substring(4):u:" "+u),a=e.value.substring(0,t),l=e.value.substring(r),d=a+o.join(` +`)+l;this.message.content=d,this.$nextTick(()=>{e.selectionStart=t,e.selectionEnd=r+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,de.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 r of this.message.metadata)Object.prototype.hasOwnProperty.call(r,"audio_url")&&(r.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}))},async speak(){if(this.$store.state.config.active_tts_service!="browser"&&this.$store.state.config.active_tts_service!="None")this.isSpeaking?(this.isSpeaking=!0,de.post("./stop",{text:this.message.content}).then(n=>{this.isSpeaking=!1}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSpeaking=!1})):(this.isSpeaking=!0,de.post("./text2Audio",{client_id:this.$store.state.client_id,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(i=>i.name===this.$store.state.config.audio_out_voice)[0]);const t=i=>{let s=this.message.content.substring(i,i+e);const o=[".","!","?",` +`];let a=-1;return o.forEach(l=>{const d=s.lastIndexOf(l);d>a&&(a=d)}),a==-1&&(a=s.length),console.log(a),a+i+1},r=()=>{if(this.message.status_message=="Done"||this.message.content.includes(".")||this.message.content.includes("?")||this.message.content.includes("!")){const i=t(n),s=this.message.content.substring(n,i);this.msg.text=s,n=i+1,this.msg.onend=o=>{n{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",i))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{r()},1)};console.log("Speaking chunk"),r()}},toggleModel(){this.expanded=!this.expanded},addBlock(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?I_t+this.avatar:(console.log("No avatar found"),Ai)},defaultImg(n){n.target.src=Ai},parseDate(n){let e=new Date(Date.parse(n)),r=Math.floor((new Date-e)/1e3);return r<=1?"just now":r<20?r+" seconds ago":r<40?"half a minute ago":r<60?"less than a minute ago":r<=90?"one minute ago":r<=3540?Math.round(r/60)+" minutes ago":r<=5400?"1 hour ago":r<=86400?Math.round(r/3600)+" hours ago":r<=129600?"1 day ago":r<604800?Math.round(r/86400)+" days ago":r<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,r=Math.floor(t/86400);if(!(isNaN(r)||r<0||r>=31))return r==0&&(t<60&&"just now"||t<120&&"1 minute ago"||t<3600&&Math.floor(t/60)+" minutes ago"||t<7200&&"1 hour ago"||t<86400&&Math.floor(t/3600)+" hours ago")||r==1&&"Yesterday"||r<7&&r+" days ago"||r<31&&Math.ceil(r/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed to",n),this.ui_componentKey++},showConfirmation(){We(()=>{Ze.replace()})},deleteMsgMode(){We(()=>{Ze.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,We(()=>{Ze.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===n.getTime()||!n.getTime()||!e.getTime())return;let[r,i,s]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(r)+"h:"+o(i)+"m:"+o(s)+"s"},warmup_duration(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",n," -> ",e),e.getTime()===n.getTime())return 0;if(!n.getTime()||!e.getTime())return;let r,i,s;[r,i,s]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(r)+"h:"+o(i)+"m:"+o(s)+"s"},generation_rate(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),t=this.message.nb_tokens;if(e.getTime()===n.getTime()||!t||!n.getTime()||!e.getTime())return;let i=e.getTime()-n.getTime();const s=Math.floor(i/1e3),o=t/s;return Math.round(o)+" t/s"}}},D_t={class:"relative message w-full group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},L_t={class:"flex flex-row gap-2"},P_t={class:"flex-shrink-0"},F_t={class:"group/avatar"},U_t=["src","data-popover-target"],B_t={class:"flex flex-col w-full flex-grow-0"},G_t={class:"flex flex-row flex-grow items-start"},z_t={class:"flex flex-col mb-2"},V_t={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},H_t=["title"],q_t={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"},Y_t={key:1},$_t=["src"],W_t={class:"message-details"},K_t={key:0,class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full transition-all duration-300 ease-in-out"},j_t={class:"grid min-w-80 select-none grid-cols-[50px,1fr] items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-all duration-300"},Q_t={class:"relative grid aspect-square place-content-center overflow-hidden rounded-full bg-gradient-to-br from-blue-400 to-purple-500 transform transition-transform duration-300 hover:scale-105"},X_t={class:"leading-5"},Z_t={class:"flex items-center gap-1 truncate whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"},J_t={class:"px-5 pb-5 pt-4 transition-all duration-300 ease-in-out"},e0t={class:"list-none"},t0t={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"},n0t={class:"flex-row justify-end mx-2"},r0t={class:"invisible group-hover:visible flex flex-row"},i0t={key:0},s0t={key:1},o0t={key:2},a0t={key:3},l0t={key:4,class:"flex items-center duration-75"},c0t={class:"flex flex-row items-center"},d0t={class:"flex flex-row items-center"},u0t={key:6,class:"flex flex-row items-center"},p0t=["src"],h0t={class:"text-sm text-gray-400 mt-2"},m0t={class:"flex flex-row items-center gap-2"},f0t={key:0},g0t={class:"font-thin"},_0t={key:1},b0t={class:"font-thin"},v0t={key:2},y0t={class:"font-thin"},E0t={key:3},S0t=["title"],x0t={key:4},T0t=["title"],w0t={key:5},C0t=["title"],A0t={key:6},R0t=["title"];function M0t(n,e,t,r,i,s){var b;const o=gt("MarkdownRenderer"),a=gt("JsonViewer"),l=gt("DynamicUIRenderer"),d=gt("StatusIcon"),u=gt("StatusIndicator"),m=gt("Step"),f=gt("RenderHTMLJS"),g=gt("ToolbarButton"),h=gt("DropdownSubmenu"),v=gt("DropdownMenu");return T(),M("div",D_t,[c("div",L_t,[c("div",P_t,[c("div",F_t,[c("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=_=>s.defaultImg(_)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,U_t)])]),c("div",B_t,[c("div",G_t,[c("div",z_t,[c("div",V_t,X(t.message.sender),1),t.message.created_at?(T(),M("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+s.created_at_parsed},X(s.created_at),9,H_t)):Y("",!0)]),e[45]||(e[45]=c("div",{class:"flex-grow"},null,-1))]),c("div",q_t,[s.editMsgMode?Y("",!0):(T(),Tt(o,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),c("div",null,[t.message.open?F((T(),M("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=ui(J((..._)=>s.insertTab&&s.insertTab(..._),["prevent"]),["tab"])),class:"block min-h-[500px] p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[2]||(e[2]=_=>t.message.content=_)}," ",544)),[[_e,t.message.content]]):Y("",!0)]),t.message.metadata!==null?(T(),M("div",Y_t,[(T(!0),M(je,null,at(((b=t.message.metadata)==null?void 0:b.filter(_=>_!=null&&_.hasOwnProperty("title")&&_.hasOwnProperty("content")))||[],(_,y)=>(T(),M("div",{key:"json-"+t.message.id+"-"+y,class:"json font-bold"},[(T(),Tt(a,{jsonFormText:_.title,jsonData:_.content,key:"msgjson-"+t.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):Y("",!0),t.message.ui?(T(),Tt(l,{ref:"ui",class:"w-full",ui:t.message.ui,key:"msgui-"+t.message.id},null,8,["ui"])):Y("",!0),i.audio_url!=null?(T(),M("audio",{controls:"",key:i.audio_url},[c("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,$_t),e[46]||(e[46]=pt(" Your browser does not support the audio element. "))])):Y("",!0),c("div",W_t,[t.message&&t.message.steps&&t.message.steps.length>0?(T(),M("details",K_t,[c("summary",j_t,[c("div",Q_t,[W(d,{status:t.message.status_message},null,8,["status"])]),c("dl",X_t,[e[47]||(e[47]=c("dd",{class:"text-lg font-semibold text-gray-800 dark:text-gray-200"},"Processing Info",-1)),c("dt",Z_t,[W(u,{status:t.message.status_message},null,8,["status"]),pt(" "+X(t.message.status_message),1)])])]),c("div",J_t,[c("ol",e0t,[(T(!0),M(je,null,at(t.message.steps,(_,y)=>(T(),M("li",{key:`step-${t.message.id}-${y}`,class:qe(["group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800 transition-all duration-300 ease-in-out",{"bg-transparent":_.done}]),style:on({animationDelay:`${y*100}ms`})},[W(m,{done:_.done,text:_.text,status:_.status,step_type:_.step_type},null,8,["done","text","status","step_type"])],6))),128))])])])):Y("",!0),c("div",t0t,[(T(!0),M(je,null,at(t.message.html_js_s,(_,y)=>(T(),M("div",{key:`htmljs-${t.message.id}-${y}`,class:"font-bold animate-fadeIn",style:on({animationDelay:`${y*200}ms`})},[W(f,{htmlContent:_},null,8,["htmlContent"])],4))),128))])])]),c("div",n0t,[c("div",r0t,[s.editMsgMode?(T(),M("div",i0t,[W(g,{onClick:e[3]||(e[3]=J(_=>s.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),W(g,{onClick:J(s.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),W(v,{title:"Add Block"},{default:Ge(()=>[W(h,{title:"Programming Languages",icon:"code"},{default:Ge(()=>[W(g,{onClick:e[4]||(e[4]=J(_=>s.addBlock("python"),["stop"])),title:"Python",icon:"python"}),W(g,{onClick:e[5]||(e[5]=J(_=>s.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),W(g,{onClick:e[6]||(e[6]=J(_=>s.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),W(g,{onClick:e[7]||(e[7]=J(_=>s.addBlock("java"),["stop"])),title:"Java",icon:"java"}),W(g,{onClick:e[8]||(e[8]=J(_=>s.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),W(g,{onClick:e[9]||(e[9]=J(_=>s.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),W(g,{onClick:e[10]||(e[10]=J(_=>s.addBlock("go"),["stop"])),title:"Go",icon:"go"}),W(g,{onClick:e[11]||(e[11]=J(_=>s.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),W(g,{onClick:e[12]||(e[12]=J(_=>s.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),W(g,{onClick:e[13]||(e[13]=J(_=>s.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),W(g,{onClick:e[14]||(e[14]=J(_=>s.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),W(h,{title:"Web Technologies",icon:"web"},{default:Ge(()=>[W(g,{onClick:e[15]||(e[15]=J(_=>s.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),W(g,{onClick:e[16]||(e[16]=J(_=>s.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),W(g,{onClick:e[17]||(e[17]=J(_=>s.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),W(g,{onClick:e[18]||(e[18]=J(_=>s.addBlock("react"),["stop"])),title:"React",icon:"react"}),W(g,{onClick:e[19]||(e[19]=J(_=>s.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),W(h,{title:"Markup and Data",icon:"file-code"},{default:Ge(()=>[W(g,{onClick:e[20]||(e[20]=J(_=>s.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),W(g,{onClick:e[21]||(e[21]=J(_=>s.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),W(g,{onClick:e[22]||(e[22]=J(_=>s.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),W(g,{onClick:e[23]||(e[23]=J(_=>s.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),W(g,{onClick:e[24]||(e[24]=J(_=>s.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),W(h,{title:"Scripting and Shell",icon:"terminal"},{default:Ge(()=>[W(g,{onClick:e[25]||(e[25]=J(_=>s.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),W(g,{onClick:e[26]||(e[26]=J(_=>s.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),W(g,{onClick:e[27]||(e[27]=J(_=>s.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),W(h,{title:"Diagramming",icon:"sitemap"},{default:Ge(()=>[W(g,{onClick:e[28]||(e[28]=J(_=>s.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),W(g,{onClick:e[29]||(e[29]=J(_=>s.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),W(g,{onClick:e[30]||(e[30]=J(_=>s.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),W(h,{title:"Database",icon:"database"},{default:Ge(()=>[W(g,{onClick:e[31]||(e[31]=J(_=>s.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),W(g,{onClick:e[32]||(e[32]=J(_=>s.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),W(g,{onClick:e[33]||(e[33]=J(_=>s.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(T(),M("div",s0t,[W(g,{onClick:e[34]||(e[34]=J(_=>s.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),W(g,{onClick:s.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!s.editMsgMode&&t.message.sender!==n.$store.state.mountedPers.name?(T(),M("div",o0t,[W(g,{onClick:e[35]||(e[35]=J(_=>s.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),W(g,{onClick:e[36]||(e[36]=J(_=>s.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),W(g,{onClick:e[37]||(e[37]=J(_=>s.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):Y("",!0),!s.editMsgMode&&t.message.sender===n.$store.state.mountedPers.name?(T(),M("div",a0t,[W(g,{onClick:s.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):Y("",!0),i.deleteMsgMode?(T(),M("div",l0t,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[38]||(e[38]=J(_=>i.deleteMsgMode=!1,["stop"]))},e[48]||(e[48]=[c("i",{"data-feather":"x"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[39]||(e[39]=J(_=>s.deleteMsg(),["stop"]))},e[49]||(e[49]=[c("i",{"data-feather":"check"},null,-1)]))])):Y("",!0),!s.editMsgMode&&!i.deleteMsgMode?(T(),M("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[40]||(e[40]=_=>i.deleteMsgMode=!0)},e[50]||(e[50]=[c("i",{"data-feather":"trash"},null,-1)]))):Y("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[41]||(e[41]=J(_=>s.rankUp(),["stop"]))},e[51]||(e[51]=[c("i",{"data-feather":"thumbs-up"},null,-1)])),c("div",c0t,[c("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[42]||(e[42]=J(_=>s.rankDown(),["stop"]))},e[52]||(e[52]=[c("i",{"data-feather":"thumbs-down"},null,-1)])),t.message.rank!=0?(T(),M("div",{key:0,class:qe(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",t.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},X(t.message.rank),3)):Y("",!0)]),c("div",d0t,[this.$store.state.config.active_tts_service!="None"?(T(),M("div",{key:0,class:qe(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":s.isTalking}]),title:"speak",onClick:e[43]||(e[43]=J(_=>s.speak(),["stop"]))},e[53]||(e[53]=[c("i",{"data-feather":"volume-2"},null,-1)]),2)):Y("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(T(),M("div",u0t,[i.isSynthesizingVoice?(T(),M("img",{key:1,src:i.loading_svg},null,8,p0t)):(T(),M("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[44]||(e[44]=J(_=>s.read(),["stop"]))},e[54]||(e[54]=[c("i",{"data-feather":"voicemail"},null,-1)])))])):Y("",!0)])]),c("div",h0t,[c("div",m0t,[t.message.binding?(T(),M("p",f0t,[e[55]||(e[55]=pt("Binding: ")),c("span",g0t,X(t.message.binding),1)])):Y("",!0),t.message.model?(T(),M("p",_0t,[e[56]||(e[56]=pt("Model: ")),c("span",b0t,X(t.message.model),1)])):Y("",!0),t.message.seed?(T(),M("p",v0t,[e[57]||(e[57]=pt("Seed: ")),c("span",y0t,X(t.message.seed),1)])):Y("",!0),t.message.nb_tokens?(T(),M("p",E0t,[e[58]||(e[58]=pt("Number of tokens: ")),c("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},X(t.message.nb_tokens),9,S0t)])):Y("",!0),s.warmup_duration?(T(),M("p",x0t,[e[59]||(e[59]=pt("Warmup duration: ")),c("span",{class:"font-thin",title:"Warmup duration: "+s.warmup_duration},X(s.warmup_duration),9,T0t)])):Y("",!0),s.time_spent?(T(),M("p",w0t,[e[60]||(e[60]=pt("Generation duration: ")),c("span",{class:"font-thin",title:"Finished generating: "+s.time_spent},X(s.time_spent),9,C0t)])):Y("",!0),s.generation_rate?(T(),M("p",A0t,[e[61]||(e[61]=pt("Rate: ")),c("span",{class:"font-thin",title:"Generation rate: "+s.generation_rate},X(s.generation_rate),9,R0t)])):Y("",!0)])])])])])}const RI=bt(O_t,[["render",M0t]]),N0t={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){We(()=>{Ze.replace()})},methods:{btn_clicked(n){console.log(n)},hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,r){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=r||this.DenyButtonText;for(let i=0;i{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=i,console.log("show form",this.controls_array)})},openFileDialog(n){const e=document.createElement("input");e.type="file",n.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),n.accept&&(e.accept=n.accept),e.onchange=t=>{t.target.files.length>0&&(n.value=t.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){We(()=>{Ze.replace()})}}},k0t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4 overflow-hidden"},I0t={class:"relative w-full max-w-md max-h-[80vh]"},O0t={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},D0t={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},L0t={class:"grow flex items-center"},P0t={class:"text-lg font-semibold select-none"},F0t={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},U0t={class:"space-y-2"},B0t={key:0},G0t={key:0},z0t={class:"text-base font-semibold"},V0t={key:0,class:"relative inline-flex"},H0t=["onUpdate:modelValue"],q0t={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Y0t=["onUpdate:modelValue"],$0t={key:1},W0t={class:"text-base font-semibold"},K0t={key:0,class:"relative inline-flex"},j0t=["onUpdate:modelValue"],Q0t={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},X0t=["onUpdate:modelValue"],Z0t=["value","selected"],J0t={key:1},ebt={class:"",onclick:"btn_clicked(item)"},tbt={key:2},nbt={key:0},rbt={class:"text-base font-semibold"},ibt={key:0,class:"relative inline-flex"},sbt=["onUpdate:modelValue"],obt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},abt=["onUpdate:modelValue"],lbt={key:1},cbt={class:"text-base font-semibold"},dbt={key:0,class:"relative inline-flex"},ubt=["onUpdate:modelValue"],pbt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},hbt=["onUpdate:modelValue"],mbt=["value","selected"],fbt={key:3},gbt={class:"text-base font-semibold"},_bt={key:0,class:"relative inline-flex"},bbt=["onUpdate:modelValue"],vbt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},ybt=["onUpdate:modelValue"],Ebt=["onUpdate:modelValue","min","max"],Sbt={key:4},xbt={class:"text-base font-semibold"},Tbt={key:0,class:"relative inline-flex"},wbt=["onUpdate:modelValue"],Cbt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Abt=["onUpdate:modelValue"],Rbt=["onUpdate:modelValue","min","max"],Mbt={key:5},Nbt={class:"mb-2 relative flex items-center gap-2"},kbt={for:"default-checkbox",class:"text-base font-semibold"},Ibt=["onUpdate:modelValue"],Obt={key:0,class:"relative inline-flex"},Dbt=["onUpdate:modelValue"],Lbt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Pbt={key:6},Fbt={class:"text-base font-semibold"},Ubt={key:0,class:"relative inline-flex"},Bbt=["onUpdate:modelValue"],Gbt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},zbt=["onUpdate:modelValue"],Vbt={key:7,class:"space-y-2"},Hbt={class:"flex items-center gap-2"},qbt={class:"text-base font-semibold"},Ybt={key:0,class:"relative inline-flex"},$bt=["onUpdate:modelValue"],Wbt={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},Kbt={class:"flex gap-2"},jbt=["onUpdate:modelValue","placeholder"],Qbt=["onClick"],Xbt={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},Zbt={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function Jbt(n,e,t,r,i,s){return i.show?(T(),M("div",k0t,[c("div",I0t,[c("div",O0t,[c("div",D0t,[c("div",L0t,[e[3]||(e[3]=c("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),c("h3",P0t,X(i.title),1)]),c("button",{onClick:e[0]||(e[0]=J(o=>s.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[c("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})],-1)]))]),c("div",F0t,[c("div",U0t,[(T(!0),M(je,null,at(i.controls_array,(o,a)=>(T(),M("div",{key:a,class:"p-1"},[o.type=="str"||o.type=="string"?(T(),M("div",B0t,[o.options?Y("",!0):(T(),M("div",G0t,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",z0t,X(o.name)+": ",1),o.help?(T(),M("label",V0t,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,H0t),[[tt,o.isHelp]]),e[5]||(e[5]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",q0t,X(o.help),1)):Y("",!0),F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,Y0t),[[_e,o.value]])])),o.options?(T(),M("div",$0t,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",W0t,X(o.name)+": ",1),o.help?(T(),M("label",K0t,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,j0t),[[tt,o.isHelp]]),e[6]||(e[6]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Q0t,X(o.help),1)):Y("",!0),F(c("select",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),M(je,null,at(o.options,l=>(T(),M("option",{value:l,selected:o.value===l},X(l),9,Z0t))),256))],8,X0t),[[Qt,o.value]])])):Y("",!0)])):Y("",!0),o.type=="btn"?(T(),M("div",J0t,[c("button",ebt,X(o.name),1)])):Y("",!0),o.type=="text"?(T(),M("div",tbt,[o.options?Y("",!0):(T(),M("div",nbt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",rbt,X(o.name)+": ",1),o.help?(T(),M("label",ibt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,sbt),[[tt,o.isHelp]]),e[7]||(e[7]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",obt,X(o.help),1)):Y("",!0),F(c("textarea",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,abt),[[_e,o.value]])])),o.options?(T(),M("div",lbt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",cbt,X(o.name)+": ",1),o.help?(T(),M("label",dbt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,ubt),[[tt,o.isHelp]]),e[8]||(e[8]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",pbt,X(o.help),1)):Y("",!0),F(c("select",{"onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),M(je,null,at(o.options,l=>(T(),M("option",{value:l,selected:o.value===l},X(l),9,mbt))),256))],8,hbt),[[Qt,o.value]])])):Y("",!0)])):Y("",!0),o.type=="int"?(T(),M("div",fbt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",gbt,X(o.name)+": ",1),o.help?(T(),M("label",_bt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,bbt),[[tt,o.isHelp]]),e[9]||(e[9]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",vbt,X(o.help),1)):Y("",!0),F(c("input",{type:"number","onUpdate:modelValue":l=>o.value=l,step:"1",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,ybt),[[_e,o.value]]),o.min!=null&&o.max!=null?F((T(),M("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,min:o.min,max:o.max,step:"1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,Ebt)),[[_e,o.value]]):Y("",!0)])):Y("",!0),o.type=="float"?(T(),M("div",Sbt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",xbt,X(o.name)+": ",1),o.help?(T(),M("label",Tbt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,wbt),[[tt,o.isHelp]]),e[10]||(e[10]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Cbt,X(o.help),1)):Y("",!0),F(c("input",{type:"number","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,Abt),[[_e,o.value]]),o.min!=null&&o.max!=null?F((T(),M("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,min:o.min,max:o.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,Rbt)),[[_e,o.value]]):Y("",!0)])):Y("",!0),o.type=="bool"?(T(),M("div",Mbt,[c("div",Nbt,[c("label",kbt,X(o.name)+": ",1),F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.value=l,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,Ibt),[[tt,o.value]]),o.help?(T(),M("label",Obt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Dbt),[[tt,o.isHelp]]),e[11]||(e[11]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)]),o.isHelp?(T(),M("p",Lbt,X(o.help),1)):Y("",!0)])):Y("",!0),o.type=="list"?(T(),M("div",Pbt,[c("label",{class:qe(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Fbt,X(o.name)+": ",1),o.help?(T(),M("label",Ubt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Bbt),[[tt,o.isHelp]]),e[12]||(e[12]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)],2),o.isHelp?(T(),M("p",Gbt,X(o.help),1)):Y("",!0),F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,zbt),[[_e,o.value]])])):Y("",!0),o.type==="file"||o.type==="folder"?(T(),M("div",Vbt,[c("label",Hbt,[c("span",qbt,X(o.name)+":",1),o.help?(T(),M("label",Ybt,[F(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,$bt),[[tt,o.isHelp]]),e[13]||(e[13]=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):Y("",!0)]),o.isHelp?(T(),M("p",Wbt,X(o.help),1)):Y("",!0),c("div",Kbt,[F(c("input",{type:"text","onUpdate:modelValue":l=>o.value=l,readonly:"",class:"flex-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:o.type==="file"?"Select file...":"Select folder..."},null,8,jbt),[[_e,o.value]]),c("button",{onClick:l=>s.openFileDialog(o),class:"px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600"}," ... ",8,Qbt)])])):Y("",!0),as.hide(!0),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-white bg-blue-700 rounded-lg hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700"},X(i.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=J(o=>s.hide(!1),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-600"},X(i.DenyButtonText),1)])])])])):Y("",!0)}const Dy=bt(N0t,[["render",Jbt],["__scopeId","data-v-8a34bb65"]]);de.defaults.baseURL="/";const e1t={components:{InteractiveMenu:Ny},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){this.commands=this.commandsList,console.log("Commands",this.commands),document.addEventListener("click",this.handleClickOutside),We(()=>{Ze.replace()})},methods:{isHTML(n){const t=new DOMParser().parseFromString(n,"text/html");return Array.from(t.body.childNodes).some(r=>r.nodeType===Node.ELEMENT_NODE)},selectFile(n,e){const t=document.createElement("input");t.type="file",t.accept=n,t.onchange=r=>{this.selectedFile=r.target.files[0],console.log("File selected"),e()},t.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const t={filename:this.selectedFile.name,fileData:e.result};rt.on("file_received",r=>{r.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file +`+r.error,4,!1),this.loading=!1,rt.off("file_received")}),rt.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){We(()=>{Ze.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},t1t={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function n1t(n,e,t,r,i,s){const o=gt("InteractiveMenu");return i.loading?(T(),M("div",t1t,e[0]||(e[0]=[c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)]))):(T(),Tt(o,{key:1,commands:t.commandsList,execute_cmd:s.execute_cmd},null,8,["commands","execute_cmd"]))}const r1t=bt(e1t,[["render",n1t],["__scopeId","data-v-1a32c141"]]),i1t="data:image/svg+xml,%3csvg%20aria-hidden='true'%20class='w-6%20h-6%20animate-spin%20fill-secondary'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='currentColor'%20/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.9121%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='currentFill'%20/%3e%3c/svg%3e",s1t="/",o1t={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:r1t,ChatBarButton:Wk},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:i1t,sendGlobe:AI,bUrl:s1t,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{leftPanelCollapsed(){return this.$store.state.leftPanelCollapsed},rightPanelCollapsed(){return this.$store.state.rightPanelCollapsed},isCompactMode(){return this.$store.state.view_mode==="compact"},isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const i=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",i),{name:t[0],value:t[0]||"default_value",icon:i,help:"mounts the database"}});return console.log("formatted data sources",n),n}},methods:{showSendMenu(){clearTimeout(this.hideSendMenuTimeout),this.isSendMenuVisible=!0},hideSendMenu(){this.hideSendMenuTimeout=setTimeout(()=>{this.isSendMenuVisible=!1},300)},toggleLeftPanel(){console.log(this.leftPanelCollapsed),this.$store.commit("setLeftPanelCollapsed",!this.leftPanelCollapsed)},async toggleRightPanel(){console.log(this.rightPanelCollapsed),this.$store.commit("setRightPanelCollapsed",!this.rightPanelCollapsed),this.rightPanelCollapsed&&(this.$store.commit("setleftPanelCollapsed",!0),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let r of e)if(r.type.indexOf("image")!==-1){const i=r.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([i],o,{type:i.type});this.addFiles([a])}else if(r.kind==="file"){const i=r.getAsFile();t.push(i)}t.length>0&&this.addFiles(t)},emitloaded(){this.$emit("loaded")},download_files(){de.get("/download_files")},remove_file(n){de.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){de.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,r=24*1024;let i=0,s=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,l=i+a.byteLength>=n.size;rt.emit("send_file_chunk",{filename:n.name,chunk:a,offset:i,isLastChunk:l,chunkIndex:s}),i+=a.byteLength,s++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(i,i+r);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),rt.emit("start_bidirectional_audio_stream"),We(()=>{Ze.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),rt.emit("stop_bidirectional_audio_stream"),We(()=>{Ze.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},computedFileSize(n){return We(()=>{Ze.replace()}),Wi(n)},removeItem(n){console.log("Removing ",n.name),de.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await de.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){rt.emit("take_picture"),rt.on("picture_taken",()=>{de.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const r=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const i=e[t];this.filesList.push(i),this.isFileSentList.push(!1),this.send_file(i,()=>{t++,r()})};r()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){We(()=>{Ze.replace()})},loading(n,e){We(()=>{Ze.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let r=0;r{Ze.replace()}),console.log("Chatbar mounted"),rt.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){We(()=>{Ze.replace()})}},a1t={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},l1t={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},c1t={class:"flex"},d1t=["title"],u1t={key:0},p1t={class:"flex flex-col max-h-64"},h1t=["title"],m1t={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"},f1t={key:0,filesList:"",role:"status"},g1t={class:"flex flex-row items-center"},_1t={class:"whitespace-nowrap"},b1t=["onClick"],v1t={key:1,class:"flex mx-1 w-500"},y1t={class:"whitespace-nowrap flex flex-row gap-2"},E1t={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},S1t={role:"status"},x1t=["src"],T1t={class:"flex w-fit relative grow w-full"},w1t={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 chatbox-color p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},C1t={key:0,title:"Waiting for reply"},A1t=["src"],R1t={class:"w-fit"},M1t={class:"w-fit"},N1t={class:"relative grow m-0 p-0"},k1t={class:"m-0 p-0"},I1t={class:"flex items-center space-x-3"},O1t={class:"relative inline-block"},D1t={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},L1t={class:"flex flex-col gap-2"};function P1t(n,e,t,r,i,s){const o=gt("ChatBarButton"),a=gt("PersonalitiesCommands");return T(),M("div",a1t,[i.filesList.length>0?(T(),M("div",l1t,[c("div",c1t,[c("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:i.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=J(l=>i.showfilesList=!i.showfilesList,["stop"]))},e[12]||(e[12]=[c("i",{"data-feather":"list"},null,-1)]),8,d1t)]),i.filesList.length>0&&i.showfilesList==!0?(T(),M("div",u1t,[c("div",p1t,[W(As,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ge(()=>[(T(!0),M(je,null,at(i.filesList,(l,d)=>(T(),M("div",{key:d+"-"+l.name},[c("div",{class:"m-1",title:l.name},[c("div",m1t,[i.isFileSentList[d]?Y("",!0):(T(),M("div",f1t,e[13]||(e[13]=[c("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),c("span",{class:"sr-only"},"Loading...",-1)]))),e[15]||(e[15]=c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),c("div",{class:qe(["line-clamp-1 w-3/5",i.isFileSentList[d]?"text-green-500":"text-red-200"])},X(l.name),3),e[16]||(e[16]=c("div",{class:"grow"},null,-1)),c("div",g1t,[c("p",_1t,X(s.computedFileSize(l.size)),1),c("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:u=>s.removeItem(l)},e[14]||(e[14]=[c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,b1t)])])],8,h1t)]))),128))]),_:1})])])):Y("",!0),i.filesList.length>0?(T(),M("div",v1t,[c("div",y1t,[e[17]||(e[17]=c("p",{class:"font-bold"}," Total size: ",-1)),pt(" "+X(i.totalSize)+" ("+X(i.filesList.length)+") ",1)]),e[20]||(e[20]=c("div",{class:"grow"},null,-1)),c("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...l)=>s.clear_files&&s.clear_files(...l))},e[18]||(e[18]=[c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),c("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...l)=>s.download_files&&s.download_files(...l))},e[19]||(e[19]=[c("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):Y("",!0)])):Y("",!0),i.selecting_model||i.selecting_binding?(T(),M("div",E1t,[c("div",S1t,[c("img",{src:i.loader_v0,class:"w-50 h-50"},null,8,x1t),e[21]||(e[21]=c("span",{class:"sr-only"},"Selecting model...",-1))])])):Y("",!0),c("div",T1t,[c("div",w1t,[t.loading?(T(),M("div",C1t,[c("img",{src:i.loader_v0},null,8,A1t),e[22]||(e[22]=c("div",{role:"status"},[c("span",{class:"sr-only"},"Loading...")],-1))])):Y("",!0),W(o,{onClick:s.toggleLeftPanel,class:qe({"text-red-500":s.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Ge(()=>[F(c("div",null,e[23]||(e[23]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Dt,s.leftPanelCollapsed]]),F(c("div",null,e[24]||(e[24]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Dt,!s.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),c("div",R1t,[this.$store.state.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),Tt(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:s.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):Y("",!0)]),c("div",M1t,[s.isDataSourceNamesValid?(T(),Tt(a,{key:0,icon:"feather:book",commandsList:s.dataSourceNames,sendCommand:s.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):Y("",!0)]),c("div",N1t,[c("form",k1t,[F(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=l=>i.message=l),onPaste:e[4]||(e[4]=(...l)=>s.handlePaste&&s.handlePaste(...l)),onKeydown:e[5]||(e[5]=ui(J(l=>s.submitOnEnter(l),["exact"]),["enter"])),class:"w-full p-2 text-sm text-gray-900 dark:text-white bg-gray-100 dark:bg-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Send message..."},null,544),[[_e,i.message]])])]),c("div",I1t,[t.loading?(T(),Tt(o,{key:0,onClick:s.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ge(()=>e[25]||(e[25]=[c("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])),default:Ge(()=>[e[26]||(e[26]=c("span",null,"Stop",-1))]),_:1},8,["onClick"])):(T(),Tt(o,{key:1,onClick:s.submit,title:"Send"},{icon:Ge(()=>e[27]||(e[27]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})],-1)])),_:1},8,["onClick"])),W(o,{onClick:s.submitWithInternetSearch,title:"Send with internet search"},{icon:Ge(()=>e[28]||(e[28]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.startSpeechRecognition,class:qe({"text-red-500":i.isListeningToVoice}),title:"Voice input"},{icon:Ge(()=>e[29]||(e[29]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),n.$store.state.config.active_tts_service!="None"&&n.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),Tt(o,{key:2,onClick:e[6]||(e[6]=l=>i.is_rt?s.stopRTCom:s.startRTCom),class:qe(i.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ge(()=>e[30]||(e[30]=[pt(" 🌟 ")])),_:1},8,["class"])):Y("",!0),t.loading?Y("",!0):(T(),M("div",{key:3,class:"relative",onMouseleave:e[10]||(e[10]=(...l)=>s.hideSendMenu&&s.hideSendMenu(...l))},[c("div",O1t,[F(c("div",{onMouseenter:e[7]||(e[7]=(...l)=>s.showSendMenu&&s.showSendMenu(...l)),class:"absolute m-0 p-0 z-10 bottom-full left-1/2 transform -translate-x-1/2 w-25 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",D1t,[c("div",L1t,[W(o,{onClick:s.add_file,title:"Send file"},{icon:Ge(()=>e[31]||(e[31]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.takePicture,title:"Take picture"},{icon:Ge(()=>e[32]||(e[32]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.addWebLink,title:"Add web link"},{icon:Ge(()=>e[33]||(e[33]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)])),_:1},8,["onClick"])])])],544),[[Dt,i.isSendMenuVisible]]),c("div",{onMouseenter:e[9]||(e[9]=(...l)=>s.showSendMenu&&s.showSendMenu(...l))},[c("button",{onClick:e[8]||(e[8]=J((...l)=>n.toggleSendMenu&&n.toggleSendMenu(...l),["prevent"])),class:"p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[34]||(e[34]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"black"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))],32)])],32)),W(o,{onClick:s.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ge(()=>e[35]||(e[35]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ge(()=>e[36]||(e[36]=[c("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])),_:1},8,["onClick"]),W(o,{onClick:s.toggleRightPanel,class:qe({"text-red-500":!s.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Ge(()=>[F(c("div",null,e[37]||(e[37]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[Dt,s.rightPanelCollapsed]]),F(c("div",null,e[38]||(e[38]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[c("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[Dt,!s.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),c("input",{type:"file",ref:"fileDialog",onChange:e[11]||(e[11]=(...l)=>s.addFiles&&s.addFiles(...l)),multiple:"",style:{display:"none"}},null,544)]),e[39]||(e[39]=c("div",{class:"ml-auto gap-2"},null,-1))])])}const MI=bt(o1t,[["render",P1t],["__scopeId","data-v-e3d676fa"]]),F1t={name:"WelcomeComponent",setup(){const n=d6();return{logoSrc:ht(()=>n.state.config&&n.state.config.app_custom_logo?`/user_infos/${n.state.config.app_custom_logo}`:Ai)}}},U1t={class:"flex flex-col items-center justify-center w-full h-full min-h-screen p-8"},B1t={class:"text-center max-w-4xl"},G1t={class:"flex items-center justify-center gap-8 mb-12"},z1t={class:"relative w-24 h-24"},V1t=["src"];function H1t(n,e,t,r,i,s){return T(),M("div",U1t,[c("div",B1t,[c("div",G1t,[c("div",z1t,[c("img",{src:r.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,V1t)]),e[0]||(e[0]=c("div",{class:"flex flex-col items-start"},[c("h1",{class:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-400 dark:to-purple-400"}," L🌟LLMS "),c("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ")],-1))]),e[1]||(e[1]=yo('

    Welcome to L🌟LLMS WebUI

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

    Discover the capabilities of L🌟LLMS:

    • Engage in natural language conversations
    • Generate creative content and ideas
    • Analyze complex data and provide insights
    • Assist with coding and technical tasks
    • Process and understand multimodal inputs
    ',1))])])}const NI=bt(F1t,[["render",H1t],["__scopeId","data-v-1756add6"]]);var q1t=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),$p=function(){return $p=Object.assign||function(n){for(var e,t=1,r=arguments.length;ts.hide&&s.hide(...a)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")):Y("",!0),i.has_button?Y("",!0):(T(),M("svg",Z1t,e[1]||(e[1]=[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])))])])])):Y("",!0)}const VI=bt($1t,[["render",J1t]]),evt={props:{progress:{type:Number,required:!0}}},tvt={class:"progress-bar-container"};function nvt(n,e,t,r,i,s){return T(),M("div",tvt,[c("div",{class:"progress-bar",style:on({width:`${t.progress}%`})},null,4)])}const th=bt(evt,[["render",nvt]]),rvt={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(r=>{this.message=n,this.show=!0,this.resolve=r})}}},ivt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},svt={class:"relative w-full max-w-md max-h-full"},ovt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},avt={class:"p-4 text-center"},lvt={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function cvt(n,e,t,r,i,s){return i.show?(T(),M("div",ivt,[c("div",svt,[c("div",ovt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[3]||(e[3]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",avt,[e[4]||(e[4]=c("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),c("h3",lvt,X(i.message),1),c("button",{onClick:e[1]||(e[1]=o=>s.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},X(i.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=o=>s.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},X(i.DenyButtonText),1)])])])])):Y("",!0)}const HI=bt(rvt,[["render",cvt]]),dvt={props:{personality:{type:Object,required:!0},config:{type:Object,required:!0}},data(){return{show:!1,title:"Add AI Agent",iconUrl:"",file:null,tempConfig:{}}},methods:{showForm(){this.showDialog=!0},hideForm(){this.showDialog=!1},selectIcon(n){n.target.files&&(this.file=n.target.files[0],this.iconUrl=URL.createObjectURL(this.file))},showPanel(){this.show=!0},hide(){this.show=!1},submitForm(){de.post("/set_personality_config",{client_id:this.$store.state.client_id,category:this.personality.category,name:this.personality.folder,config:this.config}).then(n=>{const e=n.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(n=>{console.error(n)})}}},uvt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},pvt={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},hvt={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},mvt={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},fvt={class:"w-full flex flex-row mt-4 text-center justify-center"},gvt={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},_vt={class:"mb-4 w-full"},bvt={class:"w-full bg-bg-light dark:bg-bg-dark"};function vvt(n,e,t,r,i,s){return i.show?(T(),M("div",uvt,[c("div",pvt,[c("div",hvt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>s.hide()),class:"absolute top-1 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[17]||(e[17]=[c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),c("span",{class:"sr-only"},"Close modal",-1)])),c("div",mvt,[c("div",fvt,[c("button",{type:"submit",onClick:e[1]||(e[1]=J((...o)=>s.submitForm&&s.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),c("button",{onClick:e[2]||(e[2]=J(o=>s.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),c("div",gvt,[c("form",_vt,[c("table",bvt,[c("tr",null,[e[18]||(e[18]=c("td",null,[c("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>t.config.personality_conditioning=o)},null,512),[[_e,t.config.personality_conditioning]])])]),c("tr",null,[e[19]||(e[19]=c("td",null,[c("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>t.config.user_message_prefix=o)},null,512),[[_e,t.config.user_message_prefix]])])]),c("tr",null,[e[20]||(e[20]=c("td",null,[c("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>t.config.ai_message_prefix=o)},null,512),[[_e,t.config.ai_message_prefix]])])]),c("tr",null,[e[21]||(e[21]=c("td",null,[c("label",{for:"linkText"},"Link Text:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>t.config.link_text=o)},null,512),[[_e,t.config.link_text]])])]),c("tr",null,[e[22]||(e[22]=c("td",null,[c("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>t.config.welcome_message=o)},null,512),[[_e,t.config.welcome_message]])])]),c("tr",null,[e[23]||(e[23]=c("td",null,[c("label",{for:"modelTemperature"},"Model Temperature:")],-1)),c("td",null,[F(c("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[_e,t.config.model_temperature]])])]),c("tr",null,[e[24]||(e[24]=c("td",null,[c("label",{for:"modelTopK"},"Model Top K:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>t.config.model_top_k=o)},null,512),[[_e,t.config.model_top_k]])])]),c("tr",null,[e[25]||(e[25]=c("td",null,[c("label",{for:"modelTopP"},"Model Top P:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>t.config.model_top_p=o)},null,512),[[_e,t.config.model_top_p]])])]),c("tr",null,[e[26]||(e[26]=c("td",null,[c("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>t.config.model_repeat_penalty=o)},null,512),[[_e,t.config.model_repeat_penalty]])])]),c("tr",null,[e[27]||(e[27]=c("td",null,[c("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>t.config.model_repeat_last_n=o)},null,512),[[_e,t.config.model_repeat_last_n]])])]),c("tr",null,[e[28]||(e[28]=c("td",null,[c("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>t.config.recommended_binding=o)},null,512),[[_e,t.config.recommended_binding]])])]),c("tr",null,[e[29]||(e[29]=c("td",null,[c("label",{for:"recommendedModel"},"Recommended Model:")],-1)),c("td",null,[F(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>t.config.recommended_model=o)},null,512),[[_e,t.config.recommended_model]])])]),c("tr",null,[e[30]||(e[30]=c("td",null,[c("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>t.config.dependencies=o)},null,512),[[_e,t.config.dependencies]])])]),c("tr",null,[e[31]||(e[31]=c("td",null,[c("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),c("td",null,[F(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>t.config.anti_prompts=o)},null,512),[[_e,t.config.anti_prompts]])])])])])])])])])])):Y("",!0)}const qI=bt(dvt,[["render",vvt]]),yvt={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){de.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},Evt={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},Svt={class:"popup-container"},xvt=["src"],Tvt={class:"checkbox-container"};function wvt(n,e,t,r,i,s){return T(),Tt(Cs,{name:"fade"},{default:Ge(()=>[i.showPopup?(T(),M("div",Evt,[c("div",Svt,[c("button",{onClick:e[0]||(e[0]=(...o)=>s.hide&&s.hide(...o)),class:"close-button"}," X "),c("iframe",{src:i.webpageUrl,class:"iframe-content"},null,8,xvt),c("div",Tvt,[F(c("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>s.save_configuration&&s.save_configuration(...o))},null,544),[[tt,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=c("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):Y("",!0)]),_:1})}const YI=bt(yvt,[["render",wvt],["__scopeId","data-v-d504dfc9"]]),Cvt="/assets/fastapi-BQj-rjUJ.png",Avt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20127.14%2096.36'%3e%3cg%20id='图层_2'%20data-name='图层%202'%3e%3cg%20id='Discord_Logos'%20data-name='Discord%20Logos'%3e%3cg%20id='Discord_Logo_-_Large_-_White'%20data-name='Discord%20Logo%20-%20Large%20-%20White'%3e%3cpath%20d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Rvt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3c/circle%3e%3c/svg%3e",Mvt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3canimate%20attributeName='y1'%20values='30;25;30'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3canimate%20attributeName='y2'%20values='15;20;15'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3canimate%20attributeName='cy'%20values='35;30;35'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e",Nvt="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='Layer%205'%20id='Layer_5'%3e%3cpath%20d='M47,33H17a1,1,0,0,0-1,1c0,9.93,7.18,18,16,18s16-8.07,16-18A1,1,0,0,0,47,33ZM18,35H46a18,18,0,0,1-.67,4H18.71A18,18,0,0,1,18,35ZM26.7,48.8a6.42,6.42,0,0,1,10.6,0,12.3,12.3,0,0,1-10.6,0Zm12.34-1A8.81,8.81,0,0,0,32,44a8.81,8.81,0,0,0-7,3.81A15.56,15.56,0,0,1,19.43,41H44.57A15.56,15.56,0,0,1,39,47.81ZM36,22a1.1,1.1,0,0,1,0-.18,1.17,1.17,0,0,1,.06-.2s0-.05,0-.07a.28.28,0,0,1,.07-.09.71.71,0,0,1,.28-.28s.06-.06.09-.07l10-5a1,1,0,1,1,.9,1.78L39.24,22l8.21,4.11a1,1,0,0,1,.44,1.34A1,1,0,0,1,47,28a.93.93,0,0,1-.45-.11l-10-5h0a1.18,1.18,0,0,1-.28-.22l0-.06a.65.65,0,0,1-.1-.15s0-.05,0-.07a1.17,1.17,0,0,1-.06-.2A1.1,1.1,0,0,1,36,22ZM16.55,26.11,24.76,22l-8.21-4.11a1,1,0,1,1,.9-1.78l10,5s.06.05.09.07a.71.71,0,0,1,.28.28.28.28,0,0,1,.07.09s0,.05,0,.07a1.17,1.17,0,0,1,.06.2.82.82,0,0,1,0,.36,1.17,1.17,0,0,1-.06.2s0,.05,0,.07a.65.65,0,0,1-.1.15.21.21,0,0,0,0,.06,1.18,1.18,0,0,1-.28.22h0l-10,5A.93.93,0,0,1,17,28a1,1,0,0,1-.89-.55A1,1,0,0,1,16.55,26.11ZM60.66,36.45A29.69,29.69,0,0,0,61,32,29,29,0,0,0,3,32a29.69,29.69,0,0,0,.34,4.45,4.65,4.65,0,0,0,2.39,7.82,29,29,0,0,0,52.54,0,4.65,4.65,0,0,0,2.39-7.82ZM4.78,41.58a2.91,2.91,0,0,1-.24-.27A2.62,2.62,0,0,1,4,39.71a.61.61,0,0,1,0-.14,2.58,2.58,0,0,1,.77-1.73,4.38,4.38,0,0,1,.74-.55C7,36.38,10,34.9,12.69,33.67c-1.52,3.3-3.42,7.17-4.17,7.91a2.59,2.59,0,0,1-1.47.72A2.66,2.66,0,0,1,4.78,41.58ZM32,59A27,27,0,0,1,7.92,44.18a4.56,4.56,0,0,0,2-1.18c1.48-1.49,5-9.36,5.66-10.92a1,1,0,0,0-1.32-1.32c-.78.34-3.14,1.39-5.49,2.53-1.29.63-2.58,1.29-3.6,1.88A25.58,25.58,0,0,1,5,32a27,27,0,0,1,54,0,25.58,25.58,0,0,1-.19,3.17c-2.88-1.66-7.88-3.88-9.09-4.41a1,1,0,0,0-1.32,1.32c.69,1.56,4.18,9.43,5.66,10.92a4.56,4.56,0,0,0,2,1.18A27,27,0,0,1,32,59ZM59.46,41.31a2.91,2.91,0,0,1-.24.27A2.66,2.66,0,0,1,57,42.3a2.59,2.59,0,0,1-1.47-.72c-.75-.74-2.65-4.61-4.17-7.91,1.65.76,3.44,1.61,4.91,2.37.91.47,1.7.9,2.26,1.25a4.38,4.38,0,0,1,.74.55A2.58,2.58,0,0,1,60,39.57a.61.61,0,0,1,0,.14A2.62,2.62,0,0,1,59.46,41.31Z'/%3e%3c/g%3e%3c/svg%3e",kvt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512.001%20512.001'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M256.001,0C114.841,0,0,114.841,0,256.001s114.841,256.001,256.001,256.001S512.001,397.16,512.001,256.001%20S397.16,0,256.001,0z%20M256.001,493.701c-131.069,0-237.702-106.631-237.702-237.7S124.932,18.299,256.001,18.299%20s237.702,106.632,237.702,237.702S387.068,493.701,256.001,493.701z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M371.284,296.658H138.275c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h233.008c5.054,0,9.15-4.097,9.15-9.15%20C380.433,300.754,376.337,296.658,371.284,296.658z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M297.481,330.816h-85.403c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h85.403c5.054,0,9.15-4.097,9.15-9.15%20S302.534,330.816,297.481,330.816z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M146.725,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20c18.666,0,33.852-15.186,33.852-33.852C180.577,208.168,165.391,192.982,146.725,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M365.275,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20s33.852-15.186,33.852-33.852C399.128,208.168,383.942,192.982,365.275,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cg%3e%3ccircle%20cx='155.969'%20cy='219.735'%20r='9.15'/%3e%3ccircle%20cx='374.338'%20cy='219.735'%20r='9.15'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ivt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20299.92%20299.92'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M293.4,65.2H6.52C2.914,65.2,0,68.114,0,71.72v117.36c0,3.606,2.914,6.52,6.52,6.52h6.52v32.6%20c0,3.606,2.914,6.52,6.52,6.52h260.8c3.606,0,6.52-2.914,6.52-6.52v-32.6h6.52c3.606,0,6.52-2.914,6.52-6.52V71.72%20C299.92,68.114,297.006,65.2,293.4,65.2z%20M273.84,221.68h-19.56H228.2h-26.08h-26.08h-26.08h-26.08H97.8H71.72H45.64H26.08V195.6%20h19.56h26.08H97.8h26.08h26.08h26.08h26.08h26.08h26.08h19.56V221.68z%20M286.88,182.56h-6.52H19.56h-6.52V78.24h273.84V182.56z'/%3e%3cpath%20d='M32.6,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H32.6c-3.606,0-6.52,2.914-6.52,6.52%20V163C26.08,166.606,28.994,169.52,32.6,169.52z%20M39.12,104.32H65.2v52.16H39.12V104.32z'/%3e%3cpath%20d='M97.8,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H97.8c-3.606,0-6.52,2.914-6.52,6.52%20V163C91.28,166.606,94.194,169.52,97.8,169.52z%20M104.32,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M163,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H163c-3.606,0-6.52,2.914-6.52,6.52%20V163C156.48,166.606,159.394,169.52,163,169.52z%20M169.52,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M228.2,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H228.2%20c-3.606,0-6.52,2.914-6.52,6.52V163C221.68,166.606,224.594,169.52,228.2,169.52z%20M234.72,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M52.16,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C49.246,221.68,52.16,218.766,52.16,215.16z'/%3e%3cpath%20d='M78.24,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C75.326,221.68,78.24,218.766,78.24,215.16z'/%3e%3cpath%20d='M104.32,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C101.406,221.68,104.32,218.766,104.32,215.16z'/%3e%3cpath%20d='M130.4,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C127.486,221.68,130.4,218.766,130.4,215.16z'/%3e%3cpath%20d='M156.48,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52s-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20S156.48,218.766,156.48,215.16z'/%3e%3cpath%20d='M182.56,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C179.646,221.68,182.56,218.766,182.56,215.16z'/%3e%3cpath%20d='M208.64,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C205.726,221.68,208.64,218.766,208.64,215.16z'/%3e%3cpath%20d='M234.72,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C231.806,221.68,234.72,218.766,234.72,215.16z'/%3e%3cpath%20d='M260.8,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C257.886,221.68,260.8,218.766,260.8,215.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ovt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='green'%20stroke-width='4'%20fill='green'%20/%3e%3cpath%20stroke='white'%20stroke-width='4'%20d='M40%2050%20l10%2010%2020%20-20'%20fill='none'%20/%3e%3c/svg%3e",Dvt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='red'%20stroke-width='4'%20fill='red'%20/%3e%3cline%20x1='35'%20y1='35'%20x2='65'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3cline%20x1='65'%20y1='35'%20x2='35'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3c/svg%3e",Lvt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='800px'%20height='800px'%20viewBox='0%200%20461.759%20461.759'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M0,301.058h147.916v147.919H0V301.058z%20M194.432,448.977H342.35V301.058H194.432V448.977z%20M2.802,257.347h147.916V109.434%20H2.802V257.347z%20M325.476,92.219l-51.603-79.437l-79.441,51.601l51.604,79.437L325.476,92.219z%20M219.337,213.733l71.045,62.663%20l62.66-71.039l-71.044-62.669L219.337,213.733z%20M412.107,57.967l-80.668,49.656l49.652,80.666l80.668-49.65L412.107,57.967z'/%3e%3c/g%3e%3c/svg%3e",Pvt="/assets/robot-CQPaMbxU.svg",Fvt="/";de.defaults.baseURL="/";const Uvt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Fh,UniversalForm:Dy},data(){return{bUrl:Fvt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await de.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(i=>i===n.full_path),r={client_id:this.$store.state.client_id,id:t};e=await de.post("/select_personality",r),console.log("Generating message from ",e.data.status),rt.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await de.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{de.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{de.post("/set_active_personality_settings",t).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. +`+r,4,!1)})}catch(r){this.$refs.toast.showToast(`Did not get Personality settings responses. + Endpoint error: `+r.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async constructor(){for(We(()=>{Ze.replace()});this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));this.onReady()},async api_get_req(n){try{const e=await de.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=ky}}},Bvt={class:"relative group/item"},Gvt=["src","alt"],zvt={class:"absolute bottom-6 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 p-1"},Vvt={class:"p-1 bg-gray-500 rounded-full text-white hover:bg-gray-600 focus:outline-none ml-1",title:"Show more"},Hvt={class:"text-xs font-bold"};function qvt(n,e,t,r,i,s){const o=gt("UniversalForm");return T(),M(je,null,[c("div",Bvt,[c("button",{onClick:e[1]||(e[1]=J((...a)=>s.onSettingsPersonality&&s.onSettingsPersonality(...a),["prevent"])),class:"w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[c("img",{src:i.bUrl+s.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>s.personalityImgPlacehodler&&s.personalityImgPlacehodler(...a)),alt:s.mountedPers.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":n.isActive}])},null,42,Gvt)]),c("div",zvt,[c("button",{onClick:e[2]||(e[2]=J(a=>s.remount_personality(),["prevent"])),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},e[4]||(e[4]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)])),c("button",{onClick:e[3]||(e[3]=J(a=>s.handleOnTalk(),["prevent"])),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none ml-1",title:"Talk"},e[5]||(e[5]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)])),c("button",Vvt,[c("span",Hvt,"+"+X(s.mountedPersArr.length-1),1)])])]),W(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const $I=bt(Uvt,[["render",qvt]]),Yvt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center overflow-hidden"},$vt={class:"absolute inset-0 pointer-events-none overflow-hidden"},Wvt={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},Kvt={class:"mb-8 w-full"},jvt={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},Qvt={class:"text-lg text-gray-700 dark:text-gray-300"},Xvt=["innerHTML"],Zvt={class:"animated-progressbar-bg"},Jvt={class:"w-full max-w-2xl"},eyt={role:"status",class:"w-full"},tyt={class:"text-xl text-gray-700 dark:text-gray-300"},nyt={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},ryt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[15rem] max-w-[15rem]"},iyt={class:"logo-container"},syt=["src"],oyt={class:"toolbar discussion"},ayt={class:"toolbar-container"},lyt={class:"p-4 flex flex-wrap gap-2 items-center"},cyt={class:"relative"},dyt={class:"relative"},uyt={key:4,title:"Loading..",class:"flex justify-center"},pyt={key:5,class:"flex justify-center space-x-4"},hyt={key:6,class:"flex flex-col space-y-2"},myt={class:"relative inline-block"},fyt={class:"p-2 border-b border-gray-200 dark:border-gray-700"},gyt={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},_yt={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},byt=["onClick","title"],vyt=["src","alt"],yyt=["title"],Eyt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},Syt=["onClick"],xyt={class:"flex space-x-1"},Tyt=["onClick"],wyt=["src","title"],Cyt={class:"relative inline-block"},Ayt={class:"p-2 border-b border-gray-200 dark:border-gray-700"},Ryt={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},Myt={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Nyt=["onClick","title"],kyt=["src","alt"],Iyt=["title"],Oyt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},Dyt=["onClick"],Lyt={class:"flex space-x-1"},Pyt=["onClick"],Fyt=["src","title"],Uyt={class:"relative inline-block"},Byt={class:"p-2 border-b border-gray-200 dark:border-gray-700"},Gyt={class:"p-4 grid grid-cols-3 gap-4 max-h-80 overflow-y-auto custom-scrollbar"},zyt={class:"flex flex-col items-center hover:bg-blue-100 dark:hover:bg-blue-900 p-2 rounded-md w-full cursor-pointer"},Vyt=["onClick","title"],Hyt=["src","alt"],qyt=["title"],Yyt={class:"absolute top-0 left-0 w-full h-full opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-2 flex flex-col items-center justify-center"},$yt=["onClick"],Wyt={class:"flex space-x-1"},Kyt=["onClick"],jyt=["onClick"],Qyt=["onClick"],Xyt={class:"w-auto max-w-md mx-auto p-2"},Zyt={class:"flex items-center"},Jyt={class:"relative flex-grow"},eEt={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},tEt={class:"flex flex-col space-y-2"},nEt={key:0},rEt={key:1,class:"flex space-x-2"},iEt={key:1,class:"flex space-x-2"},sEt={class:"flex space-x-2"},oEt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},aEt={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},lEt={class:"flex flex-row panels-color"},cEt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},dEt={key:0,class:"relative flex flex-col flex-grow"},uEt={class:"container pt-4 pb-50 mb-50 w-full"},pEt={key:0,class:"w-full rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col overflow-hidden p-4 pb-2"},hEt={class:"overflow-x-auto flex-grow scrollbar-thin scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-600 scrollbar-track-gray-200 dark:scrollbar-track-gray-800 scrollbar-thumb-rounded-full scrollbar-track-rounded-full"},mEt={class:"flex flex-nowrap gap-6 p-4 min-w-full"},fEt=["title","onClick"],gEt={class:"space-y-3"},_Et=["title"],bEt=["title"],vEt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},yEt={class:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col"},EEt={class:"flex-1 flex flex-col min-h-0"},SEt={class:"mb-4 p-4 bg-gray-100 dark:bg-gray-700 rounded-lg"},xEt={class:"flex-1 h-[200px] overflow-y-auto scrollbar scrollbar-thumb-gray-400 dark:scrollbar-thumb-gray-500 scrollbar-track-gray-200 dark:scrollbar-track-gray-700 scrollbar-thin rounded-md"},TEt={class:"text-base whitespace-pre-wrap"},wEt={class:"flex-1 overflow-y-auto"},CEt={class:"space-y-4"},AEt=["for"],REt=["id","onUpdate:modelValue","placeholder"],MEt=["id","onUpdate:modelValue"],NEt=["id","onUpdate:modelValue"],kEt=["id","onUpdate:modelValue"],IEt={key:4,class:"border rounded-md overflow-hidden"},OEt={class:"bg-gray-200 dark:bg-gray-900 p-2 text-sm"},DEt=["id","onUpdate:modelValue"],LEt=["id","onUpdate:modelValue"],PEt=["value"],FEt={class:"mt-6 flex justify-end space-x-4"},UEt={key:0,class:"flex flex-row items-center justify-center h-10"},BEt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-1/2 bg-bg-light-tone dark:bg-bg-dark-tone h-full"},GEt={ref:"isolatedContent",class:"h-full"},zEt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},VEt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},HEt={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"},qEt={class:"text-2xl animate-pulse mt-2 text-white"},YEt={id:"app"},$Et=n=>{const e=n.replace("[","").replace("]","").split("::"),t=e[0];if(e.length===1)return{label:t,type:"text",fullText:n};const r=e[1],i={label:t,type:r,fullText:n};switch(r){case"int":case"float":case"multiline":break;case"code":i.language=e[2]||"plaintext";break;case"options":i.options=e[2]?e[2].split(",").map(s=>s.trim()):[];break;default:i.type="text"}return i},WEt="/",KEt={setup(){},data(){return{interestingFacts:["Saïph, the new version of LoLLMs, is named after a star in Orion's constellation (Kappa Orionis), representing bright guidance in AI!","Did you know? The first computer programmer was a woman - Ada Lovelace!","Large Language Models (LLMs) have evolved from having millions of parameters to hundreds of billions in just a few years.","LoLLMs (Lord of Large Language Multimodal Systems) is an open-source AI assistant platform created by ParisNeo.","Saïph (κ Orionis) is a blue-white supergiant star approximately 650 light-years away from Earth.","Neural networks were first proposed in 1943 by Warren McCulloch and Walter Pitts.","Modern LLMs like GPT-4 can understand and generate multiple languages, code, and even analyze images.","LoLLMs supports multiple AI models and can perform tasks like code interpretation, image analysis, and internet searches.","The term 'transformer' in AI, which powers most modern LLMs, was introduced in the 'Attention is All You Need' paper in 2017.","LoLLMs can generate various types of diagrams, including SVG, Graphviz, and Mermaid diagrams.","The Python programming language was named after Monty Python.","LoLLMs features a built-in code interpreter that can execute multiple programming languages.","Quantum computers can perform calculations in minutes that would take classical computers thousands of years.","LoLLMs supports multimodal interactions, allowing users to work with both text and images.","The name Saïph in Arabic (سيف) means 'sword', symbolizing cutting-edge AI technology.",'
    ',"LoLLMs' version naming often contains clever easter eggs and references to AI advancements.","The 'Strawberry' version of LoLLMs was a playful nod to ChatGPT's internal codename for one of its versions.","The 'Saïph' version name was an intentional reference to Orion, anticipating OpenAI's rumored AGI-capable model codenamed 'Orion'.","LoLLMs' evolution can be traced through its version names: Warp, Starship, Robot, Brainwave, Strawberry, and Saïph.","Each LoLLMs version name reflects either technological advancement or pays homage to significant developments in AI.","'Warp' and 'Starship' versions symbolized the quantum leap in AI capabilities and speed improvements.","'Robot' represented the system's growing autonomy and ability to perform complex tasks.","'Brainwave' highlighted the neural network aspects and cognitive capabilities of the system.","LoLLMs' version naming shows ParisNeo's keen awareness of industry trends and playful approach to development.","LoLLMs can generate and visualize mathematical equations using LaTeX, making it a powerful tool for scientific documentation.","The system's multimodel capabilities allow it to analyze medical images, architectural blueprints, and technical diagrams.","LoLLMs includes a unique feature called 'personality system' that allows it to adapt its communication style and expertise.","Did you know? LoLLMs can process and generate music notation using ABC notation or LilyPond formats.","LoLLMs supports over 40 different AI models, making it one of the most versatile open-source AI platforms.","The system can generate realistic 3D scenes descriptions that can be rendered using tools like Blender.","LoLLMs features a unique 'model fusion' capability, combining strengths of different AI models for better results.","The platform includes specialized modules for scientific computing, allowing it to solve complex mathematical problems.","LoLLMs can analyze and generate code in over 20 programming languages, including rare ones like COBOL and Fortran.","The system includes advanced prompt engineering tools, helping users get better results from AI models.","LoLLMs can generate and interpret QR codes, making it useful for creating interactive marketing materials.","The platform supports real-time voice interaction through its advanced speech-to-text and text-to-speech capabilities.","LoLLMs can analyze satellite imagery for environmental monitoring and urban planning applications.","The system includes specialized modules for protein folding prediction and molecular visualization.","LoLLMs features a built-in 'ethical AI' framework that ensures responsible and bias-aware AI interactions.","The platform can generate realistic synthetic data while preserving privacy and maintaining statistical properties.","LoLLMs includes advanced natural language processing capabilities in over 100 languages.","The system can perform sentiment analysis on social media trends and customer feedback in real-time.","LoLLMs features a unique 'time-aware' context system that understands and reasons about temporal relationships.","The platform includes specialized tools for quantum computing simulation and algorithm development."],randomFact:"",showPlaceholderModal:!1,selectedPrompt:"",placeholders:[],placeholderValues:{},previewPrompt:"",uniquePlaceholders:new Map,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",isSearching:!1,isPersonalitiesMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:Rvt,animated_info:Mvt,normal_mode:kvt,fun_mode:Nvt,is_first_connection:!0,discord:Avt,FastAPI:Cvt,modelImgPlaceholder:wr,customLanguage:"",rebooting_audio:new Audio("rebooting.wav"),connection_lost_audio:new Audio("connection_lost.wav"),connection_recovered_audio:new Audio("connection_recovered.wav"),database_selectorDialogVisible:!1,progress_visibility:!1,progress_value:0,codeBlockStylesheet:"",lastMessageHtml:"",defaultMessageHtml:` + + + + + + Default Render Panel + + + +
    +
    +

    Welcome to the Interactive Render Panel

    +

    This space is designed to bring your ideas to life! Currently, it's empty because no HTML has been generated yet.

    +

    To see something amazing here, try asking the AI to create a specific web component or application. For example:

    +

    "Create a responsive image gallery" or "Build a simple todo list app"

    +

    Once you request a web component, the AI will generate the necessary HTML, CSS, and JavaScript, and it will be rendered right here in this panel!

    +
    +
    + + + `,memory_icon:Ivt,active_skills:Ovt,inactive_skills:Dvt,skillsRegistry:Lvt,robot:Pvt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CONTENT:1,MSG_TYPE_CONTENT_INVISIBLE_TO_AI:2,MSG_TYPE_CONTENT_INVISIBLE_TO_USER:3},operationTypes:{MSG_OPERATION_TYPE_ADD_CHUNK:0,MSG_OPERATION_TYPE_SET_CONTENT:1,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI:2,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_USER:3,MSG_OPERATION_TYPE_EXCEPTION:4,MSG_OPERATION_TYPE_WARNING:5,MSG_OPERATION_TYPE_INFO:6,MSG_OPERATION_TYPE_STEP:7,MSG_OPERATION_TYPE_STEP_START:8,MSG_OPERATION_TYPE_STEP_PROGRESS:9,MSG_OPERATION_TYPE_STEP_END_SUCCESS:10,MSG_OPERATION_TYPE_STEP_END_FAILURE:11,MSG_OPERATION_TYPE_JSON_INFOS:12,MSG_OPERATION_TYPE_REF:13,MSG_OPERATION_TYPE_CODE:14,MSG_OPERATION_TYPE_UI:15,MSG_OPERATION_TYPE_NEW_MESSAGE:16,MSG_OPERATION_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},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,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,isOpen:!1,discussion_id:0}},methods:{updateRandomFact(){let n;do n=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)];while(n===this.randomFact&&this.interestingFacts.length>1);this.randomFact=n},handleOnTalk(n){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${n.name} is Talking`,4,!0),this.onTalk(n)},onPersonalitiesReadyFun(){this.$store.state.personalities_ready=!0},async showBindingHoveredIn(n){this.bindingHoveredIndex=n},async showBindingHoveredOut(){this.bindingHoveredIndex=null},async showModelHoveredIn(n){this.modelHoveredIndex=n},async showModelHoveredOut(){this.modelHoveredIndex=null},async showPersonalityHoveredIn(n){this.personalityHoveredIndex=n},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(n){if(this.hidePersonalitiesMenu(),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"),We(()=>{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(i=>i===e),r={client_id:this.$store.state.client_id,id:t};try{const i=await de.post("/select_personality",r);if(i)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),i.data}catch(i){console.log(i.message,"select_personality - settings");return}},showPersonalitiesMenu(){clearTimeout(this.hideMenuTimeout),this.isPersonalitiesMenuVisible=!0},hidePersonalitiesMenu(){this.hideMenuTimeout=setTimeout(()=>{this.isPersonalitiesMenuVisible=!1},300)},copyModelName(){navigator.clipboard.writeText(this.binding_name+"::"+this.model_name),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},copyModelNameFrom(n){navigator.clipboard.writeText(this.binding_name+"::"+n),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},showBindingsMenu(){clearTimeout(this.hideBindingsMenuTimeout),this.isBindingsMenuVisible=!0},hideBindingsMenu(){this.hideBindingsMenuTimeout=setTimeout(()=>{this.isBindingsMenuVisible=!1},300)},setBinding(n){console.log("Setting binding to "+n.name),this.selecting_binding=!0,this.selectedBinding=n,this.$store.state.messageBox.showBlockingMessage("Loading binding"),de.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})},showModelsMenu(){clearTimeout(this.hideModelsMenuTimeout),this.isModelsMenuVisible=!0},hideModelsMenu(){this.hideModelsMenuTimeout=setTimeout(()=>{this.isModelsMenuVisible=!1},300)},setModel(n){console.log("Setting model to "+n.name),this.selecting_model=!0,this.selectedModel=n,this.$store.state.messageBox.showBlockingMessage("Loading model"),de.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})},showModelConfig(){try{this.isLoading=!0,de.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{de.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,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 de.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},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 de.post("/unmount_personality",e);if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},handleShortcut(n){n.ctrlKey&&n.key==="d"&&(n.preventDefault(),n.stopPropagation(),this.createNewDiscussion())},toggleMenu(){this.isMenuVisible=!this.isMenuVisible,this.isMenuVisible&&(this.isinfosMenuVisible=!1),We(()=>{Ze.replace()})},showMenu(){this.isMenuVisible=!0,We(()=>{Ze.replace()})},hideMenu(){this.isMenuVisible=!1,We(()=>{Ze.replace()})},adjustMenuPosition(){const n=this.$refs.languageMenu;if(n){const e=n.getBoundingClientRect(),t=window.innerWidth;e.right>t?(n.style.left="auto",n.style.right="0"):(n.style.left="0",n.style.right="auto")}},restartProgram(n){n.preventDefault(),this.$store.state.api_post_req("restart_program",this.$store.state.client_id),this.rebooting_audio.play(),this.$store.state.toast.showToast("Rebooting the app. Please wait...",410,!1),console.log("this.$store.state.api_get_req",this.$store.state.api_get_req),setTimeout(()=>{window.close()},2e3)},applyConfiguration(){this.isLoading=!0,console.log(this.$store.state.config),de.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config},{headers:this.posts_headers}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),We(()=>{Ze.replace()})})},getRandomEdgePosition(){switch(Math.floor(Math.random()*4)){case 0:return 0;case 1:return 100;case 2:return Math.random()*100;case 3:return Math.random()*100}},extractTitle(n){const e=n.match(/@<(.*?)>@/);return e?e[1]:null},getPromptContent(n){return n.replace(/@<.*?>@/,"").trim()},handlePromptSelection(n){this.selectedPrompt=n;const e=this.extractTitle(n);console.log("title"),console.log(e),e?this.previewPrompt=this.getPromptContent(n):this.previewPrompt=n,this.placeholders=this.extractPlaceholders(n),this.placeholders.length>0?(this.showPlaceholderModal=!0,this.placeholderValues={}):this.setPromptInChatbox(n)},updatePreview(){let n=this.selectedPrompt;this.parsedPlaceholders.forEach((e,t)=>{const r=this.placeholderValues[t],i=new RegExp(this.escapeRegExp(e.fullText),"g");n=n.replace(i,r||e.fullText)}),this.previewPrompt=n,console.log("previewPrompt"),console.log(this.previewPrompt)},escapeRegExp(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},cancelPlaceholders(){this.showPlaceholderModal=!1,this.placeholders=[],this.placeholderValues={},this.previewPrompt=""},applyPlaceholders(){let n=this.selectedPrompt;this.parsedPlaceholders.forEach((e,t)=>{const r=this.placeholderValues[t];if(r){const i=new RegExp(this.escapeRegExp(e.fullText),"g");n=n.replace(i,r)}}),this.finalPrompt=n,this.showPlaceholderModal=!1,console.log("previewPrompt apply"),console.log(this.previewPrompt),this.setPromptInChatbox(this.getPromptContent(this.previewPrompt))},extractPlaceholders(n){const e=/\[(.*?)\]/g;return[...n.matchAll(e)].map(t=>t[0])},setPromptInChatbox(n){this.$refs.chatBox.message=n},extractHtml(){if(this.discussionArr.length>0){const n=this.discussionArr[this.discussionArr.length-1].content,e="```html",t="```";let r=n.indexOf(e);if(r===-1)return this.lastMessageHtml=this.defaultMessageHtml,this.renderIsolatedContent(),this.defaultMessageHtml;r+=e.length;let i=n.indexOf(t,r);i===-1?this.lastMessageHtml=n.slice(r).trim():this.lastMessageHtml=n.slice(r,i).trim()}else this.lastMessageHtml=this.defaultMessageHtml;this.renderIsolatedContent()},renderIsolatedContent(){const n=document.createElement("iframe");if(n.style.border="none",n.style.width="100%",n.style.height="100%",this.$refs.isolatedContent){this.$refs.isolatedContent.innerHTML="",this.$refs.isolatedContent.appendChild(n);const e=n.contentDocument||n.contentWindow.document;e.open(),e.write(` + ${this.lastMessageHtml} + `),e.close()}},async triggerRobotAction(){this.rightPanelCollapsed=!this.rightPanelCollapsed,this.rightPanelCollapsed||(this.$store.commit("setleftPanelCollapsed",!1),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},add_webpage(){console.log("addWebLink received"),this.$refs.web_url_input_box.showPanel()},addWebpage(){de.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,de.get("/get_active_binding_settings").then(n=>{if(this.isLoading=!1,n)if(n.data&&Object.keys(n.data).length>0){const e=this.$store.state.bindingsZoo.find(t=>t.name==this.state.config.binding_name);this.$store.state.universalForm.showForm(n.data,"Binding settings - "+e.binding.name,"Save changes","Cancel").then(t=>{try{de.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:t}).then(r=>{r&&r.data?(console.log("binding set with new settings",r.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. +`+r,4,!1),this.isLoading=!1)})}catch(r){this.$store.state.toast.showToast(`Did not get binding settings responses. + Endpoint error: `+r.message,4,!1),this.isLoading=!1}})}else 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_selectorDialogRemoved(n){console.log("Deleted:",n)},async ondatabase_selectorDialogSelected(n){console.log("Selected:",n)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(n){this.database_selectorDialogVisible=!1;const e={client_id:this.client_id,name:typeof n=="string"?n:n.name};if(console.log("data:"),console.log(e),(await de.post("/select_database",e,{headers:this.posts_headers})).status){console.log("Selected database"),this.$store.state.config=await de.post("/get_config",{client_id:this.client_id}),console.log("new config loaded :",this.$store.state.config);let r=await de.get("/list_databases").data;console.log("New list of database: ",r),this.$store.state.databases=r,console.log("New list of database: ",this.$store.state.databases),location.reload()}},async addDiscussion2SkillsLibrary(){(await de.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 de.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),We(()=>{Ze.replace()})},save_configuration(){this.showConfirmation=!1,de.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)},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(n){try{const e=await de.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const n=await de.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),rt.on("discussion",t=>{console.log("Discussion recovered"),this.loading=!1,this.setDiscussionLoading(n,this.loading),t&&(this.discussionArr=t.filter(r=>r.message_type==this.msgTypes.MSG_TYPE_CONTENT||r.message_type==this.msgTypes.MSG_TYPE_CONTENT_INVISIBLE_TO_AI),this.discussionArr.forEach(r=>{r.status_message="Done"}),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),rt.off("discussion"),this.extractHtml()}),rt.emit("load_discussion",{id:n}))},recoverFiles(){console.log("Recovering files"),de.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,rt.on("discussion_created",e=>{rt.off("discussion_created"),this.list_discussions().then(()=>{const t=this.list.findIndex(i=>i.id==e.id),r=this.list[t];this.selectDiscussion(r),this.load_discussion(e.id,()=>{this.loading=!1,this.recoverFiles(),We(()=>{const i=document.getElementById("dis-"+e.id);this.scrollToElement(i),console.log("Scrolling tp "+i)})})})}),console.log("new_discussion ",n),rt.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 de.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 de.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 r=this.list.findIndex(s=>s.id==n),i=this.list[r];i.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 de.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(i=>i.id==n),r=this.list[t];r.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 de.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(rt.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 de.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 de.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 r=await de.post("/edit_message",{client_id:this.client_id,id:n,message:e,metadata:[{audio_url:t}]},{headers:this.posts_headers});if(r)return r.data}catch(r){return console.log("Error: Could not update message",r.message),{}}},async export_multiple_discussions(n,e){try{if(n.length>0){const t=await de.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 de.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}},handleSearch(){this.filterTitle.trim()&&(this.isSearching=!0,clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.filterDiscussions(),this.isSearching=!1},300))},clearSearch(){this.filterTitle="",this.searchResults=[]},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(console.log("Selecting a discussion"),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}if(n){if(console.log(`Selecting discussion: ${this.currentDiscussion}`),this.currentDiscussion===void 0){console.log(`Selecting discussion: ${this.currentDiscussion.id}`),this.currentDiscussion=n,this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id);const e=localStorage.getItem("selected_discussion");console.log(`Saved discussion to : ${e}`),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())})}else 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),console.log(`Saved discussion to : ${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()}));We(()=>{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),We(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},updateLastUserMsg(n){const e=this.discussionArr.indexOf(r=>r.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)},async socketIOConnected(){console.log("socketIOConnected")},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 de.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(i=>i===n.full_path),r={client_id:this.$store.state.client_id,id:t};e=await de.post("/select_personality",r),console.log("Generating message from ",e.data.status),rt.emit("generate_msg_from",{id:-1})}},createEmptyUserMessage(n){rt.emit("create_empty_message",{type:0,message:n})},createEmptyAIMessage(){rt.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),de.get("/get_generation_status",{}).then(t=>{if(t)if(t.data.status)console.log("Already generating");else{e=="internet"?rt.emit("generate_msg_with_internet",{prompt:n}):rt.emit("generate_msg",{prompt:n});let r=0;this.discussionArr.length>0&&(r=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let i={message:n,id:r,rank:0,user:this.$store.state.config.user_name,created_at:new Date().toLocaleString(),sender:this.$store.state.config.user_name,message_type:this.operationTypes.MSG_TYPE_CONTENT,sender_type:this.senderTypes.SENDER_TYPES_USER,content:n,id:r,discussion_id:this.discussion_id,parent_id:r,binding:"",model:"",personality:"",created_at:new Date().toLocaleString(),finished_generating_at:new Date().toLocaleString(),rank:0,steps:[],parameters:null,metadata:[],ui:null};this.createUserMsg(i)}}).catch(t=>{console.log("Error: Could not get generation status",t)})},sendCmd(n){this.isGenerating=!0,rt.emit("execute_command",{command:n,parameters:[]})},notify(n){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),We(()=>{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=>{rt.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()},update_message(n){if(console.log("update_message trigged"),console.log(n),this.discussion_id=n.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){console.log("discussion ok");const e=this.discussionArr.findIndex(r=>r.id==n.id),t=this.discussionArr[e];if(t&&(n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_SET_CONTENT||n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI))console.log("Content triggered"),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,this.extractHtml();else if(t&&n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_ADD_CHUNK)this.isGenerating=!0,t.content+=n.content,console.log("Chunk triggered"),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,this.extractHtml();else if(n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_STEP||n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_STEP_START||n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_STEP_END_SUCCESS||n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_STEP_END_FAILURE)Array.isArray(n.steps)?(t.status_message=n.steps[n.steps.length-1].text,console.log("step Content: ",t.status_message),t.steps=n.steps,console.log("steps: ",n.steps)):console.error("Invalid steps data:",n.steps);else if(n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_JSON_INFOS)if(console.log("metadata triggered",n.operation_type),console.log("metadata",n.metadata),typeof n.metadata=="string")try{t.metadata=JSON.parse(n.metadata)}catch(r){console.error("Error parsing metadata string:",r),t.metadata={raw:n.metadata}}else Array.isArray(n.metadata)||typeof n.metadata=="object"?t.metadata=n.metadata:t.metadata={value:n.metadata};else n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_UI?(console.log("UI triggered",n.operation_type),console.log("UI",n.ui),t.ui=n.ui):n.operation_type==this.operationTypes.MSG_OPERATION_TYPE_EXCEPTION&&this.$store.state.toast.showToast(n.content,5,!1)}this.$nextTick(()=>{Ze.replace()})},async changeTitleUsingUserMSG(n,e){const t=this.list.findIndex(i=>i.id==n),r=this.list[t];e&&(r.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(r=>r.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;er.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 de.post("/open_discussion_folder",e,{method:"POST",headers:{"Content-Type":"application/json"}})},async editTitle(n){const e=this.list.findIndex(r=>r.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(i=>i.id==e),r=this.list[t];r.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,r){return r.id-t.id});this.list=e,this.tempList=e}},setDiscussionLoading(n,e){try{const t=this.list.findIndex(i=>i.id==n),r=this.list[t];r.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="L🌟LLMS WebUI - "+e}else{const e=n||"Welcome";document.title="L🌟LLMS WebUI - "+e}else{const e=n||"Welcome";document.title="L🌟LLMS WebUI - "+e}},async rankUpMessage(n){await this.message_rank_up(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(r=>r.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(r=>r.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 r=this.discussionArr[this.discussionArr.findIndex(i=>i.id==n)];r.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){We(()=>{Ze.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),de.get("/get_generation_status",{}).then(r=>{r&&(r.data.status?(this.$store.state.toast.showToast("The server is busy. Wait",4,!1),console.log("Already generating")):rt.emit("generate_msg_from",{prompt:e,id:n,msg_type:t}))}).catch(r=>{console.log("Error: Could not get generation status",r)})},continueMessage(n,e){We(()=>{Ze.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),de.get("/get_generation_status",{}).then(t=>{t&&(t.data.status?console.log("Already generating"):rt.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"),We(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},finalMsgEvent(n){console.log("Received message close order");let e=0;this.discussion_id=n.discussion_id,this.currentDiscussion.id==this.discussion_id&&(e=this.discussionArr.findIndex(r=>r.id==n.id),this.discussionArr[e].content=n.content,this.discussionArr[e].finished_generating_at=n.finished_generating_at,this.discussionArr[e].nb_tokens=n.nb_tokens,this.discussionArr[e].binding=n.binding,this.discussionArr[e].model=n.model,this.discussionArr[e].personality=n.personality),We(()=>{const r=document.getElementById("messages-list");this.scrollBottom(r),this.recoverFiles()}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play(),e=this.discussionArr.findIndex(r=>r.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(i=>i.id==n.id);let r=this.$refs["msg-"+n.id][0];console.log(r),r.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 r="";n.message.personality&&(r=` +Personality: ${n.message.personality}`);let i="";n.created_at_parsed&&(i=` +Created: ${n.created_at_parsed}`);let s="";n.message.model&&(s=`Model: ${n.message.model}`);let o="";n.message.seed&&(o=`Seed: ${n.message.seed}`);let a="";n.time_spent&&(a=` +Time spent: ${n.time_spent}`);let l="";l=`${t} ${s} ${o} ${a}`.trim();const d=`${n.message.sender}${r}${i} + +${e} + +${l}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),We(()=>{Ze.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(n,e){e=e||"data.json";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},saveMarkdowntoFile(n,e){e=e||"data.md";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([n],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},parseJsonObj(n){try{return JSON.parse(n)}catch(e){return this.$store.state.toast.showToast(`Could not parse JSON. +`+e.message,4,!1),null}},async parseJsonFile(n){return new Promise((e,t)=>{const r=new FileReader;r.onload=i=>e(this.parseJsonObj(i.target.result)),r.onerror=i=>t(i),r.readAsText(n)})},async exportDiscussionsAsMarkdown(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+r+"."+i+"."+s+o+a)+".md";this.loading=!0;const u=await this.export_multiple_discussions(n,"markdown");u?(this.saveMarkdowntoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async exportDiscussions(){},async exportDiscussionsAsJson(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+r+"."+i+"."+s+o+a)+".json";this.loading=!0;const u=await this.export_multiple_discussions(n,"json");u?(this.saveJSONtoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussionsBundle(n){},async importDiscussions(n){const e=await this.parseJsonFile(n.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let n=this.$store.state.personalities;this.personalityAvatars=n.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(n){if(n.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(r=>r.name===n),t=this.personalityAvatars[e];if(t)return console.log("Avatar",t.avatar),t.avatar},setFileListChat(n){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(n)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox +`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){this.randomFact=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)],console.log("Created discussions view");const e=(await de.get("/get_versionID")).data.versionId;rt.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),console.log(`Saved discussion to : ${this.currentDiscussion.id}`),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ze.replace()}),console.log("Connected to socket io");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{for(this.$store.state.loading_infos="Loading Configuration";rt.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=rt.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.isConnected=!0,this.$store.state.client_id=rt.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,rt.on("connected",this.socketIOConnected),rt.on("disconnected",this.socketIODisconnected),console.log("Added events"),rt.on("show_progress",this.show_progress),rt.on("hide_progress",this.hide_progress),rt.on("update_progress",this.update_progress),rt.on("notification",this.notify),rt.on("new_message",this.new_message),rt.on("update_message",this.update_message),rt.on("close_message",this.finalMsgEvent),rt.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const r=this.list.findIndex(s=>s.id==t.discussion_id),i=this.list[r];i.title=t.title}),rt.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},rt.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),rt.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),rt.disconnect()}},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},async mounted(){window.addEventListener("keydown",this.handleShortcut),this.$store.state.toast=this.$refs.toast,this.$store.state.news=this.$refs.news,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,this.$store.state.personality_editor=this.$refs.personality_editor,window.addEventListener("resize",this.adjustMenuPosition),rt.on("refresh_files",()=>{this.recoverFiles()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&We(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:Oy,Message:RI,ChatBox:MI,WelcomeComponent:NI,ChoiceDialog:Iy,ProgressBar:th,InputBox:wI,SkillsLibraryViewer:CI,Toast:Fh,MessageBox:VI,ProgressBar:th,UniversalForm:Dy,YesNoDialog:HI,PersonalityEditor:qI,PopupViewer:YI,ActionButton:Q3,SocialIcon:X3,MountedPersonalities:$I},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},"$store.state.config.fun_mode":function(n,e){console.log(`Fun mode changed from ${e} to ${n}! 🎉`)},"$store.state.isConnected":function(n,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),We(()=>{Ze.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(n){console.log("progress_visibility changed to "+n)},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){We(()=>{Ze.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){We(()=>{Ze.replace()})}},computed:{parsedPlaceholders(){const n=new Map;return this.placeholders.forEach(e=>{const t=$Et(e);n.set(t.fullText,t)}),Array.from(n.values())},filteredBindings(){return this.installedBindings.filter(n=>n.name.toLowerCase().includes(this.bindingSearchQuery.toLowerCase()))},filteredModels(){return this.installedModels.filter(n=>n.name.toLowerCase().includes(this.modelSearchQuery.toLowerCase()))},filteredPersonalities(){return this.mountedPersonalities.filter(n=>n.name.toLowerCase().includes(this.personalitySearchQuery.toLowerCase()))},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},binding_name(){return this.$store.state.config.binding_name},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},mountedPersonalities(){return this.$store.state.mountedPersArr},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},installedBindings(){return this.$store.state.installedBindings},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},isFullMode(){return this.$store.state.view_mode==="full"},storeLogo(){return this.$store.state.config?Ai:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Ai},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...A6({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?this.$store.state.version:"..."}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},personality(){console.log("personality:",this.$store.state.config.personalities[this.$store.state.config.active_personality_id]);const n=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];console.log("peronslities",this.$store.state.personalities[0]);const e=this.$store.state.personalities.find(t=>t.full_path===n);return console.log("personality:",e),e},prompts_list(){return console.log(this.personality.prompts_list),this.personality.prompts_list},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady(){return this.$store.state.ready},databases(){return this.$store.state.databases},client_id(){return rt.id},showLeftPanel(){return console.log("showLeftPanel"),console.log(this.$store.state.leftPanelCollapsed),this.$store.state.ready&&!this.$store.state.leftPanelCollapsed},showRightPanel(){return console.log("showRightPanel"),console.log(this.$store.state.rightPanelCollapsed),this.$store.state.ready&&!this.$store.state.rightPanelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return We(()=>{Ze.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},jEt=Object.assign(KEt,{__name:"DiscussionsView",setup(n){return Ji(()=>{zI()}),de.defaults.baseURL="/",(e,t)=>(T(),M(je,null,[W(Cs,{name:"fade-and-fly"},{default:Ge(()=>[e.isReady?Y("",!0):(T(),M("div",Yvt,[c("div",$vt,[(T(),M(je,null,at(50,r=>c("div",{key:r,class:"absolute animate-fall animate-giggle",style:on({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})}," 🌟 ",4)),64))]),c("div",Wvt,[c("div",Kvt,[t[59]||(t[59]=c("div",{class:"text-5xl md:text-6xl font-bold text-amber-500 mb-2 hover:scale-105 transition-transform",style:{"text-shadow":`2px 2px 4px rgba(0,0,0,0.2), \r + 2px 2px 0px white, \r + -2px -2px 0px white, \r + 2px -2px 0px white, \r + -2px 2px 0px white`,background:"linear-gradient(45deg, #f59e0b, #fbbf24)","-webkit-background-clip":"text","background-clip":"text"}},[pt(" L"),c("span",{class:"animate-pulse"},"⭐"),pt("LLMS ")],-1)),t[60]||(t[60]=c("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),t[61]||(t[61]=c("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),c("p",jvt,X(e.version_info),1),c("div",{class:"interesting-facts transition-transform duration-300 cursor-pointer",onClick:t[0]||(t[0]=(...r)=>e.updateRandomFact&&e.updateRandomFact(...r))},[c("p",Qvt,[t[57]||(t[57]=c("span",{class:"font-semibold text-blue-600 dark:text-blue-400"},"🤔 Fun Fact: ",-1)),c("span",{innerHTML:e.randomFact},null,8,Xvt)])]),c("div",Zvt,[c("div",{class:"animated-progressbar-fg",style:on({width:`${e.loading_progress}%`})},null,4),c("div",{class:"absolute top-0 h-full flex items-center transition-all duration-300",style:on({left:`${e.loading_progress}%`,transform:"translateX(-50%)"})},t[58]||(t[58]=[c("p",{style:{"font-size":"48px","line-height":"1"}},"🌟",-1)]),4)])]),c("div",Jvt,[c("div",eyt,[c("p",tyt,X(e.loading_infos)+"... ",1),c("p",nyt,X(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),W(Cs,{name:"slide-right"},{default:Ge(()=>[e.showLeftPanel?(T(),M("div",ryt,[W(Pt(Ip),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ge(()=>[c("div",iyt,[c("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?Pt(Ai):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:Pt(Ai),alt:"Logo",title:"LoLLMS WebUI"},null,8,syt)]),t[62]||(t[62]=c("div",{class:"flex flex-col justify-center"},[c("div",{class:"text-center p-2"},[c("div",{class:"text-md relative inline-block"},[c("span",{class:"relative inline-block font-bold tracking-wide text-black dark:text-white"}," LoLLMS "),c("div",{class:"absolute -bottom-0.5 left-0 w-full h-0.5 bg-black dark:bg-white transform origin-left transition-transform duration-300 hover:scale-x-100 scale-x-0"})])]),c("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),c("div",oyt,[c("div",ayt,[c("button",{class:"toolbar-button",title:"Create new discussion",onClick:t[1]||(t[1]=(...r)=>e.createNewDiscussion&&e.createNewDiscussion(...r))},t[63]||(t[63]=[c("i",{"data-feather":"plus"},null,-1)])),e.loading?Y("",!0):(T(),M("div",{key:0,class:"toolbar-button",onMouseleave:t[19]||(t[19]=(...r)=>e.hideMenu&&e.hideMenu(...r))},[F(c("div",{onMouseenter:t[17]||(t[17]=(...r)=>e.showMenu&&e.showMenu(...r)),class:"absolute m-0 p-0 z-50 top-full left-0 transform bg-white dark:bg-bg-dark rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",lyt,[c("button",{class:qe(["text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",e.isCheckbox?"text-secondary dark:text-secondary-light":"text-gray-700 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:t[2]||(t[2]=r=>e.isCheckbox=!e.isCheckbox)},t[64]||(t[64]=[c("i",{"data-feather":"check-square"},null,-1)]),2),c("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Reset database, remove all discussions",onClick:t[3]||(t[3]=J(()=>{},["stop"]))},t[65]||(t[65]=[c("i",{"data-feather":"trash-2"},null,-1)])),c("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:t[4]||(t[4]=J(r=>e.database_selectorDialogVisible=!0,["stop"]))},t[66]||(t[66]=[c("i",{"data-feather":"database"},null,-1)])),c("div",cyt,[c("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:t[5]||(t[5]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),c("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95 rotate-90",title:"Import discussions",type:"button",onClick:t[6]||(t[6]=J(r=>e.$refs.fileDialog.click(),["stop"]))},t[67]||(t[67]=[c("i",{"data-feather":"log-in"},null,-1)]))]),c("div",dyt,[c("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:t[7]||(t[7]=(...r)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...r))},null,544),e.showSaveConfirmation?Y("",!0):(T(),M("button",{key:0,title:"Import discussion bundle",onClick:t[8]||(t[8]=J(r=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[68]||(t[68]=[c("i",{"data-feather":"folder"},null,-1)])))]),e.loading?Y("",!0):(T(),M("button",{key:0,type:"button",onClick:t[9]||(t[9]=J((...r)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...r),["stop"])),title:"Add this discussion content to skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[69]||(t[69]=[c("i",{"data-feather":"hard-drive"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),M("button",{key:1,type:"button",onClick:t[10]||(t[10]=J((...r)=>e.toggleSkillsLib&&e.toggleSkillsLib(...r),["stop"])),title:"Skills database is activated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[70]||(t[70]=[c("i",{"data-feather":"check-circle"},null,-1)]))):Y("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),M("button",{key:2,type:"button",onClick:t[11]||(t[11]=J((...r)=>e.toggleSkillsLib&&e.toggleSkillsLib(...r),["stop"])),title:"Skills database is deactivated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[71]||(t[71]=[c("i",{"data-feather":"x-octagon"},null,-1)]))):Y("",!0),e.loading?Y("",!0):(T(),M("button",{key:3,type:"button",onClick:t[12]||(t[12]=J((...r)=>e.showSkillsLib&&e.showSkillsLib(...r),["stop"])),title:"Show Skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[72]||(t[72]=[c("i",{"data-feather":"book"},null,-1)]))),e.loading?(T(),M("div",uyt,t[73]||(t[73]=[c("div",{role:"status"},[c("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin fill-secondary dark:fill-secondary-light",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),c("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),c("span",{class:"sr-only"},"Loading...")],-1)]))):Y("",!0),e.showSaveConfirmation?(T(),M("div",pyt,[c("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:t[13]||(t[13]=J(r=>e.showSaveConfirmation=!1,["stop"]))},t[74]||(t[74]=[c("i",{"data-feather":"x"},null,-1)])),c("button",{class:"text-3xl hover:text-green-500 dark:hover:text-green-400 duration-150 active:scale-95",title:"Confirm save changes",type:"button",onClick:t[14]||(t[14]=J(r=>e.save_configuration(),["stop"]))},t[75]||(t[75]=[c("i",{"data-feather":"check"},null,-1)]))])):Y("",!0),e.isOpen?(T(),M("div",hyt,[c("button",{onClick:t[15]||(t[15]=(...r)=>e.importDiscussions&&e.importDiscussions(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),c("button",{onClick:t[16]||(t[16]=(...r)=>e.importChatGPT&&e.importChatGPT(...r)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):Y("",!0)])],544),[[Dt,e.isMenuVisible]]),c("div",{onMouseenter:t[18]||(t[18]=(...r)=>e.showMenu&&e.showMenu(...r)),class:"menu-hover-area"},t[76]||(t[76]=[c("button",{class:"w-8 h-8",title:"Toggle menu"},[c("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?Y("",!0):(T(),M("div",{key:1,class:"toolbar-button",onMouseleave:t[25]||(t[25]=(...r)=>e.hideBindingsMenu&&e.hideBindingsMenu(...r))},[c("div",myt,[F(c("div",{onMouseenter:t[22]||(t[22]=(...r)=>e.showBindingsMenu&&e.showBindingsMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",fyt,[F(c("input",{type:"text","onUpdate:modelValue":t[20]||(t[20]=r=>e.bindingSearchQuery=r),placeholder:"Search bindings...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.bindingSearchQuery]])]),c("div",gyt,[(T(!0),M(je,null,at(e.filteredBindings,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",_yt,[c("button",{onClick:J(s=>e.setBinding(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:r.icon?r.icon:Pt(wr),onError:t[21]||(t[21]=(...s)=>Pt(wr)&&Pt(wr)(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.binding_name}])},null,42,vyt)],8,byt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,yyt)]),c("div",Eyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.setBinding(r),["prevent"])},X(r.name),9,Syt),c("div",xyt,[c("button",{onClick:J(s=>e.showModelConfig(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},t[77]||(t[77]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)]),8,Tyt)])])]))),128))])],544),[[Dt,e.isBindingsMenuVisible]]),c("div",{onMouseenter:t[24]||(t[24]=(...r)=>e.showBindingsMenu&&e.showBindingsMenu(...r)),class:"bindings-hover-area"},[c("button",{onClick:t[23]||(t[23]=J(r=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[c("img",{src:e.currentBindingIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:e.currentBinding?e.currentBinding.name:"unknown"},null,8,wyt)])],32)])],32)),e.loading?Y("",!0):(T(),M("div",{key:2,class:"toolbar-button",onMouseleave:t[31]||(t[31]=(...r)=>e.hideModelsMenu&&e.hideModelsMenu(...r))},[c("div",Cyt,[F(c("div",{onMouseenter:t[28]||(t[28]=(...r)=>e.showModelsMenu&&e.showModelsMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",Ayt,[F(c("input",{type:"text","onUpdate:modelValue":t[26]||(t[26]=r=>e.modelSearchQuery=r),placeholder:"Search models...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.modelSearchQuery]])]),c("div",Ryt,[(T(!0),M(je,null,at(e.filteredModels,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",Myt,[c("button",{onClick:J(s=>e.setModel(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:r.icon?r.icon:Pt(wr),onError:t[27]||(t[27]=(...s)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":r.name==e.model_name}])},null,42,kyt)],8,Nyt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,Iyt)]),c("div",Oyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.setModel(r),["prevent"])},X(r.name),9,Dyt),c("div",Lyt,[c("button",{onClick:J(s=>e.copyModelNameFrom(r.name),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Copy Model Name"},t[78]||(t[78]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Pyt)])])]))),128))])],544),[[Dt,e.isModelsMenuVisible]]),c("div",{onMouseenter:t[30]||(t[30]=(...r)=>e.showModelsMenu&&e.showModelsMenu(...r)),class:"models-hover-area"},[c("button",{onClick:t[29]||(t[29]=J(r=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[c("img",{src:e.currentModelIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:e.currentModel?e.currentModel.name:"unknown"},null,8,Fyt)])],32)])],32)),e.loading?Y("",!0):(T(),M("div",{key:3,class:"toolbar-button",onMouseleave:t[36]||(t[36]=(...r)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...r))},[c("div",Uyt,[F(c("div",{onMouseenter:t[34]||(t[34]=(...r)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...r)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-80 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[c("div",Byt,[F(c("input",{type:"text","onUpdate:modelValue":t[32]||(t[32]=r=>e.personalitySearchQuery=r),placeholder:"Search personalities...",class:"w-full px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500"},null,512),[[_e,e.personalitySearchQuery]])]),c("div",Gyt,[(T(!0),M(je,null,at(e.filteredPersonalities,(r,i)=>(T(),M("div",{key:i,class:"relative group/item flex flex-col items-center"},[c("div",zyt,[c("button",{onClick:J(s=>e.onPersonalitySelected(r),["prevent"]),title:r.name,class:"w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-105 focus:outline-none"},[c("img",{src:Pt(WEt)+r.avatar,onError:t[33]||(t[33]=(...s)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...s)),alt:r.name,class:qe(["w-full h-full object-cover",{"border-2 border-secondary":e.$store.state.active_personality_id==e.$store.state.personalities.indexOf(r.full_path)}])},null,42,Hyt)],8,Vyt),c("span",{class:"mt-1 text-xs text-center w-full truncate",title:r.name},X(r.name),9,qyt)]),c("div",Yyt,[c("span",{class:"text-xs font-medium mb-2 text-center",onClick:J(s=>e.onPersonalitySelected(r),["prevent"])},X(r.name),9,$yt),c("div",Wyt,[c("button",{onClick:J(s=>e.unmountPersonality(r),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},t[79]||(t[79]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,Kyt),c("button",{onClick:J(s=>e.remount_personality(r),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},t[80]||(t[80]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]),8,jyt),c("button",{onClick:J(s=>e.handleOnTalk(r),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none",title:"Talk"},t[81]||(t[81]=[c("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]),8,Qyt)])])]))),128))])],544),[[Dt,e.isPersonalitiesMenuVisible]]),c("div",{onMouseenter:t[35]||(t[35]=(...r)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...r)),class:"personalities-hover-area"},[W($I,{ref:"mountedPers",onShowPersList:e.onShowPersListFun,onReady:e.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32)])],32))])]),c("div",Xyt,[c("form",{onSubmit:t[39]||(t[39]=J((...r)=>e.handleSearch&&e.handleSearch(...r),["prevent"])),class:"relative"},[c("div",Zyt,[c("div",Jyt,[F(c("input",{type:"search",id:"default-search",class:"block w-full h-8 px-8 text-sm border border-gray-300 rounded-md bg-bg-light focus:ring-1 focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary transition-all duration-200",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":t[37]||(t[37]=r=>e.filterTitle=r),onKeyup:t[38]||(t[38]=ui((...r)=>e.handleSearch&&e.handleSearch(...r),["enter"]))},null,544),[[_e,e.filterTitle]]),t[82]||(t[82]=c("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[c("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),t[83]||(t[83]=c("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-600 hover:text-secondary rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-1 focus:ring-secondary transition-all duration-150 active:scale-98",title:"Search"},[c("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(T(),M("div",eEt,[c("div",tEt,[e.selectedDiscussions.length>0?(T(),M("p",nEt,"Selected: "+X(e.selectedDiscussions.length),1)):Y("",!0),e.selectedDiscussions.length>0?(T(),M("div",rEt,[e.showConfirmation?Y("",!0):(T(),M("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[40]||(t[40]=J(r=>e.showConfirmation=!0,["stop"]))},t[84]||(t[84]=[c("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(T(),M("div",iEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[41]||(t[41]=J((...r)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...r),["stop"]))},t[85]||(t[85]=[c("i",{"data-feather":"check"},null,-1)])),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[42]||(t[42]=J(r=>e.showConfirmation=!1,["stop"]))},t[86]||(t[86]=[c("i",{"data-feather":"x"},null,-1)]))])):Y("",!0)])):Y("",!0),c("div",sEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[43]||(t[43]=J((...r)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...r),["stop"]))},t[87]||(t[87]=[c("i",{"data-feather":"codepen"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[44]||(t[44]=J((...r)=>e.exportDiscussions&&e.exportDiscussions(...r),["stop"]))},t[88]||(t[88]=[c("i",{"data-feather":"folder"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[45]||(t[45]=J((...r)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...r),["stop"]))},t[89]||(t[89]=[c("i",{"data-feather":"bookmark"},null,-1)])),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[46]||(t[46]=J((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},t[90]||(t[90]=[c("i",{"data-feather":"list"},null,-1)]))])])])):Y("",!0),c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:t[47]||(t[47]=J(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",oEt,[c("div",{class:qe(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:qe([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),Tt(As,{key:0,name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(e.list,(r,i)=>(T(),Tt(Oy,{key:r.id,id:r.id,title:r.title,selected:e.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:e.isCheckbox,checkBoxValue:r.checkBoxValue,onSelect:s=>e.selectDiscussion(r),onDelete:s=>e.deleteDiscussion(r.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):Y("",!0),e.list.length<1?(T(),M("div",aEt,t[91]||(t[91]=[c("p",{class:"px-3"},"No discussions are found",-1)]))):Y("",!0),t[92]||(t[92]=c("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1))],2)],2)])],32),c("div",lEt,[c("div",{class:"h-15 w-full py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[48]||(t[48]=(...r)=>e.showDatabaseSelector&&e.showDatabaseSelector(...r))},[c("p",cEt,X(e.formatted_database_name.replace("_"," ")),1)])])])):Y("",!0)]),_:1}),e.isReady?(T(),M("div",dEt,[c("div",{id:"messages-list",class:qe(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[c("div",uEt,[e.discussionArr.length>0?(T(),Tt(As,{key:0,name:"list"},{default:Ge(()=>[(T(!0),M(je,null,at(e.discussionArr,(r,i)=>(T(),Tt(RI,{key:r.id,message:r,id:"msg-"+r.id,ref_for:!0,ref:"msg-"+r.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(r.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),M("div",pEt,[t[97]||(t[97]=c("h2",{class:"text-2xl font-bold mb-6 text-gray-800 dark:text-gray-200"},"Prompt Examples",-1)),c("div",hEt,[c("div",mEt,[(T(!0),M(je,null,at(e.personality.prompts_list,(r,i)=>(T(),M("div",{title:e.extractTitle(r),key:i,onClick:s=>e.handlePromptSelection(r),class:"flex-shrink-0 w-[300px] bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-6 cursor-pointer hover:shadow-xl transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between min-h-[220px] group"},[c("div",gEt,[c("h3",{class:"font-bold text-lg text-gray-900 dark:text-gray-100 mb-2 truncate",title:e.extractTitle(r)},X(e.extractTitle(r)),9,_Et),c("div",{title:r,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden line-clamp-4"},X(e.getPromptContent(r)),9,bEt)]),t[93]||(t[93]=c("div",{class:"mt-4 text-sm font-medium text-blue-600 dark:text-blue-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1))],8,fEt))),128))])]),e.showPlaceholderModal?(T(),M("div",vEt,[c("div",yEt,[t[96]||(t[96]=c("h3",{class:"text-lg font-semibold mb-4"},"Fill in the placeholders",-1)),c("div",EEt,[c("div",SEt,[t[94]||(t[94]=c("h4",{class:"text-sm font-medium mb-2 text-gray-600 dark:text-gray-400"},"Live Preview:",-1)),c("div",xEt,[c("span",TEt,X(e.getPromptContent(e.previewPrompt)),1)])]),c("div",wEt,[c("div",CEt,[(T(!0),M(je,null,at(e.parsedPlaceholders,(r,i)=>(T(),M("div",{key:r.fullText,class:"flex flex-col"},[c("label",{for:"placeholder-"+i,class:"text-sm font-medium mb-1"},X(r.label),9,AEt),r.type==="text"?F((T(),M("input",{key:0,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"text",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",placeholder:r.label,onInput:t[49]||(t[49]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,REt)),[[_e,e.placeholderValues[i]]]):Y("",!0),r.type==="int"?F((T(),M("input",{key:1,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"number",step:"1",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[50]||(t[50]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,MEt)),[[_e,e.placeholderValues[i],void 0,{number:!0}]]):Y("",!0),r.type==="float"?F((T(),M("input",{key:2,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,type:"number",step:"0.01",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[51]||(t[51]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,NEt)),[[_e,e.placeholderValues[i],void 0,{number:!0}]]):Y("",!0),r.type==="multiline"?F((T(),M("textarea",{key:3,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,rows:"4",class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onInput:t[52]||(t[52]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,kEt)),[[_e,e.placeholderValues[i]]]):Y("",!0),r.type==="code"?(T(),M("div",IEt,[c("div",OEt,X(r.language||"Plain text"),1),F(c("textarea",{id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,rows:"8",class:"w-full p-2 font-mono bg-gray-100 dark:bg-gray-900 border-t",onInput:t[53]||(t[53]=(...s)=>e.updatePreview&&e.updatePreview(...s))},null,40,DEt),[[_e,e.placeholderValues[i]]])])):Y("",!0),r.type==="options"?F((T(),M("select",{key:5,id:"placeholder-"+i,"onUpdate:modelValue":s=>e.placeholderValues[i]=s,class:"border rounded-md p-2 dark:bg-gray-700 dark:border-gray-600",onChange:t[54]||(t[54]=(...s)=>e.updatePreview&&e.updatePreview(...s))},[t[95]||(t[95]=c("option",{value:"",disabled:""},"Select an option",-1)),(T(!0),M(je,null,at(r.options,s=>(T(),M("option",{key:s,value:s},X(s),9,PEt))),128))],40,LEt)),[[Qt,e.placeholderValues[i]]]):Y("",!0)]))),128))])])]),c("div",FEt,[c("button",{onClick:t[55]||(t[55]=(...r)=>e.cancelPlaceholders&&e.cancelPlaceholders(...r)),class:"px-4 py-2 text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200"}," Cancel "),c("button",{onClick:t[56]||(t[56]=(...r)=>e.applyPlaceholders&&e.applyPlaceholders(...r)),class:"px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"}," Apply ")])])])):Y("",!0)])):Y("",!0)]),_:1})):Y("",!0),e.currentDiscussion.id?Y("",!0):(T(),Tt(NI,{key:1})),t[98]||(t[98]=c("div",null,[c("br"),c("br"),c("br"),c("br"),c("br"),c("br"),c("br")],-1))]),t[99]||(t[99]=c("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1))],2),e.currentDiscussion.id?(T(),M("div",UEt,[W(MI,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):Y("",!0)])):Y("",!0),W(Cs,{name:"slide-left"},{default:Ge(()=>[e.showRightPanel?(T(),M("div",BEt,[c("div",GEt,null,512)])):Y("",!0)]),_:1}),W(Iy,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,"can-remove":!0,onChoiceRemoved:e.ondatabase_selectorDialogRemoved,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceRemoved","onChoiceSelected","onCloseDialog","onChoiceValidated"]),F(c("div",zEt,[W(th,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",VEt,X(e.loading_infos)+" ...",1)],512),[[Dt,e.progress_visibility]]),W(wI,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),W(CI,{ref:"skills_lib"},null,512),W(Fh,{ref:"toast"},null,512),W(VI,{ref:"messageBox"},null,512),F(c("div",HEt,[W(th,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",qEt,X(e.loading_infos)+" ...",1)],512),[[Dt,e.progress_visibility]]),W(Dy,{ref:"universalForm",class:"z-20"},null,512),W(HI,{ref:"yesNoDialog",class:"z-20"},null,512),W(qI,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),c("div",YEt,[W(YI,{ref:"news"},null,512)])],64))}}),QEt=bt(jEt,[["__scopeId","data-v-aebfa1b8"]]);/** + * @license + * Copyright 2010-2023 Three.js Authors + * SPDX-License-Identifier: MIT + */const $y="159",XEt=0,xA=1,ZEt=2,WI=1,JEt=2,bs=3,Fs=0,kr=1,Vi=2,So=0,bl=1,TA=2,wA=3,CA=4,eSt=5,ra=100,tSt=101,nSt=102,AA=103,RA=104,rSt=200,iSt=201,sSt=202,oSt=203,k1=204,I1=205,aSt=206,lSt=207,cSt=208,dSt=209,uSt=210,pSt=211,hSt=212,mSt=213,fSt=214,gSt=0,_St=1,bSt=2,nh=3,vSt=4,ySt=5,ESt=6,SSt=7,Wy=0,xSt=1,TSt=2,xo=0,wSt=1,CSt=2,ASt=3,RSt=4,MSt=5,MA="attached",NSt="detached",KI=300,Ol=301,Dl=302,O1=303,D1=304,am=306,Ll=1e3,Jr=1001,rh=1002,$n=1003,L1=1004,mp=1005,Cr=1006,jI=1007,Ta=1008,To=1009,kSt=1010,ISt=1011,Ky=1012,QI=1013,bo=1014,xs=1015,_d=1016,XI=1017,ZI=1018,ha=1020,OSt=1021,ei=1023,DSt=1024,LSt=1025,ma=1026,Pl=1027,PSt=1028,JI=1029,FSt=1030,eO=1031,tO=1033,Z0=33776,J0=33777,eb=33778,tb=33779,NA=35840,kA=35841,IA=35842,OA=35843,nO=36196,DA=37492,LA=37496,PA=37808,FA=37809,UA=37810,BA=37811,GA=37812,zA=37813,VA=37814,HA=37815,qA=37816,YA=37817,$A=37818,WA=37819,KA=37820,jA=37821,nb=36492,QA=36494,XA=36495,USt=36283,ZA=36284,JA=36285,eR=36286,bd=2300,Fl=2301,rb=2302,tR=2400,nR=2401,rR=2402,BSt=2500,GSt=0,rO=1,P1=2,iO=3e3,fa=3001,zSt=3200,VSt=3201,jy=0,HSt=1,ti="",Mn="srgb",er="srgb-linear",Qy="display-p3",lm="display-p3-linear",ih="linear",bn="srgb",sh="rec709",oh="p3",Ba=7680,iR=519,qSt=512,YSt=513,$St=514,sO=515,WSt=516,KSt=517,jSt=518,QSt=519,F1=35044,sR="300 es",U1=1035,Ts=2e3,ah=2001;class sc{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[e]===void 0&&(r[e]=[]),r[e].indexOf(t)===-1&&r[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const r=this._listeners;return r[e]!==void 0&&r[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const r=this._listeners[e.type];if(r!==void 0){e.target=this;const i=r.slice(0);for(let s=0,o=i.length;s>8&255]+rr[n>>16&255]+rr[n>>24&255]+"-"+rr[e&255]+rr[e>>8&255]+"-"+rr[e>>16&15|64]+rr[e>>24&255]+"-"+rr[t&63|128]+rr[t>>8&255]+"-"+rr[t>>16&255]+rr[t>>24&255]+rr[r&255]+rr[r>>8&255]+rr[r>>16&255]+rr[r>>24&255]).toLowerCase()}function or(n,e,t){return Math.max(e,Math.min(t,n))}function Xy(n,e){return(n%e+e)%e}function XSt(n,e,t,r,i){return r+(n-e)*(i-r)/(t-e)}function ZSt(n,e,t){return n!==e?(t-n)/(e-n):0}function Xc(n,e,t){return(1-t)*n+t*e}function JSt(n,e,t,r){return Xc(n,e,1-Math.exp(-t*r))}function e2t(n,e=1){return e-Math.abs(Xy(n,e*2)-e)}function t2t(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function n2t(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function r2t(n,e){return n+Math.floor(Math.random()*(e-n+1))}function i2t(n,e){return n+Math.random()*(e-n)}function s2t(n){return n*(.5-Math.random())}function o2t(n){n!==void 0&&(oR=n);let e=oR+=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 a2t(n){return n*Qc}function l2t(n){return n*Ul}function B1(n){return(n&n-1)===0&&n!==0}function c2t(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function lh(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function d2t(n,e,t,r,i){const s=Math.cos,o=Math.sin,a=s(t/2),l=o(t/2),d=s((e+r)/2),u=o((e+r)/2),m=s((e-r)/2),f=o((e-r)/2),g=s((r-e)/2),h=o((r-e)/2);switch(i){case"XYX":n.set(a*u,l*m,l*f,a*d);break;case"YZY":n.set(l*f,a*u,l*m,a*d);break;case"ZXZ":n.set(l*m,l*f,a*u,a*d);break;case"XZX":n.set(a*u,l*h,l*g,a*d);break;case"YXY":n.set(l*g,a*u,l*h,a*d);break;case"ZYZ":n.set(l*h,l*g,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function Hi(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function an(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const u2t={DEG2RAD:Qc,RAD2DEG:Ul,generateUUID:Ri,clamp:or,euclideanModulo:Xy,mapLinear:XSt,inverseLerp:ZSt,lerp:Xc,damp:JSt,pingpong:e2t,smoothstep:t2t,smootherstep:n2t,randInt:r2t,randFloat:i2t,randFloatSpread:s2t,seededRandom:o2t,degToRad:a2t,radToDeg:l2t,isPowerOfTwo:B1,ceilPowerOfTwo:c2t,floorPowerOfTwo:lh,setQuaternionFromProperEuler:d2t,normalize:an,denormalize:Hi};class $t{constructor(e=0,t=0){$t.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,r=this.y,i=e.elements;return this.x=i[0]*t+i[3]*r+i[6],this.y=i[1]*t+i[4]*r+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(or(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y;return t*t+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const r=Math.cos(t),i=Math.sin(t),s=this.x-e.x,o=this.y-e.y;return this.x=s*r-o*i+e.x,this.y=s*i+o*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Vt{constructor(e,t,r,i,s,o,a,l,d){Vt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,r,i,s,o,a,l,d)}set(e,t,r,i,s,o,a,l,d){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=t,u[4]=s,u[5]=l,u[6]=r,u[7]=o,u[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],this}extractBasis(e,t,r){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,s=this.elements,o=r[0],a=r[3],l=r[6],d=r[1],u=r[4],m=r[7],f=r[2],g=r[5],h=r[8],v=i[0],b=i[3],_=i[6],y=i[1],E=i[4],x=i[7],A=i[2],w=i[5],N=i[8];return s[0]=o*v+a*y+l*A,s[3]=o*b+a*E+l*w,s[6]=o*_+a*x+l*N,s[1]=d*v+u*y+m*A,s[4]=d*b+u*E+m*w,s[7]=d*_+u*x+m*N,s[2]=f*v+g*y+h*A,s[5]=f*b+g*E+h*w,s[8]=f*_+g*x+h*N,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8];return t*o*u-t*a*d-r*s*u+r*a*l+i*s*d-i*o*l}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8],m=u*o-a*d,f=a*l-u*s,g=d*s-o*l,h=t*m+r*f+i*g;if(h===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/h;return e[0]=m*v,e[1]=(i*d-u*r)*v,e[2]=(a*r-i*o)*v,e[3]=f*v,e[4]=(u*t-i*l)*v,e[5]=(i*s-a*t)*v,e[6]=g*v,e[7]=(r*l-d*t)*v,e[8]=(o*t-r*s)*v,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,r,i,s,o,a){const l=Math.cos(s),d=Math.sin(s);return this.set(r*l,r*d,-r*(l*o+d*a)+o+e,-i*d,i*l,-i*(-d*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(ib.makeScale(e,t)),this}rotate(e){return this.premultiply(ib.makeRotation(-e)),this}translate(e,t){return this.premultiply(ib.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,r,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<9;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<9;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const ib=new Vt;function oO(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function vd(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function p2t(){const n=vd("canvas");return n.style.display="block",n}const aR={};function Zc(n){n in aR||(aR[n]=!0,console.warn(n))}const lR=new Vt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),cR=new Vt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Su={[er]:{transfer:ih,primaries:sh,toReference:n=>n,fromReference:n=>n},[Mn]:{transfer:bn,primaries:sh,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[lm]:{transfer:ih,primaries:oh,toReference:n=>n.applyMatrix3(cR),fromReference:n=>n.applyMatrix3(lR)},[Qy]:{transfer:bn,primaries:oh,toReference:n=>n.convertSRGBToLinear().applyMatrix3(cR),fromReference:n=>n.applyMatrix3(lR).convertLinearToSRGB()}},h2t=new Set([er,lm]),tn={enabled:!0,_workingColorSpace:er,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!h2t.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const r=Su[e].toReference,i=Su[t].fromReference;return i(r(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Su[n].primaries},getTransfer:function(n){return n===ti?ih:Su[n].transfer}};function vl(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function sb(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Ga;class aO{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Ga===void 0&&(Ga=vd("canvas")),Ga.width=e.width,Ga.height=e.height;const r=Ga.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),t=Ga}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=vd("canvas");t.width=e.width,t.height=e.height;const r=t.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),s=i.data;for(let o=0;o0&&(r.userData=this.userData),t||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==KI)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ll:e.x=e.x-Math.floor(e.x);break;case Jr:e.x=e.x<0?0:1;break;case rh:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ll:e.y=e.y-Math.floor(e.y);break;case Jr:e.y=e.y<0?0:1;break;case rh:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Zc("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===Mn?fa:iO}set encoding(e){Zc("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===fa?Mn:ti}}Jn.DEFAULT_IMAGE=null;Jn.DEFAULT_MAPPING=KI;Jn.DEFAULT_ANISOTROPY=1;class mn{constructor(e=0,t=0,r=0,i=1){mn.prototype.isVector4=!0,this.x=e,this.y=t,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,r,i){return this.x=e,this.y=t,this.z=r,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,s=this.w,o=e.elements;return this.x=o[0]*t+o[4]*r+o[8]*i+o[12]*s,this.y=o[1]*t+o[5]*r+o[9]*i+o[13]*s,this.z=o[2]*t+o[6]*r+o[10]*i+o[14]*s,this.w=o[3]*t+o[7]*r+o[11]*i+o[15]*s,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,r,i,s;const l=e.elements,d=l[0],u=l[4],m=l[8],f=l[1],g=l[5],h=l[9],v=l[2],b=l[6],_=l[10];if(Math.abs(u-f)<.01&&Math.abs(m-v)<.01&&Math.abs(h-b)<.01){if(Math.abs(u+f)<.1&&Math.abs(m+v)<.1&&Math.abs(h+b)<.1&&Math.abs(d+g+_-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const E=(d+1)/2,x=(g+1)/2,A=(_+1)/2,w=(u+f)/4,N=(m+v)/4,L=(h+b)/4;return E>x&&E>A?E<.01?(r=0,i=.707106781,s=.707106781):(r=Math.sqrt(E),i=w/r,s=N/r):x>A?x<.01?(r=.707106781,i=0,s=.707106781):(i=Math.sqrt(x),r=w/i,s=L/i):A<.01?(r=.707106781,i=.707106781,s=0):(s=Math.sqrt(A),r=N/s,i=L/s),this.set(r,i,s,t),this}let y=Math.sqrt((b-h)*(b-h)+(m-v)*(m-v)+(f-u)*(f-u));return Math.abs(y)<.001&&(y=1),this.x=(b-h)/y,this.y=(m-v)/y,this.z=(f-u)/y,this.w=Math.acos((d+g+_-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this.w=e.w+(t.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class g2t extends sc{constructor(e=1,t=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new mn(0,0,e,t),this.scissorTest=!1,this.viewport=new mn(0,0,e,t);const i={width:e,height:t,depth:1};r.encoding!==void 0&&(Zc("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),r.colorSpace=r.encoding===fa?Mn:ti),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Cr,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},r),this.texture=new Jn(i,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=r.generateMipmaps,this.texture.internalFormat=r.internalFormat,this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.depthTexture=r.depthTexture,this.samples=r.samples}setSize(e,t,r=1){(this.width!==e||this.height!==t||this.depth!==r)&&(this.width=e,this.height=t,this.depth=r,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new lO(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 wa extends g2t{constructor(e=1,t=1,r={}){super(e,t,r),this.isWebGLRenderTarget=!0}}class cO extends Jn{constructor(e=null,t=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=$n,this.minFilter=$n,this.wrapR=Jr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class _2t extends Jn{constructor(e=null,t=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=$n,this.minFilter=$n,this.wrapR=Jr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Bo{constructor(e=0,t=0,r=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=r,this._w=i}static slerpFlat(e,t,r,i,s,o,a){let l=r[i+0],d=r[i+1],u=r[i+2],m=r[i+3];const f=s[o+0],g=s[o+1],h=s[o+2],v=s[o+3];if(a===0){e[t+0]=l,e[t+1]=d,e[t+2]=u,e[t+3]=m;return}if(a===1){e[t+0]=f,e[t+1]=g,e[t+2]=h,e[t+3]=v;return}if(m!==v||l!==f||d!==g||u!==h){let b=1-a;const _=l*f+d*g+u*h+m*v,y=_>=0?1:-1,E=1-_*_;if(E>Number.EPSILON){const A=Math.sqrt(E),w=Math.atan2(A,_*y);b=Math.sin(b*w)/A,a=Math.sin(a*w)/A}const x=a*y;if(l=l*b+f*x,d=d*b+g*x,u=u*b+h*x,m=m*b+v*x,b===1-a){const A=1/Math.sqrt(l*l+d*d+u*u+m*m);l*=A,d*=A,u*=A,m*=A}}e[t]=l,e[t+1]=d,e[t+2]=u,e[t+3]=m}static multiplyQuaternionsFlat(e,t,r,i,s,o){const a=r[i],l=r[i+1],d=r[i+2],u=r[i+3],m=s[o],f=s[o+1],g=s[o+2],h=s[o+3];return e[t]=a*h+u*m+l*g-d*f,e[t+1]=l*h+u*f+d*m-a*g,e[t+2]=d*h+u*g+a*f-l*m,e[t+3]=u*h-a*m-l*f-d*g,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,r,i){return this._x=e,this._y=t,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const r=e._x,i=e._y,s=e._z,o=e._order,a=Math.cos,l=Math.sin,d=a(r/2),u=a(i/2),m=a(s/2),f=l(r/2),g=l(i/2),h=l(s/2);switch(o){case"XYZ":this._x=f*u*m+d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m-f*g*h;break;case"YXZ":this._x=f*u*m+d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m+f*g*h;break;case"ZXY":this._x=f*u*m-d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m-f*g*h;break;case"ZYX":this._x=f*u*m-d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m+f*g*h;break;case"YZX":this._x=f*u*m+d*g*h,this._y=d*g*m+f*u*h,this._z=d*u*h-f*g*m,this._w=d*u*m-f*g*h;break;case"XZY":this._x=f*u*m-d*g*h,this._y=d*g*m-f*u*h,this._z=d*u*h+f*g*m,this._w=d*u*m+f*g*h;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const r=t/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,r=t[0],i=t[4],s=t[8],o=t[1],a=t[5],l=t[9],d=t[2],u=t[6],m=t[10],f=r+a+m;if(f>0){const g=.5/Math.sqrt(f+1);this._w=.25/g,this._x=(u-l)*g,this._y=(s-d)*g,this._z=(o-i)*g}else if(r>a&&r>m){const g=2*Math.sqrt(1+r-a-m);this._w=(u-l)/g,this._x=.25*g,this._y=(i+o)/g,this._z=(s+d)/g}else if(a>m){const g=2*Math.sqrt(1+a-r-m);this._w=(s-d)/g,this._x=(i+o)/g,this._y=.25*g,this._z=(l+u)/g}else{const g=2*Math.sqrt(1+m-r-a);this._w=(o-i)/g,this._x=(s+d)/g,this._y=(l+u)/g,this._z=.25*g}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let r=e.dot(t)+1;return rMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(or(this.dot(e),-1,1)))}rotateTowards(e,t){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,t/r);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const r=e._x,i=e._y,s=e._z,o=e._w,a=t._x,l=t._y,d=t._z,u=t._w;return this._x=r*u+o*a+i*d-s*l,this._y=i*u+o*l+s*a-r*d,this._z=s*u+o*d+r*l-i*a,this._w=o*u-r*a-i*l-s*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const r=this._x,i=this._y,s=this._z,o=this._w;let a=o*e._w+r*e._x+i*e._y+s*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=r,this._y=i,this._z=s,this;const l=1-a*a;if(l<=Number.EPSILON){const g=1-t;return this._w=g*o+t*this._w,this._x=g*r+t*this._x,this._y=g*i+t*this._y,this._z=g*s+t*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(l),u=Math.atan2(d,a),m=Math.sin((1-t)*u)/d,f=Math.sin(t*u)/d;return this._w=o*m+this._w*f,this._x=r*m+this._x*f,this._y=i*m+this._y*f,this._z=s*m+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,r){return this.copy(e).slerp(t,r)}random(){const e=Math.random(),t=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),s=2*Math.PI*Math.random();return this.set(t*Math.cos(i),r*Math.sin(s),r*Math.cos(s),t*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class he{constructor(e=0,t=0,r=0){he.prototype.isVector3=!0,this.x=e,this.y=t,this.z=r}set(e,t,r){return r===void 0&&(r=this.z),this.x=e,this.y=t,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(dR.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(dR.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*t+s[3]*r+s[6]*i,this.y=s[1]*t+s[4]*r+s[7]*i,this.z=s[2]*t+s[5]*r+s[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,s=e.elements,o=1/(s[3]*t+s[7]*r+s[11]*i+s[15]);return this.x=(s[0]*t+s[4]*r+s[8]*i+s[12])*o,this.y=(s[1]*t+s[5]*r+s[9]*i+s[13])*o,this.z=(s[2]*t+s[6]*r+s[10]*i+s[14])*o,this}applyQuaternion(e){const t=this.x,r=this.y,i=this.z,s=e.x,o=e.y,a=e.z,l=e.w,d=2*(o*i-a*r),u=2*(a*t-s*i),m=2*(s*r-o*t);return this.x=t+l*d+o*m-a*u,this.y=r+l*u+a*d-s*m,this.z=i+l*m+s*u-o*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,r=this.y,i=this.z,s=e.elements;return this.x=s[0]*t+s[4]*r+s[8]*i,this.y=s[1]*t+s[5]*r+s[9]*i,this.z=s[2]*t+s[6]*r+s[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const r=e.x,i=e.y,s=e.z,o=t.x,a=t.y,l=t.z;return this.x=i*l-s*a,this.y=s*o-r*l,this.z=r*a-i*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const r=e.dot(this)/t;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return ab.copy(this).projectOnVector(e),this.sub(ab)}reflect(e){return this.sub(ab.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(or(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return t*t+r*r+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,r){const i=Math.sin(t)*e;return this.x=i*Math.sin(r),this.y=Math.cos(t)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,r){return this.x=e*Math.sin(t),this.y=r,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=r,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,r=Math.sqrt(1-e**2);return this.x=r*Math.cos(t),this.y=r*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const ab=new he,dR=new Bo;class zs{constructor(e=new he(1/0,1/0,1/0),t=new he(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,r=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,vi),vi.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,r;return e.normal.x>0?(t=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),t<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Sc),Tu.subVectors(this.max,Sc),za.subVectors(e.a,Sc),Va.subVectors(e.b,Sc),Ha.subVectors(e.c,Sc),Xs.subVectors(Va,za),Zs.subVectors(Ha,Va),$o.subVectors(za,Ha);let t=[0,-Xs.z,Xs.y,0,-Zs.z,Zs.y,0,-$o.z,$o.y,Xs.z,0,-Xs.x,Zs.z,0,-Zs.x,$o.z,0,-$o.x,-Xs.y,Xs.x,0,-Zs.y,Zs.x,0,-$o.y,$o.x,0];return!lb(t,za,Va,Ha,Tu)||(t=[1,0,0,0,1,0,0,0,1],!lb(t,za,Va,Ha,Tu))?!1:(wu.crossVectors(Xs,Zs),t=[wu.x,wu.y,wu.z],lb(t,za,Va,Ha,Tu))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,vi).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(vi).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(us[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),us[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),us[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),us[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),us[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),us[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),us[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),us[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(us),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const us=[new he,new he,new he,new he,new he,new he,new he,new he],vi=new he,xu=new zs,za=new he,Va=new he,Ha=new he,Xs=new he,Zs=new he,$o=new he,Sc=new he,Tu=new he,wu=new he,Wo=new he;function lb(n,e,t,r,i){for(let s=0,o=n.length-3;s<=o;s+=3){Wo.fromArray(n,s);const a=i.x*Math.abs(Wo.x)+i.y*Math.abs(Wo.y)+i.z*Math.abs(Wo.z),l=e.dot(Wo),d=t.dot(Wo),u=r.dot(Wo);if(Math.max(-Math.max(l,d,u),Math.min(l,d,u))>a)return!1}return!0}const b2t=new zs,xc=new he,cb=new he;class ss{constructor(e=new he,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const r=this.center;t!==void 0?r.copy(t):b2t.setFromPoints(e).getCenter(r);let i=0;for(let s=0,o=e.length;sthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;xc.subVectors(e,this.center);const t=xc.lengthSq();if(t>this.radius*this.radius){const r=Math.sqrt(t),i=(r-this.radius)*.5;this.center.addScaledVector(xc,i/r),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(cb.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(xc.copy(e.center).add(cb)),this.expandByPoint(xc.copy(e.center).sub(cb))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ps=new he,db=new he,Cu=new he,Js=new he,ub=new he,Au=new he,pb=new he;class cm{constructor(e=new he,t=new he(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ps)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const r=t.dot(this.direction);return r<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=ps.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ps.copy(this.origin).addScaledVector(this.direction,t),ps.distanceToSquared(e))}distanceSqToSegment(e,t,r,i){db.copy(e).add(t).multiplyScalar(.5),Cu.copy(t).sub(e).normalize(),Js.copy(this.origin).sub(db);const s=e.distanceTo(t)*.5,o=-this.direction.dot(Cu),a=Js.dot(this.direction),l=-Js.dot(Cu),d=Js.lengthSq(),u=Math.abs(1-o*o);let m,f,g,h;if(u>0)if(m=o*l-a,f=o*a-l,h=s*u,m>=0)if(f>=-h)if(f<=h){const v=1/u;m*=v,f*=v,g=m*(m+o*f+2*a)+f*(o*m+f+2*l)+d}else f=s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;else f=-s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;else f<=-h?(m=Math.max(0,-(-o*s+a)),f=m>0?-s:Math.min(Math.max(-s,-l),s),g=-m*m+f*(f+2*l)+d):f<=h?(m=0,f=Math.min(Math.max(-s,-l),s),g=f*(f+2*l)+d):(m=Math.max(0,-(o*s+a)),f=m>0?s:Math.min(Math.max(-s,-l),s),g=-m*m+f*(f+2*l)+d);else f=o>0?-s:s,m=Math.max(0,-(o*f+a)),g=-m*m+f*(f+2*l)+d;return r&&r.copy(this.origin).addScaledVector(this.direction,m),i&&i.copy(db).addScaledVector(Cu,f),g}intersectSphere(e,t){ps.subVectors(e.center,this.origin);const r=ps.dot(this.direction),i=ps.dot(ps)-r*r,s=e.radius*e.radius;if(i>s)return null;const o=Math.sqrt(s-i),a=r-o,l=r+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/t;return r>=0?r:null}intersectPlane(e,t){const r=this.distanceToPlane(e);return r===null?null:this.at(r,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let r,i,s,o,a,l;const d=1/this.direction.x,u=1/this.direction.y,m=1/this.direction.z,f=this.origin;return d>=0?(r=(e.min.x-f.x)*d,i=(e.max.x-f.x)*d):(r=(e.max.x-f.x)*d,i=(e.min.x-f.x)*d),u>=0?(s=(e.min.y-f.y)*u,o=(e.max.y-f.y)*u):(s=(e.max.y-f.y)*u,o=(e.min.y-f.y)*u),r>o||s>i||((s>r||isNaN(r))&&(r=s),(o=0?(a=(e.min.z-f.z)*m,l=(e.max.z-f.z)*m):(a=(e.max.z-f.z)*m,l=(e.min.z-f.z)*m),r>l||a>i)||((a>r||r!==r)&&(r=a),(l=0?r:i,t)}intersectsBox(e){return this.intersectBox(e,ps)!==null}intersectTriangle(e,t,r,i,s){ub.subVectors(t,e),Au.subVectors(r,e),pb.crossVectors(ub,Au);let o=this.direction.dot(pb),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Js.subVectors(this.origin,e);const l=a*this.direction.dot(Au.crossVectors(Js,Au));if(l<0)return null;const d=a*this.direction.dot(ub.cross(Js));if(d<0||l+d>o)return null;const u=-a*Js.dot(pb);return u<0?null:this.at(u/o,s)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Ht{constructor(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b){Ht.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b)}set(e,t,r,i,s,o,a,l,d,u,m,f,g,h,v,b){const _=this.elements;return _[0]=e,_[4]=t,_[8]=r,_[12]=i,_[1]=s,_[5]=o,_[9]=a,_[13]=l,_[2]=d,_[6]=u,_[10]=m,_[14]=f,_[3]=g,_[7]=h,_[11]=v,_[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ht().fromArray(this.elements)}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],t[9]=r[9],t[10]=r[10],t[11]=r[11],t[12]=r[12],t[13]=r[13],t[14]=r[14],t[15]=r[15],this}copyPosition(e){const t=this.elements,r=e.elements;return t[12]=r[12],t[13]=r[13],t[14]=r[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,r){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,t,r){return this.set(e.x,t.x,r.x,0,e.y,t.y,r.y,0,e.z,t.z,r.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,r=e.elements,i=1/qa.setFromMatrixColumn(e,0).length(),s=1/qa.setFromMatrixColumn(e,1).length(),o=1/qa.setFromMatrixColumn(e,2).length();return t[0]=r[0]*i,t[1]=r[1]*i,t[2]=r[2]*i,t[3]=0,t[4]=r[4]*s,t[5]=r[5]*s,t[6]=r[6]*s,t[7]=0,t[8]=r[8]*o,t[9]=r[9]*o,t[10]=r[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,r=e.x,i=e.y,s=e.z,o=Math.cos(r),a=Math.sin(r),l=Math.cos(i),d=Math.sin(i),u=Math.cos(s),m=Math.sin(s);if(e.order==="XYZ"){const f=o*u,g=o*m,h=a*u,v=a*m;t[0]=l*u,t[4]=-l*m,t[8]=d,t[1]=g+h*d,t[5]=f-v*d,t[9]=-a*l,t[2]=v-f*d,t[6]=h+g*d,t[10]=o*l}else if(e.order==="YXZ"){const f=l*u,g=l*m,h=d*u,v=d*m;t[0]=f+v*a,t[4]=h*a-g,t[8]=o*d,t[1]=o*m,t[5]=o*u,t[9]=-a,t[2]=g*a-h,t[6]=v+f*a,t[10]=o*l}else if(e.order==="ZXY"){const f=l*u,g=l*m,h=d*u,v=d*m;t[0]=f-v*a,t[4]=-o*m,t[8]=h+g*a,t[1]=g+h*a,t[5]=o*u,t[9]=v-f*a,t[2]=-o*d,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const f=o*u,g=o*m,h=a*u,v=a*m;t[0]=l*u,t[4]=h*d-g,t[8]=f*d+v,t[1]=l*m,t[5]=v*d+f,t[9]=g*d-h,t[2]=-d,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,g=o*d,h=a*l,v=a*d;t[0]=l*u,t[4]=v-f*m,t[8]=h*m+g,t[1]=m,t[5]=o*u,t[9]=-a*u,t[2]=-d*u,t[6]=g*m+h,t[10]=f-v*m}else if(e.order==="XZY"){const f=o*l,g=o*d,h=a*l,v=a*d;t[0]=l*u,t[4]=-m,t[8]=d*u,t[1]=f*m+v,t[5]=o*u,t[9]=g*m-h,t[2]=h*m-g,t[6]=a*u,t[10]=v*m+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(v2t,e,y2t)}lookAt(e,t,r){const i=this.elements;return Lr.subVectors(e,t),Lr.lengthSq()===0&&(Lr.z=1),Lr.normalize(),eo.crossVectors(r,Lr),eo.lengthSq()===0&&(Math.abs(r.z)===1?Lr.x+=1e-4:Lr.z+=1e-4,Lr.normalize(),eo.crossVectors(r,Lr)),eo.normalize(),Ru.crossVectors(Lr,eo),i[0]=eo.x,i[4]=Ru.x,i[8]=Lr.x,i[1]=eo.y,i[5]=Ru.y,i[9]=Lr.y,i[2]=eo.z,i[6]=Ru.z,i[10]=Lr.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,s=this.elements,o=r[0],a=r[4],l=r[8],d=r[12],u=r[1],m=r[5],f=r[9],g=r[13],h=r[2],v=r[6],b=r[10],_=r[14],y=r[3],E=r[7],x=r[11],A=r[15],w=i[0],N=i[4],L=i[8],C=i[12],k=i[1],H=i[5],q=i[9],ie=i[13],D=i[2],$=i[6],K=i[10],B=i[14],Z=i[3],ce=i[7],ue=i[11],xe=i[15];return s[0]=o*w+a*k+l*D+d*Z,s[4]=o*N+a*H+l*$+d*ce,s[8]=o*L+a*q+l*K+d*ue,s[12]=o*C+a*ie+l*B+d*xe,s[1]=u*w+m*k+f*D+g*Z,s[5]=u*N+m*H+f*$+g*ce,s[9]=u*L+m*q+f*K+g*ue,s[13]=u*C+m*ie+f*B+g*xe,s[2]=h*w+v*k+b*D+_*Z,s[6]=h*N+v*H+b*$+_*ce,s[10]=h*L+v*q+b*K+_*ue,s[14]=h*C+v*ie+b*B+_*xe,s[3]=y*w+E*k+x*D+A*Z,s[7]=y*N+E*H+x*$+A*ce,s[11]=y*L+E*q+x*K+A*ue,s[15]=y*C+E*ie+x*B+A*xe,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[4],i=e[8],s=e[12],o=e[1],a=e[5],l=e[9],d=e[13],u=e[2],m=e[6],f=e[10],g=e[14],h=e[3],v=e[7],b=e[11],_=e[15];return h*(+s*l*m-i*d*m-s*a*f+r*d*f+i*a*g-r*l*g)+v*(+t*l*g-t*d*f+s*o*f-i*o*g+i*d*u-s*l*u)+b*(+t*d*m-t*a*g-s*o*m+r*o*g+s*a*u-r*d*u)+_*(-i*a*u-t*l*m+t*a*f+i*o*m-r*o*f+r*l*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=r),this}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],d=e[7],u=e[8],m=e[9],f=e[10],g=e[11],h=e[12],v=e[13],b=e[14],_=e[15],y=m*b*d-v*f*d+v*l*g-a*b*g-m*l*_+a*f*_,E=h*f*d-u*b*d-h*l*g+o*b*g+u*l*_-o*f*_,x=u*v*d-h*m*d+h*a*g-o*v*g-u*a*_+o*m*_,A=h*m*l-u*v*l-h*a*f+o*v*f+u*a*b-o*m*b,w=t*y+r*E+i*x+s*A;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const N=1/w;return e[0]=y*N,e[1]=(v*f*s-m*b*s-v*i*g+r*b*g+m*i*_-r*f*_)*N,e[2]=(a*b*s-v*l*s+v*i*d-r*b*d-a*i*_+r*l*_)*N,e[3]=(m*l*s-a*f*s-m*i*d+r*f*d+a*i*g-r*l*g)*N,e[4]=E*N,e[5]=(u*b*s-h*f*s+h*i*g-t*b*g-u*i*_+t*f*_)*N,e[6]=(h*l*s-o*b*s-h*i*d+t*b*d+o*i*_-t*l*_)*N,e[7]=(o*f*s-u*l*s+u*i*d-t*f*d-o*i*g+t*l*g)*N,e[8]=x*N,e[9]=(h*m*s-u*v*s-h*r*g+t*v*g+u*r*_-t*m*_)*N,e[10]=(o*v*s-h*a*s+h*r*d-t*v*d-o*r*_+t*a*_)*N,e[11]=(u*a*s-o*m*s-u*r*d+t*m*d+o*r*g-t*a*g)*N,e[12]=A*N,e[13]=(u*v*i-h*m*i+h*r*f-t*v*f-u*r*b+t*m*b)*N,e[14]=(h*a*i-o*v*i-h*r*l+t*v*l+o*r*b-t*a*b)*N,e[15]=(o*m*i-u*a*i+u*r*l-t*m*l-o*r*f+t*a*f)*N,this}scale(e){const t=this.elements,r=e.x,i=e.y,s=e.z;return t[0]*=r,t[4]*=i,t[8]*=s,t[1]*=r,t[5]*=i,t[9]*=s,t[2]*=r,t[6]*=i,t[10]*=s,t[3]*=r,t[7]*=i,t[11]*=s,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,r,i))}makeTranslation(e,t,r){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,r,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,t,-r,0,0,r,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,0,r,0,0,1,0,0,-r,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,0,r,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const r=Math.cos(t),i=Math.sin(t),s=1-r,o=e.x,a=e.y,l=e.z,d=s*o,u=s*a;return this.set(d*o+r,d*a-i*l,d*l+i*a,0,d*a+i*l,u*a+r,u*l-i*o,0,d*l-i*a,u*l+i*o,s*l*l+r,0,0,0,0,1),this}makeScale(e,t,r){return this.set(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,t,r,i,s,o){return this.set(1,r,s,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,r){const i=this.elements,s=t._x,o=t._y,a=t._z,l=t._w,d=s+s,u=o+o,m=a+a,f=s*d,g=s*u,h=s*m,v=o*u,b=o*m,_=a*m,y=l*d,E=l*u,x=l*m,A=r.x,w=r.y,N=r.z;return i[0]=(1-(v+_))*A,i[1]=(g+x)*A,i[2]=(h-E)*A,i[3]=0,i[4]=(g-x)*w,i[5]=(1-(f+_))*w,i[6]=(b+y)*w,i[7]=0,i[8]=(h+E)*N,i[9]=(b-y)*N,i[10]=(1-(f+v))*N,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,r){const i=this.elements;let s=qa.set(i[0],i[1],i[2]).length();const o=qa.set(i[4],i[5],i[6]).length(),a=qa.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),e.x=i[12],e.y=i[13],e.z=i[14],yi.copy(this);const d=1/s,u=1/o,m=1/a;return yi.elements[0]*=d,yi.elements[1]*=d,yi.elements[2]*=d,yi.elements[4]*=u,yi.elements[5]*=u,yi.elements[6]*=u,yi.elements[8]*=m,yi.elements[9]*=m,yi.elements[10]*=m,t.setFromRotationMatrix(yi),r.x=s,r.y=o,r.z=a,this}makePerspective(e,t,r,i,s,o,a=Ts){const l=this.elements,d=2*s/(t-e),u=2*s/(r-i),m=(t+e)/(t-e),f=(r+i)/(r-i);let g,h;if(a===Ts)g=-(o+s)/(o-s),h=-2*o*s/(o-s);else if(a===ah)g=-o/(o-s),h=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=d,l[4]=0,l[8]=m,l[12]=0,l[1]=0,l[5]=u,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=g,l[14]=h,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,r,i,s,o,a=Ts){const l=this.elements,d=1/(t-e),u=1/(r-i),m=1/(o-s),f=(t+e)*d,g=(r+i)*u;let h,v;if(a===Ts)h=(o+s)*m,v=-2*m;else if(a===ah)h=s*m,v=-1*m;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*d,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-g,l[2]=0,l[6]=0,l[10]=v,l[14]=-h,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<16;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<16;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e[t+9]=r[9],e[t+10]=r[10],e[t+11]=r[11],e[t+12]=r[12],e[t+13]=r[13],e[t+14]=r[14],e[t+15]=r[15],e}}const qa=new he,yi=new Ht,v2t=new he(0,0,0),y2t=new he(1,1,1),eo=new he,Ru=new he,Lr=new he,uR=new Ht,pR=new Bo;class dm{constructor(e=0,t=0,r=0,i=dm.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,r,i=this._order){return this._x=e,this._y=t,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,r=!0){const i=e.elements,s=i[0],o=i[4],a=i[8],l=i[1],d=i[5],u=i[9],m=i[2],f=i[6],g=i[10];switch(t){case"XYZ":this._y=Math.asin(or(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,g),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(f,d),this._z=0);break;case"YXZ":this._x=Math.asin(-or(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,g),this._z=Math.atan2(l,d)):(this._y=Math.atan2(-m,s),this._z=0);break;case"ZXY":this._x=Math.asin(or(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-m,g),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-or(m,-1,1)),Math.abs(m)<.9999999?(this._x=Math.atan2(f,g),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(or(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-m,s)):(this._x=0,this._y=Math.atan2(a,g));break;case"XZY":this._z=Math.asin(-or(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,d),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-u,g),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,r){return uR.makeRotationFromQuaternion(e),this.setFromRotationMatrix(uR,t,r)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return pR.setFromEuler(this),this.setFromQuaternion(pR,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}}dm.DEFAULT_ORDER="XYZ";class dO{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let r=0;r0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function s(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=s(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let d=0,u=l.length;d0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(r.geometries=a),l.length>0&&(r.materials=l),d.length>0&&(r.textures=d),u.length>0&&(r.images=u),m.length>0&&(r.shapes=m),f.length>0&&(r.skeletons=f),g.length>0&&(r.animations=g),h.length>0&&(r.nodes=h)}return r.object=i,r;function o(a){const l=[];for(const d in a){const u=a[d];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let r=0;r0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(e,t,r,i,s){Ei.subVectors(i,t),ms.subVectors(r,t),hb.subVectors(e,t);const o=Ei.dot(Ei),a=Ei.dot(ms),l=Ei.dot(hb),d=ms.dot(ms),u=ms.dot(hb),m=o*d-a*a;if(m===0)return s.set(-2,-1,-1);const f=1/m,g=(d*l-a*u)*f,h=(o*u-a*l)*f;return s.set(1-g-h,h,g)}static containsPoint(e,t,r,i){return this.getBarycoord(e,t,r,i,fs),fs.x>=0&&fs.y>=0&&fs.x+fs.y<=1}static getUV(e,t,r,i,s,o,a,l){return Nu===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Nu=!0),this.getInterpolation(e,t,r,i,s,o,a,l)}static getInterpolation(e,t,r,i,s,o,a,l){return this.getBarycoord(e,t,r,i,fs),l.setScalar(0),l.addScaledVector(s,fs.x),l.addScaledVector(o,fs.y),l.addScaledVector(a,fs.z),l}static isFrontFacing(e,t,r,i){return Ei.subVectors(r,t),ms.subVectors(e,t),Ei.cross(ms).dot(i)<0}set(e,t,r){return this.a.copy(e),this.b.copy(t),this.c.copy(r),this}setFromPointsAndIndices(e,t,r,i){return this.a.copy(e[t]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,r,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ei.subVectors(this.c,this.b),ms.subVectors(this.a,this.b),Ei.cross(ms).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return wi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return wi.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,r,i,s){return Nu===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Nu=!0),wi.getInterpolation(e,this.a,this.b,this.c,t,r,i,s)}getInterpolation(e,t,r,i,s){return wi.getInterpolation(e,this.a,this.b,this.c,t,r,i,s)}containsPoint(e){return wi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return wi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const r=this.a,i=this.b,s=this.c;let o,a;$a.subVectors(i,r),Wa.subVectors(s,r),mb.subVectors(e,r);const l=$a.dot(mb),d=Wa.dot(mb);if(l<=0&&d<=0)return t.copy(r);fb.subVectors(e,i);const u=$a.dot(fb),m=Wa.dot(fb);if(u>=0&&m<=u)return t.copy(i);const f=l*m-u*d;if(f<=0&&l>=0&&u<=0)return o=l/(l-u),t.copy(r).addScaledVector($a,o);gb.subVectors(e,s);const g=$a.dot(gb),h=Wa.dot(gb);if(h>=0&&g<=h)return t.copy(s);const v=g*d-l*h;if(v<=0&&d>=0&&h<=0)return a=d/(d-h),t.copy(r).addScaledVector(Wa,a);const b=u*h-g*m;if(b<=0&&m-u>=0&&g-h>=0)return _R.subVectors(s,i),a=(m-u)/(m-u+(g-h)),t.copy(i).addScaledVector(_R,a);const _=1/(b+v+f);return o=v*_,a=f*_,t.copy(r).addScaledVector($a,o).addScaledVector(Wa,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const uO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},to={h:0,s:0,l:0},ku={h:0,s:0,l:0};function _b(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class Nt{constructor(e,t,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,r)}set(e,t,r){if(t===void 0&&r===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Mn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,tn.toWorkingColorSpace(this,t),this}setRGB(e,t,r,i=tn.workingColorSpace){return this.r=e,this.g=t,this.b=r,tn.toWorkingColorSpace(this,i),this}setHSL(e,t,r,i=tn.workingColorSpace){if(e=Xy(e,1),t=or(t,0,1),r=or(r,0,1),t===0)this.r=this.g=this.b=r;else{const s=r<=.5?r*(1+t):r+t-r*t,o=2*r-s;this.r=_b(o,s,e+1/3),this.g=_b(o,s,e),this.b=_b(o,s,e-1/3)}return tn.toWorkingColorSpace(this,i),this}setStyle(e,t=Mn){function r(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let s;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,t);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,t);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const s=i[1],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(s,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Mn){const r=uO[e.toLowerCase()];return r!==void 0?this.setHex(r,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=vl(e.r),this.g=vl(e.g),this.b=vl(e.b),this}copyLinearToSRGB(e){return this.r=sb(e.r),this.g=sb(e.g),this.b=sb(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Mn){return tn.fromWorkingColorSpace(ir.copy(this),e),Math.round(or(ir.r*255,0,255))*65536+Math.round(or(ir.g*255,0,255))*256+Math.round(or(ir.b*255,0,255))}getHexString(e=Mn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=tn.workingColorSpace){tn.fromWorkingColorSpace(ir.copy(this),t);const r=ir.r,i=ir.g,s=ir.b,o=Math.max(r,i,s),a=Math.min(r,i,s);let l,d;const u=(a+o)/2;if(a===o)l=0,d=0;else{const m=o-a;switch(d=u<=.5?m/(o+a):m/(2-o-a),o){case r:l=(i-s)/m+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const r=e[t];if(r===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];if(i===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[t]=r}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const r={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==bl&&(r.blending=this.blending),this.side!==Fs&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==k1&&(r.blendSrc=this.blendSrc),this.blendDst!==I1&&(r.blendDst=this.blendDst),this.blendEquation!==ra&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==nh&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==iR&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ba&&(r.stencilFail=this.stencilFail),this.stencilZFail!==Ba&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==Ba&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(s){const o=[];for(const a in s){const l=s[a];delete l.metadata,o.push(l)}return o}if(t){const s=i(e.textures),o=i(e.images);s.length>0&&(r.textures=s),o.length>0&&(r.images=o)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let r=null;if(t!==null){const i=t.length;r=new Array(i);for(let s=0;s!==i;++s)r[s]=t[s].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class vo extends Mi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Nt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Wy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const In=new he,Iu=new $t;class vr{constructor(e,t,r=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=r,this.usage=F1,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=xs,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,r){e*=this.itemSize,r*=t.itemSize;for(let i=0,s=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const d in l)l[d]!==void 0&&(e[d]=l[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const r=this.attributes;for(const l in r){const d=r[l];e.data.attributes[l]=d.toJSON(e.data)}const i={};let s=!1;for(const l in this.morphAttributes){const d=this.morphAttributes[l],u=[];for(let m=0,f=d.length;m0&&(i[l]=u,s=!0)}s&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(t));const i=e.attributes;for(const d in i){const u=i[d];this.setAttribute(d,u.clone(t))}const s=e.morphAttributes;for(const d in s){const u=[],m=s[d];for(let f=0,g=m.length;f0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s(e.far-e.near)**2))&&(bR.copy(s).invert(),Ko.copy(e.ray).applyMatrix4(bR),!(r.boundingBox!==null&&Ko.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,t,Ko)))}_computeIntersections(e,t,r){let i;const s=this.geometry,o=this.material,a=s.index,l=s.attributes.position,d=s.attributes.uv,u=s.attributes.uv1,m=s.attributes.normal,f=s.groups,g=s.drawRange;if(a!==null)if(Array.isArray(o))for(let h=0,v=f.length;ht.far?null:{distance:d,point:Bu.clone(),object:n}}function Gu(n,e,t,r,i,s,o,a,l,d){n.getVertexPosition(a,ja),n.getVertexPosition(l,Qa),n.getVertexPosition(d,Xa);const u=R2t(n,e,t,r,ja,Qa,Xa,Uu);if(u){i&&(Lu.fromBufferAttribute(i,a),Pu.fromBufferAttribute(i,l),Fu.fromBufferAttribute(i,d),u.uv=wi.getInterpolation(Uu,ja,Qa,Xa,Lu,Pu,Fu,new $t)),s&&(Lu.fromBufferAttribute(s,a),Pu.fromBufferAttribute(s,l),Fu.fromBufferAttribute(s,d),u.uv1=wi.getInterpolation(Uu,ja,Qa,Xa,Lu,Pu,Fu,new $t),u.uv2=u.uv1),o&&(yR.fromBufferAttribute(o,a),ER.fromBufferAttribute(o,l),SR.fromBufferAttribute(o,d),u.normal=wi.getInterpolation(Uu,ja,Qa,Xa,yR,ER,SR,new he),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const m={a,b:l,c:d,normal:new he,materialIndex:0};wi.getNormal(ja,Qa,Xa,m.normal),u.face=m}return u}class wo extends os{constructor(e=1,t=1,r=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:r,widthSegments:i,heightSegments:s,depthSegments:o};const a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);const l=[],d=[],u=[],m=[];let f=0,g=0;h("z","y","x",-1,-1,r,t,e,o,s,0),h("z","y","x",1,-1,r,t,-e,o,s,1),h("x","z","y",1,1,e,r,t,i,o,2),h("x","z","y",1,-1,e,r,-t,i,o,3),h("x","y","z",1,-1,e,t,r,i,s,4),h("x","y","z",-1,-1,e,t,-r,i,s,5),this.setIndex(l),this.setAttribute("position",new Ns(d,3)),this.setAttribute("normal",new Ns(u,3)),this.setAttribute("uv",new Ns(m,2));function h(v,b,_,y,E,x,A,w,N,L,C){const k=x/N,H=A/L,q=x/2,ie=A/2,D=w/2,$=N+1,K=L+1;let B=0,Z=0;const ce=new he;for(let ue=0;ue0?1:-1,u.push(ce.x,ce.y,ce.z),m.push(Ce/N),m.push(1-ue/L),B+=1}}for(let ue=0;ue0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(t.extensions=r),t}}class fO extends wn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ht,this.projectionMatrix=new Ht,this.projectionMatrixInverse=new Ht,this.coordinateSystem=Ts}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class gr extends fO{constructor(e=50,t=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Ul*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Qc*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Ul*2*Math.atan(Math.tan(Qc*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,r,i,s,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Qc*.5*this.fov)/this.zoom,r=2*t,i=this.aspect*r,s=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,d=o.fullHeight;s+=o.offsetX*i/l,t-=o.offsetY*r/d,i*=o.width/l,r*=o.height/d}const a=this.filmOffset;a!==0&&(s+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+i,t,t-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Za=-90,Ja=1;class O2t extends wn{constructor(e,t,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new gr(Za,Ja,e,t);i.layers=this.layers,this.add(i);const s=new gr(Za,Ja,e,t);s.layers=this.layers,this.add(s);const o=new gr(Za,Ja,e,t);o.layers=this.layers,this.add(o);const a=new gr(Za,Ja,e,t);a.layers=this.layers,this.add(a);const l=new gr(Za,Ja,e,t);l.layers=this.layers,this.add(l);const d=new gr(Za,Ja,e,t);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[r,i,s,o,a,l]=t;for(const d of t)this.remove(d);if(e===Ts)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===ah)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of t)this.add(d),d.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[s,o,a,l,d,u]=this.children,m=e.getRenderTarget(),f=e.getActiveCubeFace(),g=e.getActiveMipmapLevel(),h=e.xr.enabled;e.xr.enabled=!1;const v=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(t,s),e.setRenderTarget(r,1,i),e.render(t,o),e.setRenderTarget(r,2,i),e.render(t,a),e.setRenderTarget(r,3,i),e.render(t,l),e.setRenderTarget(r,4,i),e.render(t,d),r.texture.generateMipmaps=v,e.setRenderTarget(r,5,i),e.render(t,u),e.setRenderTarget(m,f,g),e.xr.enabled=h,r.texture.needsPMREMUpdate=!0}}class gO extends Jn{constructor(e,t,r,i,s,o,a,l,d,u){e=e!==void 0?e:[],t=t!==void 0?t:Ol,super(e,t,r,i,s,o,a,l,d,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class D2t extends wa{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];t.encoding!==void 0&&(Zc("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===fa?Mn:ti),this.texture=new gO(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Cr}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},i=new wo(5,5,5),s=new Ca({name:"CubemapFromEquirect",uniforms:Bl(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:kr,blending:So});s.uniforms.tEquirect.value=t;const o=new br(i,s),a=t.minFilter;return t.minFilter===Ta&&(t.minFilter=Cr),new O2t(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,r,i){const s=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,r,i);e.setRenderTarget(s)}}const yb=new he,L2t=new he,P2t=new Vt;class Jo{constructor(e=new he(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,r,i){return this.normal.set(e,t,r),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,r){const i=yb.subVectors(r,t).cross(L2t.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const r=e.delta(yb),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const s=-(e.start.dot(this.normal)+this.constant)/i;return s<0||s>1?null:t.copy(e.start).addScaledVector(r,s)}intersectsLine(e){const t=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return t<0&&r>0||r<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const r=t||P2t.getNormalMatrix(e),i=this.coplanarPoint(yb).applyMatrix4(e),s=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(s),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const jo=new ss,zu=new he;class Zy{constructor(e=new Jo,t=new Jo,r=new Jo,i=new Jo,s=new Jo,o=new Jo){this.planes=[e,t,r,i,s,o]}set(e,t,r,i,s,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(r),a[3].copy(i),a[4].copy(s),a[5].copy(o),this}copy(e){const t=this.planes;for(let r=0;r<6;r++)t[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,t=Ts){const r=this.planes,i=e.elements,s=i[0],o=i[1],a=i[2],l=i[3],d=i[4],u=i[5],m=i[6],f=i[7],g=i[8],h=i[9],v=i[10],b=i[11],_=i[12],y=i[13],E=i[14],x=i[15];if(r[0].setComponents(l-s,f-d,b-g,x-_).normalize(),r[1].setComponents(l+s,f+d,b+g,x+_).normalize(),r[2].setComponents(l+o,f+u,b+h,x+y).normalize(),r[3].setComponents(l-o,f-u,b-h,x-y).normalize(),r[4].setComponents(l-a,f-m,b-v,x-E).normalize(),t===Ts)r[5].setComponents(l+a,f+m,b+v,x+E).normalize();else if(t===ah)r[5].setComponents(a,m,v,E).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),jo.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),jo.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(jo)}intersectsSprite(e){return jo.center.set(0,0,0),jo.radius=.7071067811865476,jo.applyMatrix4(e.matrixWorld),this.intersectsSphere(jo)}intersectsSphere(e){const t=this.planes,r=e.center,i=-e.radius;for(let s=0;s<6;s++)if(t[s].distanceToPoint(r)0?e.max.x:e.min.x,zu.y=i.normal.y>0?e.max.y:e.min.y,zu.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(zu)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let r=0;r<6;r++)if(t[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function _O(){let n=null,e=!1,t=null,r=null;function i(s,o){t(s,o),r=n.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(r=n.requestAnimationFrame(i),e=!0)},stop:function(){n.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(s){t=s},setContext:function(s){n=s}}}function F2t(n,e){const t=e.isWebGL2,r=new WeakMap;function i(d,u){const m=d.array,f=d.usage,g=m.byteLength,h=n.createBuffer();n.bindBuffer(u,h),n.bufferData(u,m,f),d.onUploadCallback();let v;if(m instanceof Float32Array)v=n.FLOAT;else if(m instanceof Uint16Array)if(d.isFloat16BufferAttribute)if(t)v=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else v=n.UNSIGNED_SHORT;else if(m instanceof Int16Array)v=n.SHORT;else if(m instanceof Uint32Array)v=n.UNSIGNED_INT;else if(m instanceof Int32Array)v=n.INT;else if(m instanceof Int8Array)v=n.BYTE;else if(m instanceof Uint8Array)v=n.UNSIGNED_BYTE;else if(m instanceof Uint8ClampedArray)v=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+m);return{buffer:h,type:v,bytesPerElement:m.BYTES_PER_ELEMENT,version:d.version,size:g}}function s(d,u,m){const f=u.array,g=u._updateRange,h=u.updateRanges;if(n.bindBuffer(m,d),g.count===-1&&h.length===0&&n.bufferSubData(m,0,f),h.length!==0){for(let v=0,b=h.length;v 0 + vec4 plane; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif +#endif`,ext=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,txt=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,nxt=`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,rxt=`#if defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#elif defined( USE_COLOR ) + diffuseColor.rgb *= vColor; +#endif`,ixt=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) + varying vec3 vColor; +#endif`,sxt=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + varying vec3 vColor; +#endif`,oxt=`#if defined( USE_COLOR_ALPHA ) + vColor = vec4( 1.0 ); +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + vColor = vec3( 1.0 ); +#endif +#ifdef USE_COLOR + vColor *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.xyz *= instanceColor.xyz; +#endif`,axt=`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +mat3 transposeMat3( const in mat3 m ) { + mat3 tmp; + tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); + tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); + tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); + return tmp; +} +float luminance( const in vec3 rgb ) { + const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 ); + return dot( weights, rgb ); +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 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 ); +} +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`,lxt=`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_v0 0.339 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_v1 0.276 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_v4 0.046 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_v5 0.016 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_v6 0.0038 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,cxt=`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,dxt=`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,uxt=`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,pxt=`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,hxt=`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,mxt="gl_FragColor = linearToOutputTexel( gl_FragColor );",fxt=` +const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( + vec3( 0.8224621, 0.177538, 0.0 ), + vec3( 0.0331941, 0.9668058, 0.0 ), + vec3( 0.0170827, 0.0723974, 0.9105199 ) +); +const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3( + vec3( 1.2249401, - 0.2249404, 0.0 ), + vec3( - 0.0420569, 1.0420571, 0.0 ), + vec3( - 0.0196376, - 0.0786361, 1.0982735 ) +); +vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) { + return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a ); +} +vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) { + return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a ); +} +vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +} +vec4 LinearToLinear( in vec4 value ) { + return value; +} +vec4 LinearTosRGB( in vec4 value ) { + return sRGBTransferOETF( value ); +}`,gxt=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); + #else + vec4 envColor = vec4( 0.0 ); + #endif + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif +#endif`,_xt=`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform float flipEnvMap; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif + +#endif`,bxt=`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,vxt=`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,yxt=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,Ext=`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,Sxt=`#ifdef USE_FOG + varying float vFogDepth; +#endif`,xxt=`#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`,Txt=`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,wxt=`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + 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 +}`,Cxt=`#ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + reflectedLight.indirectDiffuse += lightMapIrradiance; +#endif`,Axt=`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,Rxt=`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,Mxt=`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,Nxt=`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + #if defined ( LEGACY_LIGHTS ) + if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) { + return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent ); + } + return 1.0; + #else + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; + #endif +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif`,kxt=`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,Ixt=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,Oxt=`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Dxt=`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,Lxt=`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,Pxt=`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 ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + 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`,Fxt=`struct PhysicalMaterial { + vec3 diffuseColor; + float roughness; + vec3 specularColor; + float specularF90; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + float v = 0.5 / ( gv + gl ); + return saturate(v); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColor; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; + float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; + float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); + return saturate( DG * RECIPROCAL_PI ); +} +vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); + const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); + vec4 r = roughness * c0 + c1; + float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; + vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; + return fab; +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + vec2 fab = DFGApprox( normal, viewDir, roughness ); + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + vec2 fab = DFGApprox( normal, viewDir, roughness ); + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + #endif + vec3 singleScattering = vec3( 0.0 ); + vec3 multiScattering = vec3( 0.0 ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); + #endif + vec3 totalScattering = singleScattering + multiScattering; + vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); + reflectedLight.indirectSpecular += radiance * singleScattering; + reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; + reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#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 ); +}`,Uxt=` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,Bxt=`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,Gxt=`#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`,zxt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) + gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,Vxt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,Hxt=`#ifdef USE_LOGDEPTHBUF + #ifdef USE_LOGDEPTHBUF_EXT + varying float vFragDepth; + varying float vIsPerspective; + #else + uniform float logDepthBufFC; + #endif +#endif`,qxt=`#ifdef USE_LOGDEPTHBUF + #ifdef USE_LOGDEPTHBUF_EXT + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); + #else + if ( isPerspectiveMatrix( projectionMatrix ) ) { + gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0; + gl_Position.z *= gl_Position.w; + } + #endif +#endif`,Yxt=`#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`,$xt=`#ifdef USE_MAP + uniform sampler2D map; +#endif`,Wxt=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,Kxt=`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,jxt=`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,Qxt=`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,Xxt=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,Zxt=`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } + #else + objectNormal += morphNormal0 * morphTargetInfluences[ 0 ]; + objectNormal += morphNormal1 * morphTargetInfluences[ 1 ]; + objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; + objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; + #endif +#endif`,Jxt=`#ifdef USE_MORPHTARGETS + uniform float morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } + #else + #ifndef USE_MORPHNORMALS + uniform float morphTargetInfluences[ 8 ]; + #else + uniform float morphTargetInfluences[ 4 ]; + #endif + #endif +#endif`,eTt=`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } + #else + transformed += morphTarget0 * morphTargetInfluences[ 0 ]; + transformed += morphTarget1 * morphTargetInfluences[ 1 ]; + transformed += morphTarget2 * morphTargetInfluences[ 2 ]; + transformed += morphTarget3 * morphTargetInfluences[ 3 ]; + #ifndef USE_MORPHNORMALS + transformed += morphTarget4 * morphTargetInfluences[ 4 ]; + transformed += morphTarget5 * morphTargetInfluences[ 5 ]; + transformed += morphTarget6 * morphTargetInfluences[ 6 ]; + transformed += morphTarget7 * morphTargetInfluences[ 7 ]; + #endif + #endif +#endif`,tTt=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,nTt=`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,rTt=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,iTt=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,sTt=`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,oTt=`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,aTt=`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,lTt=`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,cTt=`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,dTt=`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,uTt=`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,pTt=`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.; +const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. ); +const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. ); +const float ShiftRight8 = 1. / 256.; +vec4 packDepthToRGBA( const in float v ) { + vec4 r = vec4( fract( v * PackFactors ), v ); + r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale; +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors ); +} +vec2 packDepthToRG( in highp float v ) { + return packDepthToRGBA( v ).yx; +} +float unpackRGToDepth( const in highp vec2 v ) { + return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) ); +} +vec4 pack2HalfToRGBA( vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + return depth * ( near - far ) - near; +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + return ( near * far ) / ( ( far - near ) * depth - far ); +}`,hTt=`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,mTt=`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,fTt=`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,gTt=`#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`,_Tt=`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,bTt=`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,vTt=`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { + return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); + } + vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { + return unpackRGBATo2Half( texture2D( shadow, uv ) ); + } + float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ + float occlusion = 1.0; + vec2 distribution = texture2DDistribution( shadow, uv ); + float hard_shadow = step( compare , distribution.x ); + if (hard_shadow != 1.0 ) { + float distance = compare - distribution.x ; + float variance = max( 0.00000, distribution.y * distribution.y ); + float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); + } + return occlusion; + } + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + #if defined( SHADOWMAP_TYPE_PCF ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx0 = - texelSize.x * shadowRadius; + float dy0 = - texelSize.y * shadowRadius; + float dx1 = + texelSize.x * shadowRadius; + float dy1 = + texelSize.y * shadowRadius; + float dx2 = dx0 / 2.0; + float dy2 = dy0 / 2.0; + float dx3 = dx1 / 2.0; + float dy3 = dy1 / 2.0; + shadow = ( + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) + ) * ( 1.0 / 17.0 ); + #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx = texelSize.x; + float dy = texelSize.y; + vec2 uv = shadowCoord.xy; + vec2 f = fract( uv * shadowMapSize + 0.5 ); + uv -= f * texelSize; + shadow = ( + texture2DCompare( shadowMap, uv, shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), + f.x ), + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), + f.x ), + f.y ) + ) * ( 1.0 / 9.0 ); + #elif defined( SHADOWMAP_TYPE_VSM ) + shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); + #else + shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); + #endif + } + return shadow; + } + vec2 cubeToUV( vec3 v, float texelSizeY ) { + vec3 absV = abs( v ); + float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); + absV *= scaleToCube; + v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); + vec2 planar = v.xy; + float almostATexel = 1.5 * texelSizeY; + float almostOne = 1.0 - almostATexel; + if ( absV.z >= almostOne ) { + if ( v.z > 0.0 ) + planar.x = 4.0 - v.x; + } else if ( absV.x >= almostOne ) { + float signX = sign( v.x ); + planar.x = v.z * signX + 2.0 * signX; + } else if ( absV.y >= almostOne ) { + float signY = sign( v.y ); + planar.x = v.x + 2.0 * signY + 2.0; + planar.y = v.z * signY - 2.0; + } + return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); + } + float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); + vec3 lightToPosition = shadowCoord.xyz; + float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) + vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; + return ( + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) + ) * ( 1.0 / 9.0 ); + #else + return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); + #endif + } +#endif`,yTt=`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,ETt=`#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 +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,STt=`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,xTt=`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,TTt=`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,wTt=`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,CTt=`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,ATt=`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,RTt=`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,MTt=`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,NTt=`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 OptimizedCineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,kTt=`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,ITt=`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + vec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,OTt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,DTt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,LTt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,PTt=`#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; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`;const FTt=`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,UTt=`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,BTt=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,GTt=`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float flipEnvMap; +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,zTt=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,VTt=`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,HTt=`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,qTt=`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + vec4 diffuseColor = vec4( 1.0 ); + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #endif +}`,YTt=`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,$Tt=`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +#include +void main () { + #include + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = packDepthToRGBA( dist ); +}`,WTt=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,KTt=`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,jTt=`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,QTt=`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,XTt=`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,ZTt=`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,JTt=`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,ewt=`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + vec4 diffuseColor = vec4( diffuse, opacity ); + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,twt=`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,nwt=`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,rwt=`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,iwt=`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + gl_FragColor = vec4( packNormalToRGB( normal ), opacity ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,swt=`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,owt=`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + vec4 diffuseColor = vec4( diffuse, opacity ); + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,awt=`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,lwt=`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + vec4 diffuseColor = vec4( diffuse, opacity ); + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); + outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,cwt=`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,dwt=`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + vec4 diffuseColor = vec4( diffuse, opacity ); + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,uwt=`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,pwt=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + vec3 outgoingLight = vec3( 0.0 ); + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,hwt=`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,mwt=`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include +}`,fwt=`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); + vec2 scale; + scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); + scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,gwt=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + vec3 outgoingLight = vec3( 0.0 ); + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`,Gt={alphahash_fragment:U2t,alphahash_pars_fragment:B2t,alphamap_fragment:G2t,alphamap_pars_fragment:z2t,alphatest_fragment:V2t,alphatest_pars_fragment:H2t,aomap_fragment:q2t,aomap_pars_fragment:Y2t,batching_pars_vertex:$2t,batching_vertex:W2t,begin_vertex:K2t,beginnormal_vertex:j2t,bsdfs:Q2t,iridescence_fragment:X2t,bumpmap_pars_fragment:Z2t,clipping_planes_fragment:J2t,clipping_planes_pars_fragment:ext,clipping_planes_pars_vertex:txt,clipping_planes_vertex:nxt,color_fragment:rxt,color_pars_fragment:ixt,color_pars_vertex:sxt,color_vertex:oxt,common:axt,cube_uv_reflection_fragment:lxt,defaultnormal_vertex:cxt,displacementmap_pars_vertex:dxt,displacementmap_vertex:uxt,emissivemap_fragment:pxt,emissivemap_pars_fragment:hxt,colorspace_fragment:mxt,colorspace_pars_fragment:fxt,envmap_fragment:gxt,envmap_common_pars_fragment:_xt,envmap_pars_fragment:bxt,envmap_pars_vertex:vxt,envmap_physical_pars_fragment:kxt,envmap_vertex:yxt,fog_vertex:Ext,fog_pars_vertex:Sxt,fog_fragment:xxt,fog_pars_fragment:Txt,gradientmap_pars_fragment:wxt,lightmap_fragment:Cxt,lightmap_pars_fragment:Axt,lights_lambert_fragment:Rxt,lights_lambert_pars_fragment:Mxt,lights_pars_begin:Nxt,lights_toon_fragment:Ixt,lights_toon_pars_fragment:Oxt,lights_phong_fragment:Dxt,lights_phong_pars_fragment:Lxt,lights_physical_fragment:Pxt,lights_physical_pars_fragment:Fxt,lights_fragment_begin:Uxt,lights_fragment_maps:Bxt,lights_fragment_end:Gxt,logdepthbuf_fragment:zxt,logdepthbuf_pars_fragment:Vxt,logdepthbuf_pars_vertex:Hxt,logdepthbuf_vertex:qxt,map_fragment:Yxt,map_pars_fragment:$xt,map_particle_fragment:Wxt,map_particle_pars_fragment:Kxt,metalnessmap_fragment:jxt,metalnessmap_pars_fragment:Qxt,morphcolor_vertex:Xxt,morphnormal_vertex:Zxt,morphtarget_pars_vertex:Jxt,morphtarget_vertex:eTt,normal_fragment_begin:tTt,normal_fragment_maps:nTt,normal_pars_fragment:rTt,normal_pars_vertex:iTt,normal_vertex:sTt,normalmap_pars_fragment:oTt,clearcoat_normal_fragment_begin:aTt,clearcoat_normal_fragment_maps:lTt,clearcoat_pars_fragment:cTt,iridescence_pars_fragment:dTt,opaque_fragment:uTt,packing:pTt,premultiplied_alpha_fragment:hTt,project_vertex:mTt,dithering_fragment:fTt,dithering_pars_fragment:gTt,roughnessmap_fragment:_Tt,roughnessmap_pars_fragment:bTt,shadowmap_pars_fragment:vTt,shadowmap_pars_vertex:yTt,shadowmap_vertex:ETt,shadowmask_pars_fragment:STt,skinbase_vertex:xTt,skinning_pars_vertex:TTt,skinning_vertex:wTt,skinnormal_vertex:CTt,specularmap_fragment:ATt,specularmap_pars_fragment:RTt,tonemapping_fragment:MTt,tonemapping_pars_fragment:NTt,transmission_fragment:kTt,transmission_pars_fragment:ITt,uv_pars_fragment:OTt,uv_pars_vertex:DTt,uv_vertex:LTt,worldpos_vertex:PTt,background_vert:FTt,background_frag:UTt,backgroundCube_vert:BTt,backgroundCube_frag:GTt,cube_vert:zTt,cube_frag:VTt,depth_vert:HTt,depth_frag:qTt,distanceRGBA_vert:YTt,distanceRGBA_frag:$Tt,equirect_vert:WTt,equirect_frag:KTt,linedashed_vert:jTt,linedashed_frag:QTt,meshbasic_vert:XTt,meshbasic_frag:ZTt,meshlambert_vert:JTt,meshlambert_frag:ewt,meshmatcap_vert:twt,meshmatcap_frag:nwt,meshnormal_vert:rwt,meshnormal_frag:iwt,meshphong_vert:swt,meshphong_frag:owt,meshphysical_vert:awt,meshphysical_frag:lwt,meshtoon_vert:cwt,meshtoon_frag:dwt,points_vert:uwt,points_frag:pwt,shadow_vert:hwt,shadow_frag:mwt,sprite_vert:fwt,sprite_frag:gwt},it={common:{diffuse:{value:new Nt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Vt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Vt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Vt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Vt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Vt},normalScale:{value:new $t(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Vt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Vt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Vt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Vt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Nt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Nt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0},uvTransform:{value:new Vt}},sprite:{diffuse:{value:new Nt(16777215)},opacity:{value:1},center:{value:new $t(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0}}},zi={basic:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.fog]),vertexShader:Gt.meshbasic_vert,fragmentShader:Gt.meshbasic_frag},lambert:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.fog,it.lights,{emissive:{value:new Nt(0)}}]),vertexShader:Gt.meshlambert_vert,fragmentShader:Gt.meshlambert_frag},phong:{uniforms:hr([it.common,it.specularmap,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.fog,it.lights,{emissive:{value:new Nt(0)},specular:{value:new Nt(1118481)},shininess:{value:30}}]),vertexShader:Gt.meshphong_vert,fragmentShader:Gt.meshphong_frag},standard:{uniforms:hr([it.common,it.envmap,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.roughnessmap,it.metalnessmap,it.fog,it.lights,{emissive:{value:new Nt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag},toon:{uniforms:hr([it.common,it.aomap,it.lightmap,it.emissivemap,it.bumpmap,it.normalmap,it.displacementmap,it.gradientmap,it.fog,it.lights,{emissive:{value:new Nt(0)}}]),vertexShader:Gt.meshtoon_vert,fragmentShader:Gt.meshtoon_frag},matcap:{uniforms:hr([it.common,it.bumpmap,it.normalmap,it.displacementmap,it.fog,{matcap:{value:null}}]),vertexShader:Gt.meshmatcap_vert,fragmentShader:Gt.meshmatcap_frag},points:{uniforms:hr([it.points,it.fog]),vertexShader:Gt.points_vert,fragmentShader:Gt.points_frag},dashed:{uniforms:hr([it.common,it.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Gt.linedashed_vert,fragmentShader:Gt.linedashed_frag},depth:{uniforms:hr([it.common,it.displacementmap]),vertexShader:Gt.depth_vert,fragmentShader:Gt.depth_frag},normal:{uniforms:hr([it.common,it.bumpmap,it.normalmap,it.displacementmap,{opacity:{value:1}}]),vertexShader:Gt.meshnormal_vert,fragmentShader:Gt.meshnormal_frag},sprite:{uniforms:hr([it.sprite,it.fog]),vertexShader:Gt.sprite_vert,fragmentShader:Gt.sprite_frag},background:{uniforms:{uvTransform:{value:new Vt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Gt.background_vert,fragmentShader:Gt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Gt.backgroundCube_vert,fragmentShader:Gt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Gt.cube_vert,fragmentShader:Gt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Gt.equirect_vert,fragmentShader:Gt.equirect_frag},distanceRGBA:{uniforms:hr([it.common,it.displacementmap,{referencePosition:{value:new he},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Gt.distanceRGBA_vert,fragmentShader:Gt.distanceRGBA_frag},shadow:{uniforms:hr([it.lights,it.fog,{color:{value:new Nt(0)},opacity:{value:1}}]),vertexShader:Gt.shadow_vert,fragmentShader:Gt.shadow_frag}};zi.physical={uniforms:hr([zi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Vt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Vt},clearcoatNormalScale:{value:new $t(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Vt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Vt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Vt},sheen:{value:0},sheenColor:{value:new Nt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Vt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Vt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Vt},transmissionSamplerSize:{value:new $t},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Vt},attenuationDistance:{value:0},attenuationColor:{value:new Nt(0)},specularColor:{value:new Nt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Vt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Vt},anisotropyVector:{value:new $t},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Vt}}]),vertexShader:Gt.meshphysical_vert,fragmentShader:Gt.meshphysical_frag};const Vu={r:0,b:0,g:0};function _wt(n,e,t,r,i,s,o){const a=new Nt(0);let l=s===!0?0:1,d,u,m=null,f=0,g=null;function h(b,_){let y=!1,E=_.isScene===!0?_.background:null;E&&E.isTexture&&(E=(_.backgroundBlurriness>0?t:e).get(E)),E===null?v(a,l):E&&E.isColor&&(v(E,1),y=!0);const x=n.xr.getEnvironmentBlendMode();x==="additive"?r.buffers.color.setClear(0,0,0,1,o):x==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,o),(n.autoClear||y)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),E&&(E.isCubeTexture||E.mapping===am)?(u===void 0&&(u=new br(new wo(1,1,1),new Ca({name:"BackgroundCubeMaterial",uniforms:Bl(zi.backgroundCube.uniforms),vertexShader:zi.backgroundCube.vertexShader,fragmentShader:zi.backgroundCube.fragmentShader,side:kr,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(A,w,N){this.matrixWorld.copyPosition(N.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),u.material.uniforms.envMap.value=E,u.material.uniforms.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.toneMapped=tn.getTransfer(E.colorSpace)!==bn,(m!==E||f!==E.version||g!==n.toneMapping)&&(u.material.needsUpdate=!0,m=E,f=E.version,g=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):E&&E.isTexture&&(d===void 0&&(d=new br(new Jy(2,2),new Ca({name:"BackgroundMaterial",uniforms:Bl(zi.background.uniforms),vertexShader:zi.background.vertexShader,fragmentShader:zi.background.fragmentShader,side:Fs,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(d)),d.material.uniforms.t2D.value=E,d.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,d.material.toneMapped=tn.getTransfer(E.colorSpace)!==bn,E.matrixAutoUpdate===!0&&E.updateMatrix(),d.material.uniforms.uvTransform.value.copy(E.matrix),(m!==E||f!==E.version||g!==n.toneMapping)&&(d.material.needsUpdate=!0,m=E,f=E.version,g=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null))}function v(b,_){b.getRGB(Vu,mO(n)),r.buffers.color.setClear(Vu.r,Vu.g,Vu.b,_,o)}return{getClearColor:function(){return a},setClearColor:function(b,_=1){a.set(b),l=_,v(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,v(a,l)},render:h}}function bwt(n,e,t,r){const i=n.getParameter(n.MAX_VERTEX_ATTRIBS),s=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||s!==null,a={},l=b(null);let d=l,u=!1;function m(D,$,K,B,Z){let ce=!1;if(o){const ue=v(B,K,$);d!==ue&&(d=ue,g(d.object)),ce=_(D,B,K,Z),ce&&y(D,B,K,Z)}else{const ue=$.wireframe===!0;(d.geometry!==B.id||d.program!==K.id||d.wireframe!==ue)&&(d.geometry=B.id,d.program=K.id,d.wireframe=ue,ce=!0)}Z!==null&&t.update(Z,n.ELEMENT_ARRAY_BUFFER),(ce||u)&&(u=!1,L(D,$,K,B),Z!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(Z).buffer))}function f(){return r.isWebGL2?n.createVertexArray():s.createVertexArrayOES()}function g(D){return r.isWebGL2?n.bindVertexArray(D):s.bindVertexArrayOES(D)}function h(D){return r.isWebGL2?n.deleteVertexArray(D):s.deleteVertexArrayOES(D)}function v(D,$,K){const B=K.wireframe===!0;let Z=a[D.id];Z===void 0&&(Z={},a[D.id]=Z);let ce=Z[$.id];ce===void 0&&(ce={},Z[$.id]=ce);let ue=ce[B];return ue===void 0&&(ue=b(f()),ce[B]=ue),ue}function b(D){const $=[],K=[],B=[];for(let Z=0;Z=0){const Ae=Z[Ce];let Fe=ce[Ce];if(Fe===void 0&&(Ce==="instanceMatrix"&&D.instanceMatrix&&(Fe=D.instanceMatrix),Ce==="instanceColor"&&D.instanceColor&&(Fe=D.instanceColor)),Ae===void 0||Ae.attribute!==Fe||Fe&&Ae.data!==Fe.data)return!0;ue++}return d.attributesNum!==ue||d.index!==B}function y(D,$,K,B){const Z={},ce=$.attributes;let ue=0;const xe=K.getAttributes();for(const Ce in xe)if(xe[Ce].location>=0){let Ae=ce[Ce];Ae===void 0&&(Ce==="instanceMatrix"&&D.instanceMatrix&&(Ae=D.instanceMatrix),Ce==="instanceColor"&&D.instanceColor&&(Ae=D.instanceColor));const Fe={};Fe.attribute=Ae,Ae&&Ae.data&&(Fe.data=Ae.data),Z[Ce]=Fe,ue++}d.attributes=Z,d.attributesNum=ue,d.index=B}function E(){const D=d.newAttributes;for(let $=0,K=D.length;$=0){let me=Z[xe];if(me===void 0&&(xe==="instanceMatrix"&&D.instanceMatrix&&(me=D.instanceMatrix),xe==="instanceColor"&&D.instanceColor&&(me=D.instanceColor)),me!==void 0){const Ae=me.normalized,Fe=me.itemSize,ze=t.get(me);if(ze===void 0)continue;const te=ze.buffer,ye=ze.type,Se=ze.bytesPerElement,Oe=r.isWebGL2===!0&&(ye===n.INT||ye===n.UNSIGNED_INT||me.gpuType===QI);if(me.isInterleavedBufferAttribute){const Ye=me.data,le=Ye.stride,V=me.offset;if(Ye.isInstancedInterleavedBuffer){for(let G=0;G0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";N="mediump"}return N==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const l=s(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const d=o||e.has("WEBGL_draw_buffers"),u=t.logarithmicDepthBuffer===!0,m=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),f=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),g=n.getParameter(n.MAX_TEXTURE_SIZE),h=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),v=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),_=n.getParameter(n.MAX_VARYING_VECTORS),y=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),E=f>0,x=o||e.has("OES_texture_float"),A=E&&x,w=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:i,getMaxPrecision:s,precision:a,logarithmicDepthBuffer:u,maxTextures:m,maxVertexTextures:f,maxTextureSize:g,maxCubemapSize:h,maxAttributes:v,maxVertexUniforms:b,maxVaryings:_,maxFragmentUniforms:y,vertexTextures:E,floatFragmentTextures:x,floatVertexTextures:A,maxSamples:w}}function Ewt(n){const e=this;let t=null,r=0,i=!1,s=!1;const o=new Jo,a=new Vt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(m,f){const g=m.length!==0||f||r!==0||i;return i=f,r=m.length,g},this.beginShadows=function(){s=!0,u(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(m,f){t=u(m,f,0)},this.setState=function(m,f,g){const h=m.clippingPlanes,v=m.clipIntersection,b=m.clipShadows,_=n.get(m);if(!i||h===null||h.length===0||s&&!b)s?u(null):d();else{const y=s?0:r,E=y*4;let x=_.clippingState||null;l.value=x,x=u(h,f,E,g);for(let A=0;A!==E;++A)x[A]=t[A];_.clippingState=x,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=y}};function d(){l.value!==t&&(l.value=t,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(m,f,g,h){const v=m!==null?m.length:0;let b=null;if(v!==0){if(b=l.value,h!==!0||b===null){const _=g+v*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length<_)&&(b=new Float32Array(_));for(let E=0,x=g;E!==v;++E,x+=4)o.copy(m[E]).applyMatrix4(y,a),o.normal.toArray(b,x),b[x+3]=o.constant}l.value=b,l.needsUpdate=!0}return e.numPlanes=v,e.numIntersection=0,b}}function Swt(n){let e=new WeakMap;function t(o,a){return a===O1?o.mapping=Ol:a===D1&&(o.mapping=Dl),o}function r(o){if(o&&o.isTexture){const a=o.mapping;if(a===O1||a===D1)if(e.has(o)){const l=e.get(o).texture;return t(l,o.mapping)}else{const l=o.image;if(l&&l.height>0){const d=new D2t(l.height/2);return d.fromEquirectangularTexture(n,o),e.set(o,d),o.addEventListener("dispose",i),t(d.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function s(){e=new WeakMap}return{get:r,dispose:s}}class eE extends fO{constructor(e=-1,t=1,r=1,i=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=r,this.bottom=i,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,r,i,s,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let s=r-e,o=r+e,a=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=d*this.view.offsetX,o=s+d*this.view.width,a-=u*this.view.offsetY,l=a-u*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const al=4,xR=[.125,.215,.35,.446,.526,.582],ia=20,Eb=new eE,TR=new Nt;let Sb=null,xb=0,Tb=0;const ea=(1+Math.sqrt(5))/2,el=1/ea,wR=[new he(1,1,1),new he(-1,1,1),new he(1,1,-1),new he(-1,1,-1),new he(0,ea,el),new he(0,ea,-el),new he(el,0,ea),new he(-el,0,ea),new he(ea,el,0),new he(-ea,el,0)];class CR{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,r=.1,i=100){Sb=this._renderer.getRenderTarget(),xb=this._renderer.getActiveCubeFace(),Tb=this._renderer.getActiveMipmapLevel(),this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,r,i,s),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=MR(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=RR(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?E:0,E,E),u.setRenderTarget(i),v&&u.render(h,a),u.render(e,a)}h.geometry.dispose(),h.material.dispose(),u.toneMapping=f,u.autoClear=m,e.background=b}_textureToCubeUV(e,t){const r=this._renderer,i=e.mapping===Ol||e.mapping===Dl;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=MR()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=RR());const s=i?this._cubemapMaterial:this._equirectMaterial,o=new br(this._lodPlanes[0],s),a=s.uniforms;a.envMap.value=e;const l=this._cubeSize;Hu(t,0,0,3*l,2*l),r.setRenderTarget(t),r.render(o,Eb)}_applyPMREM(e){const t=this._renderer,r=t.autoClear;t.autoClear=!1;for(let i=1;iia&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${ia}`);const _=[];let y=0;for(let N=0;NE-al?i-E+al:0),w=4*(this._cubeSize-x);Hu(t,A,w,3*x,2*x),l.setRenderTarget(t),l.render(m,Eb)}}function xwt(n){const e=[],t=[],r=[];let i=n;const s=n-al+1+xR.length;for(let o=0;on-al?l=xR[o-n+al-1]:o===0&&(l=0),r.push(l);const d=1/(a-2),u=-d,m=1+d,f=[u,u,m,u,m,m,u,u,m,m,u,m],g=6,h=6,v=3,b=2,_=1,y=new Float32Array(v*h*g),E=new Float32Array(b*h*g),x=new Float32Array(_*h*g);for(let w=0;w2?0:-1,C=[N,L,0,N+2/3,L,0,N+2/3,L+1,0,N,L,0,N+2/3,L+1,0,N,L+1,0];y.set(C,v*h*w),E.set(f,b*h*w);const k=[w,w,w,w,w,w];x.set(k,_*h*w)}const A=new os;A.setAttribute("position",new vr(y,v)),A.setAttribute("uv",new vr(E,b)),A.setAttribute("faceIndex",new vr(x,_)),e.push(A),i>al&&i--}return{lodPlanes:e,sizeLods:t,sigmas:r}}function AR(n,e,t){const r=new wa(n,e,t);return r.texture.mapping=am,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Hu(n,e,t,r,i){n.viewport.set(e,t,r,i),n.scissor.set(e,t,r,i)}function Twt(n,e,t){const r=new Float32Array(ia),i=new he(0,1,0);return new Ca({name:"SphericalGaussianBlur",defines:{n:ia,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:tE(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:So,depthTest:!1,depthWrite:!1})}function RR(){return new Ca({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:tE(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:So,depthTest:!1,depthWrite:!1})}function MR(){return new Ca({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:tE(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:So,depthTest:!1,depthWrite:!1})}function tE(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}function wwt(n){let e=new WeakMap,t=null;function r(a){if(a&&a.isTexture){const l=a.mapping,d=l===O1||l===D1,u=l===Ol||l===Dl;if(d||u)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let m=e.get(a);return t===null&&(t=new CR(n)),m=d?t.fromEquirectangular(a,m):t.fromCubemap(a,m),e.set(a,m),m.texture}else{if(e.has(a))return e.get(a).texture;{const m=a.image;if(d&&m&&m.height>0||u&&m&&i(m)){t===null&&(t=new CR(n));const f=d?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",s),f.texture}else return null}}}return a}function i(a){let l=0;const d=6;for(let u=0;ue.maxTextureSize&&(H=Math.ceil(k/e.maxTextureSize),k=e.maxTextureSize);const q=new Float32Array(k*H*4*v),ie=new cO(q,k,H,v);ie.type=xs,ie.needsUpdate=!0;const D=C*4;for(let K=0;K0)return n;const i=e*t;let s=NR[i];if(s===void 0&&(s=new Float32Array(i),NR[i]=s),e!==0){r.toArray(s,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(s,a)}return s}function Vn(n,e){if(n.length!==e.length)return!1;for(let t=0,r=n.length;t":" "} ${a}: ${t[o]}`)}return r.join(` +`)}function ACt(n){const e=tn.getPrimaries(tn.workingColorSpace),t=tn.getPrimaries(n);let r;switch(e===t?r="":e===oh&&t===sh?r="LinearDisplayP3ToLinearSRGB":e===sh&&t===oh&&(r="LinearSRGBToLinearDisplayP3"),n){case er:case lm:return[r,"LinearTransferOETF"];case Mn:case Qy:return[r,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[r,"LinearTransferOETF"]}}function FR(n,e,t){const r=n.getShaderParameter(e,n.COMPILE_STATUS),i=n.getShaderInfoLog(e).trim();if(r&&i==="")return"";const s=/ERROR: 0:(\d+)/.exec(i);if(s){const o=parseInt(s[1]);return t.toUpperCase()+` + +`+i+` + +`+CCt(n.getShaderSource(e),o)}else return i}function RCt(n,e){const t=ACt(e);return`vec4 ${n}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function MCt(n,e){let t;switch(e){case wSt:t="Linear";break;case CSt:t="Reinhard";break;case ASt:t="OptimizedCineon";break;case RSt:t="ACESFilmic";break;case MSt:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function NCt(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(Dc).join(` +`)}function kCt(n){const e=[];for(const t in n){const r=n[t];r!==!1&&e.push("#define "+t+" "+r)}return e.join(` +`)}function ICt(n,e){const t={},r=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function G1(n){return n.replace(OCt,LCt)}const DCt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function LCt(n,e){let t=Gt[e];if(t===void 0){const r=DCt.get(e);if(r!==void 0)t=Gt[r],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,r);else throw new Error("Can not resolve #include <"+e+">")}return G1(t)}const PCt=/#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 GR(n){return n.replace(PCt,FCt)}function FCt(n,e,t,r){let i="";for(let s=parseInt(e);s0&&(b+=` +`),_=[g,"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,h].filter(Dc).join(` +`),_.length>0&&(_+=` +`)):(b=[zR(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,h,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 "+u:"",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(Dc).join(` +`),_=[g,zR(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,h,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 "+d:"",t.envMap?"#define "+u:"",t.envMap?"#define "+m:"",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!==xo?"#define TONE_MAPPING":"",t.toneMapping!==xo?Gt.tonemapping_pars_fragment:"",t.toneMapping!==xo?MCt("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",Gt.colorspace_pars_fragment,RCt("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` +`].filter(Dc).join(` +`)),o=G1(o),o=UR(o,t),o=BR(o,t),a=G1(a),a=UR(a,t),a=BR(a,t),o=GR(o),a=GR(a),t.isWebGL2&&t.isRawShaderMaterial!==!0&&(y=`#version 300 es +`,b=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(` +`)+` +`+b,_=["precision mediump sampler2DArray;","#define varying in",t.glslVersion===sR?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===sR?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`)+` +`+_);const E=y+b+o,x=y+_+a,A=PR(i,i.VERTEX_SHADER,E),w=PR(i,i.FRAGMENT_SHADER,x);i.attachShader(v,A),i.attachShader(v,w),t.index0AttributeName!==void 0?i.bindAttribLocation(v,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(v,0,"position"),i.linkProgram(v);function N(H){if(n.debug.checkShaderErrors){const q=i.getProgramInfoLog(v).trim(),ie=i.getShaderInfoLog(A).trim(),D=i.getShaderInfoLog(w).trim();let $=!0,K=!0;if(i.getProgramParameter(v,i.LINK_STATUS)===!1)if($=!1,typeof n.debug.onShaderError=="function")n.debug.onShaderError(i,v,A,w);else{const B=FR(i,A,"vertex"),Z=FR(i,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(v,i.VALIDATE_STATUS)+` + +Program Info Log: `+q+` +`+B+` +`+Z)}else q!==""?console.warn("THREE.WebGLProgram: Program Info Log:",q):(ie===""||D==="")&&(K=!1);K&&(H.diagnostics={runnable:$,programLog:q,vertexShader:{log:ie,prefix:b},fragmentShader:{log:D,prefix:_}})}i.deleteShader(A),i.deleteShader(w),L=new fp(i,v),C=ICt(i,v)}let L;this.getUniforms=function(){return L===void 0&&N(this),L};let C;this.getAttributes=function(){return C===void 0&&N(this),C};let k=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return k===!1&&(k=i.getProgramParameter(v,TCt)),k},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(v),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=wCt++,this.cacheKey=e,this.usedTimes=1,this.program=v,this.vertexShader=A,this.fragmentShader=w,this}let qCt=0;class YCt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(t),s=this._getShaderStage(r),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(s)===!1&&(o.add(s),s.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const r of t)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let r=t.get(e);return r===void 0&&(r=new Set,t.set(e,r)),r}_getShaderStage(e){const t=this.shaderCache;let r=t.get(e);return r===void 0&&(r=new $Ct(e),t.set(e,r)),r}}class $Ct{constructor(e){this.id=qCt++,this.code=e,this.usedTimes=0}}function WCt(n,e,t,r,i,s,o){const a=new dO,l=new YCt,d=[],u=i.isWebGL2,m=i.logarithmicDepthBuffer,f=i.vertexTextures;let g=i.precision;const h={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 v(C){return C===0?"uv":`uv${C}`}function b(C,k,H,q,ie){const D=q.fog,$=ie.geometry,K=C.isMeshStandardMaterial?q.environment:null,B=(C.isMeshStandardMaterial?t:e).get(C.envMap||K),Z=B&&B.mapping===am?B.image.height:null,ce=h[C.type];C.precision!==null&&(g=i.getMaxPrecision(C.precision),g!==C.precision&&console.warn("THREE.WebGLProgram.getParameters:",C.precision,"not supported, using",g,"instead."));const ue=$.morphAttributes.position||$.morphAttributes.normal||$.morphAttributes.color,xe=ue!==void 0?ue.length:0;let Ce=0;$.morphAttributes.position!==void 0&&(Ce=1),$.morphAttributes.normal!==void 0&&(Ce=2),$.morphAttributes.color!==void 0&&(Ce=3);let me,Ae,Fe,ze;if(ce){const tr=zi[ce];me=tr.vertexShader,Ae=tr.fragmentShader}else me=C.vertexShader,Ae=C.fragmentShader,l.update(C),Fe=l.getVertexShaderID(C),ze=l.getFragmentShaderID(C);const te=n.getRenderTarget(),ye=ie.isInstancedMesh===!0,Se=ie.isBatchedMesh===!0,Oe=!!C.map,Ye=!!C.matcap,le=!!B,V=!!C.aoMap,G=!!C.lightMap,oe=!!C.bumpMap,ge=!!C.normalMap,Ee=!!C.displacementMap,Te=!!C.emissiveMap,fe=!!C.metalnessMap,Ue=!!C.roughnessMap,Pe=C.anisotropy>0,Re=C.clearcoat>0,U=C.iridescence>0,I=C.sheen>0,ee=C.transmission>0,we=Pe&&!!C.anisotropyMap,ne=Re&&!!C.clearcoatMap,pe=Re&&!!C.clearcoatNormalMap,De=Re&&!!C.clearcoatRoughnessMap,Le=U&&!!C.iridescenceMap,Ve=U&&!!C.iridescenceThicknessMap,ot=I&&!!C.sheenColorMap,wt=I&&!!C.sheenRoughnessMap,$e=!!C.specularMap,Kt=!!C.specularColorMap,mt=!!C.specularIntensityMap,ft=ee&&!!C.transmissionMap,et=ee&&!!C.thicknessMap,lt=!!C.gradientMap,It=!!C.alphaMap,ae=C.alphaTest>0,dt=!!C.alphaHash,Xe=!!C.extensions,Be=!!$.attributes.uv1,nt=!!$.attributes.uv2,At=!!$.attributes.uv3;let jt=xo;return C.toneMapped&&(te===null||te.isXRRenderTarget===!0)&&(jt=n.toneMapping),{isWebGL2:u,shaderID:ce,shaderType:C.type,shaderName:C.name,vertexShader:me,fragmentShader:Ae,defines:C.defines,customVertexShaderID:Fe,customFragmentShaderID:ze,isRawShaderMaterial:C.isRawShaderMaterial===!0,glslVersion:C.glslVersion,precision:g,batching:Se,instancing:ye,instancingColor:ye&&ie.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:te===null?n.outputColorSpace:te.isXRRenderTarget===!0?te.texture.colorSpace:er,map:Oe,matcap:Ye,envMap:le,envMapMode:le&&B.mapping,envMapCubeUVHeight:Z,aoMap:V,lightMap:G,bumpMap:oe,normalMap:ge,displacementMap:f&&Ee,emissiveMap:Te,normalMapObjectSpace:ge&&C.normalMapType===HSt,normalMapTangentSpace:ge&&C.normalMapType===jy,metalnessMap:fe,roughnessMap:Ue,anisotropy:Pe,anisotropyMap:we,clearcoat:Re,clearcoatMap:ne,clearcoatNormalMap:pe,clearcoatRoughnessMap:De,iridescence:U,iridescenceMap:Le,iridescenceThicknessMap:Ve,sheen:I,sheenColorMap:ot,sheenRoughnessMap:wt,specularMap:$e,specularColorMap:Kt,specularIntensityMap:mt,transmission:ee,transmissionMap:ft,thicknessMap:et,gradientMap:lt,opaque:C.transparent===!1&&C.blending===bl,alphaMap:It,alphaTest:ae,alphaHash:dt,combine:C.combine,mapUv:Oe&&v(C.map.channel),aoMapUv:V&&v(C.aoMap.channel),lightMapUv:G&&v(C.lightMap.channel),bumpMapUv:oe&&v(C.bumpMap.channel),normalMapUv:ge&&v(C.normalMap.channel),displacementMapUv:Ee&&v(C.displacementMap.channel),emissiveMapUv:Te&&v(C.emissiveMap.channel),metalnessMapUv:fe&&v(C.metalnessMap.channel),roughnessMapUv:Ue&&v(C.roughnessMap.channel),anisotropyMapUv:we&&v(C.anisotropyMap.channel),clearcoatMapUv:ne&&v(C.clearcoatMap.channel),clearcoatNormalMapUv:pe&&v(C.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:De&&v(C.clearcoatRoughnessMap.channel),iridescenceMapUv:Le&&v(C.iridescenceMap.channel),iridescenceThicknessMapUv:Ve&&v(C.iridescenceThicknessMap.channel),sheenColorMapUv:ot&&v(C.sheenColorMap.channel),sheenRoughnessMapUv:wt&&v(C.sheenRoughnessMap.channel),specularMapUv:$e&&v(C.specularMap.channel),specularColorMapUv:Kt&&v(C.specularColorMap.channel),specularIntensityMapUv:mt&&v(C.specularIntensityMap.channel),transmissionMapUv:ft&&v(C.transmissionMap.channel),thicknessMapUv:et&&v(C.thicknessMap.channel),alphaMapUv:It&&v(C.alphaMap.channel),vertexTangents:!!$.attributes.tangent&&(ge||Pe),vertexColors:C.vertexColors,vertexAlphas:C.vertexColors===!0&&!!$.attributes.color&&$.attributes.color.itemSize===4,vertexUv1s:Be,vertexUv2s:nt,vertexUv3s:At,pointsUvs:ie.isPoints===!0&&!!$.attributes.uv&&(Oe||It),fog:!!D,useFog:C.fog===!0,fogExp2:D&&D.isFogExp2,flatShading:C.flatShading===!0,sizeAttenuation:C.sizeAttenuation===!0,logarithmicDepthBuffer:m,skinning:ie.isSkinnedMesh===!0,morphTargets:$.morphAttributes.position!==void 0,morphNormals:$.morphAttributes.normal!==void 0,morphColors:$.morphAttributes.color!==void 0,morphTargetsCount:xe,morphTextureStride:Ce,numDirLights:k.directional.length,numPointLights:k.point.length,numSpotLights:k.spot.length,numSpotLightMaps:k.spotLightMap.length,numRectAreaLights:k.rectArea.length,numHemiLights:k.hemi.length,numDirLightShadows:k.directionalShadowMap.length,numPointLightShadows:k.pointShadowMap.length,numSpotLightShadows:k.spotShadowMap.length,numSpotLightShadowsWithMaps:k.numSpotLightShadowsWithMaps,numLightProbes:k.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:C.dithering,shadowMapEnabled:n.shadowMap.enabled&&H.length>0,shadowMapType:n.shadowMap.type,toneMapping:jt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Oe&&C.map.isVideoTexture===!0&&tn.getTransfer(C.map.colorSpace)===bn,premultipliedAlpha:C.premultipliedAlpha,doubleSided:C.side===Vi,flipSided:C.side===kr,useDepthPacking:C.depthPacking>=0,depthPacking:C.depthPacking||0,index0AttributeName:C.index0AttributeName,extensionDerivatives:Xe&&C.extensions.derivatives===!0,extensionFragDepth:Xe&&C.extensions.fragDepth===!0,extensionDrawBuffers:Xe&&C.extensions.drawBuffers===!0,extensionShaderTextureLOD:Xe&&C.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:C.customProgramCacheKey()}}function _(C){const k=[];if(C.shaderID?k.push(C.shaderID):(k.push(C.customVertexShaderID),k.push(C.customFragmentShaderID)),C.defines!==void 0)for(const H in C.defines)k.push(H),k.push(C.defines[H]);return C.isRawShaderMaterial===!1&&(y(k,C),E(k,C),k.push(n.outputColorSpace)),k.push(C.customProgramCacheKey),k.join()}function y(C,k){C.push(k.precision),C.push(k.outputColorSpace),C.push(k.envMapMode),C.push(k.envMapCubeUVHeight),C.push(k.mapUv),C.push(k.alphaMapUv),C.push(k.lightMapUv),C.push(k.aoMapUv),C.push(k.bumpMapUv),C.push(k.normalMapUv),C.push(k.displacementMapUv),C.push(k.emissiveMapUv),C.push(k.metalnessMapUv),C.push(k.roughnessMapUv),C.push(k.anisotropyMapUv),C.push(k.clearcoatMapUv),C.push(k.clearcoatNormalMapUv),C.push(k.clearcoatRoughnessMapUv),C.push(k.iridescenceMapUv),C.push(k.iridescenceThicknessMapUv),C.push(k.sheenColorMapUv),C.push(k.sheenRoughnessMapUv),C.push(k.specularMapUv),C.push(k.specularColorMapUv),C.push(k.specularIntensityMapUv),C.push(k.transmissionMapUv),C.push(k.thicknessMapUv),C.push(k.combine),C.push(k.fogExp2),C.push(k.sizeAttenuation),C.push(k.morphTargetsCount),C.push(k.morphAttributeCount),C.push(k.numDirLights),C.push(k.numPointLights),C.push(k.numSpotLights),C.push(k.numSpotLightMaps),C.push(k.numHemiLights),C.push(k.numRectAreaLights),C.push(k.numDirLightShadows),C.push(k.numPointLightShadows),C.push(k.numSpotLightShadows),C.push(k.numSpotLightShadowsWithMaps),C.push(k.numLightProbes),C.push(k.shadowMapType),C.push(k.toneMapping),C.push(k.numClippingPlanes),C.push(k.numClipIntersection),C.push(k.depthPacking)}function E(C,k){a.disableAll(),k.isWebGL2&&a.enable(0),k.supportsVertexTextures&&a.enable(1),k.instancing&&a.enable(2),k.instancingColor&&a.enable(3),k.matcap&&a.enable(4),k.envMap&&a.enable(5),k.normalMapObjectSpace&&a.enable(6),k.normalMapTangentSpace&&a.enable(7),k.clearcoat&&a.enable(8),k.iridescence&&a.enable(9),k.alphaTest&&a.enable(10),k.vertexColors&&a.enable(11),k.vertexAlphas&&a.enable(12),k.vertexUv1s&&a.enable(13),k.vertexUv2s&&a.enable(14),k.vertexUv3s&&a.enable(15),k.vertexTangents&&a.enable(16),k.anisotropy&&a.enable(17),k.alphaHash&&a.enable(18),k.batching&&a.enable(19),C.push(a.mask),a.disableAll(),k.fog&&a.enable(0),k.useFog&&a.enable(1),k.flatShading&&a.enable(2),k.logarithmicDepthBuffer&&a.enable(3),k.skinning&&a.enable(4),k.morphTargets&&a.enable(5),k.morphNormals&&a.enable(6),k.morphColors&&a.enable(7),k.premultipliedAlpha&&a.enable(8),k.shadowMapEnabled&&a.enable(9),k.useLegacyLights&&a.enable(10),k.doubleSided&&a.enable(11),k.flipSided&&a.enable(12),k.useDepthPacking&&a.enable(13),k.dithering&&a.enable(14),k.transmission&&a.enable(15),k.sheen&&a.enable(16),k.opaque&&a.enable(17),k.pointsUvs&&a.enable(18),k.decodeVideoTexture&&a.enable(19),C.push(a.mask)}function x(C){const k=h[C.type];let H;if(k){const q=zi[k];H=N2t.clone(q.uniforms)}else H=C.uniforms;return H}function A(C,k){let H;for(let q=0,ie=d.length;q0?r.push(_):g.transparent===!0?i.push(_):t.push(_)}function l(m,f,g,h,v,b){const _=o(m,f,g,h,v,b);g.transmission>0?r.unshift(_):g.transparent===!0?i.unshift(_):t.unshift(_)}function d(m,f){t.length>1&&t.sort(m||jCt),r.length>1&&r.sort(f||VR),i.length>1&&i.sort(f||VR)}function u(){for(let m=e,f=n.length;m=s.length?(o=new HR,s.push(o)):o=s[i],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function XCt(){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 he,color:new Nt};break;case"SpotLight":t={position:new he,direction:new he,color:new Nt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new he,color:new Nt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new he,skyColor:new Nt,groundColor:new Nt};break;case"RectAreaLight":t={color:new Nt,position:new he,halfWidth:new he,halfHeight:new he};break}return n[e.id]=t,t}}}function ZCt(){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 $t};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new $t};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new $t,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let JCt=0;function eAt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function tAt(n,e){const t=new XCt,r=ZCt(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)i.probe.push(new he);const s=new he,o=new Ht,a=new Ht;function l(u,m){let f=0,g=0,h=0;for(let q=0;q<9;q++)i.probe[q].set(0,0,0);let v=0,b=0,_=0,y=0,E=0,x=0,A=0,w=0,N=0,L=0,C=0;u.sort(eAt);const k=m===!0?Math.PI:1;for(let q=0,ie=u.length;q0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=it.LTC_FLOAT_1,i.rectAreaLTC2=it.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=it.LTC_HALF_1,i.rectAreaLTC2=it.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=f,i.ambient[1]=g,i.ambient[2]=h;const H=i.hash;(H.directionalLength!==v||H.pointLength!==b||H.spotLength!==_||H.rectAreaLength!==y||H.hemiLength!==E||H.numDirectionalShadows!==x||H.numPointShadows!==A||H.numSpotShadows!==w||H.numSpotMaps!==N||H.numLightProbes!==C)&&(i.directional.length=v,i.spot.length=_,i.rectArea.length=y,i.point.length=b,i.hemi.length=E,i.directionalShadow.length=x,i.directionalShadowMap.length=x,i.pointShadow.length=A,i.pointShadowMap.length=A,i.spotShadow.length=w,i.spotShadowMap.length=w,i.directionalShadowMatrix.length=x,i.pointShadowMatrix.length=A,i.spotLightMatrix.length=w+N-L,i.spotLightMap.length=N,i.numSpotLightShadowsWithMaps=L,i.numLightProbes=C,H.directionalLength=v,H.pointLength=b,H.spotLength=_,H.rectAreaLength=y,H.hemiLength=E,H.numDirectionalShadows=x,H.numPointShadows=A,H.numSpotShadows=w,H.numSpotMaps=N,H.numLightProbes=C,i.version=JCt++)}function d(u,m){let f=0,g=0,h=0,v=0,b=0;const _=m.matrixWorldInverse;for(let y=0,E=u.length;y=a.length?(l=new qR(n,e),a.push(l)):l=a[o],l}function i(){t=new WeakMap}return{get:r,dispose:i}}class rAt extends Mi{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=zSt,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 iAt extends Mi{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 sAt=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,oAt=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +#include +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( squared_mean - mean * mean ); + gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); +}`;function aAt(n,e,t){let r=new Zy;const i=new $t,s=new $t,o=new mn,a=new rAt({depthPacking:VSt}),l=new iAt,d={},u=t.maxTextureSize,m={[Fs]:kr,[kr]:Fs,[Vi]:Vi},f=new Ca({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new $t},radius:{value:4}},vertexShader:sAt,fragmentShader:oAt}),g=f.clone();g.defines.HORIZONTAL_PASS=1;const h=new os;h.setAttribute("position",new vr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new br(h,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=WI;let _=this.type;this.render=function(A,w,N){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||A.length===0)return;const L=n.getRenderTarget(),C=n.getActiveCubeFace(),k=n.getActiveMipmapLevel(),H=n.state;H.setBlending(So),H.buffers.color.setClear(1,1,1,1),H.buffers.depth.setTest(!0),H.setScissorTest(!1);const q=_!==bs&&this.type===bs,ie=_===bs&&this.type!==bs;for(let D=0,$=A.length;D<$;D++){const K=A[D],B=K.shadow;if(B===void 0){console.warn("THREE.WebGLShadowMap:",K,"has no shadow.");continue}if(B.autoUpdate===!1&&B.needsUpdate===!1)continue;i.copy(B.mapSize);const Z=B.getFrameExtents();if(i.multiply(Z),s.copy(B.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(s.x=Math.floor(u/Z.x),i.x=s.x*Z.x,B.mapSize.x=s.x),i.y>u&&(s.y=Math.floor(u/Z.y),i.y=s.y*Z.y,B.mapSize.y=s.y)),B.map===null||q===!0||ie===!0){const ue=this.type!==bs?{minFilter:$n,magFilter:$n}:{};B.map!==null&&B.map.dispose(),B.map=new wa(i.x,i.y,ue),B.map.texture.name=K.name+".shadowMap",B.camera.updateProjectionMatrix()}n.setRenderTarget(B.map),n.clear();const ce=B.getViewportCount();for(let ue=0;ue0||w.map&&w.alphaTest>0){const H=C.uuid,q=w.uuid;let ie=d[H];ie===void 0&&(ie={},d[H]=ie);let D=ie[q];D===void 0&&(D=C.clone(),ie[q]=D),C=D}if(C.visible=w.visible,C.wireframe=w.wireframe,L===bs?C.side=w.shadowSide!==null?w.shadowSide:w.side:C.side=w.shadowSide!==null?w.shadowSide:m[w.side],C.alphaMap=w.alphaMap,C.alphaTest=w.alphaTest,C.map=w.map,C.clipShadows=w.clipShadows,C.clippingPlanes=w.clippingPlanes,C.clipIntersection=w.clipIntersection,C.displacementMap=w.displacementMap,C.displacementScale=w.displacementScale,C.displacementBias=w.displacementBias,C.wireframeLinewidth=w.wireframeLinewidth,C.linewidth=w.linewidth,N.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const H=n.properties.get(C);H.light=N}return C}function x(A,w,N,L,C){if(A.visible===!1)return;if(A.layers.test(w.layers)&&(A.isMesh||A.isLine||A.isPoints)&&(A.castShadow||A.receiveShadow&&C===bs)&&(!A.frustumCulled||r.intersectsObject(A))){A.modelViewMatrix.multiplyMatrices(N.matrixWorldInverse,A.matrixWorld);const q=e.update(A),ie=A.material;if(Array.isArray(ie)){const D=q.groups;for(let $=0,K=D.length;$=1):ue.indexOf("OpenGL ES")!==-1&&(ce=parseFloat(/^OpenGL ES (\d)/.exec(ue)[1]),Z=ce>=2);let xe=null,Ce={};const me=n.getParameter(n.SCISSOR_BOX),Ae=n.getParameter(n.VIEWPORT),Fe=new mn().fromArray(me),ze=new mn().fromArray(Ae);function te(ae,dt,Xe,Be){const nt=new Uint8Array(4),At=n.createTexture();n.bindTexture(ae,At),n.texParameteri(ae,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(ae,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let jt=0;jt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),h=new WeakMap;let v;const b=new WeakMap;let _=!1;try{_=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(U,I){return _?new OffscreenCanvas(U,I):vd("canvas")}function E(U,I,ee,we){let ne=1;if((U.width>we||U.height>we)&&(ne=we/Math.max(U.width,U.height)),ne<1||I===!0)if(typeof HTMLImageElement<"u"&&U instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&U instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&U instanceof ImageBitmap){const pe=I?lh:Math.floor,De=pe(ne*U.width),Le=pe(ne*U.height);v===void 0&&(v=y(De,Le));const Ve=ee?y(De,Le):v;return Ve.width=De,Ve.height=Le,Ve.getContext("2d").drawImage(U,0,0,De,Le),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+U.width+"x"+U.height+") to ("+De+"x"+Le+")."),Ve}else return"data"in U&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+U.width+"x"+U.height+")."),U;return U}function x(U){return B1(U.width)&&B1(U.height)}function A(U){return a?!1:U.wrapS!==Jr||U.wrapT!==Jr||U.minFilter!==$n&&U.minFilter!==Cr}function w(U,I){return U.generateMipmaps&&I&&U.minFilter!==$n&&U.minFilter!==Cr}function N(U){n.generateMipmap(U)}function L(U,I,ee,we,ne=!1){if(a===!1)return I;if(U!==null){if(n[U]!==void 0)return n[U];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+U+"'")}let pe=I;if(I===n.RED&&(ee===n.FLOAT&&(pe=n.R32F),ee===n.HALF_FLOAT&&(pe=n.R16F),ee===n.UNSIGNED_BYTE&&(pe=n.R8)),I===n.RED_INTEGER&&(ee===n.UNSIGNED_BYTE&&(pe=n.R8UI),ee===n.UNSIGNED_SHORT&&(pe=n.R16UI),ee===n.UNSIGNED_INT&&(pe=n.R32UI),ee===n.BYTE&&(pe=n.R8I),ee===n.SHORT&&(pe=n.R16I),ee===n.INT&&(pe=n.R32I)),I===n.RG&&(ee===n.FLOAT&&(pe=n.RG32F),ee===n.HALF_FLOAT&&(pe=n.RG16F),ee===n.UNSIGNED_BYTE&&(pe=n.RG8)),I===n.RGBA){const De=ne?ih:tn.getTransfer(we);ee===n.FLOAT&&(pe=n.RGBA32F),ee===n.HALF_FLOAT&&(pe=n.RGBA16F),ee===n.UNSIGNED_BYTE&&(pe=De===bn?n.SRGB8_ALPHA8:n.RGBA8),ee===n.UNSIGNED_SHORT_4_4_4_4&&(pe=n.RGBA4),ee===n.UNSIGNED_SHORT_5_5_5_1&&(pe=n.RGB5_A1)}return(pe===n.R16F||pe===n.R32F||pe===n.RG16F||pe===n.RG32F||pe===n.RGBA16F||pe===n.RGBA32F)&&e.get("EXT_color_buffer_float"),pe}function C(U,I,ee){return w(U,ee)===!0||U.isFramebufferTexture&&U.minFilter!==$n&&U.minFilter!==Cr?Math.log2(Math.max(I.width,I.height))+1:U.mipmaps!==void 0&&U.mipmaps.length>0?U.mipmaps.length:U.isCompressedTexture&&Array.isArray(U.image)?I.mipmaps.length:1}function k(U){return U===$n||U===L1||U===mp?n.NEAREST:n.LINEAR}function H(U){const I=U.target;I.removeEventListener("dispose",H),ie(I),I.isVideoTexture&&h.delete(I)}function q(U){const I=U.target;I.removeEventListener("dispose",q),$(I)}function ie(U){const I=r.get(U);if(I.__webglInit===void 0)return;const ee=U.source,we=b.get(ee);if(we){const ne=we[I.__cacheKey];ne.usedTimes--,ne.usedTimes===0&&D(U),Object.keys(we).length===0&&b.delete(ee)}r.remove(U)}function D(U){const I=r.get(U);n.deleteTexture(I.__webglTexture);const ee=U.source,we=b.get(ee);delete we[I.__cacheKey],o.memory.textures--}function $(U){const I=U.texture,ee=r.get(U),we=r.get(I);if(we.__webglTexture!==void 0&&(n.deleteTexture(we.__webglTexture),o.memory.textures--),U.depthTexture&&U.depthTexture.dispose(),U.isWebGLCubeRenderTarget)for(let ne=0;ne<6;ne++){if(Array.isArray(ee.__webglFramebuffer[ne]))for(let pe=0;pe=l&&console.warn("THREE.WebGLTextures: Trying to use "+U+" texture units while this GPU supports only "+l),K+=1,U}function ce(U){const I=[];return I.push(U.wrapS),I.push(U.wrapT),I.push(U.wrapR||0),I.push(U.magFilter),I.push(U.minFilter),I.push(U.anisotropy),I.push(U.internalFormat),I.push(U.format),I.push(U.type),I.push(U.generateMipmaps),I.push(U.premultiplyAlpha),I.push(U.flipY),I.push(U.unpackAlignment),I.push(U.colorSpace),I.join()}function ue(U,I){const ee=r.get(U);if(U.isVideoTexture&&Pe(U),U.isRenderTargetTexture===!1&&U.version>0&&ee.__version!==U.version){const we=U.image;if(we===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(we.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Se(ee,U,I);return}}t.bindTexture(n.TEXTURE_2D,ee.__webglTexture,n.TEXTURE0+I)}function xe(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Se(ee,U,I);return}t.bindTexture(n.TEXTURE_2D_ARRAY,ee.__webglTexture,n.TEXTURE0+I)}function Ce(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Se(ee,U,I);return}t.bindTexture(n.TEXTURE_3D,ee.__webglTexture,n.TEXTURE0+I)}function me(U,I){const ee=r.get(U);if(U.version>0&&ee.__version!==U.version){Oe(ee,U,I);return}t.bindTexture(n.TEXTURE_CUBE_MAP,ee.__webglTexture,n.TEXTURE0+I)}const Ae={[Ll]:n.REPEAT,[Jr]:n.CLAMP_TO_EDGE,[rh]:n.MIRRORED_REPEAT},Fe={[$n]:n.NEAREST,[L1]:n.NEAREST_MIPMAP_NEAREST,[mp]:n.NEAREST_MIPMAP_LINEAR,[Cr]:n.LINEAR,[jI]:n.LINEAR_MIPMAP_NEAREST,[Ta]:n.LINEAR_MIPMAP_LINEAR},ze={[qSt]:n.NEVER,[QSt]:n.ALWAYS,[YSt]:n.LESS,[sO]:n.LEQUAL,[$St]:n.EQUAL,[jSt]:n.GEQUAL,[WSt]:n.GREATER,[KSt]:n.NOTEQUAL};function te(U,I,ee){if(ee?(n.texParameteri(U,n.TEXTURE_WRAP_S,Ae[I.wrapS]),n.texParameteri(U,n.TEXTURE_WRAP_T,Ae[I.wrapT]),(U===n.TEXTURE_3D||U===n.TEXTURE_2D_ARRAY)&&n.texParameteri(U,n.TEXTURE_WRAP_R,Ae[I.wrapR]),n.texParameteri(U,n.TEXTURE_MAG_FILTER,Fe[I.magFilter]),n.texParameteri(U,n.TEXTURE_MIN_FILTER,Fe[I.minFilter])):(n.texParameteri(U,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(U,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(U===n.TEXTURE_3D||U===n.TEXTURE_2D_ARRAY)&&n.texParameteri(U,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(I.wrapS!==Jr||I.wrapT!==Jr)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(U,n.TEXTURE_MAG_FILTER,k(I.magFilter)),n.texParameteri(U,n.TEXTURE_MIN_FILTER,k(I.minFilter)),I.minFilter!==$n&&I.minFilter!==Cr&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),I.compareFunction&&(n.texParameteri(U,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(U,n.TEXTURE_COMPARE_FUNC,ze[I.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const we=e.get("EXT_texture_filter_anisotropic");if(I.magFilter===$n||I.minFilter!==mp&&I.minFilter!==Ta||I.type===xs&&e.has("OES_texture_float_linear")===!1||a===!1&&I.type===_d&&e.has("OES_texture_half_float_linear")===!1)return;(I.anisotropy>1||r.get(I).__currentAnisotropy)&&(n.texParameterf(U,we.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(I.anisotropy,i.getMaxAnisotropy())),r.get(I).__currentAnisotropy=I.anisotropy)}}function ye(U,I){let ee=!1;U.__webglInit===void 0&&(U.__webglInit=!0,I.addEventListener("dispose",H));const we=I.source;let ne=b.get(we);ne===void 0&&(ne={},b.set(we,ne));const pe=ce(I);if(pe!==U.__cacheKey){ne[pe]===void 0&&(ne[pe]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,ee=!0),ne[pe].usedTimes++;const De=ne[U.__cacheKey];De!==void 0&&(ne[U.__cacheKey].usedTimes--,De.usedTimes===0&&D(I)),U.__cacheKey=pe,U.__webglTexture=ne[pe].texture}return ee}function Se(U,I,ee){let we=n.TEXTURE_2D;(I.isDataArrayTexture||I.isCompressedArrayTexture)&&(we=n.TEXTURE_2D_ARRAY),I.isData3DTexture&&(we=n.TEXTURE_3D);const ne=ye(U,I),pe=I.source;t.bindTexture(we,U.__webglTexture,n.TEXTURE0+ee);const De=r.get(pe);if(pe.version!==De.__version||ne===!0){t.activeTexture(n.TEXTURE0+ee);const Le=tn.getPrimaries(tn.workingColorSpace),Ve=I.colorSpace===ti?null:tn.getPrimaries(I.colorSpace),ot=I.colorSpace===ti||Le===Ve?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,I.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,I.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,I.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,ot);const wt=A(I)&&x(I.image)===!1;let $e=E(I.image,wt,!1,u);$e=Re(I,$e);const Kt=x($e)||a,mt=s.convert(I.format,I.colorSpace);let ft=s.convert(I.type),et=L(I.internalFormat,mt,ft,I.colorSpace,I.isVideoTexture);te(we,I,Kt);let lt;const It=I.mipmaps,ae=a&&I.isVideoTexture!==!0&&et!==nO,dt=De.__version===void 0||ne===!0,Xe=C(I,$e,Kt);if(I.isDepthTexture)et=n.DEPTH_COMPONENT,a?I.type===xs?et=n.DEPTH_COMPONENT32F:I.type===bo?et=n.DEPTH_COMPONENT24:I.type===ha?et=n.DEPTH24_STENCIL8:et=n.DEPTH_COMPONENT16:I.type===xs&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),I.format===ma&&et===n.DEPTH_COMPONENT&&I.type!==Ky&&I.type!==bo&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),I.type=bo,ft=s.convert(I.type)),I.format===Pl&&et===n.DEPTH_COMPONENT&&(et=n.DEPTH_STENCIL,I.type!==ha&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),I.type=ha,ft=s.convert(I.type))),dt&&(ae?t.texStorage2D(n.TEXTURE_2D,1,et,$e.width,$e.height):t.texImage2D(n.TEXTURE_2D,0,et,$e.width,$e.height,0,mt,ft,null));else if(I.isDataTexture)if(It.length>0&&Kt){ae&&dt&&t.texStorage2D(n.TEXTURE_2D,Xe,et,It[0].width,It[0].height);for(let Be=0,nt=It.length;Be>=1,nt>>=1}}else if(It.length>0&&Kt){ae&&dt&&t.texStorage2D(n.TEXTURE_2D,Xe,et,It[0].width,It[0].height);for(let Be=0,nt=It.length;Be0&&dt++,t.texStorage2D(n.TEXTURE_CUBE_MAP,dt,lt,$e[0].width,$e[0].height));for(let Be=0;Be<6;Be++)if(wt){It?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,0,0,$e[Be].width,$e[Be].height,ft,et,$e[Be].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Be,0,lt,$e[Be].width,$e[Be].height,0,ft,et,$e[Be].data);for(let nt=0;nt>pe),$e=Math.max(1,I.height>>pe);ne===n.TEXTURE_3D||ne===n.TEXTURE_2D_ARRAY?t.texImage3D(ne,pe,Ve,wt,$e,I.depth,0,De,Le,null):t.texImage2D(ne,pe,Ve,wt,$e,0,De,Le,null)}t.bindFramebuffer(n.FRAMEBUFFER,U),Ue(I)?f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,we,ne,r.get(ee).__webglTexture,0,fe(I)):(ne===n.TEXTURE_2D||ne>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&ne<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,we,ne,r.get(ee).__webglTexture,pe),t.bindFramebuffer(n.FRAMEBUFFER,null)}function le(U,I,ee){if(n.bindRenderbuffer(n.RENDERBUFFER,U),I.depthBuffer&&!I.stencilBuffer){let we=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(ee||Ue(I)){const ne=I.depthTexture;ne&&ne.isDepthTexture&&(ne.type===xs?we=n.DEPTH_COMPONENT32F:ne.type===bo&&(we=n.DEPTH_COMPONENT24));const pe=fe(I);Ue(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,pe,we,I.width,I.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,pe,we,I.width,I.height)}else n.renderbufferStorage(n.RENDERBUFFER,we,I.width,I.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,U)}else if(I.depthBuffer&&I.stencilBuffer){const we=fe(I);ee&&Ue(I)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,we,n.DEPTH24_STENCIL8,I.width,I.height):Ue(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,we,n.DEPTH24_STENCIL8,I.width,I.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,I.width,I.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,U)}else{const we=I.isWebGLMultipleRenderTargets===!0?I.texture:[I.texture];for(let ne=0;ne0){ee.__webglFramebuffer[Le]=[];for(let Ve=0;Ve0){ee.__webglFramebuffer=[];for(let Le=0;Le0&&Ue(U)===!1){const Le=pe?I:[I];ee.__webglMultisampledFramebuffer=n.createFramebuffer(),ee.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,ee.__webglMultisampledFramebuffer);for(let Ve=0;Ve0)for(let Ve=0;Ve0)for(let Ve=0;Ve0&&Ue(U)===!1){const I=U.isWebGLMultipleRenderTargets?U.texture:[U.texture],ee=U.width,we=U.height;let ne=n.COLOR_BUFFER_BIT;const pe=[],De=U.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,Le=r.get(U),Ve=U.isWebGLMultipleRenderTargets===!0;if(Ve)for(let ot=0;ot0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&I.__useRenderToTexture!==!1}function Pe(U){const I=o.render.frame;h.get(U)!==I&&(h.set(U,I),U.update())}function Re(U,I){const ee=U.colorSpace,we=U.format,ne=U.type;return U.isCompressedTexture===!0||U.isVideoTexture===!0||U.format===U1||ee!==er&&ee!==ti&&(tn.getTransfer(ee)===bn?a===!1?e.has("EXT_sRGB")===!0&&we===ei?(U.format=U1,U.minFilter=Cr,U.generateMipmaps=!1):I=aO.sRGBToLinear(I):(we!==ei||ne!==To)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",ee)),I}this.allocateTextureUnit=Z,this.resetTextureUnits=B,this.setTexture2D=ue,this.setTexture2DArray=xe,this.setTexture3D=Ce,this.setTextureCube=me,this.rebindTextures=oe,this.setupRenderTarget=ge,this.updateRenderTargetMipmap=Ee,this.updateMultisampleRenderTarget=Te,this.setupDepthRenderbuffer=G,this.setupFrameBufferTexture=Ye,this.useMultisampledRTT=Ue}function dAt(n,e,t){const r=t.isWebGL2;function i(s,o=ti){let a;const l=tn.getTransfer(o);if(s===To)return n.UNSIGNED_BYTE;if(s===XI)return n.UNSIGNED_SHORT_4_4_4_4;if(s===ZI)return n.UNSIGNED_SHORT_5_5_5_1;if(s===kSt)return n.BYTE;if(s===ISt)return n.SHORT;if(s===Ky)return n.UNSIGNED_SHORT;if(s===QI)return n.INT;if(s===bo)return n.UNSIGNED_INT;if(s===xs)return n.FLOAT;if(s===_d)return r?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(s===OSt)return n.ALPHA;if(s===ei)return n.RGBA;if(s===DSt)return n.LUMINANCE;if(s===LSt)return n.LUMINANCE_ALPHA;if(s===ma)return n.DEPTH_COMPONENT;if(s===Pl)return n.DEPTH_STENCIL;if(s===U1)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(s===PSt)return n.RED;if(s===JI)return n.RED_INTEGER;if(s===FSt)return n.RG;if(s===eO)return n.RG_INTEGER;if(s===tO)return n.RGBA_INTEGER;if(s===Z0||s===J0||s===eb||s===tb)if(l===bn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(s===Z0)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(s===J0)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(s===eb)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(s===tb)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(s===Z0)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(s===J0)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(s===eb)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(s===tb)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(s===NA||s===kA||s===IA||s===OA)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(s===NA)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(s===kA)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(s===IA)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(s===OA)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(s===nO)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(s===DA||s===LA)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(s===DA)return l===bn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(s===LA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(s===PA||s===FA||s===UA||s===BA||s===GA||s===zA||s===VA||s===HA||s===qA||s===YA||s===$A||s===WA||s===KA||s===jA)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(s===PA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(s===FA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(s===UA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(s===BA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(s===GA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(s===zA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(s===VA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(s===HA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(s===qA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(s===YA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(s===$A)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(s===WA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(s===KA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(s===jA)return l===bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(s===nb||s===QA||s===XA)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(s===nb)return l===bn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(s===QA)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(s===XA)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(s===USt||s===ZA||s===JA||s===eR)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(s===nb)return a.COMPRESSED_RED_RGTC1_EXT;if(s===ZA)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(s===JA)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(s===eR)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return s===ha?r?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[s]!==void 0?n[s]:null}return{convert:i}}class uAt extends gr{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class aa extends wn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const pAt={type:"move"};class Cb{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new aa,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 aa,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new he,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new he),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new aa,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new he,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new he),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const r of e.hand.values())this._getHandJoint(t,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,r){let i=null,s=null,o=null;const a=this._targetRay,l=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const v of e.hand.values()){const b=t.getJointPose(v,r),_=this._getHandJoint(d,v);b!==null&&(_.matrix.fromArray(b.transform.matrix),_.matrix.decompose(_.position,_.rotation,_.scale),_.matrixWorldNeedsUpdate=!0,_.jointRadius=b.radius),_.visible=b!==null}const u=d.joints["index-finger-tip"],m=d.joints["thumb-tip"],f=u.position.distanceTo(m.position),g=.02,h=.005;d.inputState.pinching&&f>g+h?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&f<=g-h&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(s=t.getPose(e.gripSpace,r),s!==null&&(l.matrix.fromArray(s.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,s.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(s.linearVelocity)):l.hasLinearVelocity=!1,s.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(s.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,r),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(pAt)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=s!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const r=new aa;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[t.jointName]=r,e.add(r)}return e.joints[t.jointName]}}class hAt extends sc{constructor(e,t){super();const r=this;let i=null,s=1,o=null,a="local-floor",l=1,d=null,u=null,m=null,f=null,g=null,h=null;const v=t.getContextAttributes();let b=null,_=null;const y=[],E=[],x=new $t;let A=null;const w=new gr;w.layers.enable(1),w.viewport=new mn;const N=new gr;N.layers.enable(2),N.viewport=new mn;const L=[w,N],C=new uAt;C.layers.enable(1),C.layers.enable(2);let k=null,H=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Cb,y[me]=Ae),Ae.getTargetRaySpace()},this.getControllerGrip=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Cb,y[me]=Ae),Ae.getGripSpace()},this.getHand=function(me){let Ae=y[me];return Ae===void 0&&(Ae=new Cb,y[me]=Ae),Ae.getHandSpace()};function q(me){const Ae=E.indexOf(me.inputSource);if(Ae===-1)return;const Fe=y[Ae];Fe!==void 0&&(Fe.update(me.inputSource,me.frame,d||o),Fe.dispatchEvent({type:me.type,data:me.inputSource}))}function ie(){i.removeEventListener("select",q),i.removeEventListener("selectstart",q),i.removeEventListener("selectend",q),i.removeEventListener("squeeze",q),i.removeEventListener("squeezestart",q),i.removeEventListener("squeezeend",q),i.removeEventListener("end",ie),i.removeEventListener("inputsourceschange",D);for(let me=0;me=0&&(E[ze]=null,y[ze].disconnect(Fe))}for(let Ae=0;Ae=E.length){E.push(Fe),ze=ye;break}else if(E[ye]===null){E[ye]=Fe,ze=ye;break}if(ze===-1)break}const te=y[ze];te&&te.connect(Fe)}}const $=new he,K=new he;function B(me,Ae,Fe){$.setFromMatrixPosition(Ae.matrixWorld),K.setFromMatrixPosition(Fe.matrixWorld);const ze=$.distanceTo(K),te=Ae.projectionMatrix.elements,ye=Fe.projectionMatrix.elements,Se=te[14]/(te[10]-1),Oe=te[14]/(te[10]+1),Ye=(te[9]+1)/te[5],le=(te[9]-1)/te[5],V=(te[8]-1)/te[0],G=(ye[8]+1)/ye[0],oe=Se*V,ge=Se*G,Ee=ze/(-V+G),Te=Ee*-V;Ae.matrixWorld.decompose(me.position,me.quaternion,me.scale),me.translateX(Te),me.translateZ(Ee),me.matrixWorld.compose(me.position,me.quaternion,me.scale),me.matrixWorldInverse.copy(me.matrixWorld).invert();const fe=Se+Ee,Ue=Oe+Ee,Pe=oe-Te,Re=ge+(ze-Te),U=Ye*Oe/Ue*fe,I=le*Oe/Ue*fe;me.projectionMatrix.makePerspective(Pe,Re,U,I,fe,Ue),me.projectionMatrixInverse.copy(me.projectionMatrix).invert()}function Z(me,Ae){Ae===null?me.matrixWorld.copy(me.matrix):me.matrixWorld.multiplyMatrices(Ae.matrixWorld,me.matrix),me.matrixWorldInverse.copy(me.matrixWorld).invert()}this.updateCamera=function(me){if(i===null)return;C.near=N.near=w.near=me.near,C.far=N.far=w.far=me.far,(k!==C.near||H!==C.far)&&(i.updateRenderState({depthNear:C.near,depthFar:C.far}),k=C.near,H=C.far);const Ae=me.parent,Fe=C.cameras;Z(C,Ae);for(let ze=0;ze0&&(b.alphaTest.value=_.alphaTest);const y=e.get(_).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=_.reflectivity,b.ior.value=_.ior,b.refractionRatio.value=_.refractionRatio),_.lightMap){b.lightMap.value=_.lightMap;const E=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=_.lightMapIntensity*E,t(_.lightMap,b.lightMapTransform)}_.aoMap&&(b.aoMap.value=_.aoMap,b.aoMapIntensity.value=_.aoMapIntensity,t(_.aoMap,b.aoMapTransform))}function o(b,_){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,_.map&&(b.map.value=_.map,t(_.map,b.mapTransform))}function a(b,_){b.dashSize.value=_.dashSize,b.totalSize.value=_.dashSize+_.gapSize,b.scale.value=_.scale}function l(b,_,y,E){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,b.size.value=_.size*y,b.scale.value=E*.5,_.map&&(b.map.value=_.map,t(_.map,b.uvTransform)),_.alphaMap&&(b.alphaMap.value=_.alphaMap,t(_.alphaMap,b.alphaMapTransform)),_.alphaTest>0&&(b.alphaTest.value=_.alphaTest)}function d(b,_){b.diffuse.value.copy(_.color),b.opacity.value=_.opacity,b.rotation.value=_.rotation,_.map&&(b.map.value=_.map,t(_.map,b.mapTransform)),_.alphaMap&&(b.alphaMap.value=_.alphaMap,t(_.alphaMap,b.alphaMapTransform)),_.alphaTest>0&&(b.alphaTest.value=_.alphaTest)}function u(b,_){b.specular.value.copy(_.specular),b.shininess.value=Math.max(_.shininess,1e-4)}function m(b,_){_.gradientMap&&(b.gradientMap.value=_.gradientMap)}function f(b,_){b.metalness.value=_.metalness,_.metalnessMap&&(b.metalnessMap.value=_.metalnessMap,t(_.metalnessMap,b.metalnessMapTransform)),b.roughness.value=_.roughness,_.roughnessMap&&(b.roughnessMap.value=_.roughnessMap,t(_.roughnessMap,b.roughnessMapTransform)),e.get(_).envMap&&(b.envMapIntensity.value=_.envMapIntensity)}function g(b,_,y){b.ior.value=_.ior,_.sheen>0&&(b.sheenColor.value.copy(_.sheenColor).multiplyScalar(_.sheen),b.sheenRoughness.value=_.sheenRoughness,_.sheenColorMap&&(b.sheenColorMap.value=_.sheenColorMap,t(_.sheenColorMap,b.sheenColorMapTransform)),_.sheenRoughnessMap&&(b.sheenRoughnessMap.value=_.sheenRoughnessMap,t(_.sheenRoughnessMap,b.sheenRoughnessMapTransform))),_.clearcoat>0&&(b.clearcoat.value=_.clearcoat,b.clearcoatRoughness.value=_.clearcoatRoughness,_.clearcoatMap&&(b.clearcoatMap.value=_.clearcoatMap,t(_.clearcoatMap,b.clearcoatMapTransform)),_.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=_.clearcoatRoughnessMap,t(_.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),_.clearcoatNormalMap&&(b.clearcoatNormalMap.value=_.clearcoatNormalMap,t(_.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(_.clearcoatNormalScale),_.side===kr&&b.clearcoatNormalScale.value.negate())),_.iridescence>0&&(b.iridescence.value=_.iridescence,b.iridescenceIOR.value=_.iridescenceIOR,b.iridescenceThicknessMinimum.value=_.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=_.iridescenceThicknessRange[1],_.iridescenceMap&&(b.iridescenceMap.value=_.iridescenceMap,t(_.iridescenceMap,b.iridescenceMapTransform)),_.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=_.iridescenceThicknessMap,t(_.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),_.transmission>0&&(b.transmission.value=_.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),_.transmissionMap&&(b.transmissionMap.value=_.transmissionMap,t(_.transmissionMap,b.transmissionMapTransform)),b.thickness.value=_.thickness,_.thicknessMap&&(b.thicknessMap.value=_.thicknessMap,t(_.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=_.attenuationDistance,b.attenuationColor.value.copy(_.attenuationColor)),_.anisotropy>0&&(b.anisotropyVector.value.set(_.anisotropy*Math.cos(_.anisotropyRotation),_.anisotropy*Math.sin(_.anisotropyRotation)),_.anisotropyMap&&(b.anisotropyMap.value=_.anisotropyMap,t(_.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=_.specularIntensity,b.specularColor.value.copy(_.specularColor),_.specularColorMap&&(b.specularColorMap.value=_.specularColorMap,t(_.specularColorMap,b.specularColorMapTransform)),_.specularIntensityMap&&(b.specularIntensityMap.value=_.specularIntensityMap,t(_.specularIntensityMap,b.specularIntensityMapTransform))}function h(b,_){_.matcap&&(b.matcap.value=_.matcap)}function v(b,_){const y=e.get(_).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function fAt(n,e,t,r){let i={},s={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,E){const x=E.program;r.uniformBlockBinding(y,x)}function d(y,E){let x=i[y.id];x===void 0&&(h(y),x=u(y),i[y.id]=x,y.addEventListener("dispose",b));const A=E.program;r.updateUBOMapping(y,A);const w=e.render.frame;s[y.id]!==w&&(f(y),s[y.id]=w)}function u(y){const E=m();y.__bindingPointIndex=E;const x=n.createBuffer(),A=y.__size,w=y.usage;return n.bindBuffer(n.UNIFORM_BUFFER,x),n.bufferData(n.UNIFORM_BUFFER,A,w),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,E,x),x}function m(){for(let y=0;y0){w=x%A;const q=A-w;w!==0&&q-k.boundary<0&&(x+=A-w,C.__offset=x)}x+=k.storage}return w=x%A,w>0&&(x+=A-w),y.__size=x,y.__cache={},this}function v(y){const E={boundary:0,storage:0};return typeof y=="number"?(E.boundary=4,E.storage=4):y.isVector2?(E.boundary=8,E.storage=8):y.isVector3||y.isColor?(E.boundary=16,E.storage=12):y.isVector4?(E.boundary=16,E.storage=16):y.isMatrix3?(E.boundary=48,E.storage=48):y.isMatrix4?(E.boundary=64,E.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),E}function b(y){const E=y.target;E.removeEventListener("dispose",b);const x=o.indexOf(E.__bindingPointIndex);o.splice(x,1),n.deleteBuffer(i[E.id]),delete i[E.id],delete s[E.id]}function _(){for(const y in i)n.deleteBuffer(i[y]);o=[],i={},s={}}return{bind:l,update:d,dispose:_}}class TO{constructor(e={}){const{canvas:t=p2t(),context:r=null,depth:i=!0,stencil:s=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:m=!1}=e;this.isWebGLRenderer=!0;let f;r!==null?f=r.getContextAttributes().alpha:f=o;const g=new Uint32Array(4),h=new Int32Array(4);let v=null,b=null;const _=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Mn,this._useLegacyLights=!1,this.toneMapping=xo,this.toneMappingExposure=1;const E=this;let x=!1,A=0,w=0,N=null,L=-1,C=null;const k=new mn,H=new mn;let q=null;const ie=new Nt(0);let D=0,$=t.width,K=t.height,B=1,Z=null,ce=null;const ue=new mn(0,0,$,K),xe=new mn(0,0,$,K);let Ce=!1;const me=new Zy;let Ae=!1,Fe=!1,ze=null;const te=new Ht,ye=new $t,Se=new he,Oe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ye(){return N===null?B:1}let le=r;function V(z,be){for(let Ne=0;Ne{function ut(){if(ke.forEach(function(_t){Te.get(_t).currentProgram.isReady()&&ke.delete(_t)}),ke.size===0){Me(z);return}setTimeout(ut,10)}G.get("KHR_parallel_shader_compile")!==null?ut():setTimeout(ut,10)})};let jt=null;function Un(z){jt&&jt(z)}function tr(){nr.stop()}function un(){nr.start()}const nr=new _O;nr.setAnimationLoop(Un),typeof self<"u"&&nr.setContext(self),this.setAnimationLoop=function(z){jt=z,lt.setAnimationLoop(z),z===null?nr.stop():nr.start()},lt.addEventListener("sessionstart",tr),lt.addEventListener("sessionend",un),this.render=function(z,be){if(be!==void 0&&be.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(x===!0)return;z.matrixWorldAutoUpdate===!0&&z.updateMatrixWorld(),be.parent===null&&be.matrixWorldAutoUpdate===!0&&be.updateMatrixWorld(),lt.enabled===!0&<.isPresenting===!0&&(lt.cameraAutoUpdate===!0&<.updateCamera(be),be=lt.getCamera()),z.isScene===!0&&z.onBeforeRender(E,z,be,N),b=pe.get(z,y.length),b.init(),y.push(b),te.multiplyMatrices(be.projectionMatrix,be.matrixWorldInverse),me.setFromProjectionMatrix(te),Fe=this.localClippingEnabled,Ae=De.init(this.clippingPlanes,Fe),v=ne.get(z,_.length),v.init(),_.push(v),bi(z,be,0,E.sortObjects),v.finish(),E.sortObjects===!0&&v.sort(Z,ce),this.info.render.frame++,Ae===!0&&De.beginShadows();const Ne=b.state.shadowsArray;if(Le.render(Ne,z,be),Ae===!0&&De.endShadows(),this.info.autoReset===!0&&this.info.reset(),Ve.render(v,z),b.setupLights(E._useLegacyLights),be.isArrayCamera){const ke=be.cameras;for(let Me=0,ut=ke.length;Me0?b=y[y.length-1]:b=null,_.pop(),_.length>0?v=_[_.length-1]:v=null};function bi(z,be,Ne,ke){if(z.visible===!1)return;if(z.layers.test(be.layers)){if(z.isGroup)Ne=z.renderOrder;else if(z.isLOD)z.autoUpdate===!0&&z.update(be);else if(z.isLight)b.pushLight(z),z.castShadow&&b.pushShadow(z);else if(z.isSprite){if(!z.frustumCulled||me.intersectsSprite(z)){ke&&Se.setFromMatrixPosition(z.matrixWorld).applyMatrix4(te);const _t=I.update(z),Ct=z.material;Ct.visible&&v.push(z,_t,Ct,Ne,Se.z,null)}}else if((z.isMesh||z.isLine||z.isPoints)&&(!z.frustumCulled||me.intersectsObject(z))){const _t=I.update(z),Ct=z.material;if(ke&&(z.boundingSphere!==void 0?(z.boundingSphere===null&&z.computeBoundingSphere(),Se.copy(z.boundingSphere.center)):(_t.boundingSphere===null&&_t.computeBoundingSphere(),Se.copy(_t.boundingSphere.center)),Se.applyMatrix4(z.matrixWorld).applyMatrix4(te)),Array.isArray(Ct)){const Mt=_t.groups;for(let Bt=0,Ot=Mt.length;Bt0&&gE(Me,ut,be,Ne),ke&&ge.viewport(k.copy(ke)),Me.length>0&&uc(Me,be,Ne),ut.length>0&&uc(ut,be,Ne),_t.length>0&&uc(_t,be,Ne),ge.buffers.depth.setTest(!0),ge.buffers.depth.setMask(!0),ge.buffers.color.setMask(!0),ge.setPolygonOffset(!1)}function gE(z,be,Ne,ke){if((Ne.isScene===!0?Ne.overrideMaterial:null)!==null)return;const ut=oe.isWebGL2;ze===null&&(ze=new wa(1,1,{generateMipmaps:!0,type:G.has("EXT_color_buffer_half_float")?_d:To,minFilter:Ta,samples:ut?4:0})),E.getDrawingBufferSize(ye),ut?ze.setSize(ye.x,ye.y):ze.setSize(lh(ye.x),lh(ye.y));const _t=E.getRenderTarget();E.setRenderTarget(ze),E.getClearColor(ie),D=E.getClearAlpha(),D<1&&E.setClearColor(16777215,.5),E.clear();const Ct=E.toneMapping;E.toneMapping=xo,uc(z,Ne,ke),fe.updateMultisampleRenderTarget(ze),fe.updateRenderTargetMipmap(ze);let Mt=!1;for(let Bt=0,Ot=be.length;Bt0),Lt=!!Ne.morphAttributes.position,An=!!Ne.morphAttributes.normal,Sr=!!Ne.morphAttributes.color;let Bn=xo;ke.toneMapped&&(N===null||N.isXRRenderTarget===!0)&&(Bn=E.toneMapping);const Li=Ne.morphAttributes.position||Ne.morphAttributes.normal||Ne.morphAttributes.color,vn=Li!==void 0?Li.length:0,zt=Te.get(ke),Gd=b.state.lights;if(Ae===!0&&(Fe===!0||z!==C)){const Dr=z===C&&ke.id===L;De.setState(ke,z,Dr)}let Sn=!1;ke.version===zt.__version?(zt.needsLights&&zt.lightsStateVersion!==Gd.state.version||zt.outputColorSpace!==Ct||Me.isBatchedMesh&&zt.batching===!1||!Me.isBatchedMesh&&zt.batching===!0||Me.isInstancedMesh&&zt.instancing===!1||!Me.isInstancedMesh&&zt.instancing===!0||Me.isSkinnedMesh&&zt.skinning===!1||!Me.isSkinnedMesh&&zt.skinning===!0||Me.isInstancedMesh&&zt.instancingColor===!0&&Me.instanceColor===null||Me.isInstancedMesh&&zt.instancingColor===!1&&Me.instanceColor!==null||zt.envMap!==Mt||ke.fog===!0&&zt.fog!==ut||zt.numClippingPlanes!==void 0&&(zt.numClippingPlanes!==De.numPlanes||zt.numIntersection!==De.numIntersection)||zt.vertexAlphas!==Bt||zt.vertexTangents!==Ot||zt.morphTargets!==Lt||zt.morphNormals!==An||zt.morphColors!==Sr||zt.toneMapping!==Bn||oe.isWebGL2===!0&&zt.morphTargetsCount!==vn)&&(Sn=!0):(Sn=!0,zt.__version=ke.version);let Hs=zt.currentProgram;Sn===!0&&(Hs=pc(ke,be,Me));let vm=!1,Ia=!1,zd=!1;const Kn=Hs.getUniforms(),qs=zt.uniforms;if(ge.useProgram(Hs.program)&&(vm=!0,Ia=!0,zd=!0),ke.id!==L&&(L=ke.id,Ia=!0),vm||C!==z){Kn.setValue(le,"projectionMatrix",z.projectionMatrix),Kn.setValue(le,"viewMatrix",z.matrixWorldInverse);const Dr=Kn.map.cameraPosition;Dr!==void 0&&Dr.setValue(le,Se.setFromMatrixPosition(z.matrixWorld)),oe.logarithmicDepthBuffer&&Kn.setValue(le,"logDepthBufFC",2/(Math.log(z.far+1)/Math.LN2)),(ke.isMeshPhongMaterial||ke.isMeshToonMaterial||ke.isMeshLambertMaterial||ke.isMeshBasicMaterial||ke.isMeshStandardMaterial||ke.isShaderMaterial)&&Kn.setValue(le,"isOrthographic",z.isOrthographicCamera===!0),C!==z&&(C=z,Ia=!0,zd=!0)}if(Me.isSkinnedMesh){Kn.setOptional(le,Me,"bindMatrix"),Kn.setOptional(le,Me,"bindMatrixInverse");const Dr=Me.skeleton;Dr&&(oe.floatVertexTextures?(Dr.boneTexture===null&&Dr.computeBoneTexture(),Kn.setValue(le,"boneTexture",Dr.boneTexture,fe)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}Me.isBatchedMesh&&(Kn.setOptional(le,Me,"batchingTexture"),Kn.setValue(le,"batchingTexture",Me._matricesTexture,fe));const Vd=Ne.morphAttributes;if((Vd.position!==void 0||Vd.normal!==void 0||Vd.color!==void 0&&oe.isWebGL2===!0)&&ot.update(Me,Ne,Hs),(Ia||zt.receiveShadow!==Me.receiveShadow)&&(zt.receiveShadow=Me.receiveShadow,Kn.setValue(le,"receiveShadow",Me.receiveShadow)),ke.isMeshGouraudMaterial&&ke.envMap!==null&&(qs.envMap.value=Mt,qs.flipEnvMap.value=Mt.isCubeTexture&&Mt.isRenderTargetTexture===!1?-1:1),Ia&&(Kn.setValue(le,"toneMappingExposure",E.toneMappingExposure),zt.needsLights&&bE(qs,zd),ut&&ke.fog===!0&&we.refreshFogUniforms(qs,ut),we.refreshMaterialUniforms(qs,ke,B,K,ze),fp.upload(le,_m(zt),qs,fe)),ke.isShaderMaterial&&ke.uniformsNeedUpdate===!0&&(fp.upload(le,_m(zt),qs,fe),ke.uniformsNeedUpdate=!1),ke.isSpriteMaterial&&Kn.setValue(le,"center",Me.center),Kn.setValue(le,"modelViewMatrix",Me.modelViewMatrix),Kn.setValue(le,"normalMatrix",Me.normalMatrix),Kn.setValue(le,"modelMatrix",Me.matrixWorld),ke.isShaderMaterial||ke.isRawShaderMaterial){const Dr=ke.uniformsGroups;for(let Hd=0,yE=Dr.length;Hd0&&fe.useMultisampledRTT(z)===!1?Me=Te.get(z).__webglMultisampledFramebuffer:Array.isArray(Ot)?Me=Ot[Ne]:Me=Ot,k.copy(z.viewport),H.copy(z.scissor),q=z.scissorTest}else k.copy(ue).multiplyScalar(B).floor(),H.copy(xe).multiplyScalar(B).floor(),q=Ce;if(ge.bindFramebuffer(le.FRAMEBUFFER,Me)&&oe.drawBuffers&&ke&&ge.drawBuffers(z,Me),ge.viewport(k),ge.scissor(H),ge.setScissorTest(q),ut){const Mt=Te.get(z.texture);le.framebufferTexture2D(le.FRAMEBUFFER,le.COLOR_ATTACHMENT0,le.TEXTURE_CUBE_MAP_POSITIVE_X+be,Mt.__webglTexture,Ne)}else if(_t){const Mt=Te.get(z.texture),Bt=be||0;le.framebufferTextureLayer(le.FRAMEBUFFER,le.COLOR_ATTACHMENT0,Mt.__webglTexture,Ne||0,Bt)}L=-1},this.readRenderTargetPixels=function(z,be,Ne,ke,Me,ut,_t){if(!(z&&z.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Ct=Te.get(z).__webglFramebuffer;if(z.isWebGLCubeRenderTarget&&_t!==void 0&&(Ct=Ct[_t]),Ct){ge.bindFramebuffer(le.FRAMEBUFFER,Ct);try{const Mt=z.texture,Bt=Mt.format,Ot=Mt.type;if(Bt!==ei&&Kt.convert(Bt)!==le.getParameter(le.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const Lt=Ot===_d&&(G.has("EXT_color_buffer_half_float")||oe.isWebGL2&&G.has("EXT_color_buffer_float"));if(Ot!==To&&Kt.convert(Ot)!==le.getParameter(le.IMPLEMENTATION_COLOR_READ_TYPE)&&!(Ot===xs&&(oe.isWebGL2||G.has("OES_texture_float")||G.has("WEBGL_color_buffer_float")))&&!Lt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}be>=0&&be<=z.width-ke&&Ne>=0&&Ne<=z.height-Me&&le.readPixels(be,Ne,ke,Me,Kt.convert(Bt),Kt.convert(Ot),ut)}finally{const Mt=N!==null?Te.get(N).__webglFramebuffer:null;ge.bindFramebuffer(le.FRAMEBUFFER,Mt)}}},this.copyFramebufferToTexture=function(z,be,Ne=0){const ke=Math.pow(2,-Ne),Me=Math.floor(be.image.width*ke),ut=Math.floor(be.image.height*ke);fe.setTexture2D(be,0),le.copyTexSubImage2D(le.TEXTURE_2D,Ne,0,0,z.x,z.y,Me,ut),ge.unbindTexture()},this.copyTextureToTexture=function(z,be,Ne,ke=0){const Me=be.image.width,ut=be.image.height,_t=Kt.convert(Ne.format),Ct=Kt.convert(Ne.type);fe.setTexture2D(Ne,0),le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,Ne.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ne.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,Ne.unpackAlignment),be.isDataTexture?le.texSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,Me,ut,_t,Ct,be.image.data):be.isCompressedTexture?le.compressedTexSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,be.mipmaps[0].width,be.mipmaps[0].height,_t,be.mipmaps[0].data):le.texSubImage2D(le.TEXTURE_2D,ke,z.x,z.y,_t,Ct,be.image),ke===0&&Ne.generateMipmaps&&le.generateMipmap(le.TEXTURE_2D),ge.unbindTexture()},this.copyTextureToTexture3D=function(z,be,Ne,ke,Me=0){if(E.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const ut=z.max.x-z.min.x+1,_t=z.max.y-z.min.y+1,Ct=z.max.z-z.min.z+1,Mt=Kt.convert(ke.format),Bt=Kt.convert(ke.type);let Ot;if(ke.isData3DTexture)fe.setTexture3D(ke,0),Ot=le.TEXTURE_3D;else if(ke.isDataArrayTexture)fe.setTexture2DArray(ke,0),Ot=le.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}le.pixelStorei(le.UNPACK_FLIP_Y_WEBGL,ke.flipY),le.pixelStorei(le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ke.premultiplyAlpha),le.pixelStorei(le.UNPACK_ALIGNMENT,ke.unpackAlignment);const Lt=le.getParameter(le.UNPACK_ROW_LENGTH),An=le.getParameter(le.UNPACK_IMAGE_HEIGHT),Sr=le.getParameter(le.UNPACK_SKIP_PIXELS),Bn=le.getParameter(le.UNPACK_SKIP_ROWS),Li=le.getParameter(le.UNPACK_SKIP_IMAGES),vn=Ne.isCompressedTexture?Ne.mipmaps[0]:Ne.image;le.pixelStorei(le.UNPACK_ROW_LENGTH,vn.width),le.pixelStorei(le.UNPACK_IMAGE_HEIGHT,vn.height),le.pixelStorei(le.UNPACK_SKIP_PIXELS,z.min.x),le.pixelStorei(le.UNPACK_SKIP_ROWS,z.min.y),le.pixelStorei(le.UNPACK_SKIP_IMAGES,z.min.z),Ne.isDataTexture||Ne.isData3DTexture?le.texSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,Bt,vn.data):Ne.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),le.compressedTexSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,vn.data)):le.texSubImage3D(Ot,Me,be.x,be.y,be.z,ut,_t,Ct,Mt,Bt,vn),le.pixelStorei(le.UNPACK_ROW_LENGTH,Lt),le.pixelStorei(le.UNPACK_IMAGE_HEIGHT,An),le.pixelStorei(le.UNPACK_SKIP_PIXELS,Sr),le.pixelStorei(le.UNPACK_SKIP_ROWS,Bn),le.pixelStorei(le.UNPACK_SKIP_IMAGES,Li),Me===0&&ke.generateMipmaps&&le.generateMipmap(Ot),ge.unbindTexture()},this.initTexture=function(z){z.isCubeTexture?fe.setTextureCube(z,0):z.isData3DTexture?fe.setTexture3D(z,0):z.isDataArrayTexture||z.isCompressedArrayTexture?fe.setTexture2DArray(z,0):fe.setTexture2D(z,0),ge.unbindTexture()},this.resetState=function(){A=0,w=0,N=null,ge.reset(),mt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Ts}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===Qy?"display-p3":"srgb",t.unpackColorSpace=tn.workingColorSpace===lm?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===Mn?fa:iO}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===fa?Mn:er}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class gAt extends TO{}gAt.prototype.isWebGL1Renderer=!0;class _At extends wn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class bAt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=F1,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Ri()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,r){e*=this.stride,r*=t.stride;for(let i=0,s=this.stride;il)continue;f.applyMatrix4(this.matrixWorld);const L=e.ray.origin.distanceTo(f);Le.far||t.push({distance:L,point:m.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}else{const _=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let E=_,x=y-1;El)continue;f.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(f);we.far||t.push({distance:w,point:m.clone().applyMatrix4(this.matrixWorld),index:E,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,r=Object.keys(t);if(r.length>0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;si.far)return;s.push({distance:d,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class sE extends Mi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Nt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Nt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=jy,this.normalScale=new $t(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Vs extends sE{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new $t(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return or(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new Nt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new Nt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Nt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class oM extends Mi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Nt(16777215),this.specular=new Nt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Nt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=jy,this.normalScale=new $t(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Wy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function ju(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function RAt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function MAt(n){function e(i,s){return n[i]-n[s]}const t=n.length,r=new Array(t);for(let i=0;i!==t;++i)r[i]=i;return r.sort(e),r}function aM(n,e,t){const r=n.length,i=new n.constructor(r);for(let s=0,o=0;o!==r;++s){const a=t[s]*e;for(let l=0;l!==e;++l)i[o++]=n[a+l]}return i}function RO(n,e,t,r){let i=1,s=n[0];for(;s!==void 0&&s[r]===void 0;)s=n[i++];if(s===void 0)return;let o=s[r];if(o!==void 0)if(Array.isArray(o))do o=s[r],o!==void 0&&(e.push(s.time),t.push.apply(t,o)),s=n[i++];while(s!==void 0);else if(o.toArray!==void 0)do o=s[r],o!==void 0&&(e.push(s.time),o.toArray(t,t.length)),s=n[i++];while(s!==void 0);else do o=s[r],o!==void 0&&(e.push(s.time),t.push(o)),s=n[i++];while(s!==void 0)}class Fd{constructor(e,t,r,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new t.constructor(r),this.sampleValues=t,this.valueSize=r,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let r=this._cachedIndex,i=t[r],s=t[r-1];e:{t:{let o;n:{r:if(!(e=s)){const a=t[1];e=s)break t}o=r,r=0;break n}break e}for(;r>>1;et;)--o;if(++o,s!==0||o!==i){s>=o&&(o=Math.max(o,1),s=o-1);const a=this.getValueSize();this.times=r.slice(s,o),this.values=this.values.slice(s*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const r=this.times,i=this.values,s=r.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==s;a++){const l=r[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(i!==void 0&&RAt(i))for(let a=0,l=i.length;a!==l;++a){const d=i[a];if(isNaN(d)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,d),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===rb,s=e.length-1;let o=1;for(let a=1;a0){e[o]=e[s];for(let a=s*r,l=o*r,d=0;d!==r;++d)t[l+d]=t[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*r)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),r=this.constructor,i=new r(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}as.prototype.TimeBufferType=Float32Array;as.prototype.ValueBufferType=Float32Array;as.prototype.DefaultInterpolation=Fl;class ac extends as{}ac.prototype.ValueTypeName="bool";ac.prototype.ValueBufferType=Array;ac.prototype.DefaultInterpolation=bd;ac.prototype.InterpolantFactoryMethodLinear=void 0;ac.prototype.InterpolantFactoryMethodSmooth=void 0;class MO extends as{}MO.prototype.ValueTypeName="color";class Gl extends as{}Gl.prototype.ValueTypeName="number";class OAt extends Fd{constructor(e,t,r,i){super(e,t,r,i)}interpolate_(e,t,r,i){const s=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(r-t)/(i-t);let d=e*a;for(let u=d+a;d!==u;d+=4)Bo.slerpFlat(s,0,o,d-a,o,d,l);return s}}class Aa extends as{InterpolantFactoryMethodLinear(e){return new OAt(this.times,this.values,this.getValueSize(),e)}}Aa.prototype.ValueTypeName="quaternion";Aa.prototype.DefaultInterpolation=Fl;Aa.prototype.InterpolantFactoryMethodSmooth=void 0;class lc extends as{}lc.prototype.ValueTypeName="string";lc.prototype.ValueBufferType=Array;lc.prototype.DefaultInterpolation=bd;lc.prototype.InterpolantFactoryMethodLinear=void 0;lc.prototype.InterpolantFactoryMethodSmooth=void 0;class zl extends as{}zl.prototype.ValueTypeName="vector";class DAt{constructor(e,t=-1,r,i=BSt){this.name=e,this.tracks=r,this.duration=t,this.blendMode=i,this.uuid=Ri(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],r=e.tracks,i=1/(e.fps||1);for(let o=0,a=r.length;o!==a;++o)t.push(PAt(r[o]).scale(i));const s=new this(e.name,e.duration,t,e.blendMode);return s.uuid=e.uuid,s}static toJSON(e){const t=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let s=0,o=r.length;s!==o;++s)t.push(as.toJSON(r[s]));return i}static CreateFromMorphTargetSequence(e,t,r,i){const s=t.length,o=[];for(let a=0;a1){const m=u[1];let f=i[m];f||(i[m]=f=[]),f.push(d)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],t,r));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const r=function(m,f,g,h,v){if(g.length!==0){const b=[],_=[];RO(g,b,_,h),b.length!==0&&v.push(new m(f,b,_))}},i=[],s=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const d=e.hierarchy||[];for(let m=0;m{t&&t(s),this.manager.itemEnd(e)},0),s;if(gs[e]!==void 0){gs[e].push({onLoad:t,onProgress:r,onError:i});return}gs[e]=[],gs[e].push({onLoad:t,onProgress:r,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(d=>{if(d.status===200||d.status===0){if(d.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||d.body===void 0||d.body.getReader===void 0)return d;const u=gs[e],m=d.body.getReader(),f=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),g=f?parseInt(f):0,h=g!==0;let v=0;const b=new ReadableStream({start(_){y();function y(){m.read().then(({done:E,value:x})=>{if(E)_.close();else{v+=x.byteLength;const A=new ProgressEvent("progress",{lengthComputable:h,loaded:v,total:g});for(let w=0,N=u.length;w{switch(l){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"document":return d.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return d.json();default:if(a===void 0)return d.text();{const m=/charset="?([^;"\s]*)"?/i.exec(a),f=m&&m[1]?m[1].toLowerCase():void 0,g=new TextDecoder(f);return d.arrayBuffer().then(h=>g.decode(h))}}}).then(d=>{Vl.add(e,d);const u=gs[e];delete gs[e];for(let m=0,f=u.length;m{const u=gs[e];if(u===void 0)throw this.manager.itemError(e),d;delete gs[e];for(let m=0,f=u.length;m{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class GAt extends cc{constructor(e){super(e)}load(e,t,r,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,o=Vl.get(e);if(o!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(o),s.manager.itemEnd(e)},0),o;const a=vd("img");function l(){u(),Vl.add(e,this),t&&t(this),s.manager.itemEnd(e)}function d(m){u(),i&&i(m),s.manager.itemError(e),s.manager.itemEnd(e)}function u(){a.removeEventListener("load",l,!1),a.removeEventListener("error",d,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",d,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),s.manager.itemStart(e),a.src=e,a}}class kO extends cc{constructor(e){super(e)}load(e,t,r,i){const s=new Jn,o=new GAt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){s.image=a,s.needsUpdate=!0,t!==void 0&&t(s)},r,i),s}}class pm extends wn{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new Nt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Nb=new Ht,lM=new he,cM=new he;class oE{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new $t(512,512),this.map=null,this.mapPass=null,this.matrix=new Ht,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Zy,this._frameExtents=new $t(1,1),this._viewportCount=1,this._viewports=[new mn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,r=this.matrix;lM.setFromMatrixPosition(e.matrixWorld),t.position.copy(lM),cM.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(cM),t.updateMatrixWorld(),Nb.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Nb),r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(Nb)}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 zAt extends oE{constructor(){super(new gr(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,r=Ul*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,s=e.distance||t.far;(r!==t.fov||i!==t.aspect||s!==t.far)&&(t.fov=r,t.aspect=i,t.far=s,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class VAt extends pm{constructor(e,t,r=0,i=Math.PI/3,s=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(wn.DEFAULT_UP),this.updateMatrix(),this.target=new wn,this.distance=r,this.angle=i,this.penumbra=s,this.decay=o,this.map=null,this.shadow=new zAt}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 dM=new Ht,Rc=new he,kb=new he;class HAt extends oE{constructor(){super(new gr(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new $t(4,2),this._viewportCount=6,this._viewports=[new mn(2,1,1,1),new mn(0,1,1,1),new mn(3,1,1,1),new mn(1,1,1,1),new mn(3,0,1,1),new mn(1,0,1,1)],this._cubeDirections=[new he(1,0,0),new he(-1,0,0),new he(0,0,1),new he(0,0,-1),new he(0,1,0),new he(0,-1,0)],this._cubeUps=[new he(0,1,0),new he(0,1,0),new he(0,1,0),new he(0,1,0),new he(0,0,1),new he(0,0,-1)]}updateMatrices(e,t=0){const r=this.camera,i=this.matrix,s=e.distance||r.far;s!==r.far&&(r.far=s,r.updateProjectionMatrix()),Rc.setFromMatrixPosition(e.matrixWorld),r.position.copy(Rc),kb.copy(r.position),kb.add(this._cubeDirections[t]),r.up.copy(this._cubeUps[t]),r.lookAt(kb),r.updateMatrixWorld(),i.makeTranslation(-Rc.x,-Rc.y,-Rc.z),dM.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(dM)}}class qAt extends pm{constructor(e,t,r=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new HAt}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 YAt extends oE{constructor(){super(new eE(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class IO extends pm{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(wn.DEFAULT_UP),this.updateMatrix(),this.target=new wn,this.shadow=new YAt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class $At extends pm{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Jc{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let r=0,i=e.length;r"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,o=Vl.get(e);if(o!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(o),s.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(l){Vl.add(e,l),t&&t(l),s.manager.itemEnd(e)}).catch(function(l){i&&i(l),s.manager.itemError(e),s.manager.itemEnd(e)}),s.manager.itemStart(e)}}const aE="\\[\\]\\.:\\/",KAt=new RegExp("["+aE+"]","g"),lE="[^"+aE+"]",jAt="[^"+aE.replace("\\.","")+"]",QAt=/((?:WC+[\/:])*)/.source.replace("WC",lE),XAt=/(WCOD+)?/.source.replace("WCOD",jAt),ZAt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",lE),JAt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",lE),eRt=new RegExp("^"+QAt+XAt+ZAt+JAt+"$"),tRt=["material","materials","bones","map"];class nRt{constructor(e,t,r){const i=r||sn.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,t)}setValue(e,t){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,s=r.length;i!==s;++i)r[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].unbind()}}class sn{constructor(e,t,r){this.path=t,this.parsedPath=r||sn.parseTrackName(t),this.node=sn.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,r){return e&&e.isAnimationObjectGroup?new sn.Composite(e,t,r):new sn(e,t,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(KAt,"")}static parseTrackName(e){const t=eRt.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const s=r.nodeName.substring(i+1);tRt.indexOf(s)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=s)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(t);if(r!==void 0)return r}if(e.children){const r=function(s){for(let o=0;o=2.0 are supported."));return}const d=new LRt(s,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});d.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&a[m]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+m+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(r,i)}parseAsync(e,t){const r=this;return new Promise(function(i,s){r.parse(e,t,i,s)})}}function iRt(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const Yt={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class sRt{constructor(e){this.parser=e,this.name=Yt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let r=0,i=t.length;r=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,s.source,o)}}class bRt{constructor(e){this.parser=e,this.name=Yt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,s=i.textures[e];if(!s.extensions||!s.extensions[t])return null;const o=s.extensions[t],a=i.images[o.source];let l=r.textureLoader;if(a.uri){const d=r.options.manager.getHandler(a.uri);d!==null&&(l=d)}return this.detectSupport().then(function(d){if(d)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class vRt{constructor(e){this.parser=e,this.name=Yt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,s=i.textures[e];if(!s.extensions||!s.extensions[t])return null;const o=s.extensions[t],a=i.images[o.source];let l=r.textureLoader;if(a.uri){const d=r.options.manager.getHandler(a.uri);d!==null&&(l=d)}return this.detectSupport().then(function(d){if(d)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class yRt{constructor(e){this.name=Yt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,r=t.bufferViews[e];if(r.extensions&&r.extensions[this.name]){const i=r.extensions[this.name],s=this.parser.getDependency("buffer",i.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return s.then(function(a){const l=i.byteOffset||0,d=i.byteLength||0,u=i.count,m=i.byteStride,f=new Uint8Array(a,l,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,m,f,i.mode,i.filter).then(function(g){return g.buffer}):o.ready.then(function(){const g=new ArrayBuffer(u*m);return o.decodeGltfBuffer(new Uint8Array(g),u,m,f,i.mode,i.filter),g})})}else return null}}class ERt{constructor(e){this.name=Yt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,r=t.nodes[e];if(!r.extensions||!r.extensions[this.name]||r.mesh===void 0)return null;const i=t.meshes[r.mesh];for(const d of i.primitives)if(d.mode!==Qr.TRIANGLES&&d.mode!==Qr.TRIANGLE_STRIP&&d.mode!==Qr.TRIANGLE_FAN&&d.mode!==void 0)return null;const o=r.extensions[this.name].attributes,a=[],l={};for(const d in o)a.push(this.parser.getDependency("accessor",o[d]).then(u=>(l[d]=u,l[d])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(d=>{const u=d.pop(),m=u.isGroup?u.children:[u],f=d[0].count,g=[];for(const h of m){const v=new Ht,b=new he,_=new Bo,y=new he(1,1,1),E=new TAt(h.geometry,h.material,f);for(let x=0;x0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const DRt=new Ht;class LRt{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new iRt,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let r=!1,i=!1,s=-1;typeof navigator<"u"&&(r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,s=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||r||i&&s<98?this.textureLoader=new kO(this.options.manager):this.textureLoader=new WAt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new NO(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const r=this,i=this.json,s=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([r.getDependencies("scene"),r.getDependencies("animation"),r.getDependencies("camera")])}).then(function(o){const a={scene:o[0][i.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:i.asset,parser:r,userData:{}};return Qo(s,a,i),mo(a,i),Promise.all(r._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],r=this.json.meshes||[];for(let i=0,s=t.length;i{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[d,u]of o.children.entries())s(u,a.children[d])};return s(r,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let r=0;r=2&&b.setY(C,w[N*l+1]),l>=3&&b.setZ(C,w[N*l+2]),l>=4&&b.setW(C,w[N*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,r=this.options,s=t.textures[e].source,o=t.images[s];let a=this.textureLoader;if(o.uri){const l=r.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,s,a)}loadTextureImage(e,t,r){const i=this,s=this.json,o=s.textures[e],a=s.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const d=this.loadImageSource(t,r).then(function(u){u.flipY=!1,u.name=o.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const f=(s.samplers||{})[o.sampler]||{};return u.magFilter=hM[f.magFilter]||Cr,u.minFilter=hM[f.minFilter]||Ta,u.wrapS=mM[f.wrapS]||Ll,u.wrapT=mM[f.wrapT]||Ll,i.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[l]=d,d}loadImageSource(e,t){const r=this,i=this.json,s=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(m=>m.clone());const o=i.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",d=!1;if(o.bufferView!==void 0)l=r.getDependency("bufferView",o.bufferView).then(function(m){d=!0;const f=new Blob([m],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(l).then(function(m){return new Promise(function(f,g){let h=f;t.isImageBitmapLoader===!0&&(h=function(v){const b=new Jn(v);b.needsUpdate=!0,f(b)}),t.load(Jc.resolveURL(m,s.path),h,void 0,g)})}).then(function(m){return d===!0&&a.revokeObjectURL(l),m.userData.mimeType=o.mimeType||ORt(o.uri),m}).catch(function(m){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),m});return this.sourceCache[e]=u,u}assignTexture(e,t,r,i){const s=this;return this.getDependency("texture",r.index).then(function(o){if(!o)return null;if(r.texCoord!==void 0&&r.texCoord>0&&(o=o.clone(),o.channel=r.texCoord),s.extensions[Yt.KHR_TEXTURE_TRANSFORM]){const a=r.extensions!==void 0?r.extensions[Yt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=s.associations.get(o);o=s.extensions[Yt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),s.associations.set(o,l)}}return i!==void 0&&(o.colorSpace=i),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let r=e.material;const i=t.attributes.tangent===void 0,s=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+r.uuid;let l=this.cache.get(a);l||(l=new AO,Mi.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,l.sizeAttenuation=!1,this.cache.add(a,l)),r=l}else if(e.isLine){const a="LineBasicMaterial:"+r.uuid;let l=this.cache.get(a);l||(l=new CO,Mi.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,this.cache.add(a,l)),r=l}if(i||s||o){let a="ClonedMaterial:"+r.uuid+":";i&&(a+="derivative-tangents:"),s&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=r.clone(),s&&(l.vertexColors=!0),o&&(l.flatShading=!0),i&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(r))),r=l}e.material=r}getMaterialType(){return sE}loadMaterial(e){const t=this,r=this.json,i=this.extensions,s=r.materials[e];let o;const a={},l=s.extensions||{},d=[];if(l[Yt.KHR_MATERIALS_UNLIT]){const m=i[Yt.KHR_MATERIALS_UNLIT];o=m.getMaterialType(),d.push(m.extendParams(a,s,t))}else{const m=s.pbrMetallicRoughness||{};if(a.color=new Nt(1,1,1),a.opacity=1,Array.isArray(m.baseColorFactor)){const f=m.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],er),a.opacity=f[3]}m.baseColorTexture!==void 0&&d.push(t.assignTexture(a,"map",m.baseColorTexture,Mn)),a.metalness=m.metallicFactor!==void 0?m.metallicFactor:1,a.roughness=m.roughnessFactor!==void 0?m.roughnessFactor:1,m.metallicRoughnessTexture!==void 0&&(d.push(t.assignTexture(a,"metalnessMap",m.metallicRoughnessTexture)),d.push(t.assignTexture(a,"roughnessMap",m.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}s.doubleSided===!0&&(a.side=Vi);const u=s.alphaMode||Ob.OPAQUE;if(u===Ob.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===Ob.MASK&&(a.alphaTest=s.alphaCutoff!==void 0?s.alphaCutoff:.5)),s.normalTexture!==void 0&&o!==vo&&(d.push(t.assignTexture(a,"normalMap",s.normalTexture)),a.normalScale=new $t(1,1),s.normalTexture.scale!==void 0)){const m=s.normalTexture.scale;a.normalScale.set(m,m)}if(s.occlusionTexture!==void 0&&o!==vo&&(d.push(t.assignTexture(a,"aoMap",s.occlusionTexture)),s.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=s.occlusionTexture.strength)),s.emissiveFactor!==void 0&&o!==vo){const m=s.emissiveFactor;a.emissive=new Nt().setRGB(m[0],m[1],m[2],er)}return s.emissiveTexture!==void 0&&o!==vo&&d.push(t.assignTexture(a,"emissiveMap",s.emissiveTexture,Mn)),Promise.all(d).then(function(){const m=new o(a);return s.name&&(m.name=s.name),mo(m,s),t.associations.set(m,{materials:e}),s.extensions&&Qo(i,m,s),m})}createUniqueName(e){const t=sn.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,r=this.extensions,i=this.primitiveCache;function s(a){return r[Yt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return fM(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&kRt(_,s),_.name=t.createUniqueName(s.name||"mesh_"+e),mo(_,s),b.extensions&&Qo(i,_,b),t.assignFinalMaterial(_),m.push(_)}for(let g=0,h=m.length;g1?u=new aa:d.length===1?u=d[0]:u=new wn,u!==d[0])for(let m=0,f=d.length;m{const m=new Map;for(const[f,g]of i.associations)(f instanceof Mi||f instanceof Jn)&&m.set(f,g);return u.traverse(f=>{const g=i.associations.get(f);g!=null&&m.set(f,g)}),m};return i.associations=d(s),s})}_createAnimationTracks(e,t,r,i,s){const o=[],a=e.name?e.name:e.uuid,l=[];no[s.path]===no.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let d;switch(no[s.path]){case no.weights:d=Gl;break;case no.rotation:d=Aa;break;case no.position:case no.scale:d=zl;break;default:switch(r.itemSize){case 1:d=Gl;break;case 2:case 3:default:d=zl;break}break}const u=i.interpolation!==void 0?RRt[i.interpolation]:Fl,m=this._getArrayFromAccessor(r);for(let f=0,g=l.length;f{Ze.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,rt.emit("stop_webcam_video_stream"),We(()=>{Ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ze.replace(),rt.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},URt=["src"],BRt=["src"],GRt={class:"controls"},zRt={key:2};function VRt(n,e,t,r,i,s){return T(),M("div",{class:"floating-frame bg-white",style:on({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},"Drag Me",32),i.isVideoActive&&i.imageDataUrl!=null?(T(),M("img",{key:0,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,URt)):Y("",!0),i.isVideoActive&&i.imageDataUrl==null?(T(),M("p",{key:1,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,BRt)):Y("",!0),c("div",GRt,[i.isVideoActive?Y("",!0):(T(),M("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>s.startVideoStream&&s.startVideoStream(...o))},e[6]||(e[6]=[c("i",{"data-feather":"video"},null,-1)]))),i.isVideoActive?(T(),M("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>s.stopVideoStream&&s.stopVideoStream(...o))},e[7]||(e[7]=[c("i",{"data-feather":"video"},null,-1)]))):Y("",!0),i.isVideoActive?(T(),M("span",zRt,"FPS: "+X(i.frameRate),1)):Y("",!0)])],36)}const HRt=bt(FRt,[["render",VRt]]),qRt={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){rt.emit("start_audio_stream",()=>{this.isAudioActive=!0}),We(()=>{Ze.replace()})},stopAudioStream(){rt.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),We(()=>{Ze.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ze.replace(),rt.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},YRt=["src"],$Rt={class:"controls"};function WRt(n,e,t,r,i,s){return T(),M("div",{class:"floating-frame bg-white",style:on({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=J((...o)=>s.startDrag&&s.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=J((...o)=>s.stopDrag&&s.stopDrag(...o),["stop"]))},"Drag Me",32),i.isAudioActive&&i.imageDataUrl!=null?(T(),M("img",{key:0,src:i.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,YRt)):Y("",!0),c("div",$Rt,[i.isAudioActive?Y("",!0):(T(),M("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>s.startAudioStream&&s.startAudioStream(...o))},e[6]||(e[6]=[c("i",{"data-feather":"mic"},null,-1)]))),i.isAudioActive?(T(),M("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>s.stopAudioStream&&s.stopAudioStream(...o))},e[7]||(e[7]=[c("i",{"data-feather":"mic"},null,-1)]))):Y("",!0)])],36)}const KRt=bt(qRt,[["render",WRt]]),jRt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:HRt,AudioFrame:KRt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),We(()=>{Ze.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new _At,this.camera=new gr(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new TO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new wo,e=new oM({color:65280});this.cube=new br(n,e),this.scene.add(this.cube);const t=new $At(4210752),r=new IO(16777215,.5);r.position.set(0,1,0),this.scene.add(t),this.scene.add(r),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new rRt().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new wo,t=new kO().load(n),r=new vo({map:t});this.cube=new br(e,r),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new wo,e=new oM({color:65280});this.cube=new br(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},QRt={ref:"webglContainer"},XRt={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"},ZRt={key:0,class:"text-center"},JRt={key:1,class:"text-center"},eMt={class:"floating-frame2"},tMt=["innerHTML"];function nMt(n,e,t,r,i,s){const o=gt("VideoFrame"),a=gt("AudioFrame");return T(),M(je,null,[c("div",QRt,null,512),c("div",XRt,[!i.activePersonality||!i.activePersonality.scene_path?(T(),M("div",ZRt," Personality does not have a 3d avatar. ")):Y("",!0),!i.activePersonality||!i.activePersonality.avatar||i.activePersonality.avatar===""?(T(),M("div",JRt," Personality does not have an avatar. ")):Y("",!0),c("div",eMt,[c("div",{innerHTML:n.htmlContent},null,8,tMt)])]),W(o,{ref:"video_frame"},null,512),W(a,{ref:"audio_frame"},null,512)],64)}const rMt=bt(jRt,[["render",nMt]]);let Qu;const iMt=new Uint8Array(16);function sMt(){if(!Qu&&(Qu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qu(iMt)}const jn=[];for(let n=0;n<256;++n)jn.push((n+256).toString(16).slice(1));function oMt(n,e=0){return jn[n[e+0]]+jn[n[e+1]]+jn[n[e+2]]+jn[n[e+3]]+"-"+jn[n[e+4]]+jn[n[e+5]]+"-"+jn[n[e+6]]+jn[n[e+7]]+"-"+jn[n[e+8]]+jn[n[e+9]]+"-"+jn[n[e+10]]+jn[n[e+11]]+jn[n[e+12]]+jn[n[e+13]]+jn[n[e+14]]+jn[n[e+15]]}const aMt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),gM={randomUUID:aMt};function ks(n,e,t){if(gM.randomUUID&&!e&&!n)return gM.randomUUID();n=n||{};const r=n.random||(n.rng||sMt)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,oMt(r)}class ga{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. +Please check that you don't accidentally use the same token twice to register two different handlers for the same event/hook.`),this.unsubscribe(e)),this.listenerMap.set(e,t),this._listeners.push(t)}unsubscribe(e){if(this.listenerMap.has(e)){const t=this.listenerMap.get(e);this.listenerMap.delete(e);const r=this._listeners.indexOf(t);r>=0&&this._listeners.splice(r,1)}}registerProxy(e,t){this.proxyMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. +Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const r=this.proxies.indexOf(t);r>=0&&this.proxies.splice(r,1)}}class ln extends ga{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class lr extends ga{constructor(e){super(),this.entity=e}emit(e){let t=!1;const r=()=>[t=!0];for(const i of Array.from(this.listeners.values()))if(i(e,r,this.entity),t)return{prevented:!0};return{prevented:!1}}}class LO extends ga{execute(e,t){let r=e;for(const i of this.listeners)r=i(r,t);return r}}class qr extends LO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class lMt extends ga{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const r of this.listeners)t.push(r(e,this.entity));return t}}function Ui(){const n=Symbol(),e=new Map,t=new Set,r=(l,d)=>{d instanceof ga&&d.registerProxy(n,()=>{var u,m;return(m=(u=e.get(l))===null||u===void 0?void 0:u.listeners)!==null&&m!==void 0?m:[]})},i=l=>{const d=new ga;e.set(l,d),t.forEach(u=>r(l,u[l]))},s=l=>{t.add(l);for(const d of e.keys())r(d,l[d])},o=l=>{for(const d of e.keys())l[d]instanceof ga&&l[d].unregisterProxy(n);t.delete(l)},a=()=>{t.forEach(l=>o(l)),e.clear()};return new Proxy({},{get(l,d){return d==="addTarget"?s:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?l[d]:(e.has(d)||i(d),e.get(d))}})}class _M{constructor(e,t){if(this.destructed=!1,this.events={destruct:new ln(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=ks(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class PO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=ks(),this.from=e,this.to=t}}function Y1(n,e){return Object.fromEntries(Object.entries(n).map(([t,r])=>[t,e(r)]))}class FO{constructor(){this._title="",this.id=ks(),this.events={loaded:new ln(this),beforeAddInput:new lr(this),addInput:new ln(this),beforeRemoveInput:new lr(this),removeInput:new ln(this),beforeAddOutput:new lr(this),addOutput:new ln(this),beforeRemoveOutput:new lr(this),removeOutput:new ln(this),beforeTitleChanged:new lr(this),titleChanged:new ln(this),update:new ln(this)},this.hooks={beforeLoad:new qr(this),afterSave:new qr(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,r])=>{this.inputs[t]&&(this.inputs[t].load(r),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,r])=>{this.outputs[t]&&(this.outputs[t].load(r),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=Y1(this.inputs,i=>i.save()),t=Y1(this.outputs,i=>i.save()),r={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(r)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,r){r.isInput=e==="input",r.nodeId=this.id,r.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:r}))}addInterface(e,t,r){const i=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,s=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return i.emit(r).prevented?!1:(o[t]=r,this.initializeIntf(e,t,r),s.emit(r),!0)}removeInterface(e,t){const r=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,i=e==="input"?this.events.removeInput:this.events.removeOutput,s=e==="input"?this.inputs[t]:this.outputs[t];if(!s||r.emit(s).prevented)return!1;if(s.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===s||a.to===s).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return s.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],i.emit(s),!0}}let UO=class extends FO{load(e){super.load(e)}save(){return super.save()}};function dc(n){return class extends UO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(r,i)=>n.calculate.call(this,r,i):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(r=>{const i=t[r]();e==="input"?this.addInput(r,i):this.addOutput(r,i)})}}}class Cn{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=ks(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new ln(this),beforeSetValue:new lr(this),setValue:new ln(this),updated:new ln(this)},this.hooks={load:new qr(this),save:new qr(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Hl="__baklava_SubgraphInputNode",ql="__baklava_SubgraphOutputNode";class BO extends UO{constructor(){super(),this.graphInterfaceId=ks()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class cE extends BO{constructor(){super(...arguments),this.type=Hl,this.inputs={name:new Cn("Name","Input")},this.outputs={placeholder:new Cn("Value",void 0)}}static isGraphInputNode(e){return e.type===Hl}}class dE extends BO{constructor(){super(...arguments),this.type=ql,this.inputs={name:new Cn("Name","Output"),placeholder:new Cn("Value",void 0)},this.outputs={output:new Cn("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===ql}}class Ud{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Hl).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===ql).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=ks(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new lr(this),addNode:new ln(this),beforeRemoveNode:new lr(this),removeNode:new ln(this),beforeAddConnection:new lr(this),addConnection:new ln(this),checkConnection:new lr(this),beforeRemoveConnection:new lr(this),removeConnection:new ln(this)},this.hooks={save:new qr(this),load:new qr(this),checkConnection:new lMt(this)},this.nodeEvents=Ui(),this.nodeHooks=Ui(),this.connectionEvents=Ui(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(r=>t.includes(r.from)||t.includes(r.to)).forEach(r=>this.removeConnection(r)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const r=this.checkConnection(e,t);if(!r.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const s of r.connectionsInDanger){const o=this.connections.find(a=>a.id===s.id);o&&this.removeConnection(o)}const i=new _M(r.dummyConnection.from,r.dummyConnection.to);return this.internalAddConnection(i),i}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const r=this.findNodeById(e.nodeId),i=this.findNodeById(t.nodeId);if(r&&i&&r===i)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const s=this.hooks.checkConnection.execute({from:e,to:t});if(s.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(s.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new PO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const r in t.inputs){const i=t.inputs[r];if(i.id===e)return i}for(const r in t.outputs){const i=t.outputs[r];if(i.id===e)return i}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let r=this.connections.length-1;r>=0;r--)this.removeConnection(this.connections[r]);for(let r=this.nodes.length-1;r>=0;r--)this.removeNode(this.nodes[r]);this.id=e.id;for(const r of e.nodes){const i=this.editor.nodeTypes.get(r.type);if(!i){t.push(`Node type ${r.type} is not registered`);continue}const s=new i.type;this.addNode(s),s.load(r)}for(const r of e.connections){const i=this.findNodeInterface(r.from),s=this.findNodeInterface(r.to);if(i)if(s){const o=new _M(i,s);o.id=r.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${r.to}`);continue}else{t.push(`Could not find interface with id ${r.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const yd="__baklava_GraphNode-";function Yl(n){return yd+n.id}const cMt=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function dMt(n){return class extends FO{constructor(){super(...arguments),this.type=Yl(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,r)=>{var i;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!r.engine||typeof r.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const s=r.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)s.set(l.nodeInterfaceId,t[l.id]);const o=await r.engine.runGraph(this.subgraph,s,r.globalValues),a={};for(const l of this.subgraph.outputs)a[l.id]=(i=o.get(l.nodeId))===null||i===void 0?void 0:i.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,this.createProxyInterface(t,!0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(r=>r.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,this.createProxyInterface(t,!1));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(r=>r.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new Cn("_calculationResults",void 0).setHidden(!0))}createProxyInterface(t,r){const i=new Cn(t.name,void 0);return new Proxy(i,{get:(s,o)=>{var a,l,d;if(cMt.includes(o)||o in s||typeof o=="string"&&o.startsWith("__v_"))return Reflect.get(s,o);let u;if(r){const g=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(h=>cE.isGraphInputNode(h)&&h.graphInterfaceId===t.id);u=g==null?void 0:g.outputs.placeholder.id}else{const g=(l=this.subgraph)===null||l===void 0?void 0:l.nodes.find(h=>dE.isGraphOutputNode(h)&&h.graphInterfaceId===t.id);u=g==null?void 0:g.inputs.placeholder.id}const m=(d=this.subgraph)===null||d===void 0?void 0:d.connections.find(g=>{var h;return u===((h=r?g.from:g.to)===null||h===void 0?void 0:h.id)}),f=r?m==null?void 0:m.to:m==null?void 0:m.from;if(f)return Reflect.get(f,o)}})}}}class hm{static fromGraph(e,t){return new hm(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(Yl(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Hl).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===ql).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=ks(),this._name="Subgraph",this.events={nameChanged:new ln(this),updated:new ln(this)},this.hooks={beforeLoad:new qr(this),afterSave:new qr(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,r=f=>{const g=ks();return t.set(f,g),g},i=f=>{const g=t.get(f);if(!g)throw new Error(`Unable to create graph from template: Could not map old id ${f} to new id`);return g},s=f=>Y1(f,g=>({id:r(g.id),templateId:g.id,value:g.value})),o=this.nodes.map(f=>({...f,id:r(f.id),inputs:s(f.inputs),outputs:s(f.outputs)})),a=this.connections.map(f=>({id:r(f.id),from:i(f.from),to:i(f.to)})),l=this.inputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),d=this.outputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),u={id:ks(),nodes:o,connections:a,inputs:l,outputs:d};return e||(e=new Ud(this.editor)),e.load(u).forEach(f=>console.warn(f)),e.template=this,e}}class uMt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new ln(this),beforeRegisterNodeType:new lr(this),registerNodeType:new ln(this),beforeUnregisterNodeType:new lr(this),unregisterNodeType:new ln(this),beforeAddGraphTemplate:new lr(this),addGraphTemplate:new ln(this),beforeRemoveGraphTemplate:new lr(this),removeGraphTemplate:new ln(this),registerGraph:new ln(this),unregisterGraph:new ln(this)},this.hooks={save:new qr(this),load:new qr(this)},this.graphTemplateEvents=Ui(),this.graphTemplateHooks=Ui(),this.graphEvents=Ui(),this.graphHooks=Ui(),this.nodeEvents=Ui(),this.nodeHooks=Ui(),this.connectionEvents=Ui(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new Ud(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(cE),this.registerNodeType(dE)}registerNodeType(e,t){var r,i;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const s=new e;this._nodeTypes.set(s.type,{type:e,category:(r=t==null?void 0:t.category)!==null&&r!==void 0?r:"default",title:(i=t==null?void 0:t.title)!==null&&i!==void 0?i:s.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=dMt(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=Yl(e);for(const r of[this.graph,...this.graphs.values()]){const i=r.nodes.filter(s=>s.type===t);for(const s of i)r.removeNode(s)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{for(this._loading=!0,e=this.hooks.load.execute(e);this.graphTemplates.length>0;)this.removeGraphTemplate(this.graphTemplates[0]);e.graphTemplates.forEach(r=>{const i=new hm(r,this);this.addGraphTemplate(i)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(r=>console.warn(r)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function pMt(n,e){const t=new Map;e.graphs.forEach(r=>{r.nodes.forEach(i=>t.set(i.id,i))}),n.forEach((r,i)=>{const s=t.get(i);s&&r.forEach((o,a)=>{const l=s.outputs[a];l&&(l.value=o)})})}class GO extends Error{constructor(){super("Cycle detected")}}function hMt(n){return typeof n=="string"}function zO(n,e){const t=new Map,r=new Map,i=new Map;let s,o;if(n instanceof Ud)s=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");s=n,o=e}s.forEach(d=>{Object.values(d.inputs).forEach(u=>t.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>t.set(u.id,d.id))}),s.forEach(d=>{const u=o.filter(f=>f.from&&t.get(f.from.id)===d.id),m=new Set(u.map(f=>t.get(f.to.id)).filter(hMt));r.set(d.id,m),i.set(d,u)});const a=s.slice();o.forEach(d=>{const u=a.findIndex(m=>t.get(d.to.id)===m.id);u>=0&&a.splice(u,1)});const l=[];for(;a.length>0;){const d=a.pop();l.push(d);const u=r.get(d.id);for(;u.size>0;){const m=u.values().next().value;if(u.delete(m),Array.from(r.values()).every(f=>!f.has(m))){const f=s.find(g=>g.id===m);a.push(f)}}}if(Array.from(r.values()).some(d=>d.size>0))throw new GO;return{calculationOrder:l,connectionsFromNode:i,interfaceIdToNodeId:t}}function mMt(n,e){try{return zO(n,e),!1}catch(t){if(t instanceof GO)return!0;throw t}}var xr;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(xr||(xr={}));class fMt{get status(){return this.isRunning?xr.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new lr(this),afterRun:new ln(this),statusChange:new ln(this),beforeNodeCalculation:new ln(this),afterNodeCalculation:new ln(this)},this.hooks={gatherCalculationData:new qr(this),transferData:new LO},this.recalculateOrder=!0,this.internalStatus=xr.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,r)=>{r.graph&&!r.graph.loading&&r.graph.activeTransactions===0&&this.internalOnChange(r,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,r)=>{this.recalculateOrder=!0,!r.loading&&r.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===xr.Stopped&&(this.internalStatus=xr.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===xr.Idle&&(this.internalStatus=xr.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===xr.Paused&&(this.internalStatus=xr.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===xr.Idle||this.internalStatus===xr.Paused)&&(this.internalStatus=xr.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const r=await this.execute(e,...t);return this.events.afterRun.emit(r),r}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const s=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!s)return{connectionAllowed:!0,connectionsInDanger:[]};e=s}if(t.templateId){const s=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!s)return{connectionAllowed:!0,connectionsInDanger:[]};t=s}const r=new PO(e,t);let i=this.editor.graph.connections.slice();return t.allowMultipleConnections||(i=i.filter(s=>s.to!==t)),i.push(r),mMt(this.editor.graph.nodes,i)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(s=>s.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(r=>{if(!(r in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${r}"`)})}internalOnChange(e,t){this.internalStatus===xr.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const r of e)for(const i of[...Object.values(r.inputs),...Object.values(r.outputs)])if(i.templateId===t)return i;return null}}class gMt extends fMt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,r){this.order.has(e.id)||this.order.set(e.id,zO(e));const{calculationOrder:i,connectionsFromNode:s}=this.order.get(e.id),o=new Map;for(const a of i){const l={};Object.entries(a.inputs).forEach(([u,m])=>{l[u]=this.getInterfaceValue(t,m.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let d;if(a.calculate)d=await a.calculate(l,{globalValues:r,engine:this});else{d={};for(const[u,m]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(t,m.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),s.has(a)&&s.get(a).forEach(u=>{var m;const f=(m=Object.entries(a.outputs).find(([,h])=>h.id===u.from.id))===null||m===void 0?void 0:m[0];if(!f)throw new Error(`Could not find key for interface ${u.from.id} +This is likely a Baklava internal issue. Please report it on GitHub.`);const g=this.hooks.transferData.execute(d[f],u);u.to.allowMultipleConnections?t.has(u.to.id)?t.get(u.to.id).push(g):t.set(u.to.id,[g]):t.set(u.to.id,g)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const t=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,t,e)}getInputValues(e){const t=new Map;for(const r of e.nodes)Object.values(r.inputs).forEach(i=>{i.connectionCount===0&&t.set(i.id,i.value)}),r.calculate||Object.values(r.outputs).forEach(i=>{t.set(i.id,i.value)});return t}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,t){if(!e.has(t))throw new Error(`Could not find value for interface ${t} +This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}const _Mt=["INPUT","TEXTAREA","SELECT"];function VO(n){return _Mt.includes(n.tagName)}let $1=null;function bMt(n){$1=n}function $r(){if(!$1)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:$1}}function _i(){const{viewModel:n}=$r();return{graph:yp(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function HO(n){const{graph:e}=_i(),t=yt(null),r=yt(null);return{dragging:ht(()=>!!t.value),onPointerDown:l=>{t.value={x:l.pageX,y:l.pageY},r.value={x:n.value.x,y:n.value.y}},onPointerMove:l=>{if(t.value){const d=l.pageX-t.value.x,u=l.pageY-t.value.y;n.value.x=r.value.x+d/e.value.scaling,n.value.y=r.value.y+u/e.value.scaling}},onPointerUp:()=>{t.value=null,r.value=null}}}function qO(n,e,t){if(!e.template)return!1;if(Yl(e.template)===t)return!0;const r=n.graphTemplates.find(s=>Yl(s)===t);return r?r.nodes.filter(s=>s.type.startsWith(yd)).some(s=>qO(n,e,s.type)):!1}function YO(n){return ht(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,i])=>i.category)),r=[];for(const i of t.values()){let s=e.filter(([,o])=>o.category===i);n.value.displayedGraph.template?s=s.filter(([o])=>!qO(n.value.editor,n.value.displayedGraph,o)):s=s.filter(([o])=>![Hl,ql].includes(o)),s.length>0&&r.push({name:i,nodeTypes:Object.fromEntries(s)})}return r.sort((i,s)=>i.name==="default"?-1:s.name==="default"||i.name>s.name?1:-1),r})}function $O(){const{graph:n}=_i();return{transform:(t,r)=>{const i=t/n.value.scaling-n.value.panning.x,s=r/n.value.scaling-n.value.panning.y;return[i,s]}}}function vMt(){const{graph:n}=_i();let e=[],t=-1,r={x:0,y:0};const i=ht(()=>n.value.panning),s=HO(i),o=ht(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(g,h,v)=>{const b=[g/n.value.scaling-n.value.panning.x,h/n.value.scaling-n.value.panning.y],_=[g/v-n.value.panning.x,h/v-n.value.panning.y],y=[_[0]-b[0],_[1]-b[1]];n.value.panning.x+=y[0],n.value.panning.y+=y[1],n.value.scaling=v},l=g=>{g.preventDefault();let h=g.deltaY;g.deltaMode===1&&(h*=32);const v=n.value.scaling*(1-h/3e3);a(g.offsetX,g.offsetY,v)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...s,onPointerDown:g=>{if(e.push(g),s.onPointerDown(g),e.length===2){const{ax:h,ay:v,bx:b,by:_}=d();r={x:h+(b-h)/2,y:v+(_-v)/2}}},onPointerMove:g=>{for(let h=0;h0){const A=n.value.scaling*(1+(x-t)/500);a(r.x,r.y,A)}t=x}else s.onPointerMove(g)},onPointerUp:g=>{e=e.filter(h=>h.pointerId!==g.pointerId),t=-1,s.onPointerUp()},onMouseWheel:l}}var ni=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(ni||{});const WO=Symbol();function yMt(){const{graph:n}=_i(),e=yt(null),t=yt(null),r=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},i=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(l=>l.to===t.value);t.value.isInput&&a?(e.value={status:ni.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:ni.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},s=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const l=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?ni.ALLOWED:ni.FORBIDDEN,l.connectionAllowed){const d=l.connectionsInDanger.map(u=>u.id);n.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=ni.NONE,n.value.connections.forEach(l=>{l.isInDanger=!1}))};return ml(WO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:r,onMouseDown:i,onMouseUp:s,hoveredOver:o}}function EMt(n){const e=yt(!1),t=yt(0),r=yt(0),i=YO(n),{transform:s}=$O(),o=ht(()=>{let u=[];const m={};for(const g of i.value){const h=Object.entries(g.nodeTypes).map(([v,b])=>({label:b.title,value:"addNode:"+v}));g.name==="default"?u=h:m[g.name]=h}const f=[...Object.entries(m).map(([g,h])=>({label:g,submenu:h}))];return f.length>0&&u.length>0&&f.push({isDivider:!0}),f.push(...u),f}),a=ht(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!n.value.commandHandler.canExecuteCommand(u.command)})]);function l(u){const m=u.target;if(!(m instanceof Element)||VO(m))return;u.preventDefault(),e.value=!0;const f=m.getBoundingClientRect(),h=m.closest(".baklava-editor").getBoundingClientRect();t.value=f.x+u.offsetX-h.x,r.value=f.y+u.offsetY-h.y}function d(u){if(u.startsWith("addNode:")){const m=u.substring(8),f=n.value.editor.nodeTypes.get(m);if(!f)return;const g=yr(new f.type);n.value.displayedGraph.addNode(g);const[h,v]=s(t.value,r.value);g.position.x=h,g.position.y=v}else if(u.startsWith("command:")){const m=u.substring(8);n.value.commandHandler.canExecuteCommand(m)&&n.value.commandHandler.executeCommand(m)}}return{show:e,x:t,y:r,items:a,open:l,onClick:d}}const gp="START_SELECTION_BOX";function SMt(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=ht(()=>t.value.nodes),i=yt(!1),s=yt(!1),o=yt([0,0]),a=yt([0,0]);Zn(e,()=>{e.value.commandHandler.hasCommand(gp)||(e.value.commandHandler.registerCommand(gp,{canExecute:()=>!0,execute(){i.value=!0}}),e.value.commandHandler.registerHotkey(["b"],gp))},{immediate:!0});function l(_){return[_.clientX-n.value.getBoundingClientRect().left,_.clientY-n.value.getBoundingClientRect().top]}function d(_){return i.value?(s.value=!0,i.value=!1,o.value=l(_),a.value=l(_),document.addEventListener("pointermove",u),document.addEventListener("pointerup",m),!0):!1}function u(_){o.value=l(_)}function m(_){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",m),o.value=l(_),s.value=!1;const y=f();for(const E of y)e.value.displayedGraph.selectedNodes.push(E)}function f(){const _=g(),E=document.querySelector(".baklava-editor").getBoundingClientRect();return r.value.filter(x=>{const A=h(x,E);return v(_,A)})}function g(){return{left:Math.min(o.value[0],a.value[0]),top:Math.min(o.value[1],a.value[1]),right:Math.max(o.value[0],a.value[0]),bottom:Math.max(o.value[1],a.value[1])}}function h(_,y){const E=document.getElementById(_.id),x=E?E.getBoundingClientRect():{x:0,y:0,width:0,height:0},A=x.x-y.left,w=x.y-y.top;return{left:A,top:w,right:A+x.width,bottom:w+x.height}}function v(_,y){return _.lefty.left&&_.topy.top}function b(){return{width:Math.abs(a.value[0]-o.value[0])+"px",height:Math.abs(a.value[1]-o.value[1])+"px",left:(a.value[0]>o.value[0]?o.value[0]:a.value[0])+"px",top:(a.value[1]>o.value[1]?o.value[1]:a.value[1])+"px"}}return yr({startSelection:i,isSelecting:s,start:o,end:a,onPointerDown:d,getStyles:b})}const xMt=Pn({setup(){const{viewModel:n}=$r(),{graph:e}=_i();return{styles:ht(()=>{const r=n.value.settings.background,i=e.value.panning.x*e.value.scaling,s=e.value.panning.y*e.value.scaling,o=e.value.scaling*r.gridSize,a=o/r.gridDivision,l=`${o}px ${o}px, ${o}px ${o}px`,d=e.value.scaling>r.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${i}px top ${s}px`,backgroundSize:`${l} ${d}`}})}}}),Nn=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t};function TMt(n,e,t,r,i,s){return T(),M("div",{class:"background",style:on(n.styles)},null,4)}const wMt=Nn(xMt,[["render",TMt]]);function CMt(n){return FM()?(k5(n),!0):!1}function uE(n){return typeof n=="function"?n():Pt(n)}const KO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const AMt=Object.prototype.toString,RMt=n=>AMt.call(n)==="[object Object]",_p=()=>{},MMt=NMt();function NMt(){var n,e;return KO&&((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 kMt(n,e,t=!1){return e.reduce((r,i)=>(i in n&&(!t||n[i]!==void 0)&&(r[i]=n[i]),r),{})}function IMt(n,e={}){if(!Gn(n))return oD(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const r in n.value)t[r]=sD(()=>({get(){return n.value[r]},set(i){var s;if((s=uE(e.replaceRef))!=null?s:!0)if(Array.isArray(n.value)){const a=[...n.value];a[r]=i,n.value=a}else{const a={...n.value,[r]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[r]=i}}));return t}function Lc(n){var e;const t=uE(n);return(e=t==null?void 0:t.$el)!=null?e:t}const pE=KO?window:void 0;function ed(...n){let e,t,r,i;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,i]=n,e=pE):[e,t,r,i]=n,!e)return _p;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(u=>u()),s.length=0},a=(u,m,f,g)=>(u.addEventListener(m,f,g),()=>u.removeEventListener(m,f,g)),l=Zn(()=>[Lc(e),uE(i)],([u,m])=>{if(o(),!u)return;const f=RMt(m)?{...m}:m;s.push(...t.flatMap(g=>r.map(h=>a(u,g,h,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return CMt(d),d}let bM=!1;function jO(n,e,t={}){const{window:r=pE,ignore:i=[],capture:s=!0,detectIframe:o=!1}=t;if(!r)return _p;MMt&&!bM&&(bM=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",_p)),r.document.documentElement.addEventListener("click",_p));let a=!0;const l=f=>i.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(h=>h===f.target||f.composedPath().includes(h));{const h=Lc(g);return h&&(f.target===h||f.composedPath().includes(h))}}),u=[ed(r,"click",f=>{const g=Lc(n);if(!(!g||g===f.target||f.composedPath().includes(g))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:s}),ed(r,"pointerdown",f=>{const g=Lc(n);a=!l(f)&&!!(g&&!f.composedPath().includes(g))},{passive:!0}),o&&ed(r,"blur",f=>{setTimeout(()=>{var g;const h=Lc(n);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const QO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},OMt=Object.keys(QO);function DMt(n={}){const{target:e=pE}=n,t=yt(!1),r=yt(n.initialValue||{});Object.assign(r.value,QO,r.value);const i=s=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(s.pointerType))&&(r.value=kMt(s,OMt,!1))};if(e){const s={passive:!0};ed(e,["pointerdown","pointermove","pointerup"],i,s),ed(e,"pointerleave",()=>t.value=!1,s)}return{...IMt(r),isInside:t}}const LMt=["onMouseenter","onMouseleave","onClick"],PMt={class:"flex-fill"},FMt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},UMt=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),BMt=[UMt],hE=Pn({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,r=e;let i=null;const s=yt(null),o=yt(-1),a=yt(0),l=yt({x:!1,y:!1}),d=ht(()=>t.flippable&&(l.value.x||t.isFlipped.x)),u=ht(()=>t.flippable&&(l.value.y||t.isFlipped.y)),m=ht(()=>{const y={};return t.isNested||(y.top=(u.value?t.y-a.value:t.y)+"px",y.left=t.x+"px"),y}),f=ht(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":t.isNested})),g=ht(()=>t.items.map(y=>({...y,hover:!1})));Zn([()=>t.y,()=>t.items],()=>{var y,E,x,A;a.value=t.items.length*30;const w=((E=(y=s.value)==null?void 0:y.parentElement)==null?void 0:E.offsetWidth)??0,N=((A=(x=s.value)==null?void 0:x.parentElement)==null?void 0:A.offsetHeight)??0;l.value.x=!t.isNested&&t.x>w*.75,l.value.y=!t.isNested&&t.y+a.value>N-20}),jO(s,()=>{t.modelValue&&r("update:modelValue",!1)});const h=y=>{!y.submenu&&y.value&&(r("click",y.value),r("update:modelValue",!1))},v=y=>{r("click",y),o.value=-1,t.isNested||r("update:modelValue",!1)},b=(y,E)=>{t.items[E].submenu&&(o.value=E,i!==null&&(clearTimeout(i),i=null))},_=(y,E)=>{t.items[E].submenu&&(i=window.setTimeout(()=>{o.value=-1,i=null},200))};return(y,E)=>{const x=gt("ContextMenu",!0);return T(),Tt(Cs,{name:"slide-fade"},{default:Ge(()=>[F(c("div",{ref_key:"el",ref:s,class:qe(["baklava-context-menu",f.value]),style:on(m.value)},[(T(!0),M(je,null,at(g.value,(A,w)=>(T(),M(je,null,[A.isDivider?(T(),M("div",{key:`d-${w}`,class:"divider"})):(T(),M("div",{key:`i-${w}`,class:qe(["item",{submenu:!!A.submenu,"--disabled":!!A.disabled}]),onMouseenter:N=>b(N,w),onMouseleave:N=>_(N,w),onClick:J(N=>h(A),["stop","prevent"])},[c("div",PMt,X(A.label),1),A.submenu?(T(),M("div",FMt,BMt)):Y("",!0),A.submenu?(T(),Tt(x,{key:1,"model-value":o.value===w,items:A.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:y.flippable,onClick:v},null,8,["model-value","items","is-flipped","flippable"])):Y("",!0)],42,LMt))],64))),256))],6),[[Dt,y.modelValue]])]),_:1})}}}),GMt={},zMt={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"},VMt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),HMt=c("circle",{cx:"12",cy:"12",r:"1"},null,-1),qMt=c("circle",{cx:"12",cy:"19",r:"1"},null,-1),YMt=c("circle",{cx:"12",cy:"5",r:"1"},null,-1),$Mt=[VMt,HMt,qMt,YMt];function WMt(n,e){return T(),M("svg",zMt,$Mt)}const XO=Nn(GMt,[["render",WMt]]),KMt=["id"],jMt={key:0,class:"__tooltip"},QMt={key:2,class:"align-middle"},vM=Pn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,_=100)=>{const y=typeof(b==null?void 0:b.toString)=="function"?String(b):"";return y.length>_?y.slice(0,_)+"...":y},t=n,{viewModel:r}=$r(),{hoveredOver:i,temporaryConnection:s}=Gr(WO),o=yt(null),a=ht(()=>t.intf.connectionCount>0),l=yt(!1),d=ht(()=>r.value.settings.displayValueOnHover&&l.value),u=ht(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),m=ht(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),f=()=>{l.value=!0,i(t.intf)},g=()=>{l.value=!1,i(void 0)},h=()=>{o.value&&r.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},v=()=>{const b=r.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return Ji(h),xd(h),(b,_)=>{var y;return T(),M("div",{id:b.intf.id,ref_key:"el",ref:o,class:qe(["baklava-node-interface",u.value])},[b.intf.port?(T(),M("div",{key:0,class:qe(["__port",{"--selected":((y=Pt(s))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:g},[On(b.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),M("span",jMt,X(e(b.intf.value)),1)):Y("",!0)])],34)):Y("",!0),m.value?(T(),Tt(xh(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":_[0]||(_[0]=E=>b.intf.value=E),node:b.node,intf:b.intf,onOpenSidebar:v},null,40,["modelValue","node","intf"])):(T(),M("span",QMt,X(b.intf.name),1))],10,KMt)}}}),XMt=["id","data-node-type"],ZMt={class:"__title-label"},JMt={class:"__menu"},e4t={class:"__outputs"},t4t={class:"__inputs"},n4t=Pn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,r=e,{viewModel:i}=$r(),{graph:s,switchGraph:o}=_i(),a=yt(null),l=yt(!1),d=yt(""),u=yt(null),m=yt(!1),f=yt(!1),g=ht(()=>{const q=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(yd)&&q.push({value:"editSubgraph",label:"Edit Subgraph"}),q}),h=ht(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),v=ht(()=>({"--reverse-y":t.node.reverseY??i.value.settings.nodes.reverseY})),b=ht(()=>{var q,ie;return{top:`${((q=t.node.position)==null?void 0:q.y)??0}px`,left:`${((ie=t.node.position)==null?void 0:ie.x)??0}px`,"--width":`${t.node.width??i.value.settings.nodes.defaultWidth}px`}}),_=ht(()=>Object.values(t.node.inputs).filter(q=>!q.hidden)),y=ht(()=>Object.values(t.node.outputs).filter(q=>!q.hidden)),E=()=>{r("select")},x=q=>{t.selected||E(),r("start-drag",q)},A=()=>{f.value=!0},w=async q=>{var ie;switch(q){case"delete":s.value.removeNode(t.node);break;case"rename":d.value=t.node.title,l.value=!0,await We(),(ie=u.value)==null||ie.focus();break;case"editSubgraph":o(t.node.template);break}},N=()=>{t.node.title=d.value,l.value=!1},L=()=>{a.value&&i.value.hooks.renderNode.execute({node:t.node,el:a.value})},C=q=>{m.value=!0,q.preventDefault()},k=q=>{if(!m.value)return;const ie=t.node.width+q.movementX/s.value.scaling,D=i.value.settings.nodes.minWidth,$=i.value.settings.nodes.maxWidth;t.node.width=Math.max(D,Math.min($,ie))},H=()=>{m.value=!1};return Ji(()=>{L(),window.addEventListener("mousemove",k),window.addEventListener("mouseup",H)}),xd(L),jl(()=>{window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",H)}),(q,ie)=>(T(),M("div",{id:q.node.id,ref_key:"el",ref:a,class:qe(["baklava-node",h.value]),style:on(b.value),"data-node-type":q.node.type,onPointerdown:E},[Pt(i).settings.nodes.resizable?(T(),M("div",{key:0,class:"__resize-handle",onMousedown:C},null,32)):Y("",!0),On(q.$slots,"title",{},()=>[c("div",{class:"__title",onPointerdown:J(x,["self","stop"])},[l.value?F((T(),M("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":ie[1]||(ie[1]=D=>d.value=D),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:N,onKeydown:ui(N,["enter"])},null,544)),[[_e,d.value]]):(T(),M(je,{key:0},[c("div",ZMt,X(q.node.title),1),c("div",JMt,[W(XO,{class:"--clickable",onClick:A}),W(Pt(hE),{modelValue:f.value,"onUpdate:modelValue":ie[0]||(ie[0]=D=>f.value=D),x:0,y:0,items:g.value,onClick:w},null,8,["modelValue","items"])])],64))],32)]),On(q.$slots,"content",{},()=>[c("div",{class:qe(["__content",v.value]),onKeydown:ie[2]||(ie[2]=ui(J(()=>{},["stop"]),["delete"]))},[c("div",e4t,[(T(!0),M(je,null,at(y.value,D=>On(q.$slots,"nodeInterface",{key:D.id,type:"output",node:q.node,intf:D},()=>[W(vM,{node:q.node,intf:D},null,8,["node","intf"])])),128))]),c("div",t4t,[(T(!0),M(je,null,at(_.value,D=>On(q.$slots,"nodeInterface",{key:D.id,type:"input",node:q.node,intf:D},()=>[W(vM,{node:q.node,intf:D},null,8,["node","intf"])])),128))])],34)])],46,XMt))}}),r4t=Pn({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:ni.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=(o,a)=>{const l=(o+t.value.panning.x)*t.value.scaling,d=(a+t.value.panning.y)*t.value.scaling;return[l,d]},i=ht(()=>{const[o,a]=r(n.x1,n.y1),[l,d]=r(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${l} ${d}`;{const u=.3*Math.abs(o-l);return`M ${o} ${a} C ${o+u} ${a}, ${l-u} ${d}, ${l} ${d}`}}),s=ht(()=>({"--temporary":n.isTemporary,"--allowed":n.state===ni.ALLOWED,"--forbidden":n.state===ni.FORBIDDEN}));return{d:i,classes:s}}}),i4t=["d"];function s4t(n,e,t,r,i,s){return T(),M("path",{class:qe(["baklava-connection",n.classes]),d:n.d},null,10,i4t)}const ZO=Nn(r4t,[["render",s4t]]);function o4t(n){return document.getElementById(n.id)}function $l(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const a4t=Pn({components:{"connection-view":ZO},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=_i();let t;const r=yt({x1:0,y1:0,x2:0,y2:0}),i=ht(()=>n.connection.isInDanger?ni.FORBIDDEN:ni.NONE),s=ht(()=>{var d;return(d=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:d.position}),o=ht(()=>{var d;return(d=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:d.position}),a=d=>d.node&&d.interface&&d.port?[d.node.offsetLeft+d.interface.offsetLeft+d.port.offsetLeft+d.port.clientWidth/2,d.node.offsetTop+d.interface.offsetTop+d.port.offsetTop+d.port.clientHeight/2]:[0,0],l=()=>{const d=$l(n.connection.from),u=$l(n.connection.to);d.node&&u.node&&(t||(t=new ResizeObserver(()=>{l()}),t.observe(d.node),t.observe(u.node)));const[m,f]=a(d),[g,h]=a(u);r.value={x1:m,y1:f,x2:g,y2:h}};return Ji(async()=>{await We(),l()}),jl(()=>{t&&t.disconnect()}),Zn([s,o],()=>l(),{deep:!0}),{d:r,state:i}}});function l4t(n,e,t,r,i,s){const o=gt("connection-view");return T(),Tt(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const c4t=Nn(a4t,[["render",l4t]]);function ch(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 d4t=Pn({components:{"connection-view":ZO},props:{connection:{type:Object,required:!0}},setup(n){const e=ht(()=>n.connection?n.connection.status:ni.NONE);return{d:ht(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const r=ch($l(n.connection.from)),i=n.connection.to?ch($l(n.connection.to)):[n.connection.mx||r[0],n.connection.my||r[1]];return n.connection.from.isInput?{input:i,output:r}:{input:r,output:i}}),status:e}}});function u4t(n,e,t,r,i,s){const o=gt("connection-view");return T(),Tt(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const p4t=Nn(d4t,[["render",u4t]]),h4t=Pn({setup(){const{viewModel:n}=$r(),{graph:e}=_i(),t=yt(null),r=yp(n.value.settings.sidebar,"width"),i=ht(()=>n.value.settings.sidebar.resizable),s=ht(()=>{const m=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===m)}),o=ht(()=>({width:`${r.value}px`})),a=ht(()=>s.value?[...Object.values(s.value.inputs),...Object.values(s.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),l=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=m=>{var f,g;const h=((g=(f=t.value)==null?void 0:f.parentElement)==null?void 0:g.getBoundingClientRect().width)??500;let v=r.value-m.movementX;v<300?v=300:v>.9*h&&(v=.9*h),r.value=v};return{el:t,graph:e,resizable:i,node:s,styles:o,displayedInterfaces:a,startResize:d,close:l}}}),m4t={class:"__header"},f4t={class:"__node-name"};function g4t(n,e,t,r,i,s){return T(),M("div",{ref:"el",class:qe(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:on(n.styles)},[n.resizable?(T(),M("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):Y("",!0),c("div",m4t,[c("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),c("div",f4t,[c("b",null,X(n.node?n.node.title:""),1)])]),(T(!0),M(je,null,at(n.displayedInterfaces,o=>(T(),M("div",{key:o.id,class:"__interface"},[(T(),Tt(xh(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 _4t=Nn(h4t,[["render",g4t]]),b4t=Pn({__name:"Minimap",setup(n){const{viewModel:e}=$r(),{graph:t}=_i(),r=yt(null),i=yt(!1);let s,o=!1,a={x1:0,y1:0,x2:0,y2:0},l;const d=()=>{var w,N;if(!s)return;s.canvas.width=r.value.offsetWidth,s.canvas.height=r.value.offsetHeight;const L=new Map,C=new Map;for(const D of t.value.nodes){const $=o4t(D),K=($==null?void 0:$.offsetWidth)??0,B=($==null?void 0:$.offsetHeight)??0,Z=((w=D.position)==null?void 0:w.x)??0,ce=((N=D.position)==null?void 0:N.y)??0;L.set(D,{x1:Z,y1:ce,x2:Z+K,y2:ce+B}),C.set(D,$)}const k={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const D of L.values())D.x1k.x2&&(k.x2=D.x2),D.y2>k.y2&&(k.y2=D.y2);const H=50;k.x1-=H,k.y1-=H,k.x2+=H,k.y2+=H,a=k;const q=s.canvas.width/s.canvas.height,ie=(a.x2-a.x1)/(a.y2-a.y1);if(q>ie){const D=(q-ie)*(a.y2-a.y1)*.5;a.x1-=D,a.x2+=D}else{const D=a.x2-a.x1,$=a.y2-a.y1,K=(D-q*$)/q*.5;a.y1-=K,a.y2+=K}s.clearRect(0,0,s.canvas.width,s.canvas.height),s.strokeStyle="white";for(const D of t.value.connections){const[$,K]=ch($l(D.from)),[B,Z]=ch($l(D.to)),[ce,ue]=u($,K),[xe,Ce]=u(B,Z);if(s.beginPath(),s.moveTo(ce,ue),e.value.settings.useStraightConnections)s.lineTo(xe,Ce);else{const me=.3*Math.abs(ce-xe);s.bezierCurveTo(ce+me,ue,xe-me,Ce,xe,Ce)}s.stroke()}s.strokeStyle="lightgray";for(const[D,$]of L.entries()){const[K,B]=u($.x1,$.y1),[Z,ce]=u($.x2,$.y2);s.fillStyle=f(C.get(D)),s.beginPath(),s.rect(K,B,Z-K,ce-B),s.fill(),s.stroke()}if(i.value){const D=h(),[$,K]=u(D.x1,D.y1),[B,Z]=u(D.x2,D.y2);s.fillStyle="rgba(255, 255, 255, 0.2)",s.fillRect($,K,B-$,Z-K)}},u=(w,N)=>[(w-a.x1)/(a.x2-a.x1)*s.canvas.width,(N-a.y1)/(a.y2-a.y1)*s.canvas.height],m=(w,N)=>[w*(a.x2-a.x1)/s.canvas.width+a.x1,N*(a.y2-a.y1)/s.canvas.height+a.y1],f=w=>{if(w){const N=w.querySelector(".__content");if(N){const C=g(N);if(C)return C}const L=g(w);if(L)return L}return"gray"},g=w=>{const N=getComputedStyle(w).backgroundColor;if(N&&N!=="rgba(0, 0, 0, 0)")return N},h=()=>{const w=r.value.parentElement.offsetWidth,N=r.value.parentElement.offsetHeight,L=w/t.value.scaling-t.value.panning.x,C=N/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:L,y2:C}},v=w=>{w.button===0&&(o=!0,b(w))},b=w=>{if(o){const[N,L]=m(w.offsetX,w.offsetY),C=h(),k=(C.x2-C.x1)/2,H=(C.y2-C.y1)/2;t.value.panning.x=-(N-k),t.value.panning.y=-(L-H)}},_=()=>{o=!1},y=()=>{i.value=!0},E=()=>{i.value=!1,_()};Zn([i,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{d()});const x=ht(()=>t.value.nodes.map(w=>w.position)),A=ht(()=>t.value.nodes.map(w=>w.width));return Zn([x,A],()=>{d()},{deep:!0}),Ji(()=>{s=r.value.getContext("2d"),s.imageSmoothingQuality="high",d(),l=setInterval(d,500)}),jl(()=>{clearInterval(l)}),(w,N)=>(T(),M("canvas",{ref_key:"canvas",ref:r,class:"baklava-minimap",onMouseenter:y,onMouseleave:E,onMousedown:J(v,["self"]),onMousemove:J(b,["self"]),onMouseup:_,onContextmenu:N[0]||(N[0]=J(()=>{},["stop","prevent"]))},null,544))}}),v4t=Pn({components:{ContextMenu:hE,VerticalDots:XO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=$r(),{switchGraph:t}=_i(),r=yt(!1),i=ht(()=>n.type.startsWith(yd));return{showContextMenu:r,hasContextMenu:i,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{r.value=!0},onContextMenuClick:l=>{const d=n.type.substring(yd.length),u=e.value.editor.graphTemplates.find(m=>m.id===d);if(u)switch(l){case"editSubgraph":t(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),y4t=["data-node-type"],E4t={class:"__title"},S4t={class:"__title-label"},x4t={key:0,class:"__menu"};function T4t(n,e,t,r,i,s){const o=gt("vertical-dots"),a=gt("context-menu");return T(),M("div",{class:"baklava-node --palette","data-node-type":n.type},[c("div",E4t,[c("div",S4t,X(n.title),1),n.hasContextMenu?(T(),M("div",x4t,[W(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=J(()=>{},["stop","prevent"])),onClick:J(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),W(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=l=>n.showContextMenu=l),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=J(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):Y("",!0)])],8,y4t)}const yM=Nn(v4t,[["render",T4t]]),w4t={key:0},C4t=Pn({__name:"NodePalette",setup(n){const{viewModel:e}=$r(),{x:t,y:r}=DMt(),{transform:i}=$O(),s=YO(e),o=Gr("editorEl"),a=yt(null),l=ht(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:m}=o.value.getBoundingClientRect();return{top:`${r.value-m}px`,left:`${t.value-u}px`}}),d=(u,m)=>{a.value={type:u,nodeInformation:m};const f=()=>{const g=yr(new m.type);e.value.displayedGraph.addNode(g);const h=o.value.getBoundingClientRect(),[v,b]=i(t.value-h.left,r.value-h.top);g.position.x=v,g.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(u,m)=>(T(),M(je,null,[c("div",{class:"baklava-node-palette",onContextmenu:m[0]||(m[0]=J(()=>{},["stop","prevent"]))},[(T(!0),M(je,null,at(Pt(s),f=>(T(),M("section",{key:f.name},[f.name!=="default"?(T(),M("h1",w4t,X(f.name),1)):Y("",!0),(T(!0),M(je,null,at(f.nodeTypes,(g,h)=>(T(),Tt(yM,{key:h,type:h,title:g.title,onPointerdown:v=>d(h,g)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),W(Cs,{name:"fade"},{default:Ge(()=>[a.value?(T(),M("div",{key:0,class:"baklava-dragged-node",style:on(l.value)},[W(yM,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):Y("",!0)]),_:1})],64))}});let Xu;const A4t=new Uint8Array(16);function R4t(){if(!Xu&&(Xu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xu(A4t)}const Qn=[];for(let n=0;n<256;++n)Qn.push((n+256).toString(16).slice(1));function M4t(n,e=0){return Qn[n[e+0]]+Qn[n[e+1]]+Qn[n[e+2]]+Qn[n[e+3]]+"-"+Qn[n[e+4]]+Qn[n[e+5]]+"-"+Qn[n[e+6]]+Qn[n[e+7]]+"-"+Qn[n[e+8]]+Qn[n[e+9]]+"-"+Qn[n[e+10]]+Qn[n[e+11]]+Qn[n[e+12]]+Qn[n[e+13]]+Qn[n[e+14]]+Qn[n[e+15]]}const N4t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),EM={randomUUID:N4t};function dh(n,e,t){if(EM.randomUUID&&!e&&!n)return EM.randomUUID();n=n||{};const r=n.random||(n.rng||R4t)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,M4t(r)}const Ed="SAVE_SUBGRAPH";function k4t(n,e){const t=()=>{const r=n.value;if(!r.template)throw new Error("Graph template property not set");r.template.update(r.save()),r.template.panning=r.panning,r.template.scaling=r.scaling};e.registerCommand(Ed,{canExecute:()=>{var r;return n.value!==((r=n.value.editor)==null?void 0:r.graph)},execute:t})}const I4t={},O4t={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"},D4t=c("polyline",{points:"6 9 12 15 18 9"},null,-1),L4t=[D4t];function P4t(n,e){return T(),M("svg",O4t,L4t)}const F4t=Nn(I4t,[["render",P4t]]),U4t=Pn({components:{"i-arrow":F4t},props:{intf:{type:Object,required:!0}},setup(n){const e=yt(null),t=yt(!1),r=ht(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),i=ht(()=>r.value?typeof r.value=="string"?r.value:r.value.text:""),s=o=>{n.intf.value=typeof o=="string"?o:o.value};return jO(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:r,selectedText:i,setSelected:s}}}),B4t=["title"],G4t={class:"__selected"},z4t={class:"__text"},V4t={class:"__icon"},H4t={class:"__dropdown"},q4t={class:"item --header"},Y4t=["onClick"];function $4t(n,e,t,r,i,s){const o=gt("i-arrow");return T(),M("div",{ref:"el",class:qe(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[c("div",G4t,[c("div",z4t,X(n.selectedText),1),c("div",V4t,[W(o)])]),W(Cs,{name:"slide-fade"},{default:Ge(()=>[F(c("div",H4t,[c("div",q4t,X(n.intf.name),1),(T(!0),M(je,null,at(n.intf.items,(a,l)=>(T(),M("div",{key:l,class:qe(["item",{"--active":a===n.selectedItem}]),onClick:d=>n.setSelected(a)},X(typeof a=="string"?a:a.text),11,Y4t))),128))],512),[[Dt,n.open]])]),_:1})],10,B4t)}const W4t=Nn(U4t,[["render",$4t]]);class K4t extends Cn{constructor(e,t,r){super(e,t),this.component=vh(W4t),this.items=r}}const j4t=Pn({props:{intf:{type:Object,required:!0}}});function Q4t(n,e,t,r,i,s){return T(),M("div",null,X(n.intf.value),1)}const X4t=Nn(j4t,[["render",Q4t]]);class Z4t extends Cn{constructor(e,t){super(e,t),this.component=vh(X4t),this.setPort(!1)}}const J4t=Pn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:ht({get:()=>n.modelValue,set:r=>{e("update:modelValue",r)}})}}}),e3t=["placeholder","title"];function t3t(n,e,t,r,i,s){return T(),M("div",null,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,e3t),[[_e,n.v]])])}const n3t=Nn(J4t,[["render",t3t]]);class Bd extends Cn{constructor(){super(...arguments),this.component=vh(n3t)}}class JO extends cE{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new Bd("Name","Input").setPort(!1)},this.outputs={placeholder:new Cn("Connection",void 0)}}}class e5 extends dE{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new Bd("Name","Output").setPort(!1),placeholder:new Cn("Connection",void 0)},this.outputs={output:new Cn("Output",void 0).setHidden(!0)}}}const t5="CREATE_SUBGRAPH",SM=[Hl,ql];function r3t(n,e,t){const r=()=>n.value.selectedNodes.filter(s=>!SM.includes(s.type)).length>0,i=()=>{const{viewModel:s}=$r(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const l=o.selectedNodes.filter(C=>!SM.includes(C.type)),d=l.flatMap(C=>Object.values(C.inputs)),u=l.flatMap(C=>Object.values(C.outputs)),m=o.connections.filter(C=>!u.includes(C.from)&&d.includes(C.to)),f=o.connections.filter(C=>u.includes(C.from)&&!d.includes(C.to)),g=o.connections.filter(C=>u.includes(C.from)&&d.includes(C.to)),h=l.map(C=>C.save()),v=g.map(C=>({id:C.id,from:C.from.id,to:C.to.id})),b=new Map,{xLeft:_,xRight:y,yTop:E}=i3t(l);for(const[C,k]of m.entries()){const H=new JO;H.inputs.name.value=k.to.name,h.push({...H.save(),position:{x:y-s.value.settings.nodes.defaultWidth-100,y:E+C*200}}),v.push({id:dh(),from:H.outputs.placeholder.id,to:k.to.id}),b.set(k.to.id,H.graphInterfaceId)}for(const[C,k]of f.entries()){const H=new e5;H.inputs.name.value=k.from.name,h.push({...H.save(),position:{x:_+100,y:E+C*200}}),v.push({id:dh(),from:k.from.id,to:H.inputs.placeholder.id}),b.set(k.from.id,H.graphInterfaceId)}const x=yr(new hm({connections:v,nodes:h,inputs:[],outputs:[]},a));a.addGraphTemplate(x);const A=a.nodeTypes.get(Yl(x));if(!A)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");o.activeTransactions++;const w=yr(new A.type);o.addNode(w);const N=Math.round(l.map(C=>C.position.x).reduce((C,k)=>C+k,0)/l.length),L=Math.round(l.map(C=>C.position.y).reduce((C,k)=>C+k,0)/l.length);w.position.x=N,w.position.y=L,m.forEach(C=>{o.removeConnection(C),o.addConnection(C.from,w.inputs[b.get(C.to.id)])}),f.forEach(C=>{o.removeConnection(C),o.addConnection(w.outputs[b.get(C.from.id)],C.to)}),l.forEach(C=>o.removeNode(C)),o.activeTransactions--,e.canExecuteCommand(Ed)&&e.executeCommand(Ed),t(x),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(t5,{canExecute:r,execute:i})}function i3t(n){const e=n.reduce((i,s)=>{const o=s.position.x;return o{const o=s.position.y;return o{const o=s.position.x+s.width;return o>i?o:i},-1/0),xRight:e,yTop:t}}class xM{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const r=new t.type;e.addNode(r),r.load(this.nodeState),this.nodeId=r.id}removeNode(e){const t=e.nodes.find(r=>r.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class TM{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const r=t;this.connectionState={id:r.id,from:r.from.id,to:r.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),r=e.findNodeInterface(this.connectionState.to);if(!t||!r)return;const i=e.addConnection(t,r);i&&(i.id=this.connectionState.id),this.connectionId=i==null?void 0:i.id}removeConnection(e){const t=e.connections.find(r=>r.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class s3t{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t{if(!s.value)if(a.value)l.value.push(b);else for(o.value!==i.value.length-1&&(i.value=i.value.slice(0,o.value+1)),i.value.push(b),o.value++;i.value.length>r.value;)i.value.shift()},u=()=>{a.value=!0},m=()=>{a.value=!1,l.value.length>0&&(d(new s3t(l.value)),l.value=[])},f=()=>i.value.length!==0&&o.value!==-1,g=()=>{f()&&(s.value=!0,i.value[o.value--].undo(n.value),s.value=!1)},h=()=>i.value.length!==0&&o.value{h()&&(s.value=!0,i.value[++o.value].redo(n.value),s.value=!1)};return Zn(n,(b,_)=>{_&&(_.events.addNode.unsubscribe(t),_.events.removeNode.unsubscribe(t),_.events.addConnection.unsubscribe(t),_.events.removeConnection.unsubscribe(t)),b&&(b.events.addNode.subscribe(t,y=>{d(new xM("addNode",y.id))}),b.events.removeNode.subscribe(t,y=>{d(new xM("removeNode",y.save()))}),b.events.addConnection.subscribe(t,y=>{d(new TM("addConnection",y.id))}),b.events.removeConnection.subscribe(t,y=>{d(new TM("removeConnection",y))}))},{immediate:!0}),e.registerCommand(W1,{canExecute:f,execute:g}),e.registerCommand(K1,{canExecute:h,execute:v}),e.registerCommand(mE,{canExecute:()=>!a.value,execute:u}),e.registerCommand(fE,{canExecute:()=>a.value,execute:m}),e.registerHotkey(["Control","z"],W1),e.registerHotkey(["Control","y"],K1),yr({maxSteps:r})}const j1="DELETE_NODES";function a3t(n,e){e.registerCommand(j1,{canExecute:()=>n.value.selectedNodes.length>0,execute(){e.executeCommand(mE);for(let t=n.value.selectedNodes.length-1;t>=0;t--){const r=n.value.selectedNodes[t];n.value.removeNode(r)}e.executeCommand(fE)}}),e.registerHotkey(["Delete"],j1)}const n5="SWITCH_TO_MAIN_GRAPH";function l3t(n,e,t){e.registerCommand(n5,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(Ed),t(n.value.editor.graph)}})}function c3t(n,e,t){a3t(n,e),r3t(n,e,t),k4t(n,e),l3t(n,e,t)}const Q1="COPY",X1="PASTE",d3t="CLEAR_CLIPBOARD";function u3t(n,e,t){const r=Symbol("ClipboardToken"),i=yt(""),s=yt(""),o=ht(()=>!i.value),a=()=>{i.value="",s.value=""},l=()=>{const m=n.value.selectedNodes.flatMap(g=>[...Object.values(g.inputs),...Object.values(g.outputs)]),f=n.value.connections.filter(g=>m.includes(g.from)||m.includes(g.to)).map(g=>({from:g.from.id,to:g.to.id}));s.value=JSON.stringify(f),i.value=JSON.stringify(n.value.selectedNodes.map(g=>g.save()))},d=(m,f,g)=>{for(const h of m){let v;if((!g||g==="input")&&(v=Object.values(h.inputs).find(b=>b.id===f)),!v&&(!g||g==="output")&&(v=Object.values(h.outputs).find(b=>b.id===f)),v)return v}},u=()=>{if(o.value)return;const m=new Map,f=JSON.parse(i.value),g=JSON.parse(s.value),h=[],v=[],b=n.value;t.executeCommand(mE);for(const _ of f){const y=e.value.nodeTypes.get(_.type);if(!y){console.warn(`Node type ${_.type} not registered`);return}const E=new y.type,x=E.id;h.push(E),E.hooks.beforeLoad.subscribe(r,A=>{const w=A;return w.position&&(w.position.x+=100,w.position.y+=100),E.hooks.beforeLoad.unsubscribe(r),w}),b.addNode(E),E.load({..._,id:x}),E.id=x,m.set(_.id,x);for(const A of Object.values(E.inputs)){const w=dh();m.set(A.id,w),A.id=w}for(const A of Object.values(E.outputs)){const w=dh();m.set(A.id,w),A.id=w}}for(const _ of g){const y=d(h,m.get(_.from),"output"),E=d(h,m.get(_.to),"input");if(!y||!E)continue;const x=b.addConnection(y,E);x&&v.push(x)}return n.value.selectedNodes=h,t.executeCommand(fE),{newNodes:h,newConnections:v}};return t.registerCommand(Q1,{canExecute:()=>n.value.selectedNodes.length>0,execute:l}),t.registerHotkey(["Control","c"],Q1),t.registerCommand(X1,{canExecute:()=>!o.value,execute:u}),t.registerHotkey(["Control","v"],X1),t.registerCommand(d3t,{canExecute:()=>!0,execute:a}),yr({isEmpty:o})}const p3t="OPEN_SIDEBAR";function h3t(n,e){e.registerCommand(p3t,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function m3t(n,e){h3t(n,e)}const f3t={},g3t={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},_3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),b3t=c("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),v3t=[_3t,b3t];function y3t(n,e){return T(),M("svg",g3t,v3t)}const E3t=Nn(f3t,[["render",y3t]]),S3t={},x3t={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"},T3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),w3t=c("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),C3t=[T3t,w3t];function A3t(n,e){return T(),M("svg",x3t,C3t)}const R3t=Nn(S3t,[["render",A3t]]),M3t={},N3t={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"},k3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),I3t=c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),O3t=c("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),D3t=c("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),L3t=[k3t,I3t,O3t,D3t];function P3t(n,e){return T(),M("svg",N3t,L3t)}const F3t=Nn(M3t,[["render",P3t]]),U3t={},B3t={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"},G3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),z3t=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),V3t=c("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),H3t=[G3t,z3t,V3t];function q3t(n,e){return T(),M("svg",B3t,H3t)}const Y3t=Nn(U3t,[["render",q3t]]),$3t={},W3t={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"},K3t=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),j3t=c("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),Q3t=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),X3t=[K3t,j3t,Q3t];function Z3t(n,e){return T(),M("svg",W3t,X3t)}const J3t=Nn($3t,[["render",Z3t]]),eNt={},tNt={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"},nNt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),rNt=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),iNt=c("circle",{cx:"12",cy:"14",r:"2"},null,-1),sNt=c("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),oNt=[nNt,rNt,iNt,sNt];function aNt(n,e){return T(),M("svg",tNt,oNt)}const lNt=Nn(eNt,[["render",aNt]]),cNt={},dNt={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"},uNt=yo('',6),pNt=[uNt];function hNt(n,e){return T(),M("svg",dNt,pNt)}const mNt=Nn(cNt,[["render",hNt]]),fNt={},gNt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},_Nt=yo('',18),bNt=[_Nt];function vNt(n,e){return T(),M("svg",gNt,bNt)}const yNt=Nn(fNt,[["render",vNt]]),ENt={},SNt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},xNt=yo('',6),TNt=[xNt];function wNt(n,e){return T(),M("svg",SNt,TNt)}const CNt=Nn(ENt,[["render",wNt]]),ANt=Pn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=$r();return{viewModel:n}}}),RNt=["disabled","title"];function MNt(n,e,t,r,i,s){return T(),M("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(T(),Tt(xh(n.icon),{key:0})):(T(),M(je,{key:1},[pt(X(n.title),1)],64))],8,RNt)}const NNt=Nn(ANt,[["render",MNt]]),kNt=Pn({components:{ToolbarButton:NNt},setup(){const{viewModel:n}=$r();return{isSubgraph:ht(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:Q1,title:"Copy",icon:J3t},{command:X1,title:"Paste",icon:Y3t},{command:j1,title:"Delete selected nodes",icon:CNt},{command:W1,title:"Undo",icon:E3t},{command:K1,title:"Redo",icon:R3t},{command:gp,title:"Box Select",icon:yNt},{command:t5,title:"Create Subgraph",icon:mNt}],subgraphCommands:[{command:Ed,title:"Save Subgraph",icon:lNt},{command:n5,title:"Back to Main Graph",icon:F3t}]}}});function INt(n,e,t,r,i,s){const o=gt("toolbar-button");return T(),M("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=J(()=>{},["stop","prevent"]))},[(T(!0),M(je,null,at(n.commands,a=>(T(),Tt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(T(!0),M(je,{key:0},at(n.subgraphCommands,a=>(T(),Tt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):Y("",!0)],32)}const ONt=Nn(kNt,[["render",INt]]),DNt={class:"connections-container"},LNt=Pn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),r=yp(e,"viewModel");bMt(r);const i=yt(null);ml("editorEl",i);const s=ht(()=>e.viewModel.displayedGraph.nodes),o=ht(()=>e.viewModel.displayedGraph.nodes.map(L=>HO(yp(L,"position")))),a=ht(()=>e.viewModel.displayedGraph.connections),l=ht(()=>e.viewModel.displayedGraph.selectedNodes),d=vMt(),u=yMt(),m=EMt(r),f=SMt(i),g=ht(()=>({...d.styles.value})),h=yt(0);e.viewModel.editor.hooks.load.subscribe(t,L=>(h.value++,L));const v=L=>{d.onPointerMove(L),u.onMouseMove(L)},b=L=>{if(L.button===0){if(f.onPointerDown(L))return;L.target===i.value&&(A(),d.onPointerDown(L)),u.onMouseDown()}},_=L=>{d.onPointerUp(L),u.onMouseUp()},y=L=>{L.key==="Tab"&&L.preventDefault(),e.viewModel.commandHandler.handleKeyDown(L)},E=L=>{e.viewModel.commandHandler.handleKeyUp(L)},x=L=>{["Control","Shift"].some(C=>e.viewModel.commandHandler.pressedKeys.includes(C))||A(),e.viewModel.displayedGraph.selectedNodes.push(L)},A=()=>{e.viewModel.displayedGraph.selectedNodes=[]},w=L=>{for(const C of e.viewModel.displayedGraph.selectedNodes){const k=s.value.indexOf(C),H=o.value[k];H.onPointerDown(L),document.addEventListener("pointermove",H.onPointerMove)}document.addEventListener("pointerup",N)},N=()=>{for(const L of e.viewModel.displayedGraph.selectedNodes){const C=s.value.indexOf(L),k=o.value[C];k.onPointerUp(),document.removeEventListener("pointermove",k.onPointerMove)}document.removeEventListener("pointerup",N)};return(L,C)=>(T(),M("div",{ref_key:"el",ref:i,tabindex:"-1",class:qe(["baklava-editor",{"baklava-ignore-mouse":!!Pt(u).temporaryConnection.value||Pt(d).dragging.value,"--temporary-connection":!!Pt(u).temporaryConnection.value,"--start-selection-box":Pt(f).startSelection}]),onPointermove:J(v,["self"]),onPointerdown:b,onPointerup:_,onWheel:C[1]||(C[1]=J((...k)=>Pt(d).onMouseWheel&&Pt(d).onMouseWheel(...k),["self"])),onKeydown:y,onKeyup:E,onContextmenu:C[2]||(C[2]=(...k)=>Pt(m).open&&Pt(m).open(...k))},[On(L.$slots,"background",{},()=>[W(wMt)]),On(L.$slots,"toolbar",{},()=>[L.viewModel.settings.toolbar.enabled?(T(),Tt(ONt,{key:0})):Y("",!0)]),On(L.$slots,"palette",{},()=>[L.viewModel.settings.palette.enabled?(T(),Tt(C4t,{key:0})):Y("",!0)]),(T(),M("svg",DNt,[(T(!0),M(je,null,at(a.value,k=>(T(),M("g",{key:k.id+h.value.toString()},[On(L.$slots,"connection",{connection:k},()=>[W(c4t,{connection:k},null,8,["connection"])])]))),128)),On(L.$slots,"temporaryConnection",{temporaryConnection:Pt(u).temporaryConnection.value},()=>[Pt(u).temporaryConnection.value?(T(),Tt(p4t,{key:0,connection:Pt(u).temporaryConnection.value},null,8,["connection"])):Y("",!0)])])),c("div",{class:"node-container",style:on(g.value)},[W(As,{name:"fade"},{default:Ge(()=>[(T(!0),M(je,null,at(s.value,(k,H)=>On(L.$slots,"node",{key:k.id+h.value.toString(),node:k,selected:l.value.includes(k),dragging:o.value[H].dragging.value,onSelect:q=>x(k),onStartDrag:w},()=>[W(n4t,{node:k,selected:l.value.includes(k),dragging:o.value[H].dragging.value,onSelect:q=>x(k),onStartDrag:w},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),On(L.$slots,"sidebar",{},()=>[L.viewModel.settings.sidebar.enabled?(T(),Tt(_4t,{key:0})):Y("",!0)]),On(L.$slots,"minimap",{},()=>[L.viewModel.settings.enableMinimap?(T(),Tt(b4t,{key:0})):Y("",!0)]),On(L.$slots,"contextMenu",{contextMenu:Pt(m)},()=>[L.viewModel.settings.contextMenu.enabled?(T(),Tt(hE,{key:0,modelValue:Pt(m).show.value,"onUpdate:modelValue":C[0]||(C[0]=k=>Pt(m).show.value=k),items:Pt(m).items.value,x:Pt(m).x.value,y:Pt(m).y.value,onClick:Pt(m).onClick},null,8,["modelValue","items","x","y","onClick"])):Y("",!0)]),Pt(f).isSelecting?(T(),M("div",{key:0,class:"selection-box",style:on(Pt(f).getStyles())},null,4)):Y("",!0)],34))}});function PNt(n){const e=yt([]),t=yt([]);return{pressedKeys:e,handleKeyDown:o=>{e.value.includes(o.key)||e.value.push(o.key),!(document.activeElement&&VO(document.activeElement))&&t.value.forEach(a=>{var l,d;a.keys.every(u=>e.value.includes(u))&&((l=a.options)!=null&&l.preventDefault&&o.preventDefault(),(d=a.options)!=null&&d.stopPropagation&&o.stopPropagation(),n(a.commandName))})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a,l)=>{t.value.push({keys:o,commandName:a,options:l})}}}const FNt=()=>{const n=yt(new Map),e=o=>n.value.has(o),t=(o,a)=>{if(n.value.has(o))throw new Error(`Command "${o}" already exists`);n.value.set(o,a)},r=(o,a=!1,...l)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return}return n.value.get(o).execute(...l)},i=(o,a=!1,...l)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return!1}return n.value.get(o).canExecute(l)},s=PNt(r);return yr({hasCommand:e,registerCommand:t,executeCommand:r,canExecuteCommand:i,...s})},UNt=n=>!(n instanceof Ud);function BNt(n,e){return{switchGraph:r=>{let i;if(UNt(r))i=new Ud(n.value),r.createGraph(i);else{if(r!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");i=r}e.value&&e.value!==n.value.graph&&e.value.destroy(),i.panning=i.panning??r.panning??{x:0,y:0},i.scaling=i.scaling??r.scaling??1,i.selectedNodes=i.selectedNodes??[],i.sidebar=i.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=i}}}function GNt(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 zNt=()=>({useStraightConnections:!1,enableMinimap:!1,toolbar:{enabled:!0},palette:{enabled:!0},background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{enabled:!0,width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1,reverseY:!1},contextMenu:{enabled:!0,additionalItems:[]}});function VNt(n){const e=yt(new uMt),t=Symbol("ViewModelToken"),r=yt(null),i=eD(r),{switchGraph:s}=BNt(e,r),o=ht(()=>i.value&&i.value!==e.value.graph),a=yr(zNt()),l=FNt(),d=o3t(i,l),u=u3t(i,e,l),m={renderNode:new qr(null),renderInterface:new qr(null)};return c3t(i,l,s),m3t(i,l),Zn(e,(f,g)=>{g&&(g.events.registerGraph.unsubscribe(t),g.graphEvents.beforeAddNode.unsubscribe(t),f.nodeHooks.beforeLoad.unsubscribe(t),f.nodeHooks.afterSave.unsubscribe(t),f.graphTemplateHooks.beforeLoad.unsubscribe(t),f.graphTemplateHooks.afterSave.unsubscribe(t),f.graph.hooks.load.unsubscribe(t),f.graph.hooks.save.unsubscribe(t)),f&&(f.nodeHooks.beforeLoad.subscribe(t,(h,v)=>(v.position=h.position??{x:0,y:0},v.width=h.width??a.nodes.defaultWidth,v.twoColumn=h.twoColumn??!1,h)),f.nodeHooks.afterSave.subscribe(t,(h,v)=>(h.position=v.position,h.width=v.width,h.twoColumn=v.twoColumn,h)),f.graphTemplateHooks.beforeLoad.subscribe(t,(h,v)=>(v.panning=h.panning,v.scaling=h.scaling,h)),f.graphTemplateHooks.afterSave.subscribe(t,(h,v)=>(h.panning=v.panning,h.scaling=v.scaling,h)),f.graph.hooks.load.subscribe(t,(h,v)=>(v.panning=h.panning,v.scaling=h.scaling,h)),f.graph.hooks.save.subscribe(t,(h,v)=>(h.panning=v.panning,h.scaling=v.scaling,h)),f.graphEvents.beforeAddNode.subscribe(t,h=>GNt(h,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(JO,{category:"Subgraphs"}),e.value.registerNodeType(e5,{category:"Subgraphs"}),s(f.graph))},{immediate:!0}),yr({editor:e,displayedGraph:i,isSubgraph:o,settings:a,commandHandler:l,history:d,clipboard:u,hooks:m,switchGraph:s})}const HNt=dc({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new Cn("Request",""),agent_name:()=>new K4t("Personality","",Ti.state.config.personalities).setPort(!1)},outputs:{response:()=>new Cn("Response","")},async calculate({request:n}){console.log(Ti.state.config.personalities);let e="";try{e=(await de.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),qNt=dc({type:"RAGNode",title:"RAG",inputs:{request:()=>new Cn("Prompt",""),document_path:()=>new Bd("Document path","").setPort(!1)},outputs:{prompt:()=>new Cn("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await de.get("/rag",{params:{text:n,doc_path:e}})).data}catch(r){console.error(r)}return{response:t}}}),wM=dc({type:"Task",title:"Task",inputs:{description:()=>new Bd("Task description","").setPort(!1)},outputs:{prompt:()=>new Cn("Prompt")},calculate({description:n}){return{prompt:n}}}),CM=dc({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new Cn("Input","")},outputs:{response:()=>new Z4t("Text","")},async calculate({request:n}){}}),AM=dc({type:"LLMNode",title:"LLM",inputs:{request:()=>new Cn("Request","")},outputs:{response:()=>new Cn("Response","")},async calculate({request:n}){console.log(Ti.state.config.personalities);let e="";try{e=(await de.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),YNt=dc({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new Cn("Question",""),outputs:()=>new Bd("choices, one per line","","").setPort(!1)},outputs:{response:()=>new Cn("Response","")}}),$Nt=Pn({components:{"baklava-editor":LNt},setup(){const n=VNt(),e=new gMt(n.editor);n.editor.registerNodeType(HNt),n.editor.registerNodeType(wM),n.editor.registerNodeType(qNt),n.editor.registerNodeType(CM),n.editor.registerNodeType(AM),n.editor.registerNodeType(YNt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),pMt(a,n.editor),e.resume()}),e.start();function r(a,l,d){const u=new a;return n.displayedGraph.addNode(u),u.position.x=l,u.position.y=d,u}const i=r(wM,300,140),s=r(AM,550,140),o=r(CM,850,140);return n.displayedGraph.addConnection(i.outputs.prompt,s.inputs.request),n.displayedGraph.addConnection(s.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),WNt={style:{width:"100vw",height:"100vh"}};function KNt(n,e,t,r,i,s){const o=gt("baklava-editor");return T(),M("div",WNt,[W(o,{"view-model":n.baklava},null,8,["view-model"]),c("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),c("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const jNt=bt($Nt,[["render",KNt]]),QNt={},XNt={style:{width:"100vw",height:"100vh"}},ZNt=["src"];function JNt(n,e,t,r,i,s){return T(),M("div",XNt,[c("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,ZNt)])}const ekt=bt(QNt,[["render",JNt]]),tkt={},nkt={style:{width:"100vw",height:"100vh"}},rkt=["src"];function ikt(n,e,t,r,i,s){return T(),M("div",nkt,[c("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,rkt)])}const skt=bt(tkt,[["render",ikt]]),okt={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)}}},akt={class:"app-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full"},lkt={class:"flex-grow"},ckt={class:"flex items-center mb-4"},dkt=["src"],ukt={class:"font-bold text-xl text-gray-800"},pkt={class:"text-sm text-gray-600"},hkt={class:"text-sm text-gray-600"},mkt={class:"text-sm text-gray-600"},fkt={class:"text-sm text-gray-600"},gkt={class:"text-sm text-gray-600"},_kt={class:"mb-4"},bkt={class:"text-sm text-gray-600 h-20 overflow-y-auto"},vkt={class:"text-sm text-gray-600 mb-2"},ykt={key:0,class:"mb-4"},Ekt={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},Skt={class:"mt-auto pt-4 border-t"},xkt={class:"flex justify-between items-center flex-wrap"},Tkt=["title"],wkt=["fill"];function Ckt(n,e,t,r,i,s){return T(),M("div",akt,[c("div",lkt,[c("div",ckt,[c("img",{src:t.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,dkt),c("div",null,[c("h3",ukt,X(t.app.name),1),c("p",pkt,"Author: "+X(t.app.author),1),c("p",hkt,"Version: "+X(t.app.version),1),c("p",mkt,"Category: "+X(t.app.category),1),c("p",fkt,"Creation date: "+X(s.formatDate(t.app.creation_date)),1),c("p",gkt,"Last update: "+X(s.formatDate(t.app.last_update_date)),1),c("p",{class:qe(["text-sm",t.app.is_public?"text-green-600":"text-orange-600"])},X(t.app.is_public?"Public App":"Local App"),3)])]),c("div",_kt,[e[10]||(e[10]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),c("p",bkt,X(t.app.description),1)]),c("p",vkt,"AI Model: "+X(t.app.model_name),1),t.app.disclaimer&&t.app.disclaimer.trim()!==""?(T(),M("div",ykt,[e[11]||(e[11]=c("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),c("p",Ekt,X(t.app.disclaimer),1)])):Y("",!0)]),c("div",Skt,[c("div",xkt,[c("button",{onClick:e[0]||(e[0]=J(o=>n.$emit("toggle-favorite",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),M("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[12]||(e[12]=[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,wkt))],8,Tkt),t.app.installed?(T(),M("button",{key:0,onClick:e[1]||(e[1]=J(o=>n.$emit("uninstall",t.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):t.app.existsInFolder?(T(),M("button",{key:1,onClick:e[2]||(e[2]=J(o=>n.$emit("delete",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):(T(),M("button",{key:2,onClick:e[3]||(e[3]=J(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)]))),t.app.installed?(T(),M("button",{key:3,onClick:e[4]||(e[4]=J(o=>n.$emit("edit",t.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)]))):Y("",!0),c("button",{onClick:e[5]||(e[5]=J(o=>n.$emit("download",t.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),t.app.has_readme?(T(),M("button",{key:4,onClick:e[6]||(e[6]=J(o=>n.$emit("help",t.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M12 21a9 9 0 100-18 9 9 0 000 18z"})],-1)]))):Y("",!0),t.app.installed?(T(),M("button",{key:5,onClick:e[7]||(e[7]=J(o=>n.$emit("open",t.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)]))):Y("",!0),t.app.has_server&&t.app.installed?(T(),M("button",{key:6,onClick:e[8]||(e[8]=J(o=>n.$emit("start-server",t.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},e[20]||(e[20]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):Y("",!0),t.app.has_update?(T(),M("button",{key:7,onClick:e[9]||(e[9]=J(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e[21]||(e[21]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),c("span",{class:"absolute top-0 right-0 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-100 transform translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full"},"!",-1)]))):Y("",!0)])])])}const Akt=bt(okt,[["render",Ckt],["__scopeId","data-v-a946557e"]]),Rkt={components:{AppCard:Akt},data(){return{apps:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"update",sortOrder:"desc",showOnlyInstalled:!1,showOnlyUnInstalled:!1}},computed:{currentCategoryName(){return this.selectedCategory==="all"?"All Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const n=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))]},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory,r=this.showOnlyInstalled&&n.installed||this.showOnlyUnInstalled&&!n.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&t&&r})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.appName))}},methods:{toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite"),console.log(n);const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server. +This may take some time the first time as some libraries need to be installed.`),de.post("/apps/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var r,i;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((i=(r=t.response)==null?void 0:r.data)==null?void 0:i.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const r=await de.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=r.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(r){console.error("Error uploading app:",r),this.error=((t=(e=r.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const n=await de.get("/apps");this.apps=n.data,this.showMessage("Refresh successful!",!0)}catch{this.showMessage("Failed to refresh apps.",!1)}finally{this.loading=!1}},async openAppsFolder(){this.loading=!0;try{console.log("opening apps folder");const n=await de.post("/show_apps_folder",{client_id:this.$store.state.client_id})}catch{this.showMessage("Failed to open apps folder.",!1)}finally{this.loading=!1}},async fetchGithubApps(){this.loading=!0;try{const n=await de.get("/github/apps");this.githubApps=n.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(n){if(n.installed){this.selectedApp=n;const e=await de.get(`/apps/${n.folder_name}/README.md`);this.appCode=nn(e.data)}else this.showMessage(`Please install ${n.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(n){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${n}`);try{await de.post(`/install/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Installation succeeded!",!0)}catch{this.showMessage("Installation failed.",!1)}finally{this.loading=!1,this.fetchApps(),this.fetchGithubApps(),this.$store.state.messageBox.hideMessage()}},async uninstallApp(n){this.loading=!0;try{await de.post(`/uninstall/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Uninstallation succeeded!",!0)}catch{this.showMessage("Uninstallation failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async deleteApp(n){this.loading=!0;try{await de.post(`/delete/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Deletion succeeded!",!0)}catch{this.showMessage("Deletion failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async editApp(n){this.loading=!0;try{const e=await de.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:n.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(n){this.isLoading=!0,this.error=null;try{const e=await de.post("/download_app",{client_id:this.$store.state.client_id,app_name:n},{responseType:"arraybuffer"}),t=e.headers["content-disposition"],r=t&&t.match(/filename="?(.+)"?/i),i=r?r[1]:"app.zip",s=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=o,a.download=i,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(o),document.body.removeChild(a)}catch(e){console.error("Error downloading app:",e),this.error="Failed to download the app. Please try again."}finally{this.isLoading=!1}},openApp(n){n.installed?window.open(`/apps/${n.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${n.name} before opening.`,!1)},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},Mkt={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},Nkt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},kkt={class:"flex flex-wrap items-center justify-between gap-4"},Ikt={class:"flex items-center space-x-4"},Okt=["disabled"],Dkt={key:0},Lkt={key:1,class:"error"},Pkt={class:"relative flex-grow max-w-md"},Fkt={class:"flex items-center space-x-4"},Ukt=["value"],Bkt={class:"flex items-center space-x-4"},Gkt={for:"installed-only",class:"font-semibold"},zkt={for:"installed-only",class:"font-semibold"},Vkt={class:"flex items-center space-x-4"},Hkt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},qkt={key:1,class:"pb-20"},Ykt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},$kt={class:"text-2xl font-bold mb-4"},Wkt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},Kkt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},jkt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},Qkt={class:"flex justify-between items-center mb-4"},Xkt={class:"text-2xl font-bold"},Zkt=["srcdoc"],Jkt={key:1,class:"text-center text-red-500"};function eIt(n,e,t,r,i,s){const o=gt("app-card");return T(),M("div",Mkt,[c("nav",Nkt,[c("div",kkt,[c("div",Ikt,[c("button",{onClick:e[0]||(e[0]=(...a)=>s.fetchGithubApps&&s.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[c("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),pt(" Refresh ")])),c("button",{onClick:e[1]||(e[1]=(...a)=>s.openAppsFolder&&s.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[c("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"})],-1),pt(" Open Folder ")])),c("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>s.onFileSelected&&s.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),c("button",{onClick:e[3]||(e[3]=(...a)=>s.triggerFileInput&&s.triggerFileInput(...a)),disabled:i.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},X(i.isUploading?"Uploading...":"Upload App"),9,Okt)]),i.message?(T(),M("p",Dkt,X(i.message),1)):Y("",!0),i.error?(T(),M("p",Lkt,X(i.error),1)):Y("",!0),c("div",Pkt,[F(c("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>i.searchQuery=a),placeholder:"Search apps...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search apps"},null,512),[[_e,i.searchQuery]]),e[13]||(e[13]=c("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),c("div",Fkt,[e[15]||(e[15]=c("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),F(c("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[14]||(e[14]=c("option",{value:"all"},"All Categories",-1)),(T(!0),M(je,null,at(s.categories,a=>(T(),M("option",{key:a,value:a},X(a),9,Ukt))),128))],512),[[Qt,i.selectedCategory]])]),c("div",Bkt,[c("label",Gkt,[F(c("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>i.showOnlyInstalled=a),class:"mr-2"},null,512),[[tt,i.showOnlyInstalled]]),e[16]||(e[16]=pt(" Show only installed apps "))]),c("label",zkt,[F(c("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>i.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[tt,i.showOnlyUnInstalled]]),e[17]||(e[17]=pt(" Show only non installed apps "))])]),c("div",Vkt,[e[19]||(e[19]=c("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),F(c("select",{id:"sort-select","onUpdate:modelValue":e[8]||(e[8]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[18]||(e[18]=[c("option",{value:"name"},"Name",-1),c("option",{value:"author"},"Author",-1),c("option",{value:"date"},"Creation Date",-1),c("option",{value:"update"},"Last Update",-1)]),512),[[Qt,i.sortBy]]),c("button",{onClick:e[9]||(e[9]=(...a)=>s.toggleSortOrder&&s.toggleSortOrder(...a)),class:"btn btn-secondary"},X(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),M("div",Hkt,e[20]||(e[20]=[c("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),c("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),M("div",qkt,[e[21]||(e[21]=c("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),c("div",Ykt,[(T(!0),M(je,null,at(s.favoriteApps,a=>(T(),Tt(o,{key:a.appName,app:a,onToggleFavorite:s.toggleFavorite,onInstall:s.installApp,onUninstall:s.uninstallApp,onDelete:s.deleteApp,onEdit:s.editApp,onDownload:s.downloadApp,onHelp:s.handleAppClick,onOpen:s.openApp,onStartServer:s.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),c("h2",$kt,X(s.currentCategoryName)+" ("+X(s.sortedAndFilteredApps.length)+")",1),c("div",Wkt,[(T(!0),M(je,null,at(s.sortedAndFilteredApps,a=>(T(),Tt(o,{key:a.name,app:a,onToggleFavorite:s.toggleFavorite,onInstall:s.installApp,onUninstall:s.uninstallApp,onDelete:s.deleteApp,onEdit:s.editApp,onDownload:s.downloadApp,onHelp:s.handleAppClick,onOpen:s.openApp,onStartServer:s.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),i.selectedApp?(T(),M("div",Kkt,[c("div",jkt,[c("div",Qkt,[c("h2",Xkt,X(i.selectedApp.name),1),c("button",{onClick:e[10]||(e[10]=(...a)=>s.backToZoo&&s.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),M("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,Zkt)):(T(),M("p",Jkt,"Please install this app to view its code."))])])):Y("",!0),i.message?(T(),M("div",{key:3,class:qe(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},X(i.message),3)):Y("",!0)])}const tIt=bt(Rkt,[["render",eIt]]),nIt={components:{PersonalityEntry:xI},data(){return{personalities:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"name",sortOrder:"asc"}},computed:{currentCategoryName(){return this.selectedCategory=="all"?"All Personalities":this.selectedCategory},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},combinedApps(){this.personalities.map(e=>e.name);const n=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))].sort((n,e)=>n.localeCompare(e))},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory;return e&&t})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.uid))}},methods:{async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: +`+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: +`+n.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(n);We(()=>{feather.replace()})}},onModelSelected(n){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}n&&(n.isInstalled?this.update_model(n.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=n.model.name,e.status?(this.$store.state.toast.showToast(`Selected model: +`+n.name,4,!0),We(()=>{feather.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(t=>{this.$store.commit("setIsModelOk",t)})):(this.$store.state.toast.showToast(`Couldn't select model: +`+n.name,4,!1),We(()=>{feather.replace()})),this.settingsChanged=!0,this.isModelSelected=!0}):this.$store.state.toast.showToast(`Model: +`+n.model.name+` +is not installed`,4,!1),We(()=>{feather.replace()}))},toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite");const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server. +This may take some time the first time as some libraries need to be installed.`),de.post("/personalities/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var r,i;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((i=(r=t.response)==null?void 0:r.data)==null?void 0:i.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const r=await de.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=r.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(r){console.error("Error uploading app:",r),this.error=((t=(e=r.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async mount_personality(n){if(this.$store.state.messageBox.showMessage("Loading personality"),!n)return{status:!1,error:"no personality - mount_personality"};try{const e={client_id:this.$store.state.client_id,language:n.language?n.language:"",category:n.category?n.category:"",folder:n.folder?n.folder:""},t=await de.post("/mount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(e){console.log(e.message,"mount_personality - settings");return}this.$store.state.messageBox.hideMessage()},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};let e=n.language==null?n.full_path:n.full_path+":"+n.language;console.log("pth",e);const t=this.configFile.personalities.findIndex(i=>i===e),r={client_id:this.$store.state.client_id,id:t};try{const i=await de.post("/select_personality",r,{headers:this.posts_headers});if(i)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),i.data}catch(i){console.log(i.message,"select_personality - settings");return}},async mountPersonality(n){if(this.isLoading=!0,console.log("mount pers",n),n.personality.disclaimer!=""&&this.$store.state.messageBox.showMessage(n.personality.disclaimer),!n)return;if(this.configFile.personalities.includes(n.personality.full_path)){this.isLoading=!1,this.$store.state.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(n.personality);console.log("mount_personality res",e),e&&e.status&&e.active_personality_id>-1&&e.personalities.includes(n.personality.full_path)?(this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality mounted",4,!0),n.isMounted=!0,(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: +`+n.personality.name,4,!0),this.$store.dispatch("refreshMountedPersonalities"),window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)):(n.isMounted=!1,this.$store.state.toast.showToast(`Could not mount personality +Error: `+e.error+` +Response: +`+e,4,!1)),this.isLoading=!1},async unmountAll(){await de.post("/unmount_all_personalities",{client_id:this.$store.state.client_id},{headers:this.posts_headers}),this.$store.dispatch("refreshMountedPersonalities"),this.$store.dispatch("refreshConfig"),this.$store.state.toast.showToast("All personas unmounted",4,!0)},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 de.post("/unmount_personality",e,{headers:this.posts_headers});if(t)return t.data}catch(t){console.log(t.message,"unmount_personality - settings");return}},async unmountPersonality(n){if(this.isLoading=!0,!n)return;const e=await this.unmount_personality(n.personality||n);if(e.status){this.configFile.personalities=e.personalities,this.$store.state.toast.showToast("Personality unmounted",4,!0);const t=this.$store.state.personalities.findIndex(a=>a.full_path==n.full_path),r=this.personalitiesFiltered.findIndex(a=>a.full_path==n.full_path),i=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==n.full_path);console.log("ppp",this.$store.state.personalities[t]),this.$store.state.personalities[t].isMounted=!1,r>-1&&(this.personalitiesFiltered[r].isMounted=!1),i>-1&&(this.$refs.personalitiesZoo[i].isMounted=!1),this.$store.dispatch("refreshMountedPersonalities");const s=this.mountedPersArr[this.mountedPersArr.length-1];console.log(s,this.mountedPersArr.length),(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality: +`+s.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality +Error: `+e.error,4,!1);this.isLoading=!1},editPersonality(n){n=n.personality,de.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)})},copyToCustom(n){n=n.personality,de.post("/copy_to_custom_personas",{category:n.category,name:n.folder}).then(e=>{e.status?(this.$store.state.messageBox.showMessage(`Personality copied to the custom personalities folder: +Now it's up to you to modify it, enhance it, and maybe even share it. +Feel free to add your name as an author, but please remember to keep the original creator's name as well. +You have the freedom to give, sell, or keep the personas you create for yourself. +The possibilities are endless, they are now yours to mold and customize as you see fit.`),this.$store.dispatch("refreshPersonalitiesZoo")):this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: +Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder: +`,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),de.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality +`+e.message,4,!1),{status:!1}))},async handleOpenFolder(n){await de.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:n.personality.folder})},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)},loadPersonalities(){this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},mounted(){this.loadFavoritesFromLocalStorage(),this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},rIt={class:"app-zoo mb-100 pb-100 pt-12 background-color w-full p-6 overflow-y-auto h-screen scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},iIt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},sIt={class:"flex flex-wrap items-center justify-between gap-4"},oIt={key:0},aIt={key:1,class:"error"},lIt={class:"relative flex-grow max-w-md"},cIt={class:"flex items-center space-x-4"},dIt=["value"],uIt={class:"flex items-center space-x-4"},pIt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},hIt={key:1},mIt={class:"container mx-auto px-4 flex flex-column pb-20"},fIt={key:0},gIt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},_It={class:"container mx-auto px-4 flex flex-column pb-20"},bIt={class:"text-2xl font-bold my-8"},vIt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},yIt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},EIt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},SIt={class:"flex justify-between items-center mb-4"},xIt={class:"text-2xl font-bold"},TIt=["srcdoc"],wIt={key:1,class:"text-center text-red-500"};function CIt(n,e,t,r,i,s){const o=gt("personality-entry");return T(),M("div",rIt,[c("nav",iIt,[c("div",sIt,[i.message?(T(),M("p",oIt,X(i.message),1)):Y("",!0),i.error?(T(),M("p",aIt,X(i.error),1)):Y("",!0),c("div",lIt,[F(c("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>i.searchQuery=a),placeholder:"Search personalities...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search personalities"},null,512),[[_e,i.searchQuery]]),e[5]||(e[5]=c("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),c("div",cIt,[e[7]||(e[7]=c("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),F(c("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[6]||(e[6]=c("option",{value:"all"},"All Categories",-1)),(T(!0),M(je,null,at(s.categories,a=>(T(),M("option",{key:a,value:a},X(a),9,dIt))),128))],512),[[Qt,i.selectedCategory]])]),c("div",uIt,[e[9]||(e[9]=c("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),F(c("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[8]||(e[8]=[c("option",{value:"name"},"Name",-1),c("option",{value:"author"},"Author",-1),c("option",{value:"date"},"Creation Date",-1),c("option",{value:"update"},"Last Update",-1)]),512),[[Qt,i.sortBy]]),c("button",{onClick:e[3]||(e[3]=(...a)=>s.toggleSortOrder&&s.toggleSortOrder(...a)),class:"btn btn-secondary"},X(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),M("div",pIt,e[10]||(e[10]=[c("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),c("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),M("div",hIt,[c("div",mIt,[s.favoriteApps.length>0&&!i.searchQuery?(T(),M("div",fIt,[e[11]||(e[11]=c("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),c("div",gIt,[(T(!0),M(je,null,at(s.favoriteApps,a=>(T(),Tt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-edit":s.editPersonality,"on-copy-to-custom":s.copyToCustom,"on-reinstall":s.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":s.handleOpenFolder,"on-toggle-favorite":s.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","on-toggle-favorite"]))),128))])])):Y("",!0)]),c("div",_It,[c("h2",bIt,X(s.currentCategoryName)+" ("+X(s.sortedAndFilteredApps.length)+")",1),c("div",vIt,[(T(!0),M(je,null,at(s.sortedAndFilteredApps,a=>(T(),Tt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:s.configFile.active_personality_id==s.configFile.personalities.findIndex(l=>l===a.full_path||l===a.full_path+":"+a.language),"on-selected":s.onPersonalitySelected,"on-mount":s.mountPersonality,"on-un-mount":s.unmountPersonality,"on-remount":s.remountPersonality,"on-edit":s.editPersonality,"on-copy-to-custom":s.copyToCustom,"on-reinstall":s.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":s.handleOpenFolder,"toggle-favorite":s.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","toggle-favorite"]))),128))])])])),i.selectedApp?(T(),M("div",yIt,[c("div",EIt,[c("div",SIt,[c("h2",xIt,X(i.selectedApp.name),1),c("button",{onClick:e[4]||(e[4]=(...a)=>n.backToZoo&&n.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),M("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,TIt)):(T(),M("p",wIt,"Please install this app to view its code."))])])):Y("",!0),i.message?(T(),M("div",{key:3,class:qe(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},X(i.message),3)):Y("",!0),e[12]||(e[12]=c("div",{class:"h-20"},null,-1))])}const AIt=bt(nIt,[["render",CIt],["__scopeId","data-v-fcb6b036"]]),RIt=s8({history:F7("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:tIt},{path:"/personalities_view/",name:"PersonalitiesZoo",component:AIt},{path:"/auto_sd_view/",name:"AutoSD",component:skt},{path:"/comfyui_view/",name:"ComfyUI",component:ekt},{path:"/playground/",name:"playground",component:bst},{path:"/extensions/",name:"extensions",component:Ast},{path:"/help_view/",name:"help_view",component:_ot},{path:"/settings/",name:"settings",component:cgt},{path:"/training/",name:"training",component:Sgt},{path:"/quantizing/",name:"quantizing",component:Rgt},{path:"/",name:"discussions",component:QEt},{path:"/interactive/",name:"interactive",component:rMt},{path:"/nodes/",name:"nodes",component:jNt}]}),mm=JL(p9);function MIt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Ti=C6({state(){return{personalities_ready:!1,is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",leftPanelCollapsed:!1,rightPanelCollapsed:!0,view_mode:localStorage.getItem("lollms_webui_view_mode")||"compact",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{setLeftPanelCollapsed(n,e){n.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(n,e){n.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(n,e){n.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(n,e){n.personalities_ready=e},setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getLeftPanelCollapsed(n){return n.leftPanelCollapsed},getRightPanelCollapsed(n){return n.rightPanelCollapsed},getViewMode(n){return n.view_mode},getpersonalitiesReady(n){return n.personalities_ready},getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await de.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await r5("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await Pi("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){const t=(await de.get("/is_rt_on")).data.status;n("setisRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await de.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await de.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await de.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await de.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const r=t.data;console.log("languages",r),n("setLanguages",r),t=await de.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("language",i),n("setLanguage",i),await this.dispatch("refreshMountedPersonalities"),console.log("Language changed successfully:",i)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await de.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await de.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const r=t.data;console.log("languages",r),n("setLanguages",r),t=await de.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("language",i),n("setLanguage",i),console.log("Language changed successfully:",t.data.message)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await Pi("get_all_personalities"),r=Object.keys(t);console.log("Personalities recovered:"+this.state.config.personalities);for(let i=0;i{let d=!1;for(const m of this.state.config.personalities)if(m.includes(s+"/"+l.folder))if(d=!0,m.includes(":")){const f=m.split(":");l.language=f[1]}else l.language=null;let u={};return u=l,u.category=s,u.full_path=s+"/"+l.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((i,s)=>i.name.localeCompare(s.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let r=0;ra.full_path==i||a.full_path==s[0]);if(o>=0){let a=MIt(this.state.personalities[o]);s.length>1&&(a.language=s[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else t.push(r),console.log("Couldn't load personality : ",i)}for(let r=t.length-1;r>=0;r--)console.log("Removing personality : ",this.state.config.personalities[t[r]]),this.state.config.personalities.splice(t[r],1),this.state.config.active_personality_id>t[r]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(r=>r.full_path==this.state.config.personalities[this.state.config.active_personality_id]||r.full_path+":"+r.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:n}){let e=await Pi("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(r=>r.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(r=>r.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){console.log("Fetching models");const t=(await de.get("/get_available_models")).data.filter(r=>r.variants&&r.variants.length>0);console.log(`get_available_models: ${t}`),n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await Pi("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){console.log("Fetching models");let e=await Pi("list_models");console.log(`Found ${e}`);let t=await Pi("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(i=>{i.isInstalled=e.includes(i.name)}),this.state.installedModels=this.state.modelsZoo.filter(i=>i.isInstalled);const r=this.state.modelsZoo.findIndex(i=>i.name==this.state.config.model_name);r!=-1&&n("setCurrentModel",this.state.modelsZoo[r])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await Pi("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await Pi("ram_usage")},async refreshVramUsage({commit:n}){const e=await Pi("vram_usage"),t=[];if(e.nb_gpus>0){for(let i=0;i LoLLMS WebUI - - + +
    diff --git a/web/package-lock.json b/web/package-lock.json index 997144aa..5ccccd35 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -25,6 +25,7 @@ "markdown-it-math": "^4.1.1", "markdown-it-mathjax": "^2.0.0", "markdown-it-multimd-table": "^4.2.3", + "markdown-it-texmath": "^1.0.0", "marked": "^14.1.2", "mathjax": "^3.2.2", "mermaid": "^11.2.1", @@ -3558,6 +3559,12 @@ "resolved": "https://registry.npmjs.org/markdown-it-multimd-table/-/markdown-it-multimd-table-4.2.3.tgz", "integrity": "sha512-KepCr2OMJqm7IT6sOIbuqHGe+NERhgy66XMrc5lo6dHW7oaPzMDtYwR1EGwK16/blb6mCSg4jqityOe0o/H7HA==" }, + "node_modules/markdown-it-texmath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/markdown-it-texmath/-/markdown-it-texmath-1.0.0.tgz", + "integrity": "sha512-4hhkiX8/gus+6e53PLCUmUrsa6ZWGgJW2XCW6O0ASvZUiezIK900ZicinTDtG3kAO2kon7oUA/ReWmpW2FByxg==", + "license": "MIT" + }, "node_modules/marked": { "version": "14.1.2", "resolved": "https://registry.npmjs.org/marked/-/marked-14.1.2.tgz", diff --git a/web/package.json b/web/package.json index 5a3d6096..275d977b 100644 --- a/web/package.json +++ b/web/package.json @@ -28,6 +28,7 @@ "markdown-it-math": "^4.1.1", "markdown-it-mathjax": "^2.0.0", "markdown-it-multimd-table": "^4.2.3", + "markdown-it-texmath": "^1.0.0", "marked": "^14.1.2", "mathjax": "^3.2.2", "mermaid": "^11.2.1", diff --git a/web/src/components/MarkdownRenderer.vue b/web/src/components/MarkdownRenderer.vue index c256dd89..d2606bbd 100644 --- a/web/src/components/MarkdownRenderer.vue +++ b/web/src/components/MarkdownRenderer.vue @@ -33,6 +33,10 @@ import CodeBlock from './CodeBlock.vue'; import hljs from 'highlight.js'; import mathjax from 'markdown-it-mathjax'; + +import texmath from 'markdown-it-texmath'; +import katex from 'katex'; + function escapeHtml(unsafe) { return unsafe .replace(/&/g, "&") @@ -80,7 +84,7 @@ export default { return hljs.highlight(validLanguage, code).value; }, renderInline: true, - breaks: true, + breaks: false, // Prevent newlines from being converted to
    tags }) .use(emoji) .use(anchor) @@ -100,10 +104,68 @@ export default { multilineCellEndMarker: '<|', multilineCellPadding: ' ', multilineCellJoiner: '\n', - }).use(mathjax({ - inlineMath: [['$', '$'], ['\\(', '\\)']], - blockMath: [['$$', '$$'], ['\\[', '\\]']] - })) + }); + + // Add a custom rule to escape backslashes before LaTeX delimiters + md.core.ruler.before('normalize', 'escape_latex_delimiters', state => { + state.src = state.src.replace(/(?' + katex.renderToString(tokens[idx].content, {displayMode: true}) + ''; + }; + + // Enhance list rendering + md.renderer.rules.list_item_open = function (tokens, idx, options, env, self) { + const token = tokens[idx]; + if (token.markup === '1.') { + // This is an ordered list item + const start = token.attrGet('start'); + if (start) { + return `
  • `; + } + } + return self.renderToken(tokens, idx, options); + }; + + md.use(texmath, { + engine: katex, + delimiters: [ + {left: '$$', right: '$$', display: true}, + {left: '$', right: '$', display: false}, + {left: '\\[', right: '\\]', display: true} + ], + katexOptions: { macros: { "\\RR": "\\mathbb{R}" } } + }); const markdownItems = ref([]); const updateMarkdown = () => { @@ -164,4 +226,16 @@ export default { diff --git a/web/src/components/TopBar.vue b/web/src/components/TopBar.vue index 9ee3b9c4..a726c634 100644 --- a/web/src/components/TopBar.vue +++ b/web/src/components/TopBar.vue @@ -354,6 +354,13 @@ export default { }, methods: { + + addCustomLanguage() { + if (this.customLanguage.trim() !== '') { + this.selectLanguage(this.customLanguage); + this.customLanguage = ''; // Reset the input field after adding + } + }, handleClickOutside(e) { const dropdown = this.$el if (!dropdown.contains(e.target)) { @@ -460,6 +467,7 @@ export default { window.dispatchEvent(new Event('themeChanged')); }, async selectLanguage(language) { + await this.$store.dispatch('changeLanguage', language); await this.$store.dispatch('changeLanguage', language); this.toggleLanguageMenu(); // Fermer le menu après le changement de langue this.language = language diff --git a/web/src/main.js b/web/src/main.js index 6911620e..cc32dda1 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -357,9 +357,11 @@ export const store = createStore({ const language = response.data; console.log("language", language) commit('setLanguage', language); + await this.dispatch('refreshMountedPersonalities'); - console.log('Language changed successfully:', response.data.message); + console.log('Language changed successfully:', language); }, + async deleteLanguage({ commit }, new_language) { console.log("Deleting ", new_language) let response = await axios.post('/del_personality_language', { diff --git a/web/src/views/DiscussionsView.vue b/web/src/views/DiscussionsView.vue index 4aef31a0..1ea93da1 100644 --- a/web/src/views/DiscussionsView.vue +++ b/web/src/views/DiscussionsView.vue @@ -1894,12 +1894,6 @@ export default { } } }, - addCustomLanguage() { - if (this.customLanguage.trim() !== '') { - this.selectLanguage(this.customLanguage); - this.customLanguage = ''; // Reset the input field after adding - } - }, restartProgram(event) { event.preventDefault(); this.$store.state.api_post_req('restart_program', this.$store.state.client_id) diff --git a/zoos/bindings_zoo b/zoos/bindings_zoo index a7406c34..ea93d5d7 160000 --- a/zoos/bindings_zoo +++ b/zoos/bindings_zoo @@ -1 +1 @@ -Subproject commit a7406c349335dfa982c1f3c751aca16852c06c77 +Subproject commit ea93d5d7deb174ec93975e5bb4cc09468ddbb8d9 diff --git a/zoos/models_zoo b/zoos/models_zoo index 6ad70aa8..5ee61221 160000 --- a/zoos/models_zoo +++ b/zoos/models_zoo @@ -1 +1 @@ -Subproject commit 6ad70aa8d7c9dffead7eed65bf6ccb4c655b1a25 +Subproject commit 5ee61221a32fb5dc4466838fe35cd83ea9a2403f diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index 74f7af20..39ac19c3 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit 74f7af206a4f5f5c87973c8d2e3047938f004e4f +Subproject commit 39ac19c3371fdb3f40a3145082d0e5ae92566006